Skip to content

armgit / zulip

Public Imported from GitHub
0

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

upgrade: Make it possible to upgrade to a provided tier.

Aman Agrawald962814a30be
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 0090649396f..613b6cd623a 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -587,6 +587,7 @@ class UpgradePageParams(TypedDict):
monthly_price: int
seat_count: int
billing_base_url: str
+ tier: int
class UpgradePageSessionTypeSpecificContext(TypedDict):
@@ -959,12 +960,18 @@ class BillingSession(ABC):
def create_card_update_session_for_upgrade(
self,
manual_license_management: bool,
+ tier: int,
) -> Dict[str, Any]:
metadata = self.get_metadata_for_stripe_update_card()
customer = self.update_or_create_stripe_customer()
- cancel_url = f"{self.billing_session_url}/upgrade/"
- if manual_license_management:
- cancel_url = f"{self.billing_session_url}/upgrade/?manual_license_management=true"
+
+ # URL when user cancels the card update session.
+ base_cancel_url = f"{self.billing_session_url}/upgrade/"
+ params = {
+ "manual_license_management": str(manual_license_management).lower(),
+ "tier": str(tier),
+ }
+ cancel_url = f"{base_cancel_url}?{urlencode(params)}"
stripe_session = stripe.checkout.Session.create(
cancel_url=cancel_url,
@@ -979,6 +986,7 @@ class BillingSession(ABC):
customer=customer,
type=Session.CARD_UPDATE_FROM_UPGRADE_PAGE,
is_manual_license_management_upgrade_session=manual_license_management,
+ tier=tier,
)
return {
"stripe_session_url": stripe_session.url,
@@ -1914,6 +1922,7 @@ class BillingSession(ABC):
),
"seat_count": seat_count,
"billing_base_url": self.billing_base_url,
+ "tier": tier,
},
"using_min_licenses_for_plan": using_min_licenses_for_plan,
"min_licenses_for_plan": min_licenses_for_plan,
diff --git a/corporate/migrations/0029_session_tier.py b/corporate/migrations/0029_session_tier.py
new file mode 100644
index 00000000000..ff4a308fad3
--- /dev/null
+++ b/corporate/migrations/0029_session_tier.py
@@ -0,0 +1,17 @@
+# Generated by Django 4.2.8 on 2023-12-18 09:39
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("corporate", "0028_zulipsponsorshiprequest_requested_plan"),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name="session",
+ name="tier",
+ field=models.SmallIntegerField(null=True),
+ ),
+ ]
diff --git a/corporate/models.py b/corporate/models.py
index 57e918997d8..23248bb2eb4 100644
--- a/corporate/models.py
+++ b/corporate/models.py
@@ -119,6 +119,9 @@ class Session(models.Model):
# Did the user opt to manually manage licenses before clicking on update button?
is_manual_license_management_upgrade_session = models.BooleanField(default=False)
+ # CustomerPlan tier that the user is upgrading to.
+ tier = models.SmallIntegerField(null=True)
+
def get_status_as_string(self) -> str:
return {Session.CREATED: "created", Session.COMPLETED: "completed"}[self.status]
@@ -136,6 +139,7 @@ class Session(models.Model):
session_dict[
"is_manual_license_management_upgrade_session"
] = self.is_manual_license_management_upgrade_session
+ session_dict["tier"] = self.tier
event = self.get_last_associated_event()
if event is not None:
session_dict["event_handler"] = event.get_event_handler_details_as_dict()
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json
index 0613849f319..06c91ab35d7 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
@@ -64,7 +64,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"payment_method_details": {
"card": {
"amount_authorized": 7200,
@@ -104,10 +104,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIr9qqsGMgaM-GKNpmc6LBZoWb7DJvCIVhczLJKOYXKROrzmBYTFtupIgmreHcTL1xLwXB0pQP-R7gBA",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKP6UgawGMgaOL5RXlKc6LBarBczvPL_SihsBzcchh06gDMOnxb_zui__m8_slBcY0vwnaOkAhp7iFBjY",
"refunded": false,
"refunds": {
"data": [],
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json
index 9b4fa8a6ccf..0ee945b23c6 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
@@ -64,7 +64,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
+ "payment_method": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
"payment_method_details": {
"card": {
"amount_authorized": 36000,
@@ -104,10 +104,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJT9qqsGMgbmGcE2CPg6LBYt6tPCI7CnKaxaLVq3zjSaM7atoyWnbp6xDOd4JEAbIIuFCeKskEzYWUyb",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIiVgawGMgb7XVOQnjk6LBYow84AMTLAKNZvl-spf54uA3qT3dsPb4mAba1NCNv3JCzbKCmK4dT0GZ4w",
"refunded": false,
"refunds": {
"data": [],
@@ -190,7 +189,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"payment_method_details": {
"card": {
"amount_authorized": 7200,
@@ -230,10 +229,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJT9qqsGMgZmMGKxY746LBarTbqnnWLLGRzmrQAWL3_ig-D1uUENWBVpjxcDGfuFmMRWLxqSgEkXJuqq",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIiVgawGMgbItsJKirI6LBaDYN_08wYesKwnMM4QYqeJtUK9zOTXyIMTLIV97-YV6ZnRkLdmGWv_qOW0",
"refunded": false,
"refunds": {
"data": [],
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.modify.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.modify.1.json
index 2ffc40b5041..6b910823f6b 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "default_payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.modify.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.modify.2.json
index c7456f095db..6a1c9430320 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.modify.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Customer.modify.2.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
+ "default_payment_method": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
"footer": null,
"rendering_options": null
},
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.json
index cccc580c9f5..b70f42c8a9e 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "id": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index cccc580c9f5..b70f42c8a9e 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "id": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index cccc580c9f5..b70f42c8a9e 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "id": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index cccc580c9f5..b70f42c8a9e 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "id": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 19caa257e43..46f95b7b6f6 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlceDEQaroqDjshc2Y2l9b",
+ "id": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 19caa257e43..46f95b7b6f6 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlceDEQaroqDjshc2Y2l9b",
+ "id": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
"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.json
index 19caa257e43..46f95b7b6f6 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlceDEQaroqDjshc2Y2l9b",
+ "id": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
"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.json
index 19caa257e43..46f95b7b6f6 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlceDEQaroqDjshc2Y2l9b",
+ "id": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.1.json
index 2c44353ca2a..cb834039fdb 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "default_payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlcWDEQaroqDjsDYC5kGA8",
+ "id": "evt_1OOgy2DEQaroqDjsJJv6ekyN",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "ec0d8ceb-bc0b-4141-9ecf-9f91d42f5a7e"
+ "idempotency_key": "51e1e255-ef9e-4907-9da1-bcbaef805bb6"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.10.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.10.json
index 6d922067afe..9d3a4754f4b 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.10.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.10.json
@@ -1,5 +1,597 @@
{
- "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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzAy0200CjUMxGPh?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzAy0200CjUMxGPh/pdf?s=ap",
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 36000,
+ "amount_excluding_tax": 36000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": 6000,
+ "unit_amount_decimal": "6000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 6,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "6000"
+ },
+ {
+ "amount": -36000,
+ "amount_excluding_tax": -36000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -36000,
+ "unit_amount_decimal": "-36000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-36000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0001",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ },
+ "previous_attributes": {
+ "attempted": false,
+ "auto_advance": true,
+ "effective_at": null,
+ "ending_balance": null,
+ "hosted_invoice_url": null,
+ "invoice_pdf": null,
+ "next_payment_attempt": 1000000000,
+ "number": null,
+ "paid": false,
+ "rendering": {
+ "pdf": {
+ "page_size": "auto"
+ }
+ },
+ "status": "draft",
+ "status_transitions": {
+ "finalized_at": null,
+ "paid_at": null
+ }
+ }
+ },
+ "id": "evt_1OOgyJDEQaroqDjs96APcLGB",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 2,
+ "request": {
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "9e071d3b-ae9c-4a0f-9040-e22ee0dfcc56"
+ },
+ "type": "invoice.updated"
+ },
+ {
+ "api_version": "2020-08-27",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "Kandra Labs, Inc.",
+ "account_tax_ids": null,
+ "amount_due": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": true,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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": null,
+ "ending_balance": null,
+ "footer": null,
+ "from_invoice": null,
+ "hosted_invoice_url": null,
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": null,
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 36000,
+ "amount_excluding_tax": 36000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": 6000,
+ "unit_amount_decimal": "6000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 6,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "6000"
+ },
+ {
+ "amount": -36000,
+ "amount_excluding_tax": -36000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -36000,
+ "unit_amount_decimal": "-36000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-36000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": 1000000000,
+ "number": null,
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": false,
+ "paid_out_of_band": false,
+ "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": "auto"
+ }
+ },
+ "rendering_options": null,
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "draft",
+ "status_transitions": {
+ "finalized_at": null,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "voided_at": null
+ },
+ "subscription": null,
+ "subscription_details": {
+ "metadata": null
+ },
+ "subtotal": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgyIDEQaroqDjskxGUBVqT",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "f7d12884-aaf5-4013-9094-a5407f1d7212"
+ },
+ "type": "invoice.created"
+ },
+ {
+ "api_version": "2020-08-27",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 36000,
+ "currency": "usd",
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
+ "description": "Zulip Cloud Standard",
+ "discountable": false,
+ "discounts": [],
+ "id": "ii_NORMALIZED00000000000001",
+ "invoice": null,
+ "livemode": false,
+ "metadata": {},
+ "object": "invoiceitem",
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "plan": null,
+ "price": {
+ "active": false,
+ "billing_scheme": "per_unit",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_unit_amount": null,
+ "id": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": 6000,
+ "unit_amount_decimal": "6000"
+ },
+ "proration": false,
+ "quantity": 6,
+ "subscription": null,
+ "tax_rates": [],
+ "test_clock": null,
+ "unit_amount": 6000,
+ "unit_amount_decimal": "6000"
+ }
+ },
+ "id": "evt_1OOgyHDEQaroqDjsW3nFrA8e",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0004",
+ "idempotency_key": "5b281f95-9953-4b59-818d-b66f4c6164e5"
+ },
+ "type": "invoiceitem.created"
+ },
+ {
+ "api_version": "2020-08-27",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": -36000,
+ "currency": "usd",
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
+ "description": "Payment (Card ending in 4242)",
+ "discountable": false,
+ "discounts": [],
+ "id": "ii_NORMALIZED00000000000002",
+ "invoice": null,
+ "livemode": false,
+ "metadata": {},
+ "object": "invoiceitem",
+ "period": {
+ "end": 1000000000,
+ "start": 1000000000
+ },
+ "plan": null,
+ "price": {
+ "active": false,
+ "billing_scheme": "per_unit",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_unit_amount": null,
+ "id": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -36000,
+ "unit_amount_decimal": "-36000"
+ },
+ "proration": false,
+ "quantity": 1,
+ "subscription": null,
+ "tax_rates": [],
+ "test_clock": null,
+ "unit_amount": -36000,
+ "unit_amount_decimal": "-36000"
+ }
+ },
+ "id": "evt_1OOgyHDEQaroqDjsNud0KjzJ",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0005",
+ "idempotency_key": "2db2ae34-31d4-4d8e-937f-d3402283ed52"
+ },
+ "type": "invoiceitem.created"
+ }
+ ],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.11.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.11.json
new file mode 100644
index 00000000000..d24330fec6c
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.11.json
@@ -0,0 +1,453 @@
+{
+ "data": [
+ {
+ "api_version": "2020-08-27",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "Kandra Labs, Inc.",
+ "account_tax_ids": null,
+ "amount_due": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzAz0200197CvhqE?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzAz0200197CvhqE/pdf?s=ap",
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 36000,
+ "amount_excluding_tax": 36000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": 6000,
+ "unit_amount_decimal": "6000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 6,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "6000"
+ },
+ {
+ "amount": -36000,
+ "amount_excluding_tax": -36000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -36000,
+ "unit_amount_decimal": "-36000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-36000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0001",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgyJDEQaroqDjsiExGjSf9",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 2,
+ "request": {
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "9e071d3b-ae9c-4a0f-9040-e22ee0dfcc56"
+ },
+ "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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzAz0200197CvhqE?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzAz0200197CvhqE/pdf?s=ap",
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 36000,
+ "amount_excluding_tax": 36000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": 6000,
+ "unit_amount_decimal": "6000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 6,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "6000"
+ },
+ {
+ "amount": -36000,
+ "amount_excluding_tax": -36000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -36000,
+ "unit_amount_decimal": "-36000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-36000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0001",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgyJDEQaroqDjsSvhgkMRl",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "9e071d3b-ae9c-4a0f-9040-e22ee0dfcc56"
+ },
+ "type": "invoice.finalized"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/events"
+}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.12.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.12.json
new file mode 100644
index 00000000000..1ffa86db91e
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.12.json
@@ -0,0 +1,230 @@
+{
+ "data": [
+ {
+ "api_version": "2020-08-27",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "Kandra Labs, Inc.",
+ "account_tax_ids": null,
+ "amount_due": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzAz0200197CvhqE?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzAz0200197CvhqE/pdf?s=ap",
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 36000,
+ "amount_excluding_tax": 36000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": 6000,
+ "unit_amount_decimal": "6000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 6,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "6000"
+ },
+ {
+ "amount": -36000,
+ "amount_excluding_tax": -36000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -36000,
+ "unit_amount_decimal": "-36000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-36000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0001",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgyJDEQaroqDjsRXkfF6HY",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "9e071d3b-ae9c-4a0f-9040-e22ee0dfcc56"
+ },
+ "type": "invoice.payment_succeeded"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/events"
+}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.13.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.13.json
new file mode 100644
index 00000000000..6d922067afe
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.13.json
@@ -0,0 +1,6 @@
+{
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/events"
+}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json
index ed44efa0d2e..b7ad79bc59c 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
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"payment_method_details": {
"card": {
"amount_authorized": 7200,
@@ -123,10 +123,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIf9qqsGMgZb20Gi7do6LBb8Nk4YXcMYuHylkNS09JAb63jzjtrknnoa60TiX-hHWdshgcroMLKDWN5c",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPqUgawGMgZEDmwqloY6LBaOHpiSTrAoFmP9mBz74B_hzHtEI2O_Gl2W35cI-FkY2-0BLpcE6qn2C7sT",
"refunded": false,
"refunds": {
"data": [],
@@ -151,7 +150,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_TT71wq3meHmzTEd7mpZbqrDnP",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_nTi2uv53oaIydyDHv3mdyBMWm",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -179,7 +178,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +204,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlcYDEQaroqDjs16WfiUYV",
+ "id": "evt_3OOgy5DEQaroqDjs1NMI5y1K",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_NORMALIZED0002",
- "idempotency_key": "89f4d29d-4c41-4c1d-baf7-b33a1c7d25ff"
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "c37824ac-ed1b-4442-a34d-23f9b9482db4"
},
"type": "payment_intent.succeeded"
},
@@ -283,7 +282,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"payment_method_details": {
"card": {
"amount_authorized": 7200,
@@ -323,10 +322,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIf9qqsGMgaRG54HB6k6LBYbdkPPJRe4ZuuV5tR6SrHKPTGj9DFYvf8ZlOiAmw8lVKk8NDaGGFlsjRM8",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPmUgawGMgZzNEK8ZTA6LBYAnusLR5dgHmedVg-98AE-zzlMPBsy6egqoEfightLoDSci1yZpaZYb5T1",
"refunded": false,
"refunds": {
"data": [],
@@ -346,13 +344,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlcYDEQaroqDjs1OA8t8hC",
+ "id": "evt_3OOgy5DEQaroqDjs1Zmy1DdQ",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0002",
- "idempotency_key": "89f4d29d-4c41-4c1d-baf7-b33a1c7d25ff"
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "c37824ac-ed1b-4442-a34d-23f9b9482db4"
},
"type": "charge.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json
index 53dbf5d12f2..0b18cb691e1 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjA502000hPybKLo?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjA502000hPybKLo/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3Mjky0200JPjI2IZN?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3Mjky0200JPjI2IZN/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -77,7 +77,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +111,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -127,7 +127,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -157,12 +157,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0001",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1OIlcbDEQaroqDjs0RgNo7tS",
+ "id": "evt_1OOgy8DEQaroqDjs4dhRnZw2",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "d8040535-2a29-417e-a8cd-313f534cb633"
+ "id": "req_NORMALIZED0007",
+ "idempotency_key": "00edae1e-b0e4-43e2-bd4a-d51a9ef975f1"
},
"type": "invoice.updated"
},
@@ -291,7 +291,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "in_NORMALIZED00000000000001",
+ "id": "in_NORMALIZED00000000000002",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -305,8 +305,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -321,7 +321,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -355,8 +355,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -371,7 +371,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -401,7 +401,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlcaDEQaroqDjsgW8xhHxB",
+ "id": "evt_1OOgy7DEQaroqDjsDqNquu3y",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0004",
- "idempotency_key": "e1bdf299-f588-4704-ae2c-82d0debf6534"
+ "id": "req_NORMALIZED0008",
+ "idempotency_key": "34e8415e-a5de-4b95-9572-90ea6b1f69ee"
},
"type": "invoice.created"
},
@@ -479,7 +479,7 @@
"description": "Zulip Cloud Standard",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000001",
+ "id": "ii_NORMALIZED00000000000003",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -495,7 +495,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "1200"
}
},
- "id": "evt_1OIlcaDEQaroqDjsCma6I5rr",
+ "id": "evt_1OOgy7DEQaroqDjsEepVDvh2",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0005",
- "idempotency_key": "cfb4b441-f25a-4d95-a2f0-f0f950bd40fe"
+ "id": "req_NORMALIZED0009",
+ "idempotency_key": "fda51987-3b8f-4b7a-a239-194e9b14039e"
},
"type": "invoiceitem.created"
},
@@ -541,7 +541,7 @@
"description": "Payment (Card ending in 4242)",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000002",
+ "id": "ii_NORMALIZED00000000000004",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -557,7 +557,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-7200"
}
},
- "id": "evt_1OIlcZDEQaroqDjs6GyIO3FO",
+ "id": "evt_1OOgy6DEQaroqDjsPLwCe6de",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0006",
- "idempotency_key": "13255827-b4d3-42fe-9f18-fbcb67305a04"
+ "id": "req_NORMALIZED0010",
+ "idempotency_key": "4d6e096d-9f4e-4351-8e3a-7fbe2a4aca09"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "default_payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlcZDEQaroqDjs2IZnZELZ",
+ "id": "evt_1OOgy6DEQaroqDjsCAgqpBO2",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0006",
- "idempotency_key": "13255827-b4d3-42fe-9f18-fbcb67305a04"
+ "id": "req_NORMALIZED0010",
+ "idempotency_key": "4d6e096d-9f4e-4351-8e3a-7fbe2a4aca09"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.4.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.4.json
index 1c2bcec12dd..dbbd7405bb3 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.4.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.4.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjEw0200uGqIV7uQ?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjEw0200uGqIV7uQ/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3Mjky0200JPjI2IZN?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3Mjky0200JPjI2IZN/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -77,7 +77,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +111,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -127,7 +127,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -157,12 +157,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -213,236 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlccDEQaroqDjsArfDmoTy",
+ "id": "evt_1OOgy8DEQaroqDjs7hKFvgdM",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "d8040535-2a29-417e-a8cd-313f534cb633"
- },
- "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": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjA502000hPybKLo?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjA502000hPybKLo/pdf?s=ap",
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 7200,
- "amount_excluding_tax": 7200,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
- "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": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": 1200,
- "unit_amount_decimal": "1200"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 6,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "1200"
- },
- {
- "amount": -7200,
- "amount_excluding_tax": -7200,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
- "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": "price_NORMALIZED00000000000002",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -7200,
- "unit_amount_decimal": "-7200"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-7200"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0002",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIlcbDEQaroqDjsn0Gh2ZXB",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 1,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "d8040535-2a29-417e-a8cd-313f534cb633"
+ "id": "req_NORMALIZED0007",
+ "idempotency_key": "00edae1e-b0e4-43e2-bd4a-d51a9ef975f1"
},
"type": "invoice.paid"
},
@@ -492,9 +269,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjA502000hPybKLo?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjA502000hPybKLo/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3Mjky0200JPjI2IZN?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3Mjky0200JPjI2IZN/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -507,8 +284,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -523,7 +300,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -557,8 +334,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -573,7 +350,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -603,12 +380,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -659,13 +436,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlcbDEQaroqDjshdrWm9Tg",
+ "id": "evt_1OOgy8DEQaroqDjsdCmYopyE",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "d8040535-2a29-417e-a8cd-313f534cb633"
+ "id": "req_NORMALIZED0007",
+ "idempotency_key": "00edae1e-b0e4-43e2-bd4a-d51a9ef975f1"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.5.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.5.json
index 6d922067afe..54be4600ac8 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.5.json
@@ -1,5 +1,229 @@
{
- "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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3Mjky0200JPjI2IZN?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3Mjky0200JPjI2IZN/pdf?s=ap",
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 7200,
+ "amount_excluding_tax": 7200,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
+ "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": "price_NORMALIZED00000000000003",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": 1200,
+ "unit_amount_decimal": "1200"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 6,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "1200"
+ },
+ {
+ "amount": -7200,
+ "amount_excluding_tax": -7200,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
+ "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": "price_NORMALIZED00000000000004",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -7200,
+ "unit_amount_decimal": "-7200"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-7200"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0003",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgy9DEQaroqDjsz6MtVaoJ",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0007",
+ "idempotency_key": "00edae1e-b0e4-43e2-bd4a-d51a9ef975f1"
+ },
+ "type": "invoice.payment_succeeded"
+ }
+ ],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json
index 565c7fb799e..6d922067afe 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json
@@ -1,60 +1,6 @@
{
- "data": [
- {
- "api_version": "2020-08-27",
- "created": 1000000000,
- "data": {
- "object": {
- "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": "cus_NORMALIZED0001",
- "invoice_prefix": "NORMA01",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
- "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": {
- "invoice_settings": {
- "default_payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK"
- }
- }
- },
- "id": "evt_1OIlcgDEQaroqDjsPE8wVcBq",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0007",
- "idempotency_key": "6e41d51b-0e25-4d1f-9da2-4472878eb45f"
- },
- "type": "customer.updated"
- }
- ],
- "has_more": true,
+ "data": [],
+ "has_more": false,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json
index 290791cd524..fd041e12e85 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json
@@ -5,359 +5,56 @@
"created": 1000000000,
"data": {
"object": {
- "amount": 36000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 36000,
- "application": null,
- "application_fee_amount": null,
- "automatic_payment_methods": null,
- "canceled_at": null,
- "cancellation_reason": null,
- "capture_method": "automatic",
- "charges": {
- "data": [
- {
- "amount": 36000,
- "amount_captured": 36000,
- "amount_refunded": 0,
- "application": null,
- "application_fee": null,
- "application_fee_amount": null,
- "balance_transaction": "txn_NORMALIZED00000000000002",
- "billing_details": {
- "address": {
- "city": null,
- "country": null,
- "line1": null,
- "line2": null,
- "postal_code": null,
- "state": null
- },
- "email": null,
- "name": null,
- "phone": null
- },
- "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
- "captured": true,
- "created": 1000000000,
- "currency": "usd",
- "customer": "cus_NORMALIZED0001",
- "description": "Upgrade to Zulip Cloud Standard, $60.0 x 6",
- "destination": null,
- "dispute": null,
- "disputed": false,
- "failure_balance_transaction": null,
- "failure_code": null,
- "failure_message": null,
- "fraud_details": {},
- "id": "ch_NORMALIZED00000000000002",
- "invoice": null,
- "livemode": false,
- "metadata": {
- "billing_modality": "charge_automatically",
- "billing_schedule": "1",
- "license_management": "automatic",
- "licenses": "6",
- "plan_tier": "1",
- "price_per_license": "6000",
- "realm_id": "1",
- "realm_str": "zulip",
- "seat_count": "6",
- "type": "upgrade",
- "user_email": "[email protected]",
- "user_id": "10"
- },
- "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": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
- "payment_method_details": {
- "card": {
- "amount_authorized": 36000,
- "brand": "visa",
- "checks": {
- "address_line1_check": null,
- "address_postal_code_check": null,
- "cvc_check": "pass"
- },
- "country": "US",
- "exp_month": 12,
- "exp_year": 2024,
- "extended_authorization": {
- "status": "disabled"
- },
- "fingerprint": "NORMALIZED000001",
- "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": 36000,
- "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/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJH9qqsGMgbQjtDZqQM6LBZPz4stEfKrXRPEFZYCyclDAo2Dez80I8lUHYTVeT16LQpU7Ou6wGCFugiR",
- "refunded": false,
- "refunds": {
- "data": [],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/charges/ch_NORMALIZED00000000000002/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": 1,
- "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
- },
- "client_secret": "pi_NORMALIZED00000000000002_secret_6P4eLudA3uvQYCOoNiDTkNQEI",
- "confirmation_method": "automatic",
+ "address": null,
+ "balance": 0,
"created": 1000000000,
"currency": "usd",
- "customer": "cus_NORMALIZED0001",
- "description": "Upgrade to Zulip Cloud Standard, $60.0 x 6",
- "id": "pi_NORMALIZED00000000000002",
- "invoice": null,
- "last_payment_error": null,
- "latest_charge": "ch_NORMALIZED00000000000002",
- "livemode": false,
- "metadata": {
- "billing_modality": "charge_automatically",
- "billing_schedule": "1",
- "license_management": "automatic",
- "licenses": "6",
- "plan_tier": "1",
- "price_per_license": "6000",
- "realm_id": "1",
- "realm_str": "zulip",
- "seat_count": "6",
- "type": "upgrade",
- "user_email": "[email protected]",
- "user_id": "10"
- },
- "next_action": null,
- "object": "payment_intent",
- "on_behalf_of": null,
- "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
- "statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "evt_3OIlciDEQaroqDjs14Vw2Reo",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0008",
- "idempotency_key": "f7ce8212-6677-40df-912b-4ac6c3765065"
- },
- "type": "payment_intent.succeeded"
- },
- {
- "api_version": "2020-08-27",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 36000,
- "amount_captured": 36000,
- "amount_refunded": 0,
- "application": null,
- "application_fee": null,
- "application_fee_amount": null,
- "balance_transaction": "txn_NORMALIZED00000000000002",
- "billing_details": {
- "address": {
- "city": null,
- "country": null,
- "line1": null,
- "line2": null,
- "postal_code": null,
- "state": null
- },
- "email": null,
- "name": null,
- "phone": null
+ "default_currency": "usd",
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip (Zulip Dev)",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
+ "footer": null,
+ "rendering_options": null
},
- "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
- "captured": true,
- "created": 1000000000,
- "currency": "usd",
- "customer": "cus_NORMALIZED0001",
- "description": "Upgrade to Zulip Cloud Standard, $60.0 x 6",
- "destination": null,
- "dispute": null,
- "disputed": false,
- "failure_balance_transaction": null,
- "failure_code": null,
- "failure_message": null,
- "fraud_details": {},
- "id": "ch_NORMALIZED00000000000002",
- "invoice": null,
"livemode": false,
"metadata": {
- "billing_modality": "charge_automatically",
- "billing_schedule": "1",
- "license_management": "automatic",
- "licenses": "6",
- "plan_tier": "1",
- "price_per_license": "6000",
"realm_id": "1",
- "realm_str": "zulip",
- "seat_count": "6",
- "type": "upgrade",
- "user_email": "[email protected]",
- "user_id": "10"
- },
- "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": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
- "payment_method_details": {
- "card": {
- "amount_authorized": 36000,
- "brand": "visa",
- "checks": {
- "address_line1_check": null,
- "address_postal_code_check": null,
- "cvc_check": "pass"
- },
- "country": "US",
- "exp_month": 12,
- "exp_year": 2024,
- "extended_authorization": {
- "status": "disabled"
- },
- "fingerprint": "NORMALIZED000001",
- "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": 36000,
- "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/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJH9qqsGMgYqjd-cSvE6LBaZocBeNc1j6HmSljaGjK9coB5-xRAyLYhQxqOON0JTW8MYWAJtnxrRxAiL",
- "refunded": false,
- "refunds": {
- "data": [],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/charges/ch_NORMALIZED00000000000002/refunds"
+ "realm_str": "zulip"
},
- "review": null,
+ "name": null,
+ "next_invoice_sequence": 2,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
"shipping": null,
- "source": null,
- "source_transfer": null,
- "statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
- "transfer_data": null,
- "transfer_group": null
+ "tax_exempt": "none",
+ "test_clock": null
+ },
+ "previous_attributes": {
+ "invoice_settings": {
+ "default_payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu"
+ }
}
},
- "id": "evt_3OIlciDEQaroqDjs1zZA7DlT",
+ "id": "evt_1OOgyDDEQaroqDjsP8rSlbMA",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0008",
- "idempotency_key": "f7ce8212-6677-40df-912b-4ac6c3765065"
+ "id": "req_NORMALIZED0011",
+ "idempotency_key": "cbb9624c-2dc6-4b8a-a8d4-3588974b2eb9"
},
- "type": "charge.succeeded"
+ "type": "customer.updated"
}
],
- "has_more": false,
+ "has_more": true,
"object": "list",
"url": "/v1/events"
}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.8.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.8.json
index e92b51ece6e..e1a80b875f5 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.8.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.8.json
@@ -5,814 +5,140 @@
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "Kandra Labs, Inc.",
- "account_tax_ids": null,
- "amount_due": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
+ "amount": 36000,
+ "amount_captured": 36000,
+ "amount_refunded": 0,
"application": null,
+ "application_fee": null,
"application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
+ "balance_transaction": "txn_NORMALIZED00000000000002",
+ "billing_details": {
+ "address": {
+ "city": null,
+ "country": null,
+ "line1": null,
+ "line2": null,
+ "postal_code": null,
+ "state": null
+ },
+ "email": null,
+ "name": null,
+ "phone": null
+ },
+ "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
+ "captured": true,
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
"customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol?s=ap",
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol/pdf?s=ap",
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 36000,
- "amount_excluding_tax": 36000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
- "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": "price_NORMALIZED00000000000003",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": 6000,
- "unit_amount_decimal": "6000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 6,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "6000"
- },
- {
- "amount": -36000,
- "amount_excluding_tax": -36000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
- "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": "price_NORMALIZED00000000000004",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -36000,
- "unit_amount_decimal": "-36000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-36000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
- },
+ "description": "Upgrade to Zulip Cloud Standard, $60.0 x 6",
+ "destination": null,
+ "dispute": null,
+ "disputed": false,
+ "failure_balance_transaction": null,
+ "failure_code": null,
+ "failure_message": null,
+ "fraud_details": {},
+ "id": "ch_NORMALIZED00000000000002",
+ "invoice": null,
"livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0003",
- "object": "invoice",
+ "metadata": {
+ "billing_modality": "charge_automatically",
+ "billing_schedule": "1",
+ "license_management": "automatic",
+ "licenses": "6",
+ "plan_tier": "1",
+ "price_per_license": "6000",
+ "realm_id": "1",
+ "realm_str": "zulip",
+ "seat_count": "6",
+ "type": "upgrade",
+ "user_email": "[email protected]",
+ "user_id": "10"
+ },
+ "object": "charge",
"on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIlclDEQaroqDjslxJqiQFY",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0009",
- "idempotency_key": "5fb5bcd9-f037-402f-b67a-6f8eb89f3c11"
- },
- "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": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
+ "order": null,
+ "outcome": {
+ "network_status": "approved_by_network",
+ "reason": null,
+ "risk_level": "normal",
+ "risk_score": 0,
+ "seller_message": "Payment complete.",
+ "type": "authorized"
},
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol?s=ap",
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol/pdf?s=ap",
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 36000,
- "amount_excluding_tax": 36000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
- "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": "price_NORMALIZED00000000000003",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": 6000,
- "unit_amount_decimal": "6000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 6,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "6000"
- },
- {
- "amount": -36000,
- "amount_excluding_tax": -36000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
- "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": "price_NORMALIZED00000000000004",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -36000,
- "unit_amount_decimal": "-36000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-36000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0003",
- "object": "invoice",
- "on_behalf_of": null,
"paid": true,
- "paid_out_of_band": false,
- "payment_intent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "payment_intent": "pi_NORMALIZED00000000000002",
+ "payment_method": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 36000,
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": null,
+ "address_postal_code_check": null,
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "exp_month": 12,
+ "exp_year": 2024,
+ "extended_authorization": {
+ "status": "disabled"
+ },
+ "fingerprint": "NORMALIZED000001",
+ "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": 36000,
+ "status": "unavailable"
+ },
+ "three_d_secure": null,
+ "wallet": null
+ },
+ "type": "card"
},
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "quote": null,
+ "receipt_email": "[email protected]",
"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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- },
- "previous_attributes": {
- "attempted": false,
- "auto_advance": true,
- "effective_at": null,
- "ending_balance": null,
- "hosted_invoice_url": null,
- "invoice_pdf": null,
- "next_payment_attempt": 1000000000,
- "number": null,
- "paid": false,
- "rendering": {
- "pdf": {
- "page_size": "auto"
- }
- },
- "status": "draft",
- "status_transitions": {
- "finalized_at": null,
- "paid_at": null
- }
- }
- },
- "id": "evt_1OIlclDEQaroqDjsbyHu8WF8",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 1,
- "request": {
- "id": "req_NORMALIZED0009",
- "idempotency_key": "5fb5bcd9-f037-402f-b67a-6f8eb89f3c11"
- },
- "type": "invoice.updated"
- },
- {
- "api_version": "2020-08-27",
- "created": 1000000000,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "Kandra Labs, Inc.",
- "account_tax_ids": null,
- "amount_due": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": true,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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": null,
- "ending_balance": null,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": null,
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": null,
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 36000,
- "amount_excluding_tax": 36000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
- "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": "price_NORMALIZED00000000000003",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": 6000,
- "unit_amount_decimal": "6000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 6,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "6000"
- },
- {
- "amount": -36000,
- "amount_excluding_tax": -36000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
- "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": "price_NORMALIZED00000000000004",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -36000,
- "unit_amount_decimal": "-36000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-36000"
- }
- ],
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKISVgawGMgZYCKigyKU6LBb1QG597ZNjUnccddW2jtacArLs56xOyqwxP2bM8hVTwa2z41Oj5xnS1PR3",
+ "refunded": false,
+ "refunds": {
+ "data": [],
"has_more": false,
"object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": 1000000000,
- "number": null,
- "object": "invoice",
- "on_behalf_of": null,
- "paid": false,
- "paid_out_of_band": false,
- "payment_intent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "total_count": 0,
+ "url": "/v1/charges/ch_NORMALIZED00000000000002/refunds"
},
- "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": "auto"
- }
- },
- "rendering_options": null,
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
+ "review": null,
+ "shipping": null,
+ "source": null,
+ "source_transfer": null,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "draft",
- "status_transitions": {
- "finalized_at": null,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subscription": null,
- "subscription_details": {
- "metadata": null
- },
- "subtotal": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
"transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIlckDEQaroqDjsUsuf3ZOp",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0010",
- "idempotency_key": "a4d2ad76-c98a-446a-8236-ec43f0faf5fa"
- },
- "type": "invoice.created"
- },
- {
- "api_version": "2020-08-27",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 36000,
- "currency": "usd",
- "customer": "cus_NORMALIZED0001",
- "date": 1000000000,
- "description": "Zulip Cloud Standard",
- "discountable": false,
- "discounts": [],
- "id": "ii_NORMALIZED00000000000003",
- "invoice": null,
- "livemode": false,
- "metadata": {},
- "object": "invoiceitem",
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1000000000,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": 6000,
- "unit_amount_decimal": "6000"
- },
- "proration": false,
- "quantity": 6,
- "subscription": null,
- "tax_rates": [],
- "test_clock": null,
- "unit_amount": 6000,
- "unit_amount_decimal": "6000"
- }
- },
- "id": "evt_1OIlckDEQaroqDjsYzRhmX8V",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0011",
- "idempotency_key": "0c11698d-33dd-4270-81bd-05e97ff35e0e"
- },
- "type": "invoiceitem.created"
- },
- {
- "api_version": "2020-08-27",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": -36000,
- "currency": "usd",
- "customer": "cus_NORMALIZED0001",
- "date": 1000000000,
- "description": "Payment (Card ending in 4242)",
- "discountable": false,
- "discounts": [],
- "id": "ii_NORMALIZED00000000000004",
- "invoice": null,
- "livemode": false,
- "metadata": {},
- "object": "invoiceitem",
- "period": {
- "end": 1000000000,
- "start": 1000000000
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1000000000,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000004",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -36000,
- "unit_amount_decimal": "-36000"
- },
- "proration": false,
- "quantity": 1,
- "subscription": null,
- "tax_rates": [],
- "test_clock": null,
- "unit_amount": -36000,
- "unit_amount_decimal": "-36000"
+ "transfer_group": null
}
},
- "id": "evt_1OIlcjDEQaroqDjsWfKiiWQ1",
+ "id": "evt_3OOgyFDEQaroqDjs0xUUv3IO",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0012",
- "idempotency_key": "e0683c69-8080-4a6a-b9e7-7750eba12988"
+ "idempotency_key": "71041855-a9e8-481e-90f1-7b0df298703c"
},
- "type": "invoiceitem.created"
+ "type": "charge.succeeded"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.9.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.9.json
index 759c41c1c28..caccd4ebe33 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.9.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.9.json
@@ -5,446 +5,214 @@
"created": 1000000000,
"data": {
"object": {
- "account_country": "US",
- "account_name": "Kandra Labs, Inc.",
- "account_tax_ids": null,
- "amount_due": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
+ "amount": 36000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 36000,
"application": null,
"application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol?s=ap",
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol/pdf?s=ap",
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
+ "automatic_payment_methods": null,
+ "canceled_at": null,
+ "cancellation_reason": null,
+ "capture_method": "automatic",
+ "charges": {
"data": [
{
"amount": 36000,
- "amount_excluding_tax": 36000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
- "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": "price_NORMALIZED00000000000003",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": 6000,
- "unit_amount_decimal": "6000"
+ "amount_captured": 36000,
+ "amount_refunded": 0,
+ "application": null,
+ "application_fee": null,
+ "application_fee_amount": null,
+ "balance_transaction": "txn_NORMALIZED00000000000002",
+ "billing_details": {
+ "address": {
+ "city": null,
+ "country": null,
+ "line1": null,
+ "line2": null,
+ "postal_code": null,
+ "state": null
+ },
+ "email": null,
+ "name": null,
+ "phone": null
},
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 6,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "6000"
- },
- {
- "amount": -36000,
- "amount_excluding_tax": -36000,
+ "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
+ "captured": true,
+ "created": 1000000000,
"currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "customer": "cus_NORMALIZED0001",
+ "description": "Upgrade to Zulip Cloud Standard, $60.0 x 6",
+ "destination": null,
+ "dispute": null,
+ "disputed": false,
+ "failure_balance_transaction": null,
+ "failure_code": null,
+ "failure_message": null,
+ "fraud_details": {},
+ "id": "ch_NORMALIZED00000000000002",
+ "invoice": null,
"livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1000000000,
- "start": 1000000000
+ "metadata": {
+ "billing_modality": "charge_automatically",
+ "billing_schedule": "1",
+ "license_management": "automatic",
+ "licenses": "6",
+ "plan_tier": "1",
+ "price_per_license": "6000",
+ "realm_id": "1",
+ "realm_str": "zulip",
+ "seat_count": "6",
+ "type": "upgrade",
+ "user_email": "[email protected]",
+ "user_id": "10"
},
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1000000000,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000004",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -36000,
- "unit_amount_decimal": "-36000"
+ "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"
},
- "proration": false,
- "proration_details": {
- "credited_items": null
+ "paid": true,
+ "payment_intent": "pi_NORMALIZED00000000000002",
+ "payment_method": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 36000,
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": null,
+ "address_postal_code_check": null,
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "exp_month": 12,
+ "exp_year": 2024,
+ "extended_authorization": {
+ "status": "disabled"
+ },
+ "fingerprint": "NORMALIZED000001",
+ "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": 36000,
+ "status": "unavailable"
+ },
+ "three_d_secure": null,
+ "wallet": null
+ },
+ "type": "card"
},
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-36000"
+ "receipt_email": "[email protected]",
+ "receipt_number": null,
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKISVgawGMgZlwlrq6Pw6LBYD-6PFGs447rNWh64CCrBKZu-35l8mraLA5OE4cizEjPr70V8lUkHClZ8N",
+ "refunded": false,
+ "refunds": {
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/charges/ch_NORMALIZED00000000000002/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": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
+ "total_count": 1,
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0003",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIlclDEQaroqDjsYQluU75w",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0009",
- "idempotency_key": "5fb5bcd9-f037-402f-b67a-6f8eb89f3c11"
- },
- "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": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_Tb23gtiSKnem3znKNFGt7WFLI",
+ "confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "custom_fields": null,
"customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol?s=ap",
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol/pdf?s=ap",
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 36000,
- "amount_excluding_tax": 36000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
- "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": "price_NORMALIZED00000000000003",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": 6000,
- "unit_amount_decimal": "6000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 6,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "6000"
- },
- {
- "amount": -36000,
- "amount_excluding_tax": -36000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
- "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": "price_NORMALIZED00000000000004",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -36000,
- "unit_amount_decimal": "-36000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-36000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
- },
+ "description": "Upgrade to Zulip Cloud Standard, $60.0 x 6",
+ "id": "pi_NORMALIZED00000000000002",
+ "invoice": null,
+ "last_payment_error": null,
+ "latest_charge": "ch_NORMALIZED00000000000002",
"livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0003",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "payment_intent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
+ "metadata": {
+ "billing_modality": "charge_automatically",
+ "billing_schedule": "1",
+ "license_management": "automatic",
+ "licenses": "6",
+ "plan_tier": "1",
+ "price_per_license": "6000",
+ "realm_id": "1",
+ "realm_str": "zulip",
+ "seat_count": "6",
+ "type": "upgrade",
+ "user_email": "[email protected]",
+ "user_id": "10"
},
- "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"
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_method": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
+ "payment_method_configuration_details": null,
+ "payment_method_options": {
+ "card": {
+ "installments": null,
+ "mandate_options": null,
+ "network": null,
+ "request_three_d_secure": "automatic"
}
},
- "rendering_options": null,
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
+ "payment_method_types": [
+ "card"
+ ],
+ "processing": null,
+ "receipt_email": "[email protected]",
+ "review": null,
+ "setup_future_usage": null,
+ "shipping": null,
+ "source": null,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": 1000000000,
- "voided_at": null
- },
- "subscription": null,
- "subscription_details": {
- "metadata": null
- },
- "subtotal": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
+ "statement_descriptor_suffix": null,
+ "status": "succeeded",
"transfer_data": null,
- "webhooks_delivered_at": null
+ "transfer_group": null
}
},
- "id": "evt_1OIlclDEQaroqDjsWkTK3kjn",
+ "id": "evt_3OOgyFDEQaroqDjs0GZJkjlq",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
- "id": "req_NORMALIZED0009",
- "idempotency_key": "5fb5bcd9-f037-402f-b67a-6f8eb89f3c11"
+ "id": "req_NORMALIZED0012",
+ "idempotency_key": "71041855-a9e8-481e-90f1-7b0df298703c"
},
- "type": "invoice.paid"
+ "type": "payment_intent.succeeded"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json
index bfed2ac7231..09620724c1c 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
@@ -41,7 +41,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "in_NORMALIZED00000000000001",
+ "id": "in_NORMALIZED00000000000002",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,7 +71,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -105,8 +105,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -121,7 +121,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -151,7 +151,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json
index 0049f713cfd..8944959187e 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
@@ -41,7 +41,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "in_NORMALIZED00000000000002",
+ "id": "in_NORMALIZED00000000000001",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,7 +71,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -105,8 +105,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -121,7 +121,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000004",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -151,7 +151,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
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.json
index aa3ce0514c6..69d9c442174 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjA502000hPybKLo?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjA502000hPybKLo/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3Mjky0200JPjI2IZN?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3Mjky0200JPjI2IZN/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,7 +71,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -105,8 +105,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -121,7 +121,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -151,12 +151,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
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.json
index 3d93af6dcb1..2f95f8f8b97 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol?s=ap",
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzAy0200CjUMxGPh?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzAy0200CjUMxGPh/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,7 +71,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -105,8 +105,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -121,7 +121,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000004",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -151,12 +151,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0003",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
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.json
index 9853627a710..547566593be 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjd2l4VnY1aGVsY1Ztb3BRODN5dGRHbGhpNk02LDkyMDM1MjIy0200dqk7fzRz?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDVWdGdUVoTFpUQUxhUDVJaVBSN21hQ2gwTFlKLDkzNDQ3MzA20200h2tz3BhL?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjd2l4VnY1aGVsY1Ztb3BRODN5dGRHbGhpNk02LDkyMDM1MjIy0200dqk7fzRz/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDVWdGdUVoTFpUQUxhUDVJaVBSN21hQ2gwTFlKLDkzNDQ3MzA20200h2tz3BhL/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index 8250bd6fcea..ad86d8dbfba 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjEx0200eb8tuh13?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjEx0200eb8tuh13/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3Mjk00200DFhM6982?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3Mjk00200DFhM6982/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -57,8 +57,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -73,7 +73,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -107,8 +107,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -123,7 +123,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -153,12 +153,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
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.json
index fecef2542e2..e3bcacd1313 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjIx0200OMBLJkxA?s=ap",
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjIx0200OMBLJkxA/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzA10200jtOCa4pN?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzA10200jtOCa4pN/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -57,8 +57,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -73,7 +73,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -107,8 +107,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -123,7 +123,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000004",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -153,12 +153,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0003",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -250,9 +250,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjIx02006mE2ERoT?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjIx02006mE2ERoT/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3MzA10200tOUVjZN1?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3MzA10200tOUVjZN1/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -265,8 +265,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -281,7 +281,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -315,8 +315,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -331,7 +331,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -361,12 +361,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
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.json
index ec86c1b0acb..315fa7a6ed9 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjd2l4VnY1aGVsY1Ztb3BRODN5dGRHbGhpNk02LDkyMDM1MjIz02008PWTxXb7?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDVWdGdUVoTFpUQUxhUDVJaVBSN21hQ2gwTFlKLDkzNDQ3MzA30200hjPX3dtu?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjd2l4VnY1aGVsY1Ztb3BRODN5dGRHbGhpNk02LDkyMDM1MjIz02008PWTxXb7/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDVWdGdUVoTFpUQUxhUDVJaVBSN21hQ2gwTFlKLDkzNDQ3MzA30200hjPX3dtu/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjIz0200JbHnRP6C?s=ap",
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjIz0200JbHnRP6C/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzA302005CECdTxX?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDeGJVRUpyS25mY2ZrZDl6TkJtRDhDNlZTWDM3LDkzNDQ3MzA302005CECdTxX/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -215,8 +215,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -231,7 +231,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -265,8 +265,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -281,7 +281,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000004",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -311,12 +311,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0003",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -408,9 +408,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjIz0200ykr4PqiR?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjIz0200ykr4PqiR/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3MzA30200NpMPeif6?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRDY1bDNIbWFUNDJKbEd4eVRyTVVoNEQya2RaLDkzNDQ3MzA30200NpMPeif6/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -423,8 +423,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -439,7 +439,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -473,8 +473,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -489,7 +489,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -519,12 +519,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.1.json
index 8f3e6ee46b5..10c88c48bb6 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.1.json
@@ -6,7 +6,7 @@
"description": "Payment (Card ending in 4242)",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000002",
+ "id": "ii_NORMALIZED00000000000004",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.2.json
index f22b349bfee..4a6a4cb5bc1 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.2.json
@@ -6,7 +6,7 @@
"description": "Zulip Cloud Standard",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000001",
+ "id": "ii_NORMALIZED00000000000003",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.3.json
index 593730981db..7d3ffeba862 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.3.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.3.json
@@ -6,7 +6,7 @@
"description": "Payment (Card ending in 4242)",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000004",
+ "id": "ii_NORMALIZED00000000000002",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000004",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.4.json
index e790f5f6db9..ea974ccc173 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.4.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.4.json
@@ -6,7 +6,7 @@
"description": "Zulip Cloud Standard",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000003",
+ "id": "ii_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentIntent.create.1.json
index b52338ebb59..0ea8f1caa50 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentIntent.create.1.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"payment_method_details": {
"card": {
"amount_authorized": 7200,
@@ -117,10 +117,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIf9qqsGMgYln1CvRQg6LBas64aXppcCqDXm8lE0Sbd6BM7omStVTXKhathHXWOU3wC8kyUuXRRePlvZ",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPmUgawGMgZVgWqUFe06LBY-ljUKnsficto6QSdSAOo26stH64xtSjWgraoDdK3sLQzG8060GSBMv3St",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +144,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_TT71wq3meHmzTEd7mpZbqrDnP",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_nTi2uv53oaIydyDHv3mdyBMWm",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -173,7 +172,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentIntent.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentIntent.create.2.json
index 09e726309af..54504681156 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentIntent.create.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--PaymentIntent.create.2.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
+ "payment_method": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
"payment_method_details": {
"card": {
"amount_authorized": 36000,
@@ -117,10 +117,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJD9qqsGMgahoOxs2tY6LBYE_7mVLMS2-_xQ_C_j9KSayaWsbJ6jjdpSQjsrQImBFFAZjT-6A-PbNsDv",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKISVgawGMgZ5KyWgi0M6LBZ3ieII0P47A-ImZobi9eB1M9qlWwkYYp4M3hxa1NSNHHSJCJG_m1HsslKC",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +144,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_6P4eLudA3uvQYCOoNiDTkNQEI",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_Tb23gtiSKnem3znKNFGt7WFLI",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -173,7 +172,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
+ "payment_method": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.1.json
index a478623c3e8..4f6c4a1bb6a 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlcUDEQaroqDjsvk7SRRcH_secret_P6zbAgeO1YNtM2cmjYChSjYCWBsUOAB",
+ "client_secret": "seti_1OOgy1DEQaroqDjssDw856Ad_secret_PD7CcOp6l1pVxxOkQj3fYHLUCHSlUwA",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlcUDEQaroqDjsvk7SRRcH",
+ "id": "seti_1OOgy1DEQaroqDjssDw856Ad",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlcUDEQaroqDjsLAiOPmHx",
+ "latest_attempt": "setatt_1OOgy1DEQaroqDjs2ulQRAeR",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.2.json
index 3f925f6b960..2f857fa1079 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.create.2.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlceDEQaroqDjsF69R2WG0_secret_P6zbftiDh6C2B0Le8GK6ALVcHby9Gyu",
+ "client_secret": "seti_1OOgyBDEQaroqDjskmZjWSgi_secret_PD7C7bOg1OkvVN8xzi9gqVW3x5mgvmV",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlceDEQaroqDjsF69R2WG0",
+ "id": "seti_1OOgyBDEQaroqDjskmZjWSgi",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlceDEQaroqDjs1hVqql0s",
+ "latest_attempt": "setatt_1OOgyBDEQaroqDjsE7xZyZKV",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
+ "payment_method": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.1.json
index 0e519dd187b..21ecd37dc66 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlcTDEQaroqDjs7K1pjsyq_secret_P6zb4X2b8va5VZDxRMR3CgIYMwreYzC",
+ "client_secret": "seti_1OOgy0DEQaroqDjsaygfT6Vy_secret_PD7C3P02AkYIOjoStdmNTntrMbn3aaN",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlcTDEQaroqDjs7K1pjsyq",
+ "id": "seti_1OOgy0DEQaroqDjsaygfT6Vy",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.2.json
index 6f583469709..bf3753b0b83 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.list.2.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlcdDEQaroqDjsB4ugOdVp_secret_P6zbipSmx7qqSUGMRGqVxyYPXoN42bP",
+ "client_secret": "seti_1OOgyADEQaroqDjsYNJYIMlj_secret_PD7CupmIMsKujWYrVeli26I8x0kKX5S",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlcdDEQaroqDjsB4ugOdVp",
+ "id": "seti_1OOgyADEQaroqDjsYNJYIMlj",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.1.json
index a478623c3e8..4f6c4a1bb6a 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlcUDEQaroqDjsvk7SRRcH_secret_P6zbAgeO1YNtM2cmjYChSjYCWBsUOAB",
+ "client_secret": "seti_1OOgy1DEQaroqDjssDw856Ad_secret_PD7CcOp6l1pVxxOkQj3fYHLUCHSlUwA",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlcUDEQaroqDjsvk7SRRcH",
+ "id": "seti_1OOgy1DEQaroqDjssDw856Ad",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlcUDEQaroqDjsLAiOPmHx",
+ "latest_attempt": "setatt_1OOgy1DEQaroqDjs2ulQRAeR",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
+ "payment_method": "pm_1OOgy1DEQaroqDjsPovw7cfu",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.2.json
index 3f925f6b960..2f857fa1079 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--SetupIntent.retrieve.2.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlceDEQaroqDjsF69R2WG0_secret_P6zbftiDh6C2B0Le8GK6ALVcHby9Gyu",
+ "client_secret": "seti_1OOgyBDEQaroqDjskmZjWSgi_secret_PD7C7bOg1OkvVN8xzi9gqVW3x5mgvmV",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlceDEQaroqDjsF69R2WG0",
+ "id": "seti_1OOgyBDEQaroqDjskmZjWSgi",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlceDEQaroqDjs1hVqql0s",
+ "latest_attempt": "setatt_1OOgyBDEQaroqDjsE7xZyZKV",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
+ "payment_method": "pm_1OOgyBDEQaroqDjsiBlkYqAv",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.1.json
index bec2277979c..63b7434879a 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02sb4yHaq28VHOZscOtqKWTLoGQJALldTi43GUE0P56ay9sU",
+ "id": "cs_test_NORMALIZED02cYJi6xn8lOgZ8Jj4mC5UrDNp2p7sxI7jpsAc5dvHxVJqBz",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlcTDEQaroqDjs7K1pjsyq",
+ "setup_intent": "seti_1OOgy0DEQaroqDjsaygfT6Vy",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02sb4yHaq28VHOZscOtqKWTLoGQJALldTi43GUE0P56ay9sU#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02cYJi6xn8lOgZ8Jj4mC5UrDNp2p7sxI7jpsAc5dvHxVJqBz#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.2.json
index 1db3e270ad6..0a409362e54 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.2.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED03vZmJUBP0ybiRb1yrtpVKGaX0cm1V0nhnpM6e5pcI1y8CkG",
+ "id": "cs_test_NORMALIZED030qkpilOW0Vckpy6jr3necbx8Hb0r0rAdeG15WZLJO8SoSU",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlcdDEQaroqDjsB4ugOdVp",
+ "setup_intent": "seti_1OOgyADEQaroqDjsYNJYIMlj",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03vZmJUBP0ybiRb1yrtpVKGaX0cm1V0nhnpM6e5pcI1y8CkG#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED030qkpilOW0Vckpy6jr3necbx8Hb0r0rAdeG15WZLJO8SoSU#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.1.json
index b793c7b9bac..b1ff7203a4d 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02sb4yHaq28VHOZscOtqKWTLoGQJALldTi43GUE0P56ay9sU",
+ "id": "cs_test_NORMALIZED02cYJi6xn8lOgZ8Jj4mC5UrDNp2p7sxI7jpsAc5dvHxVJqBz",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlcTDEQaroqDjs7K1pjsyq",
+ "setup_intent": "seti_1OOgy0DEQaroqDjsaygfT6Vy",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02sb4yHaq28VHOZscOtqKWTLoGQJALldTi43GUE0P56ay9sU#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02cYJi6xn8lOgZ8Jj4mC5UrDNp2p7sxI7jpsAc5dvHxVJqBz#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.2.json
index d34bcb59e73..73a4e72b0d1 100644
--- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.2.json
+++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.2.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED03vZmJUBP0ybiRb1yrtpVKGaX0cm1V0nhnpM6e5pcI1y8CkG",
+ "id": "cs_test_NORMALIZED030qkpilOW0Vckpy6jr3necbx8Hb0r0rAdeG15WZLJO8SoSU",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlcdDEQaroqDjsB4ugOdVp",
+ "setup_intent": "seti_1OOgyADEQaroqDjsYNJYIMlj",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03vZmJUBP0ybiRb1yrtpVKGaX0cm1V0nhnpM6e5pcI1y8CkG#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED030qkpilOW0Vckpy6jr3necbx8Hb0r0rAdeG15WZLJO8SoSU#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.modify.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.modify.1.json
index 78c4a3da27b..85dba21d167 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "default_payment_method": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"footer": null,
"rendering_options": null
},
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.json
index b121ce6e878..4fc2880008f 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "id": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index b121ce6e878..4fc2880008f 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "id": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index b121ce6e878..4fc2880008f 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "id": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index b121ce6e878..4fc2880008f 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "id": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index d0ccb619735..a7b53c46643 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "id": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index d0ccb619735..a7b53c46643 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "id": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.1.json
index 8adfcbc0a66..2e4ce1fa965 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "default_payment_method": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlXjDEQaroqDjsLhrUEUe3",
+ "id": "evt_1OOgt8DEQaroqDjsi0Jq69AA",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "12b7d34b-4958-462b-8fda-e2f6c17957bd"
+ "idempotency_key": "c5a2725a-cd1d-48ed-a372-6ad0d81b2d97"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json
index 9f2024fa127..bbc690a447a 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
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "payment_method": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -126,7 +126,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKN76qqsGMgYgrE0XQWw6LBau_ilRx6BPEf5zlgCHW2ojzwBSlxtCQxmlmII5DkhOSXuAsc1VGTmDFZd6",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMqSgawGMgYfzHHUbN46LBYHApNJ77ul_E3nC6cBfOPlVm9-9awtIB-YX65dXmLtHCVlZ_cy9jk5bGoa",
"refunded": false,
"refunds": {
"data": [],
@@ -151,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_gaaXxocbBjOepNzIQyoHlMcVE",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_oJriuL8EetHpdD5CUJNqX5URe",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -179,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "payment_method": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlXlDEQaroqDjs0FGYzTr9",
+ "id": "evt_3OOgtBDEQaroqDjs1gTQBhmI",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "899e9bd5-f82b-4ed6-a09b-e04dba8c0edd"
+ "idempotency_key": "f54e8348-23f9-4cb1-b1fc-ff0d2e98054c"
},
"type": "payment_intent.succeeded"
},
@@ -283,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "payment_method": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -326,7 +326,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKN76qqsGMgYp5rJn4Pg6LBYAjHCItgf9iiKG_mmqSy1FuggXUU5fXaGzNuMWlKsIBYlUVnaYe37Fid2s",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMqSgawGMgbxTeFgWqQ6LBacX_ismQn_jqqDM6MyL0zCRnmKO4_77GFNX-3aw4Ovl8cgVx1SFQf9wha3",
"refunded": false,
"refunds": {
"data": [],
@@ -346,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlXlDEQaroqDjs0F5rvmUM",
+ "id": "evt_3OOgtBDEQaroqDjs1JllZp1b",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "899e9bd5-f82b-4ed6-a09b-e04dba8c0edd"
+ "idempotency_key": "f54e8348-23f9-4cb1-b1fc-ff0d2e98054c"
},
"type": "charge.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json
index 41b90ad87ec..dcd20d483ba 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEz0200nMuZd38e?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3VTM2VE14VFRBRmx1OElTSWJaNjhsdTVTSEFhLDkzNDQ2OTg40200ErtgK8hP?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEz0200nMuZd38e/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3VTM2VE14VFRBRmx1OElTSWJaNjhsdTVTSEFhLDkzNDQ2OTg40200ErtgK8hP/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1OIlXpDEQaroqDjsFjFkC07g",
+ "id": "evt_1OOgtEDEQaroqDjsAFYnjvLf",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "8b119345-6159-4607-9010-e8237d20823b"
+ "idempotency_key": "83a540e8-86ae-44f4-b8ad-07d466eceb5c"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlXoDEQaroqDjsll2CgAs8",
+ "id": "evt_1OOgtDDEQaroqDjs5k34j3ec",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "294b5729-e1c0-42e1-b77a-2545f8f7006c"
+ "idempotency_key": "6d18b0ca-fb82-4575-b8d7-a7b7b01cf8f2"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OIlXnDEQaroqDjsoAX0aCzf",
+ "id": "evt_1OOgtDDEQaroqDjsVVjFJQTa",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "4ead5392-1ff9-44e0-943e-cd705accc213"
+ "idempotency_key": "29f452f6-715b-4b7d-ace9-e47be2db0894"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OIlXnDEQaroqDjsQ5wMmZEb",
+ "id": "evt_1OOgtCDEQaroqDjs0fT6EM3h",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "e5d2c5ec-9f6f-4f28-b5b9-e43e3f58b653"
+ "idempotency_key": "ae172b11-60e6-4266-af56-eb6cca44555d"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "default_payment_method": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlXnDEQaroqDjsKXCIWpVq",
+ "id": "evt_1OOgtCDEQaroqDjsCumIPnvk",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "e5d2c5ec-9f6f-4f28-b5b9-e43e3f58b653"
+ "idempotency_key": "ae172b11-60e6-4266-af56-eb6cca44555d"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.4.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.4.json
index 55e34d1c69b..24ee0593eed 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.4.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.4.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEz0200nMuZd38e?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3VTM2VE14VFRBRmx1OElTSWJaNjhsdTVTSEFhLDkzNDQ2OTg40200ErtgK8hP?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEz0200nMuZd38e/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3VTM2VE14VFRBRmx1OElTSWJaNjhsdTVTSEFhLDkzNDQ2OTg40200ErtgK8hP/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,459 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlXpDEQaroqDjsMH9F6Vqj",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "8b119345-6159-4607-9010-e8237d20823b"
- },
- "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": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEz0200nMuZd38e?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEz0200nMuZd38e/pdf?s=ap",
- "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": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
- "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": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "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"
- },
- {
- "amount": -48000,
- "amount_excluding_tax": -48000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
- "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": "price_NORMALIZED00000000000002",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -48000,
- "unit_amount_decimal": "-48000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-48000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0002",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIlXpDEQaroqDjsuTbOhFCj",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "8b119345-6159-4607-9010-e8237d20823b"
- },
- "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": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEz0200nMuZd38e?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEz0200nMuZd38e/pdf?s=ap",
- "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": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
- "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": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "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"
- },
- {
- "amount": -48000,
- "amount_excluding_tax": -48000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
- "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": "price_NORMALIZED00000000000002",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -48000,
- "unit_amount_decimal": "-48000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-48000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0002",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIlXpDEQaroqDjs9DRA4TlG",
+ "id": "evt_1OOgtEDEQaroqDjsdHTOaJvF",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "8b119345-6159-4607-9010-e8237d20823b"
+ "idempotency_key": "83a540e8-86ae-44f4-b8ad-07d466eceb5c"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.5.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.5.json
index 6d922067afe..9aa1d835d45 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.5.json
@@ -1,5 +1,452 @@
{
- "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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3VTM2VE14VFRBRmx1OElTSWJaNjhsdTVTSEFhLDkzNDQ2OTg40200ErtgK8hP?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3VTM2VE14VFRBRmx1OElTSWJaNjhsdTVTSEFhLDkzNDQ2OTg40200ErtgK8hP/pdf?s=ap",
+ "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": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "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"
+ },
+ {
+ "amount": -48000,
+ "amount_excluding_tax": -48000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -48000,
+ "unit_amount_decimal": "-48000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-48000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0002",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgtFDEQaroqDjsUoSUlfK7",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "83a540e8-86ae-44f4-b8ad-07d466eceb5c"
+ },
+ "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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3VTM2VE14VFRBRmx1OElTSWJaNjhsdTVTSEFhLDkzNDQ2OTg40200ErtgK8hP?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3VTM2VE14VFRBRmx1OElTSWJaNjhsdTVTSEFhLDkzNDQ2OTg40200ErtgK8hP/pdf?s=ap",
+ "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": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "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"
+ },
+ {
+ "amount": -48000,
+ "amount_excluding_tax": -48000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -48000,
+ "unit_amount_decimal": "-48000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-48000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0002",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgtEDEQaroqDjs31T1Sdvi",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "83a540e8-86ae-44f4-b8ad-07d466eceb5c"
+ },
+ "type": "invoice.paid"
+ }
+ ],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.6.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.6.json
new file mode 100644
index 00000000000..6d922067afe
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.6.json
@@ -0,0 +1,6 @@
+{
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/events"
+}
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.json
index 1d137d60ad9..5f98f5aee82 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEy0200M1ADhNeL?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3VTM2VE14VFRBRmx1OElTSWJaNjhsdTVTSEFhLDkzNDQ2OTg40200ErtgK8hP?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEy0200M1ADhNeL/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3VTM2VE14VFRBRmx1OElTSWJaNjhsdTVTSEFhLDkzNDQ2OTg40200ErtgK8hP/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--PaymentIntent.create.1.json
index fb3dfaa4544..2e7e4f45bf0 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--PaymentIntent.create.1.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "payment_method": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -120,7 +120,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKN76qqsGMgZgaui54Nc6LBbpn6dtN1hXcAVR2ChXte8Ecqdu3cWtk6VikFLgoeo7xJBfgY0LR4CIhJhe",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMmSgawGMgZTj9e32aA6LBbGlHoj3FBEe9DOEy2IVlsA8J2_91CTnxWL-aXGZCF_ZxxY9DELWJ6l6Fat",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_gaaXxocbBjOepNzIQyoHlMcVE",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_oJriuL8EetHpdD5CUJNqX5URe",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -173,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "payment_method": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.create.1.json
index 54ddd475054..7472b3c870f 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlXiDEQaroqDjsvI6zH6rR_secret_P6zWBPBOAxlXilaHazyONXX4vFcGI5s",
+ "client_secret": "seti_1OOgt6DEQaroqDjs93TUjxLL_secret_PD77kiTfSRlYX1C878yXfj8cn3nlOYP",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlXiDEQaroqDjsvI6zH6rR",
+ "id": "seti_1OOgt6DEQaroqDjs93TUjxLL",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlXiDEQaroqDjs8vqJZ53H",
+ "latest_attempt": "setatt_1OOgt6DEQaroqDjstKuF5XfM",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "payment_method": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.list.1.json
index 30395506785..93f213ab9f1 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlXhDEQaroqDjs1fXXuFlu_secret_P6zWkqWwRlOqpbP3JGSRFT1s92F1sUU",
+ "client_secret": "seti_1OOgt6DEQaroqDjsNS9pHAYJ_secret_PD77bHLLrigZdDckEqkIMVRzM1RxeTL",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlXhDEQaroqDjs1fXXuFlu",
+ "id": "seti_1OOgt6DEQaroqDjsNS9pHAYJ",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.retrieve.1.json
index 54ddd475054..7472b3c870f 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlXiDEQaroqDjsvI6zH6rR_secret_P6zWBPBOAxlXilaHazyONXX4vFcGI5s",
+ "client_secret": "seti_1OOgt6DEQaroqDjs93TUjxLL_secret_PD77kiTfSRlYX1C878yXfj8cn3nlOYP",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlXiDEQaroqDjsvI6zH6rR",
+ "id": "seti_1OOgt6DEQaroqDjs93TUjxLL",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlXiDEQaroqDjs8vqJZ53H",
+ "latest_attempt": "setatt_1OOgt6DEQaroqDjstKuF5XfM",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
+ "payment_method": "pm_1OOgt6DEQaroqDjsX8dM8afm",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.create.1.json
index f1439ee4565..ce297cb2351 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED022uV9JxUF8wFtvKu0nBvAfD8xqGg4mH8COGhMYSydyKnyEa",
+ "id": "cs_test_NORMALIZED02AWV6cYpbthkXlCX4KseQQVcTQACasjJUiz0DrBo5lQpfQP",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlXhDEQaroqDjs1fXXuFlu",
+ "setup_intent": "seti_1OOgt6DEQaroqDjsNS9pHAYJ",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED022uV9JxUF8wFtvKu0nBvAfD8xqGg4mH8COGhMYSydyKnyEa#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02AWV6cYpbthkXlCX4KseQQVcTQACasjJUiz0DrBo5lQpfQP#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.list.1.json
index 1c40d1e1ca9..20ae2114ea0 100644
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED022uV9JxUF8wFtvKu0nBvAfD8xqGg4mH8COGhMYSydyKnyEa",
+ "id": "cs_test_NORMALIZED02AWV6cYpbthkXlCX4KseQQVcTQACasjJUiz0DrBo5lQpfQP",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlXhDEQaroqDjs1fXXuFlu",
+ "setup_intent": "seti_1OOgt6DEQaroqDjsNS9pHAYJ",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED022uV9JxUF8wFtvKu0nBvAfD8xqGg4mH8COGhMYSydyKnyEa#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02AWV6cYpbthkXlCX4KseQQVcTQACasjJUiz0DrBo5lQpfQP#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.modify.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.modify.1.json
index 08c75aad745..010579572b6 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "default_payment_method": "pm_1OOgtJDEQaroqDjswedepU4i",
"footer": null,
"rendering_options": 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.json
index 54413c2ed17..0653cd594eb 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "id": "pm_1OOgtJDEQaroqDjswedepU4i",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 54413c2ed17..0653cd594eb 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "id": "pm_1OOgtJDEQaroqDjswedepU4i",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 54413c2ed17..0653cd594eb 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "id": "pm_1OOgtJDEQaroqDjswedepU4i",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Event.list.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Event.list.1.json
index 2cdd892b639..9708d13f55a 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "default_payment_method": "pm_1OOgtJDEQaroqDjswedepU4i",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlXvDEQaroqDjsoJvhLiqB",
+ "id": "evt_1OOgtKDEQaroqDjs0YX0x74h",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "49bc0d95-d9ec-4872-891b-a1ce23989500"
+ "idempotency_key": "e357d52d-7f39-4c65-8f4d-8f03654f3c28"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--PaymentIntent.create.1.json
index 5d751203413..709a7fa7322 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--PaymentIntent.create.1.json
@@ -87,7 +87,7 @@
},
"paid": false,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "payment_method": "pm_1OOgtJDEQaroqDjswedepU4i",
"payment_method_details": {
"card": {
"amount_authorized": null,
@@ -127,7 +127,6 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
"receipt_url": null,
@@ -149,7 +148,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_n1KKNJkXE3HBn9XQXDPAxg09C",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_TeKOrWHhfOdaeyKvKYhOSoLWP",
"confirmation_method": "automatic",
"created": 1010000004,
"currency": "usd",
@@ -204,7 +203,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "id": "pm_1OOgtJDEQaroqDjswedepU4i",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -297,13 +296,13 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "id": "pm_1OOgtJDEQaroqDjswedepU4i",
"livemode": false,
"metadata": {},
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0002?t=1701494121",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0002?t=1702906196",
"setup_intent": null,
"source": null,
"type": "card_error"
@@ -316,11 +315,11 @@
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Connection": "keep-alive",
- "Content-Length": "9960",
+ "Content-Length": "9914",
"Content-Security-Policy": "report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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",
"Date": "NORMALIZED DATETIME",
- "Idempotency-Key": "2a366e05-a7b2-4fd7-81d6-8cb36f6a2b1b",
+ "Idempotency-Key": "b48a3e58-fdc2-416c-aeaf-85c42e7f0a9e",
"Original-Request": "req_NORMALIZED0002",
"Request-Id": "req_NORMALIZED0002",
"Server": "nginx",
@@ -418,7 +417,7 @@
},
"paid": false,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "payment_method": "pm_1OOgtJDEQaroqDjswedepU4i",
"payment_method_details": {
"card": {
"amount_authorized": null,
@@ -458,7 +457,6 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
"receipt_url": null,
@@ -486,7 +484,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_n1KKNJkXE3HBn9XQXDPAxg09C",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_TeKOrWHhfOdaeyKvKYhOSoLWP",
"confirmation_method": "automatic",
"created": 1010000004,
"currency": "usd",
@@ -541,7 +539,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "id": "pm_1OOgtJDEQaroqDjswedepU4i",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -634,13 +632,13 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "id": "pm_1OOgtJDEQaroqDjswedepU4i",
"livemode": false,
"metadata": {},
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0002?t=1701494121",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0002?t=1702906196",
"type": "card_error"
}
},
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.create.1.json
index d69377526cd..cb24e21f9db 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlXtDEQaroqDjsgZwyhjiU_secret_P6zWKS52xWBvynYvmsJtxtyLfgPePhv",
+ "client_secret": "seti_1OOgtJDEQaroqDjsqKShjgJ0_secret_PD77mGPVAi98wqhNQO7oFyHMsck1UIF",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlXtDEQaroqDjsgZwyhjiU",
+ "id": "seti_1OOgtJDEQaroqDjsqKShjgJ0",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlXtDEQaroqDjsM8404dt1",
+ "latest_attempt": "setatt_1OOgtJDEQaroqDjsZIdBffpA",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "payment_method": "pm_1OOgtJDEQaroqDjswedepU4i",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.list.1.json
index d100573002e..780a83d89b8 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlXtDEQaroqDjsDKuSZ1M8_secret_P6zWKTq7xYbOiJ6GJDWEVXKFN7GXBLr",
- "created": 1010000002,
+ "client_secret": "seti_1OOgtIDEQaroqDjsH5Pxmj5F_secret_PD77Nw4Rn3azoz4mcCigYo9IpcKaEBP",
+ "created": 1010000005,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlXtDEQaroqDjsDKuSZ1M8",
+ "id": "seti_1OOgtIDEQaroqDjsH5Pxmj5F",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.retrieve.1.json
index d69377526cd..cb24e21f9db 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlXtDEQaroqDjsgZwyhjiU_secret_P6zWKS52xWBvynYvmsJtxtyLfgPePhv",
+ "client_secret": "seti_1OOgtJDEQaroqDjsqKShjgJ0_secret_PD77mGPVAi98wqhNQO7oFyHMsck1UIF",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlXtDEQaroqDjsgZwyhjiU",
+ "id": "seti_1OOgtJDEQaroqDjsqKShjgJ0",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlXtDEQaroqDjsM8404dt1",
+ "latest_attempt": "setatt_1OOgtJDEQaroqDjsZIdBffpA",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlXtDEQaroqDjsW5IClxeu",
+ "payment_method": "pm_1OOgtJDEQaroqDjswedepU4i",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.create.1.json
index 65c489d465a..1eba28a223b 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.create.1.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000002,
+ "created": 1010000005,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01QKi3kfWTaa0Vmcpa0MZAkZw6V4dC3cwJuR48tRmTUrynWd",
+ "id": "cs_test_NORMALIZED01JH1bdUmxdHTMXZT2sr8jOQ7u1BKdpcZoFu8mvX9PlRVRsU",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlXtDEQaroqDjsDKuSZ1M8",
+ "setup_intent": "seti_1OOgtIDEQaroqDjsH5Pxmj5F",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01QKi3kfWTaa0Vmcpa0MZAkZw6V4dC3cwJuR48tRmTUrynWd#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01JH1bdUmxdHTMXZT2sr8jOQ7u1BKdpcZoFu8mvX9PlRVRsU#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.list.1.json
index 68a686095ba..16fca6590c8 100644
--- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.list.1.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000002,
+ "created": 1010000005,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01QKi3kfWTaa0Vmcpa0MZAkZw6V4dC3cwJuR48tRmTUrynWd",
+ "id": "cs_test_NORMALIZED01JH1bdUmxdHTMXZT2sr8jOQ7u1BKdpcZoFu8mvX9PlRVRsU",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlXtDEQaroqDjsDKuSZ1M8",
+ "setup_intent": "seti_1OOgtIDEQaroqDjsH5Pxmj5F",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01QKi3kfWTaa0Vmcpa0MZAkZw6V4dC3cwJuR48tRmTUrynWd#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01JH1bdUmxdHTMXZT2sr8jOQ7u1BKdpcZoFu8mvX9PlRVRsU#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json
index 098046cb5aa..56af199132b 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYRmRrRWpBczByNUYyVlFXM2FIdGx1Q1JKV21yLDkyMDM0OTI10200SOwO7QdE?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3cDdXOENhSFNkR0w5cnFSVjZzYTd4U29SZVRxLDkzNDQ2OTk50200YtcfIpfx?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYRmRrRWpBczByNUYyVlFXM2FIdGx1Q1JKV21yLDkyMDM0OTI10200SOwO7QdE/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3cDdXOENhSFNkR0w5cnFSVjZzYTd4U29SZVRxLDkzNDQ3MDAw0200Zk4APRlz/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json
index 9c155380dd8..0a5bd6c581d 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYRmRrRWpBczByNUYyVlFXM2FIdGx1Q1JKV21yLDkyMDM0OTI10200SOwO7QdE?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3cDdXOENhSFNkR0w5cnFSVjZzYTd4U29SZVRxLDkzNDQ3MDAw0200Zk4APRlz?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYRmRrRWpBczByNUYyVlFXM2FIdGx1Q1JKV21yLDkyMDM0OTI10200SOwO7QdE/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3cDdXOENhSFNkR0w5cnFSVjZzYTd4U29SZVRxLDkzNDQ3MDAw0200Zk4APRlz/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.1.json
index ac855f1dcd3..551b6ce0f72 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlY3DEQaroqDjslFpuk1CA",
+ "default_payment_method": "pm_1OOgtSDEQaroqDjsjng1KClS",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.2.json
index a46defe883b..e0e867938a8 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.2.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.2.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlY7DEQaroqDjsWWd7JRsa",
+ "default_payment_method": "pm_1OOgtWDEQaroqDjsO1hWI5f0",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.3.json
index 7e64cfc1f02..8cf389ebb2d 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.3.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.3.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlYBDEQaroqDjsjD1cNbBj",
+ "default_payment_method": "pm_1OOgtaDEQaroqDjsoIpDr2ht",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.4.json
index a3e55548171..6b21005c594 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.4.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.4.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlYFDEQaroqDjso6F7pFrk",
+ "default_payment_method": "pm_1OOgteDEQaroqDjsD9IJGSgg",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.5.json
index 4b4e08ef34f..3d9bbef04f3 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.5.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.5.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlYIDEQaroqDjsByOEWq10",
+ "default_payment_method": "pm_1OOgtiDEQaroqDjscIU9uVLT",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.6.json
index 8961fe57f01..4336bc78742 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.6.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.6.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlYMDEQaroqDjsgwTv4ukx",
+ "default_payment_method": "pm_1OOgtmDEQaroqDjs7NIGRCne",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.7.json
index 45ab5346640..93dec927478 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.7.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.7.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlYQDEQaroqDjs5Yt0Xtvd",
+ "default_payment_method": "pm_1OOgtqDEQaroqDjspIfq5RHi",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.8.json
index 5b699ad6bc6..a00acea7c0e 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.8.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.8.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlYUDEQaroqDjsYOMRzrid",
+ "default_payment_method": "pm_1OOgtuDEQaroqDjsyqm3t3xf",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.9.json
index c3da3baa93e..063258d56e8 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.9.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.9.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlYXDEQaroqDjssam6O1GA",
+ "default_payment_method": "pm_1OOgtyDEQaroqDjslyOOaDfW",
"footer": null,
"rendering_options": 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.json
index f84b9e864ab..c55a1639357 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlY3DEQaroqDjslFpuk1CA",
+ "id": "pm_1OOgtSDEQaroqDjsjng1KClS",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 59dc04407d8..c242cee8f1a 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
@@ -54,7 +54,7 @@
},
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYIDEQaroqDjsByOEWq10",
+ "id": "pm_1OOgtiDEQaroqDjscIU9uVLT",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index fbb3909ca32..b657bddbbc6 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
@@ -54,7 +54,7 @@
},
"created": 1010000004,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYMDEQaroqDjsgwTv4ukx",
+ "id": "pm_1OOgtmDEQaroqDjs7NIGRCne",
"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.json
index fbb3909ca32..b657bddbbc6 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
@@ -54,7 +54,7 @@
},
"created": 1010000004,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYMDEQaroqDjsgwTv4ukx",
+ "id": "pm_1OOgtmDEQaroqDjs7NIGRCne",
"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.json
index fb8c5088b84..71ea95f9fe1 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
@@ -54,7 +54,7 @@
},
"created": 1010000005,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYQDEQaroqDjs5Yt0Xtvd",
+ "id": "pm_1OOgtqDEQaroqDjspIfq5RHi",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index fb8c5088b84..71ea95f9fe1 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
@@ -54,7 +54,7 @@
},
"created": 1010000005,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYQDEQaroqDjs5Yt0Xtvd",
+ "id": "pm_1OOgtqDEQaroqDjspIfq5RHi",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 148830dde02..16264f08aea 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
@@ -54,7 +54,7 @@
},
"created": 1010000006,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYUDEQaroqDjsYOMRzrid",
+ "id": "pm_1OOgtuDEQaroqDjsyqm3t3xf",
"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.json
index 148830dde02..16264f08aea 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
@@ -54,7 +54,7 @@
},
"created": 1010000006,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYUDEQaroqDjsYOMRzrid",
+ "id": "pm_1OOgtuDEQaroqDjsyqm3t3xf",
"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.json
index 41c07ee5aa7..d776fae3cc3 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
@@ -54,7 +54,7 @@
},
"created": 1010000007,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYXDEQaroqDjssam6O1GA",
+ "id": "pm_1OOgtyDEQaroqDjslyOOaDfW",
"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.json
index 41c07ee5aa7..d776fae3cc3 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
@@ -54,7 +54,7 @@
},
"created": 1010000007,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYXDEQaroqDjssam6O1GA",
+ "id": "pm_1OOgtyDEQaroqDjslyOOaDfW",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index f84b9e864ab..c55a1639357 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlY3DEQaroqDjslFpuk1CA",
+ "id": "pm_1OOgtSDEQaroqDjsjng1KClS",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index a9eb2b3115e..dac3e06e61d 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
@@ -54,7 +54,7 @@
},
"created": 1010000008,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlY7DEQaroqDjsWWd7JRsa",
+ "id": "pm_1OOgtWDEQaroqDjsO1hWI5f0",
"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.json
index a9eb2b3115e..dac3e06e61d 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
@@ -54,7 +54,7 @@
},
"created": 1010000008,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlY7DEQaroqDjsWWd7JRsa",
+ "id": "pm_1OOgtWDEQaroqDjsO1hWI5f0",
"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.json
index 4337bc504f2..1500d344497 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
@@ -54,7 +54,7 @@
},
"created": 1010000009,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYBDEQaroqDjsjD1cNbBj",
+ "id": "pm_1OOgtaDEQaroqDjsoIpDr2ht",
"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.json
index 4337bc504f2..1500d344497 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
@@ -54,7 +54,7 @@
},
"created": 1010000009,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYBDEQaroqDjsjD1cNbBj",
+ "id": "pm_1OOgtaDEQaroqDjsoIpDr2ht",
"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.json
index a818202faa2..979fa297e3d 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
@@ -54,7 +54,7 @@
},
"created": 1010000010,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYFDEQaroqDjso6F7pFrk",
+ "id": "pm_1OOgteDEQaroqDjsD9IJGSgg",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index a818202faa2..979fa297e3d 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
@@ -54,7 +54,7 @@
},
"created": 1010000010,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYFDEQaroqDjso6F7pFrk",
+ "id": "pm_1OOgteDEQaroqDjsD9IJGSgg",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 59dc04407d8..c242cee8f1a 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
@@ -54,7 +54,7 @@
},
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYIDEQaroqDjsByOEWq10",
+ "id": "pm_1OOgtiDEQaroqDjscIU9uVLT",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.1.json
index a9bf455aac1..5820eb94c63 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlY3DEQaroqDjsI1rkPxX8_secret_P6zXuzLHTOXH7F0pVbjB40tGz0kF3OO",
+ "client_secret": "seti_1OOgtSDEQaroqDjsSBWbaorU_secret_PD77XMJc4uC5Gtfp8kWFV1Dju37kbaK",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlY3DEQaroqDjsI1rkPxX8",
+ "id": "seti_1OOgtSDEQaroqDjsSBWbaorU",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlY3DEQaroqDjsiAt8p9DK",
+ "latest_attempt": "setatt_1OOgtSDEQaroqDjsCs8lrcnX",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlY3DEQaroqDjslFpuk1CA",
+ "payment_method": "pm_1OOgtSDEQaroqDjsjng1KClS",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.2.json
index 84bedfe0ac9..b02e3084690 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.2.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.2.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlY7DEQaroqDjscXc0vihd_secret_P6zXbc9s4VmN0aVubBb5LJE6rO4yIbt",
+ "client_secret": "seti_1OOgtWDEQaroqDjsZAQtcneP_secret_PD77B3dkMEY7vqSh7PaMgItnKu1rhFq",
"created": 1010000008,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlY7DEQaroqDjscXc0vihd",
+ "id": "seti_1OOgtWDEQaroqDjsZAQtcneP",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlY7DEQaroqDjsver9zO4x",
+ "latest_attempt": "setatt_1OOgtWDEQaroqDjsp8wgvoKs",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlY7DEQaroqDjsWWd7JRsa",
+ "payment_method": "pm_1OOgtWDEQaroqDjsO1hWI5f0",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.3.json
index 31f749d0453..658b5dae3a3 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.3.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.3.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYBDEQaroqDjsayuPb42L_secret_P6zXZ34sqGLNS8FsdWaoEJDDbV66gat",
+ "client_secret": "seti_1OOgtaDEQaroqDjsnoz91ju1_secret_PD77tG0SAMPboVg5R2zEaJLdmoUi9gO",
"created": 1010000009,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYBDEQaroqDjsayuPb42L",
+ "id": "seti_1OOgtaDEQaroqDjsnoz91ju1",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYBDEQaroqDjsoThPCLkU",
+ "latest_attempt": "setatt_1OOgtaDEQaroqDjsTrnEHARa",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYBDEQaroqDjsjD1cNbBj",
+ "payment_method": "pm_1OOgtaDEQaroqDjsoIpDr2ht",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.4.json
index 4e3c375d391..82f1b04bb73 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.4.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.4.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYFDEQaroqDjsZMK1wCCS_secret_P6zXv6VufSZ7yJ0ftBPxPYebHBWXv45",
+ "client_secret": "seti_1OOgteDEQaroqDjsWiphylXp_secret_PD77sn7o95vCOdYxW6PA5cn5anz2ZS7",
"created": 1010000010,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYFDEQaroqDjsZMK1wCCS",
+ "id": "seti_1OOgteDEQaroqDjsWiphylXp",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYFDEQaroqDjsJIclKZkj",
+ "latest_attempt": "setatt_1OOgteDEQaroqDjskYdW7e20",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYFDEQaroqDjso6F7pFrk",
+ "payment_method": "pm_1OOgteDEQaroqDjsD9IJGSgg",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.5.json
index f7a89218b9f..5c427297a5e 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.5.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.5.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYIDEQaroqDjsJ4F5xT2N_secret_P6zXCmce4JGx2y7gAazeOA6fFUL9qfT",
+ "client_secret": "seti_1OOgtiDEQaroqDjsNu2fcyjt_secret_PD77ibQutMB0W4Tdi9T53enCetMGQPD",
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYIDEQaroqDjsJ4F5xT2N",
+ "id": "seti_1OOgtiDEQaroqDjsNu2fcyjt",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYIDEQaroqDjsswUrR6Ei",
+ "latest_attempt": "setatt_1OOgtiDEQaroqDjsylyF6XaV",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYIDEQaroqDjsByOEWq10",
+ "payment_method": "pm_1OOgtiDEQaroqDjscIU9uVLT",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.6.json
index 53a5b60cedf..e5c353838fa 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.6.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.6.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYMDEQaroqDjsuBdPc3Ot_secret_P6zXi4ZltYanzkBD6qgDWzBIOJcJIyo",
+ "client_secret": "seti_1OOgtmDEQaroqDjsK0FpkDmV_secret_PD78Kj8b5wElkFrVecM9OcCaGPS2Nyh",
"created": 1010000004,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYMDEQaroqDjsuBdPc3Ot",
+ "id": "seti_1OOgtmDEQaroqDjsK0FpkDmV",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYMDEQaroqDjsNdZgMSup",
+ "latest_attempt": "setatt_1OOgtmDEQaroqDjsr02JjpB1",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYMDEQaroqDjsgwTv4ukx",
+ "payment_method": "pm_1OOgtmDEQaroqDjs7NIGRCne",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.7.json
index dc89ae1cd1c..17f5051814a 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.7.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.7.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYQDEQaroqDjsFOXhvTmX_secret_P6zXNyadVaSI7Hc6CGsgwRzXmUC789Q",
+ "client_secret": "seti_1OOgtqDEQaroqDjsbn6Spnts_secret_PD789DPbcv5ynat0fZuXtXJRZg7A7iB",
"created": 1010000005,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYQDEQaroqDjsFOXhvTmX",
+ "id": "seti_1OOgtqDEQaroqDjsbn6Spnts",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYQDEQaroqDjsT1Q7vuyA",
+ "latest_attempt": "setatt_1OOgtqDEQaroqDjsoCvwand8",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYQDEQaroqDjs5Yt0Xtvd",
+ "payment_method": "pm_1OOgtqDEQaroqDjspIfq5RHi",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.8.json
index 07bea50a413..bc6917ddf45 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.8.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.8.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYUDEQaroqDjsH9FUMQ37_secret_P6zXxGRENsfek7fMlA8GzHvkcw8c4LZ",
+ "client_secret": "seti_1OOgtuDEQaroqDjsYrBnLmXi_secret_PD78gG8DSJkpGPR3eE3zrsevCOus5gf",
"created": 1010000006,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYUDEQaroqDjsH9FUMQ37",
+ "id": "seti_1OOgtuDEQaroqDjsYrBnLmXi",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYUDEQaroqDjsLdvjgjQq",
+ "latest_attempt": "setatt_1OOgtuDEQaroqDjsuvEklGzw",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYUDEQaroqDjsYOMRzrid",
+ "payment_method": "pm_1OOgtuDEQaroqDjsyqm3t3xf",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.9.json
index 0fad11f0fd6..32a57dccefc 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.9.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.9.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYXDEQaroqDjsVJrJdmDK_secret_P6zXTGHuBLTj55opifICfuLdJnvBh4W",
+ "client_secret": "seti_1OOgtyDEQaroqDjssX5ENHkr_secret_PD78w0Nr6oXjxuwilSFtEPS5qgiuKpN",
"created": 1010000007,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYXDEQaroqDjsVJrJdmDK",
+ "id": "seti_1OOgtyDEQaroqDjssX5ENHkr",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYXDEQaroqDjsm1s6QNV7",
+ "latest_attempt": "setatt_1OOgtyDEQaroqDjsHgtZArRK",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYXDEQaroqDjssam6O1GA",
+ "payment_method": "pm_1OOgtyDEQaroqDjslyOOaDfW",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.1.json
index 5d5270e3c59..2ada3505d69 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlY3DEQaroqDjs7JBrt0fk_secret_P6zXss8uRXvd8HKRiO5nNOd34MApWRT",
- "created": 1010000002,
+ "client_secret": "seti_1OOgtRDEQaroqDjsGM40E1tL_secret_PD77m29lkj9DPx5np7J2kKYOIbzsRvK",
+ "created": 1010000001,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlY3DEQaroqDjs7JBrt0fk",
+ "id": "seti_1OOgtRDEQaroqDjsGM40E1tL",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.2.json
index ab7943c1706..45ac77747ec 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.2.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.2.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlY6DEQaroqDjsXk7cflCF_secret_P6zXC6jwH0ToqsFDaqRFbgeZrnYORqD",
+ "client_secret": "seti_1OOgtVDEQaroqDjsST1yhcsy_secret_PD77OvHRLhHq0ka30YPfflrZxa1j1FQ",
"created": 1010000011,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlY6DEQaroqDjsXk7cflCF",
+ "id": "seti_1OOgtVDEQaroqDjsST1yhcsy",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.3.json
index d962955faca..2b7b3275f59 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.3.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.3.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYADEQaroqDjscphkqiJV_secret_P6zX8y451MEdIXlInodAppkGB5RdaY1",
- "created": 1010000012,
+ "client_secret": "seti_1OOgtaDEQaroqDjsRsiCYPOy_secret_PD77NrsMMohEcberEXT7QnnnMOhJUtr",
+ "created": 1010000009,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYADEQaroqDjscphkqiJV",
+ "id": "seti_1OOgtaDEQaroqDjsRsiCYPOy",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.4.json
index 3fae5bd04dd..2df17eb1888 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.4.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.4.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYEDEQaroqDjsNHhagenC_secret_P6zX1RHmYCRYZ6POVU2k0gdjthPSNTJ",
- "created": 1010000013,
+ "client_secret": "seti_1OOgteDEQaroqDjsZiAjnkY2_secret_PD77WVhUh8HocGEDwLbtxlQy5WRi16B",
+ "created": 1010000010,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYEDEQaroqDjsNHhagenC",
+ "id": "seti_1OOgteDEQaroqDjsZiAjnkY2",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.5.json
index 66aab9dba7c..348865e6c76 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.5.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.5.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYIDEQaroqDjs82kZhmm4_secret_P6zXkc0dDfyJ4q89p33sVRuRi33YkV3",
- "created": 1010000003,
+ "client_secret": "seti_1OOgthDEQaroqDjsLkkb2rtv_secret_PD77O1eQnscPf480nv7a2KT1kHC7eku",
+ "created": 1010000012,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYIDEQaroqDjs82kZhmm4",
+ "id": "seti_1OOgthDEQaroqDjsLkkb2rtv",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.6.json
index cfa775af471..cd8557b2a81 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.6.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.6.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYLDEQaroqDjsOEBobvSx_secret_P6zXEXkvNBBzTkSRogtwOWuGzQjF9cT",
- "created": 1010000014,
+ "client_secret": "seti_1OOgtlDEQaroqDjsKWnh2fG8_secret_PD78KZZhH3xh0AgG1sajMEiYNX0Df5G",
+ "created": 1010000013,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYLDEQaroqDjsOEBobvSx",
+ "id": "seti_1OOgtlDEQaroqDjsKWnh2fG8",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.7.json
index 84b8f20d1d7..e49ca680099 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.7.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.7.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYPDEQaroqDjsT0XBMIAO_secret_P6zXRlwvZE1WYxnATVzBRKSmY6I4Btd",
- "created": 1010000015,
+ "client_secret": "seti_1OOgtpDEQaroqDjs8FQAXIcB_secret_PD78hkXyi0MrXKoiLeImVuQH6DIq8Jj",
+ "created": 1010000014,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYPDEQaroqDjsT0XBMIAO",
+ "id": "seti_1OOgtpDEQaroqDjs8FQAXIcB",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.8.json
index 940d1ec6ea9..86dc693795c 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.8.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.8.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYTDEQaroqDjsxOeDKR0W_secret_P6zXz0KF8Xlhd3U12c6cr2eGhukO506",
- "created": 1010000016,
+ "client_secret": "seti_1OOgttDEQaroqDjsqTnn8UEO_secret_PD78kPL675ntXK9UZGTkyxkykdu0lt1",
+ "created": 1010000015,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYTDEQaroqDjsxOeDKR0W",
+ "id": "seti_1OOgttDEQaroqDjsqTnn8UEO",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.9.json
index 138b4c8f349..d9ad42bfa58 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.9.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.9.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYXDEQaroqDjsasyuVqSO_secret_P6zXu4pD6ZOlRrBnFA2UlVk0qk7AwsG",
- "created": 1010000007,
+ "client_secret": "seti_1OOgtxDEQaroqDjsEV1gyM4q_secret_PD780KnX0HjiWpeOQE6UNfrxEpYF4cC",
+ "created": 1010000016,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYXDEQaroqDjsasyuVqSO",
+ "id": "seti_1OOgtxDEQaroqDjsEV1gyM4q",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.1.json
index a9bf455aac1..5820eb94c63 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlY3DEQaroqDjsI1rkPxX8_secret_P6zXuzLHTOXH7F0pVbjB40tGz0kF3OO",
+ "client_secret": "seti_1OOgtSDEQaroqDjsSBWbaorU_secret_PD77XMJc4uC5Gtfp8kWFV1Dju37kbaK",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlY3DEQaroqDjsI1rkPxX8",
+ "id": "seti_1OOgtSDEQaroqDjsSBWbaorU",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlY3DEQaroqDjsiAt8p9DK",
+ "latest_attempt": "setatt_1OOgtSDEQaroqDjsCs8lrcnX",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlY3DEQaroqDjslFpuk1CA",
+ "payment_method": "pm_1OOgtSDEQaroqDjsjng1KClS",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.2.json
index 84bedfe0ac9..b02e3084690 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.2.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlY7DEQaroqDjscXc0vihd_secret_P6zXbc9s4VmN0aVubBb5LJE6rO4yIbt",
+ "client_secret": "seti_1OOgtWDEQaroqDjsZAQtcneP_secret_PD77B3dkMEY7vqSh7PaMgItnKu1rhFq",
"created": 1010000008,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlY7DEQaroqDjscXc0vihd",
+ "id": "seti_1OOgtWDEQaroqDjsZAQtcneP",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlY7DEQaroqDjsver9zO4x",
+ "latest_attempt": "setatt_1OOgtWDEQaroqDjsp8wgvoKs",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlY7DEQaroqDjsWWd7JRsa",
+ "payment_method": "pm_1OOgtWDEQaroqDjsO1hWI5f0",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.3.json
index 31f749d0453..658b5dae3a3 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.3.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYBDEQaroqDjsayuPb42L_secret_P6zXZ34sqGLNS8FsdWaoEJDDbV66gat",
+ "client_secret": "seti_1OOgtaDEQaroqDjsnoz91ju1_secret_PD77tG0SAMPboVg5R2zEaJLdmoUi9gO",
"created": 1010000009,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYBDEQaroqDjsayuPb42L",
+ "id": "seti_1OOgtaDEQaroqDjsnoz91ju1",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYBDEQaroqDjsoThPCLkU",
+ "latest_attempt": "setatt_1OOgtaDEQaroqDjsTrnEHARa",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYBDEQaroqDjsjD1cNbBj",
+ "payment_method": "pm_1OOgtaDEQaroqDjsoIpDr2ht",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.4.json
index 4e3c375d391..82f1b04bb73 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.4.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYFDEQaroqDjsZMK1wCCS_secret_P6zXv6VufSZ7yJ0ftBPxPYebHBWXv45",
+ "client_secret": "seti_1OOgteDEQaroqDjsWiphylXp_secret_PD77sn7o95vCOdYxW6PA5cn5anz2ZS7",
"created": 1010000010,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYFDEQaroqDjsZMK1wCCS",
+ "id": "seti_1OOgteDEQaroqDjsWiphylXp",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYFDEQaroqDjsJIclKZkj",
+ "latest_attempt": "setatt_1OOgteDEQaroqDjskYdW7e20",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYFDEQaroqDjso6F7pFrk",
+ "payment_method": "pm_1OOgteDEQaroqDjsD9IJGSgg",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.5.json
index f7a89218b9f..5c427297a5e 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.5.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.5.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYIDEQaroqDjsJ4F5xT2N_secret_P6zXCmce4JGx2y7gAazeOA6fFUL9qfT",
+ "client_secret": "seti_1OOgtiDEQaroqDjsNu2fcyjt_secret_PD77ibQutMB0W4Tdi9T53enCetMGQPD",
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYIDEQaroqDjsJ4F5xT2N",
+ "id": "seti_1OOgtiDEQaroqDjsNu2fcyjt",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYIDEQaroqDjsswUrR6Ei",
+ "latest_attempt": "setatt_1OOgtiDEQaroqDjsylyF6XaV",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYIDEQaroqDjsByOEWq10",
+ "payment_method": "pm_1OOgtiDEQaroqDjscIU9uVLT",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.6.json
index 53a5b60cedf..e5c353838fa 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.6.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.6.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYMDEQaroqDjsuBdPc3Ot_secret_P6zXi4ZltYanzkBD6qgDWzBIOJcJIyo",
+ "client_secret": "seti_1OOgtmDEQaroqDjsK0FpkDmV_secret_PD78Kj8b5wElkFrVecM9OcCaGPS2Nyh",
"created": 1010000004,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYMDEQaroqDjsuBdPc3Ot",
+ "id": "seti_1OOgtmDEQaroqDjsK0FpkDmV",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYMDEQaroqDjsNdZgMSup",
+ "latest_attempt": "setatt_1OOgtmDEQaroqDjsr02JjpB1",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYMDEQaroqDjsgwTv4ukx",
+ "payment_method": "pm_1OOgtmDEQaroqDjs7NIGRCne",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.7.json
index dc89ae1cd1c..17f5051814a 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.7.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.7.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYQDEQaroqDjsFOXhvTmX_secret_P6zXNyadVaSI7Hc6CGsgwRzXmUC789Q",
+ "client_secret": "seti_1OOgtqDEQaroqDjsbn6Spnts_secret_PD789DPbcv5ynat0fZuXtXJRZg7A7iB",
"created": 1010000005,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYQDEQaroqDjsFOXhvTmX",
+ "id": "seti_1OOgtqDEQaroqDjsbn6Spnts",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYQDEQaroqDjsT1Q7vuyA",
+ "latest_attempt": "setatt_1OOgtqDEQaroqDjsoCvwand8",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYQDEQaroqDjs5Yt0Xtvd",
+ "payment_method": "pm_1OOgtqDEQaroqDjspIfq5RHi",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.8.json
index 07bea50a413..bc6917ddf45 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.8.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.8.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYUDEQaroqDjsH9FUMQ37_secret_P6zXxGRENsfek7fMlA8GzHvkcw8c4LZ",
+ "client_secret": "seti_1OOgtuDEQaroqDjsYrBnLmXi_secret_PD78gG8DSJkpGPR3eE3zrsevCOus5gf",
"created": 1010000006,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYUDEQaroqDjsH9FUMQ37",
+ "id": "seti_1OOgtuDEQaroqDjsYrBnLmXi",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYUDEQaroqDjsLdvjgjQq",
+ "latest_attempt": "setatt_1OOgtuDEQaroqDjsuvEklGzw",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYUDEQaroqDjsYOMRzrid",
+ "payment_method": "pm_1OOgtuDEQaroqDjsyqm3t3xf",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.9.json
index 0fad11f0fd6..32a57dccefc 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.9.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.9.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYXDEQaroqDjsVJrJdmDK_secret_P6zXTGHuBLTj55opifICfuLdJnvBh4W",
+ "client_secret": "seti_1OOgtyDEQaroqDjssX5ENHkr_secret_PD78w0Nr6oXjxuwilSFtEPS5qgiuKpN",
"created": 1010000007,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYXDEQaroqDjsVJrJdmDK",
+ "id": "seti_1OOgtyDEQaroqDjssX5ENHkr",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYXDEQaroqDjsm1s6QNV7",
+ "latest_attempt": "setatt_1OOgtyDEQaroqDjsHgtZArRK",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYXDEQaroqDjssam6O1GA",
+ "payment_method": "pm_1OOgtyDEQaroqDjslyOOaDfW",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.1.json
index 80ccb8b3b99..f6aa0f5b61e 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.1.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000002,
+ "created": 1010000001,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01fC8toKjk6clcMqKpwDs8AlkAOdNWqunRv9DsWIFlBQ4WIF",
+ "id": "cs_test_NORMALIZED01Rm6R1hTqqAhGcd4VFKApIo6fVd3cR6IRZw6hA50baaMjWD",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlY3DEQaroqDjs7JBrt0fk",
+ "setup_intent": "seti_1OOgtRDEQaroqDjsGM40E1tL",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01fC8toKjk6clcMqKpwDs8AlkAOdNWqunRv9DsWIFlBQ4WIF#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01Rm6R1hTqqAhGcd4VFKApIo6fVd3cR6IRZw6hA50baaMjWD#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.2.json
index 287fc9a067c..14d71e80f15 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.2.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.2.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED027lpniKLAH9W3NLAvf6uTFGdkAVGAPu8EXEeXRDgJhyznJd",
+ "id": "cs_test_NORMALIZED02ADyiROFqD8zEaBcyLAvMoFLm0Isklw3uBR0OC2PBAO0EuC",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlY6DEQaroqDjsXk7cflCF",
+ "setup_intent": "seti_1OOgtVDEQaroqDjsST1yhcsy",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED027lpniKLAH9W3NLAvf6uTFGdkAVGAPu8EXEeXRDgJhyznJd#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02ADyiROFqD8zEaBcyLAvMoFLm0Isklw3uBR0OC2PBAO0EuC#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.3.json
index 827e2b27f25..8aeeaabb6a1 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.3.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.3.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000012,
+ "created": 1010000009,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED03DdVOSmE9kB5ETkSlBTA35UIWeDeLP5AeKjQvfiDP70kwdP",
+ "id": "cs_test_NORMALIZED03uezfunYAynMrygbDl4o2NjwajRqlg5C9NGs1H6nfWSk8Xy",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYADEQaroqDjscphkqiJV",
+ "setup_intent": "seti_1OOgtaDEQaroqDjsRsiCYPOy",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03DdVOSmE9kB5ETkSlBTA35UIWeDeLP5AeKjQvfiDP70kwdP#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03uezfunYAynMrygbDl4o2NjwajRqlg5C9NGs1H6nfWSk8Xy#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.4.json
index 5c3e7ce82c9..d1c47a27f1f 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.4.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.4.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000013,
+ "created": 1010000010,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED04vslCKsQ5lso6yI9B37WAsx5mAuRVgnyJGVfDvOL1rsbful",
+ "id": "cs_test_NORMALIZED04NmEOOCa6m45XMvw5LG2EwNO2ZzVJsXY4lLVqO6wY5rMF66",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYEDEQaroqDjsNHhagenC",
+ "setup_intent": "seti_1OOgteDEQaroqDjsZiAjnkY2",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED04vslCKsQ5lso6yI9B37WAsx5mAuRVgnyJGVfDvOL1rsbful#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED04NmEOOCa6m45XMvw5LG2EwNO2ZzVJsXY4lLVqO6wY5rMF66#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.5.json
index 7ab72647b80..2151bb8ac6f 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.5.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.5.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000003,
+ "created": 1010000012,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED05NfEK86zBzL4RwyN7GW7Dnp6Rdc4XHx7mS8XeRejnSOGPHb",
+ "id": "cs_test_NORMALIZED055LejcjJJxruZl0lao1pFkDOCKoF8e7A7gCq6QuOGtRyP3Z",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYIDEQaroqDjs82kZhmm4",
+ "setup_intent": "seti_1OOgthDEQaroqDjsLkkb2rtv",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED05NfEK86zBzL4RwyN7GW7Dnp6Rdc4XHx7mS8XeRejnSOGPHb#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED055LejcjJJxruZl0lao1pFkDOCKoF8e7A7gCq6QuOGtRyP3Z#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.6.json
index 8b8fad7be7f..f02574b4d4c 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.6.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.6.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000014,
+ "created": 1010000013,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED06Eq22upxX3LWuGPmz2OoBkHeJMAeakxpSn0oidNBMiu9qwo",
+ "id": "cs_test_NORMALIZED06kYbbVvFbnruzuJSeipSdqXVau2FeXQG9ewzjR6mRv6XGqK",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYLDEQaroqDjsOEBobvSx",
+ "setup_intent": "seti_1OOgtlDEQaroqDjsKWnh2fG8",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED06Eq22upxX3LWuGPmz2OoBkHeJMAeakxpSn0oidNBMiu9qwo#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED06kYbbVvFbnruzuJSeipSdqXVau2FeXQG9ewzjR6mRv6XGqK#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.7.json
index f3e931829ca..6761955418b 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.7.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.7.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000015,
+ "created": 1010000014,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED07F1Im0gs749qsjYiIQbgq7VdIrGdRw2ek8W1UlqjUSOJpMC",
+ "id": "cs_test_NORMALIZED07mtWwbFFj8yfrtR9hq9oz4cJGZVZlxfB6lb8gVqvE2aBcfK",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYPDEQaroqDjsT0XBMIAO",
+ "setup_intent": "seti_1OOgtpDEQaroqDjs8FQAXIcB",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED07F1Im0gs749qsjYiIQbgq7VdIrGdRw2ek8W1UlqjUSOJpMC#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED07mtWwbFFj8yfrtR9hq9oz4cJGZVZlxfB6lb8gVqvE2aBcfK#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.8.json
index 7fa95ae1b55..f116375f0f9 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.8.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.8.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000016,
+ "created": 1010000015,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED08cBbEqGvSWc9w6eMg6ktWrp5DXuyYagPTXmMGA7yClWPiqG",
+ "id": "cs_test_NORMALIZED085whgOoxkVrDi4XfxkAfNryjSQuVbv1PZ6vV5nyXE8N5qxQ",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYTDEQaroqDjsxOeDKR0W",
+ "setup_intent": "seti_1OOgttDEQaroqDjsqTnn8UEO",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED08cBbEqGvSWc9w6eMg6ktWrp5DXuyYagPTXmMGA7yClWPiqG#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED085whgOoxkVrDi4XfxkAfNryjSQuVbv1PZ6vV5nyXE8N5qxQ#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.9.json
index a3158092cd4..fdee9aaee3a 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.9.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.9.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000007,
+ "created": 1010000016,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED09EopEldaCDeSSApSal167Kadq5CUL2UBzdARmb2Ifc9052I",
+ "id": "cs_test_NORMALIZED097jir1ZgoJQMBszHJ9vT9zpjkJ0LdppmrT4By8dXFC25Br1",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYXDEQaroqDjsasyuVqSO",
+ "setup_intent": "seti_1OOgtxDEQaroqDjsEV1gyM4q",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED09EopEldaCDeSSApSal167Kadq5CUL2UBzdARmb2Ifc9052I#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED097jir1ZgoJQMBszHJ9vT9zpjkJ0LdppmrT4By8dXFC25Br1#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.1.json
index ca9d10a8a0f..b48121f324b 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.1.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000002,
+ "created": 1010000001,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01fC8toKjk6clcMqKpwDs8AlkAOdNWqunRv9DsWIFlBQ4WIF",
+ "id": "cs_test_NORMALIZED01Rm6R1hTqqAhGcd4VFKApIo6fVd3cR6IRZw6hA50baaMjWD",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlY3DEQaroqDjs7JBrt0fk",
+ "setup_intent": "seti_1OOgtRDEQaroqDjsGM40E1tL",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01fC8toKjk6clcMqKpwDs8AlkAOdNWqunRv9DsWIFlBQ4WIF#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01Rm6R1hTqqAhGcd4VFKApIo6fVd3cR6IRZw6hA50baaMjWD#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.2.json
index e9c6a29197e..b634d65b01f 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.2.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.2.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED027lpniKLAH9W3NLAvf6uTFGdkAVGAPu8EXEeXRDgJhyznJd",
+ "id": "cs_test_NORMALIZED02ADyiROFqD8zEaBcyLAvMoFLm0Isklw3uBR0OC2PBAO0EuC",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlY6DEQaroqDjsXk7cflCF",
+ "setup_intent": "seti_1OOgtVDEQaroqDjsST1yhcsy",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED027lpniKLAH9W3NLAvf6uTFGdkAVGAPu8EXEeXRDgJhyznJd#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02ADyiROFqD8zEaBcyLAvMoFLm0Isklw3uBR0OC2PBAO0EuC#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.3.json
index bd897dd933c..3961e73e010 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.3.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.3.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000012,
+ "created": 1010000009,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED03DdVOSmE9kB5ETkSlBTA35UIWeDeLP5AeKjQvfiDP70kwdP",
+ "id": "cs_test_NORMALIZED03uezfunYAynMrygbDl4o2NjwajRqlg5C9NGs1H6nfWSk8Xy",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYADEQaroqDjscphkqiJV",
+ "setup_intent": "seti_1OOgtaDEQaroqDjsRsiCYPOy",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03DdVOSmE9kB5ETkSlBTA35UIWeDeLP5AeKjQvfiDP70kwdP#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03uezfunYAynMrygbDl4o2NjwajRqlg5C9NGs1H6nfWSk8Xy#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.4.json
index 3e5064dca9f..6114e9663fa 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.4.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.4.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000013,
+ "created": 1010000010,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED04vslCKsQ5lso6yI9B37WAsx5mAuRVgnyJGVfDvOL1rsbful",
+ "id": "cs_test_NORMALIZED04NmEOOCa6m45XMvw5LG2EwNO2ZzVJsXY4lLVqO6wY5rMF66",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYEDEQaroqDjsNHhagenC",
+ "setup_intent": "seti_1OOgteDEQaroqDjsZiAjnkY2",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED04vslCKsQ5lso6yI9B37WAsx5mAuRVgnyJGVfDvOL1rsbful#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED04NmEOOCa6m45XMvw5LG2EwNO2ZzVJsXY4lLVqO6wY5rMF66#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.5.json
index 4fcdd052ab4..7b65b9ead16 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.5.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.5.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000003,
+ "created": 1010000012,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED05NfEK86zBzL4RwyN7GW7Dnp6Rdc4XHx7mS8XeRejnSOGPHb",
+ "id": "cs_test_NORMALIZED055LejcjJJxruZl0lao1pFkDOCKoF8e7A7gCq6QuOGtRyP3Z",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYIDEQaroqDjs82kZhmm4",
+ "setup_intent": "seti_1OOgthDEQaroqDjsLkkb2rtv",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED05NfEK86zBzL4RwyN7GW7Dnp6Rdc4XHx7mS8XeRejnSOGPHb#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED055LejcjJJxruZl0lao1pFkDOCKoF8e7A7gCq6QuOGtRyP3Z#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.6.json
index 89dfc82f3a3..6b89e3c2ad4 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.6.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.6.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000014,
+ "created": 1010000013,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED06Eq22upxX3LWuGPmz2OoBkHeJMAeakxpSn0oidNBMiu9qwo",
+ "id": "cs_test_NORMALIZED06kYbbVvFbnruzuJSeipSdqXVau2FeXQG9ewzjR6mRv6XGqK",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYLDEQaroqDjsOEBobvSx",
+ "setup_intent": "seti_1OOgtlDEQaroqDjsKWnh2fG8",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED06Eq22upxX3LWuGPmz2OoBkHeJMAeakxpSn0oidNBMiu9qwo#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED06kYbbVvFbnruzuJSeipSdqXVau2FeXQG9ewzjR6mRv6XGqK#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.7.json
index 1ebbb32ae3c..5f4b606c453 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.7.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.7.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000015,
+ "created": 1010000014,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED07F1Im0gs749qsjYiIQbgq7VdIrGdRw2ek8W1UlqjUSOJpMC",
+ "id": "cs_test_NORMALIZED07mtWwbFFj8yfrtR9hq9oz4cJGZVZlxfB6lb8gVqvE2aBcfK",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYPDEQaroqDjsT0XBMIAO",
+ "setup_intent": "seti_1OOgtpDEQaroqDjs8FQAXIcB",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED07F1Im0gs749qsjYiIQbgq7VdIrGdRw2ek8W1UlqjUSOJpMC#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED07mtWwbFFj8yfrtR9hq9oz4cJGZVZlxfB6lb8gVqvE2aBcfK#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.8.json
index 226a6c3345a..90a12c1f9ed 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.8.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.8.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000016,
+ "created": 1010000015,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED08cBbEqGvSWc9w6eMg6ktWrp5DXuyYagPTXmMGA7yClWPiqG",
+ "id": "cs_test_NORMALIZED085whgOoxkVrDi4XfxkAfNryjSQuVbv1PZ6vV5nyXE8N5qxQ",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYTDEQaroqDjsxOeDKR0W",
+ "setup_intent": "seti_1OOgttDEQaroqDjsqTnn8UEO",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED08cBbEqGvSWc9w6eMg6ktWrp5DXuyYagPTXmMGA7yClWPiqG#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED085whgOoxkVrDi4XfxkAfNryjSQuVbv1PZ6vV5nyXE8N5qxQ#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.9.json
index 960b6635b25..39c5fe39b60 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.9.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.9.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000007,
+ "created": 1010000016,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED09EopEldaCDeSSApSal167Kadq5CUL2UBzdARmb2Ifc9052I",
+ "id": "cs_test_NORMALIZED097jir1ZgoJQMBszHJ9vT9zpjkJ0LdppmrT4By8dXFC25Br1",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYXDEQaroqDjsasyuVqSO",
+ "setup_intent": "seti_1OOgtxDEQaroqDjsEV1gyM4q",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED09EopEldaCDeSSApSal167Kadq5CUL2UBzdARmb2Ifc9052I#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED097jir1ZgoJQMBszHJ9vT9zpjkJ0LdppmrT4By8dXFC25Br1#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.modify.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.modify.1.json
index ae408bfb7a7..061371872e1 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "default_payment_method": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"footer": null,
"rendering_options": null
},
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.json
index 014bb2d2214..10ceca98bc3 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "id": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 014bb2d2214..10ceca98bc3 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "id": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 014bb2d2214..10ceca98bc3 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "id": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 014bb2d2214..10ceca98bc3 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "id": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6ee77cb0e3d..390ef022062 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "id": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.1.json
index 36b5768d631..6915eb87da2 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "default_payment_method": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlYeDEQaroqDjsbovUrvAJ",
+ "id": "evt_1OOgu5DEQaroqDjsu05APoUy",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "16c4e76a-b42f-4a7a-b85e-909436f663ec"
+ "idempotency_key": "48d9fa46-bdab-4783-b9d9-5c746c5d9ccc"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json
index 208f880bf42..0dd096f5127 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
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "payment_method": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -126,7 +126,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJf7qqsGMgbiQBc5a8U6LBYuVFCKupiJv3kQfNP-aWwcglskg3ZPMzXTfrd628_xUEmIbRxh6_5Z8Gkh",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKISTgawGMgZs7YxTobc6LBb_uON4VFtJJvOuZa2-x99J97wM2l22JtmlnDGt34caPUyIgaeYTKjsnNXU",
"refunded": false,
"refunds": {
"data": [],
@@ -151,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_lPtBm9Fq4P50TTE425LSOE6t6",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_Gxs40MGPhgJfzXnP6jagA4FYg",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -179,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "payment_method": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlYgDEQaroqDjs0DDp03Lk",
+ "id": "evt_3OOgu7DEQaroqDjs1b8HOFZa",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "47d13618-c555-4264-8b5f-a556378a59a7"
+ "idempotency_key": "8394de7a-09da-4c2d-8d10-d84d48d59586"
},
"type": "payment_intent.succeeded"
},
@@ -283,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "payment_method": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -326,7 +326,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJf7qqsGMgb-0s6WQHo6LBbrRoHgTdAGEIQhEJbfkXI_wY281fm3fr4PRUwgCfbq1gj8ihAXKHMfuH9Z",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKISTgawGMgYFpvmsONc6LBZ8E0JGPJSgJno2Z6-y88OlDoRQ0_RZj-tGJa-yjsiTcq-ojF3ii3xBP2r8",
"refunded": false,
"refunds": {
"data": [],
@@ -346,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlYgDEQaroqDjs03lav5iM",
+ "id": "evt_3OOgu7DEQaroqDjs1WEJo4c6",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "47d13618-c555-4264-8b5f-a556378a59a7"
+ "idempotency_key": "8394de7a-09da-4c2d-8d10-d84d48d59586"
},
"type": "charge.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json
index 5488f305e71..e7eced0510d 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTY50200OdKtGhF8?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4NXlFOUdjMFRiMkVjM0JzQ0lIUnRveTdkRUN4LDkzNDQ3MDQ20200XC5mzZI0?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTY50200OdKtGhF8/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4NXlFOUdjMFRiMkVjM0JzQ0lIUnRveTdkRUN4LDkzNDQ3MDQ20200XC5mzZI0/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1OIlYjDEQaroqDjsWh7YgsgD",
+ "id": "evt_1OOguBDEQaroqDjscEuOvVhy",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "b3b87a1a-a3f1-47d4-ab2c-c9fa3c7fc7ea"
+ "idempotency_key": "26eab306-b110-473b-a819-3bd0f4c17035"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlYjDEQaroqDjs682MdV5W",
+ "id": "evt_1OOguADEQaroqDjsx3ErsD6H",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "3d37efdb-1b25-48d7-a3cd-753a5319afaf"
+ "idempotency_key": "fe257437-43b6-444f-8dde-32ba6e99cdca"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OIlYiDEQaroqDjsLpmipImC",
+ "id": "evt_1OOgu9DEQaroqDjsE3mZI0oU",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "1332a22f-e14c-4cb3-8c1a-de3348683c97"
+ "idempotency_key": "fcb68544-aa09-43da-8bd6-5414440707a1"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OIlYiDEQaroqDjsf6YAJN3b",
+ "id": "evt_1OOgu9DEQaroqDjsliGXMSGI",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "47031612-0221-4fa1-888f-6463e556fe30"
+ "idempotency_key": "87973d68-055e-48ad-90a7-1941381d738c"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "default_payment_method": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlYiDEQaroqDjsqbJCOUbT",
+ "id": "evt_1OOgu9DEQaroqDjs6rYsHM7n",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "47031612-0221-4fa1-888f-6463e556fe30"
+ "idempotency_key": "87973d68-055e-48ad-90a7-1941381d738c"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.4.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.4.json
index f5a2ca6913d..853d6885f41 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.4.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.4.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTcw0200fJhsoiPH?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4NXlFOUdjMFRiMkVjM0JzQ0lIUnRveTdkRUN4LDkzNDQ3MDQ30200mWbd0AQo?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTcw0200fJhsoiPH/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4NXlFOUdjMFRiMkVjM0JzQ0lIUnRveTdkRUN4LDkzNDQ3MDQ30200mWbd0AQo/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlYkDEQaroqDjskos3h0sR",
+ "id": "evt_1OOguBDEQaroqDjsmU5dEzwT",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "b3b87a1a-a3f1-47d4-ab2c-c9fa3c7fc7ea"
+ "idempotency_key": "26eab306-b110-473b-a819-3bd0f4c17035"
},
"type": "invoice.paid"
},
@@ -269,9 +269,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTcw0200fJhsoiPH?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4NXlFOUdjMFRiMkVjM0JzQ0lIUnRveTdkRUN4LDkzNDQ3MDQ30200mWbd0AQo?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTcw0200fJhsoiPH/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4NXlFOUdjMFRiMkVjM0JzQ0lIUnRveTdkRUN4LDkzNDQ3MDQ30200mWbd0AQo/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -436,13 +436,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlYkDEQaroqDjsMhATYN7m",
+ "id": "evt_1OOguBDEQaroqDjsWsK4LbFz",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "b3b87a1a-a3f1-47d4-ab2c-c9fa3c7fc7ea"
+ "idempotency_key": "26eab306-b110-473b-a819-3bd0f4c17035"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.5.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.5.json
index e6f526cea82..b451ef2f58c 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.5.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTcw0200fJhsoiPH?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4NXlFOUdjMFRiMkVjM0JzQ0lIUnRveTdkRUN4LDkzNDQ3MDQ30200mWbd0AQo?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTcw0200fJhsoiPH/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4NXlFOUdjMFRiMkVjM0JzQ0lIUnRveTdkRUN4LDkzNDQ3MDQ30200mWbd0AQo/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlYkDEQaroqDjszXd8ZteW",
+ "id": "evt_1OOguBDEQaroqDjsKZsEnFuw",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "b3b87a1a-a3f1-47d4-ab2c-c9fa3c7fc7ea"
+ "idempotency_key": "26eab306-b110-473b-a819-3bd0f4c17035"
},
"type": "invoice.payment_succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.finalize_invoice.1.json
index 3630d80bf3c..dc57da43918 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTY50200OdKtGhF8?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4NXlFOUdjMFRiMkVjM0JzQ0lIUnRveTdkRUN4LDkzNDQ3MDQ20200XC5mzZI0?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTY50200OdKtGhF8/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4NXlFOUdjMFRiMkVjM0JzQ0lIUnRveTdkRUN4LDkzNDQ3MDQ20200XC5mzZI0/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--PaymentIntent.create.1.json
index 3933fe0f772..5f24b936943 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--PaymentIntent.create.1.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "payment_method": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -120,7 +120,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJf7qqsGMgZon60y6Go6LBYP3psdkk3c3LqFeed3oQoe1slzgJ_34uLbPRQF3584QRPm0pWhUub4ZLOY",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKISTgawGMgZvCzOusl46LBZpXO9IXKZzI4APT0eDYvWkjvVxl_pdxEbSZuWL-nH7jGi25jhSm_anP9Hp",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_lPtBm9Fq4P50TTE425LSOE6t6",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_Gxs40MGPhgJfzXnP6jagA4FYg",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -173,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "payment_method": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.create.1.json
index 9172056ad95..f935a02191c 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYcDEQaroqDjswKgMVMNg_secret_P6zX200dM0ToyOau16KiLRZIVTSzhhX",
+ "client_secret": "seti_1OOgu3DEQaroqDjswMXtQvRA_secret_PD78b7gyegynHkmUoo8bmVQv88Vf6bk",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYcDEQaroqDjswKgMVMNg",
+ "id": "seti_1OOgu3DEQaroqDjswMXtQvRA",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYcDEQaroqDjsly1RVq0m",
+ "latest_attempt": "setatt_1OOgu3DEQaroqDjst0YC5C8w",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "payment_method": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.list.1.json
index e7750432e9d..e5c2790f52d 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYcDEQaroqDjsD1mM0vsH_secret_P6zXgCBhxHQemG2cqgySOfsCnimYU4W",
+ "client_secret": "seti_1OOgu2DEQaroqDjs0aNFC95p_secret_PD78OIdF2mQRiP9GL8gGAbZCqxtVmcx",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYcDEQaroqDjsD1mM0vsH",
+ "id": "seti_1OOgu2DEQaroqDjs0aNFC95p",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.retrieve.1.json
index 9172056ad95..f935a02191c 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlYcDEQaroqDjswKgMVMNg_secret_P6zX200dM0ToyOau16KiLRZIVTSzhhX",
+ "client_secret": "seti_1OOgu3DEQaroqDjswMXtQvRA_secret_PD78b7gyegynHkmUoo8bmVQv88Vf6bk",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlYcDEQaroqDjswKgMVMNg",
+ "id": "seti_1OOgu3DEQaroqDjswMXtQvRA",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlYcDEQaroqDjsly1RVq0m",
+ "latest_attempt": "setatt_1OOgu3DEQaroqDjst0YC5C8w",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
+ "payment_method": "pm_1OOgu3DEQaroqDjsqK4wQbku",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.create.1.json
index 1fdeed88cec..249e5154eaf 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED0252VTeqfSfhQEjGBWtpuvm0PdO0duTGzHMImHbzOECbRr8C",
+ "id": "cs_test_NORMALIZED025gnMSbeUVFVogbGqulLZaQBTB3GWoyKMTxoqkfgA39PkYh",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYcDEQaroqDjsD1mM0vsH",
+ "setup_intent": "seti_1OOgu2DEQaroqDjs0aNFC95p",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED0252VTeqfSfhQEjGBWtpuvm0PdO0duTGzHMImHbzOECbRr8C#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED025gnMSbeUVFVogbGqulLZaQBTB3GWoyKMTxoqkfgA39PkYh#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.list.1.json
index ccfc8970a8c..d93358e01d5 100644
--- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED0252VTeqfSfhQEjGBWtpuvm0PdO0duTGzHMImHbzOECbRr8C",
+ "id": "cs_test_NORMALIZED025gnMSbeUVFVogbGqulLZaQBTB3GWoyKMTxoqkfgA39PkYh",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlYcDEQaroqDjsD1mM0vsH",
+ "setup_intent": "seti_1OOgu2DEQaroqDjs0aNFC95p",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED0252VTeqfSfhQEjGBWtpuvm0PdO0duTGzHMImHbzOECbRr8C#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED025gnMSbeUVFVogbGqulLZaQBTB3GWoyKMTxoqkfgA39PkYh#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Customer.create.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Customer.create.1.json
index e7f319bab08..593a07ed0c8 100644
--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Customer.create.1.json
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1701455052,
+ "created": 1000000000,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -9,8 +9,8 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P6p16TWPgvBfKa",
- "invoice_prefix": "E0DA85A9",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
@@ -19,7 +19,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json
index ab067c98a6e..db65bcd88f6 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
@@ -2,52 +2,176 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1701448145,
+ "created": 1000000000,
"data": {
"object": {
+ "account_country": "US",
+ "account_name": "Kandra Labs, Inc.",
+ "account_tax_ids": null,
+ "amount_due": 24000,
+ "amount_paid": 0,
+ "amount_remaining": 24000,
+ "amount_shipping": 0,
"application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "seti_1OIZaPDEQaroqDjsbpgCPI6B_secret_P6nAgEWevQpumuMMctmE3tiaF5mfzca",
- "created": 1701448145,
- "customer": "cus_P6nAoyB9OpdnuO",
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": true,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0002",
+ "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,
- "flow_directions": null,
- "id": "seti_1OIZaPDEQaroqDjsbpgCPI6B",
- "last_setup_error": null,
- "latest_attempt": 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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDVWdGdUVoTFpUQUxhUDVJaVBSN21hQ2gwTFlKLDkzNDQ3MzA30200hjPX3dtu?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDVWdGdUVoTFpUQUxhUDVJaVBSN21hQ2gwTFlKLDkzNDQ3MzA30200hjPX3dtu/pdf?s=ap",
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 24000,
+ "amount_excluding_tax": 24000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard - renewal",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "period": {
+ "end": 1388631845,
+ "start": 1357095845
+ },
+ "plan": null,
+ "price": {
+ "active": false,
+ "billing_scheme": "per_unit",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_unit_amount": null,
+ "id": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": 4000,
+ "unit_amount_decimal": "4000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 6,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "4000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
"livemode": false,
- "mandate": null,
"metadata": {},
- "next_action": null,
- "object": "setup_intent",
+ "next_payment_attempt": 1000000000,
+ "number": "NORMALI-0001",
+ "object": "invoice",
"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"
+ "paid": false,
+ "paid_out_of_band": false,
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "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"
}
},
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "requires_payment_method",
- "usage": "off_session"
+ "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": 24000,
+ "subtotal_excluding_tax": 24000,
+ "tax": null,
+ "test_clock": null,
+ "total": 24000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 24000,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
}
},
- "id": "evt_1OIZaPDEQaroqDjsbvtd1gXf",
+ "id": "evt_1OOgyNDEQaroqDjszgjAlMHU",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_SB8itx676JF4jd",
- "idempotency_key": "476d187f-0197-405b-8d91-4850118d974a"
+ "id": "req_NORMALIZED0001",
+ "idempotency_key": "ad9d18e5-83e7-4882-af0c-dff8c86207c7"
},
- "type": "setup_intent.created"
+ "type": "invoice.finalized"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json
index 4d6a5820b03..12f7fe2ce30 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
@@ -18,10 +18,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1701455054,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P6p16TWPgvBfKa",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -35,13 +35,13 @@
"description": null,
"discount": null,
"discounts": [],
- "due_date": 1704047054,
+ "due_date": 1000000000,
"effective_at": null,
"ending_balance": null,
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "in_1OIbNqDEQaroqDjsACG2UOX8",
+ "id": "in_NORMALIZED00000000000002",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OIbNpDEQaroqDjsR3NMyasf",
- "invoice_item": "ii_1OIbNpDEQaroqDjsbKt2EXl8",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,16 +68,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -101,7 +101,7 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_1OIbNqDEQaroqDjsACG2UOX8/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
@@ -117,8 +117,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1701455054,
- "period_start": 1701455054,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": 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.json
index 9d23749da50..4b64fa13a22 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
@@ -18,10 +18,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1701455054,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P6p16TWPgvBfKa",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -35,14 +35,14 @@
"description": null,
"discount": null,
"discounts": [],
- "due_date": 1704047054,
- "effective_at": 1701455056,
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QNnAxcW1aNm9ZOHNVdjcwdFNWUFFhNkpseE9OcDBVLDkxOTk1ODU30200gStRTLW6?s=ap",
- "id": "in_1OIbNqDEQaroqDjsACG2UOX8",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QNnAxcW1aNm9ZOHNVdjcwdFNWUFFhNkpseE9OcDBVLDkxOTk1ODU30200gStRTLW6/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRzl1UFVSWmU1RkJPM3JUaWNYcnZSSkdYQktXLDkzNDQ3MzA50200DBPQE1bG?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRzl1UFVSWmU1RkJPM3JUaWNYcnZSSkdYQktXLDkzNDQ3MzA50200DBPQE1bG/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OIbNpDEQaroqDjsR3NMyasf",
- "invoice_item": "ii_1OIbNpDEQaroqDjsbKt2EXl8",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,16 +68,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -101,24 +101,24 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_1OIbNqDEQaroqDjsACG2UOX8/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "E0DA85A9-0001",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "pi_3OIbNsDEQaroqDjs0Clfps2Q",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1701455054,
- "period_start": 1701455054,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -136,7 +136,7 @@
"statement_descriptor": "Zulip Cloud Standard",
"status": "open",
"status_transitions": {
- "finalized_at": 1701455056,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
"paid_at": null,
"voided_at": null
@@ -154,5 +154,5 @@
"total_excluding_tax": 984000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1701455055
+ "webhooks_delivered_at": 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.json
index a2965c077d7..85b3bc21fb4 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
@@ -20,10 +20,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1701455054,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P6p16TWPgvBfKa",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -37,14 +37,14 @@
"description": null,
"discount": null,
"discounts": [],
- "due_date": 1704047054,
- "effective_at": 1701455056,
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QNnAxcW1aNm9ZOHNVdjcwdFNWUFFhNkpseE9OcDBVLDkxOTk1ODYx0200vVpneK0i?s=ap",
- "id": "in_1OIbNqDEQaroqDjsACG2UOX8",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QNnAxcW1aNm9ZOHNVdjcwdFNWUFFhNkpseE9OcDBVLDkxOTk1ODYx0200vVpneK0i/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRzl1UFVSWmU1RkJPM3JUaWNYcnZSSkdYQktXLDkzNDQ3MzEw0200bRoqDnu9?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRzl1UFVSWmU1RkJPM3JUaWNYcnZSSkdYQktXLDkzNDQ3MzEw0200bRoqDnu9/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -57,8 +57,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OIbNpDEQaroqDjsR3NMyasf",
- "invoice_item": "ii_1OIbNpDEQaroqDjsbKt2EXl8",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -70,16 +70,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -103,24 +103,24 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_1OIbNqDEQaroqDjsACG2UOX8/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "E0DA85A9-0001",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "pi_3OIbNsDEQaroqDjs0Clfps2Q",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1701455054,
- "period_start": 1701455054,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -138,7 +138,7 @@
"statement_descriptor": "Zulip Cloud Standard",
"status": "open",
"status_transitions": {
- "finalized_at": 1701455056,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
"paid_at": null,
"voided_at": null
@@ -156,7 +156,7 @@
"total_excluding_tax": 984000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1701455055
+ "webhooks_delivered_at": null
}
],
"has_more": false,
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.json
index 8e162a1fb6b..c4e14ca2fa9 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
@@ -18,10 +18,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1701455054,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P6p16TWPgvBfKa",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -35,14 +35,14 @@
"description": null,
"discount": null,
"discounts": [],
- "due_date": 1704047054,
- "effective_at": 1701455056,
+ "due_date": 1000000000,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QNnAxcW1aNm9ZOHNVdjcwdFNWUFFhNkpseE9OcDBVLDkxOTk1ODYx0200vVpneK0i?s=ap",
- "id": "in_1OIbNqDEQaroqDjsACG2UOX8",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QNnAxcW1aNm9ZOHNVdjcwdFNWUFFhNkpseE9OcDBVLDkxOTk1ODYx0200vVpneK0i/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRzl1UFVSWmU1RkJPM3JUaWNYcnZSSkdYQktXLDkzNDQ3MzEx0200EOo1xf7B?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRzl1UFVSWmU1RkJPM3JUaWNYcnZSSkdYQktXLDkzNDQ3MzEx0200EOo1xf7B/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OIbNpDEQaroqDjsR3NMyasf",
- "invoice_item": "ii_1OIbNpDEQaroqDjsbKt2EXl8",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,16 +68,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -101,24 +101,24 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_1OIbNqDEQaroqDjsACG2UOX8/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "E0DA85A9-0001",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "pi_3OIbNsDEQaroqDjs0Clfps2Q",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1701455054,
- "period_start": 1701455054,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -136,10 +136,10 @@
"statement_descriptor": "Zulip Cloud Standard",
"status": "void",
"status_transitions": {
- "finalized_at": 1701455056,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
"paid_at": null,
- "voided_at": 1701455061
+ "voided_at": 1000000000
},
"subscription": null,
"subscription_details": {
@@ -154,5 +154,5 @@
"total_excluding_tax": 984000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1701455055
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--InvoiceItem.create.1.json
index 5f7fc85cb8f..f9763e6d866 100644
--- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--InvoiceItem.create.1.json
@@ -1,12 +1,12 @@
{
"amount": 984000,
"currency": "usd",
- "customer": "cus_P6p16TWPgvBfKa",
- "date": 1701455053,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Zulip Cloud Standard",
"discountable": false,
"discounts": [],
- "id": "ii_1OIbNpDEQaroqDjsbKt2EXl8",
+ "id": "ii_NORMALIZED00000000000002",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -19,16 +19,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": 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.json
index d51abd4e9ec..77801956d8f 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zS1BrN3RuTEZpYm50bDJ6c3pwMU9TdmdTWEk5LDkxOTg3ODM30200upxFIB1S?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4UzNzZk41blNHSm5YYTUxOEtiVDA4MDNoSktHLDkzNDQ3MDUy0200I14cvFGJ?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zS1BrN3RuTEZpYm50bDJ6c3pwMU9TdmdTWEk5LDkxOTg3ODM30200upxFIB1S/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4UzNzZk41blNHSm5YYTUxOEtiVDA4MDNoSktHLDkzNDQ3MDUy0200I14cvFGJ/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -154,5 +154,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.json
index 8dbf351f31d..cfb7e499e67 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zR0ludkFteWg2TGhESHlqRFk3QlBiOXB0UjRuLDkxOTg3ODQz0200HrCxNaZi?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4Y3RKekhxbmgxd0k2WVVJU3FTMmtnc0k3MUdHLDkzNDQ3MDU10200yXaWMvKf?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zR0ludkFteWg2TGhESHlqRFk3QlBiOXB0UjRuLDkxOTg3ODQz0200HrCxNaZi/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4Y3RKekhxbmgxd0k2WVVJU3FTMmtnc0k3MUdHLDkzNDQ3MDU10200yXaWMvKf/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json
index c2d252559a1..739b6c2b5e3 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zbmVJUWhldjM5ajJMY21wbWRqNUJ1ZFlmWE9OLDkxOTg3ODUy0200N7T1v5Ug?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4ZjB5ZUdmZ3VJWXBlWVZ5Y1lBNzM3SXdBYmVuLDkzNDQ3MDU30200nmzrpnRj?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zbmVJUWhldjM5ajJMY21wbWRqNUJ1ZFlmWE9OLDkxOTg3ODUy0200N7T1v5Ug/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4ZjB5ZUdmZ3VJWXBlWVZ5Y1lBNzM3SXdBYmVuLDkzNDQ3MDU30200nmzrpnRj/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -154,5 +154,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.4.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.4.json
index 9e700ad9af8..3b3b2ce4796 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zemtlY0VrY1lwQjV0MnVYejg3ejZGNnBLUVlrLDkxOTg3ODUz0200KokZjam1?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4RXpydmY3V1lqdEFjTGNZUU9sMk1OODVJNlM1LDkzNDQ3MDU50200F2LLhHyU?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zemtlY0VrY1lwQjV0MnVYejg3ejZGNnBLUVlrLDkxOTg3ODUz0200KokZjam1/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4RXpydmY3V1lqdEFjTGNZUU9sMk1OODVJNlM1LDkzNDQ3MDU50200F2LLhHyU/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index debe721aaaf..2b8eaa09717 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zVVdNMzhmUzNQODk3WGhuV09uVmh3bXNNbHhwLDkxOTg3ODU20200o2YvMshB?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4QndENktYWFd2SjZXZDZ6NmtDOFRWeWY5VnkwLDkzNDQ3MDYx0200HwPbeZ0M?s=ap",
"id": "in_NORMALIZED00000000000005",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zVVdNMzhmUzNQODk3WGhuV09uVmh3bXNNbHhwLDkxOTg3ODU20200o2YvMshB/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4QndENktYWFd2SjZXZDZ6NmtDOFRWeWY5VnkwLDkzNDQ3MDYx0200HwPbeZ0M/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -154,5 +154,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.6.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.6.json
index 3ac14d180e0..6ba6b8cf52c 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zNzN1WjB2TU4wcE00ZHdZT2pCQ0RUcm95a0FqLDkxOTg3ODU40200psOmU2aX?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4aDlWaFJzbW1Gakx4NzFrRk03a2tzYU1aR0hLLDkzNDQ3MDYz02008SFQOID9?s=ap",
"id": "in_NORMALIZED00000000000006",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zNzN1WjB2TU4wcE00ZHdZT2pCQ0RUcm95a0FqLDkxOTg3ODU40200psOmU2aX/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4aDlWaFJzbW1Gakx4NzFrRk03a2tzYU1aR0hLLDkzNDQ3MDYz02008SFQOID9/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index fa8b4cdd55f..bd84b5de3e5 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zSmVJOEFpYU9mTE5JMGFzN05tdDVncUpKeDdlLDkxOTg3ODcy0200wxjqltn4?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4OVE3RUU5a0xnUE92Y1o4alc3bFVCbUowdnF3LDkzNDQ3MDY30200SQ7twrIF?s=ap",
"id": "in_NORMALIZED00000000000007",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zSmVJOEFpYU9mTE5JMGFzN05tdDVncUpKeDdlLDkxOTg3ODcy0200wxjqltn4/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4OVE3RUU5a0xnUE92Y1o4alc3bFVCbUowdnF3LDkzNDQ3MDY30200SQ7twrIF/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -154,5 +154,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.8.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.json
index 286d2ff1008..19f69f939ac 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zeUxMc0psMGh6dXk2NVN3RHBJS1hCYjhyUTAxLDkxOTg3ODgw0200uZl3iVT0?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4c0FMOTJTbGRpcWVrZExuVXNLV05CazdNRDRGLDkzNDQ3MDY40200OGEpJ5zI?s=ap",
"id": "in_NORMALIZED00000000000008",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zeUxMc0psMGh6dXk2NVN3RHBJS1hCYjhyUTAxLDkxOTg3ODgw0200uZl3iVT0/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4c0FMOTJTbGRpcWVrZExuVXNLV05CazdNRDRGLDkzNDQ3MDY40200OGEpJ5zI/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -154,5 +154,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.list.10.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.10.json
index 5cb8cfb3b18..865c5427f29 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zNzN1WjB2TU4wcE00ZHdZT2pCQ0RUcm95a0FqLDkxOTg3OTA00200tPqNOv6G?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4aDlWaFJzbW1Gakx4NzFrRk03a2tzYU1aR0hLLDkzNDQ3MDcz0200aW1Lo7nB?s=ap",
"id": "in_NORMALIZED00000000000006",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zNzN1WjB2TU4wcE00ZHdZT2pCQ0RUcm95a0FqLDkxOTg3OTA00200tPqNOv6G/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4aDlWaFJzbW1Gakx4NzFrRk03a2tzYU1aR0hLLDkzNDQ3MDcz0200aW1Lo7nB/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zVVdNMzhmUzNQODk3WGhuV09uVmh3bXNNbHhwLDkxOTg3OTA00200Ch0wFaMl?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4QndENktYWFd2SjZXZDZ6NmtDOFRWeWY5VnkwLDkzNDQ3MDcz0200mNvd0IAi?s=ap",
"id": "in_NORMALIZED00000000000005",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zVVdNMzhmUzNQODk3WGhuV09uVmh3bXNNbHhwLDkxOTg3OTA00200Ch0wFaMl/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4QndENktYWFd2SjZXZDZ6NmtDOFRWeWY5VnkwLDkzNDQ3MDcz0200mNvd0IAi/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index c1d40a3a27f..fac5238946c 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zR0ludkFteWg2TGhESHlqRFk3QlBiOXB0UjRuLDkxOTg3OTA102009jNNTK4w?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4Y3RKekhxbmgxd0k2WVVJU3FTMmtnc0k3MUdHLDkzNDQ3MDc00200FoDzUDYL?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zR0ludkFteWg2TGhESHlqRFk3QlBiOXB0UjRuLDkxOTg3OTA102009jNNTK4w/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4Y3RKekhxbmgxd0k2WVVJU3FTMmtnc0k3MUdHLDkzNDQ3MDc00200FoDzUDYL/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index f400a99f55f..b7e6c741ff8 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zemtlY0VrY1lwQjV0MnVYejg3ejZGNnBLUVlrLDkxOTg3OTA10200cRJhKU91?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4RXpydmY3V1lqdEFjTGNZUU9sMk1OODVJNlM1LDkzNDQ3MDc00200ZjpB3h5L?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zemtlY0VrY1lwQjV0MnVYejg3ejZGNnBLUVlrLDkxOTg3OTA10200cRJhKU91/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4RXpydmY3V1lqdEFjTGNZUU9sMk1OODVJNlM1LDkzNDQ3MDc00200ZjpB3h5L/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.14.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.14.json
index 1b46fc43e5d..2fb7f842971 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zNzN1WjB2TU4wcE00ZHdZT2pCQ0RUcm95a0FqLDkxOTg3OTA20200OUEUwWbp?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4aDlWaFJzbW1Gakx4NzFrRk03a2tzYU1aR0hLLDkzNDQ3MDc10200B7hNSlSF?s=ap",
"id": "in_NORMALIZED00000000000006",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zNzN1WjB2TU4wcE00ZHdZT2pCQ0RUcm95a0FqLDkxOTg3OTA20200OUEUwWbp/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4aDlWaFJzbW1Gakx4NzFrRk03a2tzYU1aR0hLLDkzNDQ3MDc10200B7hNSlSF/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json
index a8a346ef31d..8e84ecb5043 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zeUxMc0psMGh6dXk2NVN3RHBJS1hCYjhyUTAxLDkxOTg3OTA2020053eydl1A?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4c0FMOTJTbGRpcWVrZExuVXNLV05CazdNRDRGLDkzNDQ3MDc10200Y8c54KOu?s=ap",
"id": "in_NORMALIZED00000000000008",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zeUxMc0psMGh6dXk2NVN3RHBJS1hCYjhyUTAxLDkxOTg3OTA2020053eydl1A/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4c0FMOTJTbGRpcWVrZExuVXNLV05CazdNRDRGLDkzNDQ3MDc10200Y8c54KOu/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zSmVJOEFpYU9mTE5JMGFzN05tdDVncUpKeDdlLDkxOTg3OTA20200BqkV9DLT?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4OVE3RUU5a0xnUE92Y1o4alc3bFVCbUowdnF3LDkzNDQ3MDc10200NrE36KxU?s=ap",
"id": "in_NORMALIZED00000000000007",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zSmVJOEFpYU9mTE5JMGFzN05tdDVncUpKeDdlLDkxOTg3OTA20200BqkV9DLT/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4OVE3RUU5a0xnUE92Y1o4alc3bFVCbUowdnF3LDkzNDQ3MDc10200NrE36KxU/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index adee0b0a4eb..307eb86172e 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zS1BrN3RuTEZpYm50bDJ6c3pwMU9TdmdTWEk5LDkxOTg3ODgz0200R2ilEUVW?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4UzNzZk41blNHSm5YYTUxOEtiVDA4MDNoSktHLDkzNDQ3MDY50200FuSpnnGH?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zS1BrN3RuTEZpYm50bDJ6c3pwMU9TdmdTWEk5LDkxOTg3ODgz0200R2ilEUVW/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4UzNzZk41blNHSm5YYTUxOEtiVDA4MDNoSktHLDkzNDQ3MDY50200FuSpnnGH/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index adee0b0a4eb..307eb86172e 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zS1BrN3RuTEZpYm50bDJ6c3pwMU9TdmdTWEk5LDkxOTg3ODgz0200R2ilEUVW?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4UzNzZk41blNHSm5YYTUxOEtiVDA4MDNoSktHLDkzNDQ3MDY50200FuSpnnGH?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zS1BrN3RuTEZpYm50bDJ6c3pwMU9TdmdTWEk5LDkxOTg3ODgz0200R2ilEUVW/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4UzNzZk41blNHSm5YYTUxOEtiVDA4MDNoSktHLDkzNDQ3MDY50200FuSpnnGH/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index 98107fef849..9cd39bb9136 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zR0ludkFteWg2TGhESHlqRFk3QlBiOXB0UjRuLDkxOTg3ODk202004ttFZRjb?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4Y3RKekhxbmgxd0k2WVVJU3FTMmtnc0k3MUdHLDkzNDQ3MDcx020072h8axTM?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zR0ludkFteWg2TGhESHlqRFk3QlBiOXB0UjRuLDkxOTg3ODk202004ttFZRjb/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4Y3RKekhxbmgxd0k2WVVJU3FTMmtnc0k3MUdHLDkzNDQ3MDcx020072h8axTM/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json
index 21022fc5ed3..3c8e251f6e5 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zemtlY0VrY1lwQjV0MnVYejg3ejZGNnBLUVlrLDkxOTg3ODk20200rl38pOcB?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4RXpydmY3V1lqdEFjTGNZUU9sMk1OODVJNlM1LDkzNDQ3MDcx0200i6Yx1KFl?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zemtlY0VrY1lwQjV0MnVYejg3ejZGNnBLUVlrLDkxOTg3ODk20200rl38pOcB/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4RXpydmY3V1lqdEFjTGNZUU9sMk1OODVJNlM1LDkzNDQ3MDcx0200i6Yx1KFl/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zbmVJUWhldjM5ajJMY21wbWRqNUJ1ZFlmWE9OLDkxOTg3ODk20200aDNGZnIr?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4ZjB5ZUdmZ3VJWXBlWVZ5Y1lBNzM3SXdBYmVuLDkzNDQ3MDcx02000kfBx70S?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zbmVJUWhldjM5ajJMY21wbWRqNUJ1ZFlmWE9OLDkxOTg3ODk20200aDNGZnIr/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4ZjB5ZUdmZ3VJWXBlWVZ5Y1lBNzM3SXdBYmVuLDkzNDQ3MDcx02000kfBx70S/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json
index 83fb2d240ef..2f7be1a0be7 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zemtlY0VrY1lwQjV0MnVYejg3ejZGNnBLUVlrLDkxOTg3ODk30200BplrYMUT?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4RXpydmY3V1lqdEFjTGNZUU9sMk1OODVJNlM1LDkzNDQ3MDcy020035wZBkZ1?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zemtlY0VrY1lwQjV0MnVYejg3ejZGNnBLUVlrLDkxOTg3ODk30200BplrYMUT/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4RXpydmY3V1lqdEFjTGNZUU9sMk1OODVJNlM1LDkzNDQ3MDcy020035wZBkZ1/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zbmVJUWhldjM5ajJMY21wbWRqNUJ1ZFlmWE9OLDkxOTg3ODk30200GIlceeGS?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4ZjB5ZUdmZ3VJWXBlWVZ5Y1lBNzM3SXdBYmVuLDkzNDQ3MDcy0200QLrpYkP0?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zbmVJUWhldjM5ajJMY21wbWRqNUJ1ZFlmWE9OLDkxOTg3ODk30200GIlceeGS/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4ZjB5ZUdmZ3VJWXBlWVZ5Y1lBNzM3SXdBYmVuLDkzNDQ3MDcy0200QLrpYkP0/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index e53335ca771..15289f1503c 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zVVdNMzhmUzNQODk3WGhuV09uVmh3bXNNbHhwLDkxOTg3ODU50200B7vRVb22?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4QndENktYWFd2SjZXZDZ6NmtDOFRWeWY5VnkwLDkzNDQ3MDY00200RvQJ4iwF?s=ap",
"id": "in_NORMALIZED00000000000005",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zVVdNMzhmUzNQODk3WGhuV09uVmh3bXNNbHhwLDkxOTg3ODU50200B7vRVb22/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4QndENktYWFd2SjZXZDZ6NmtDOFRWeWY5VnkwLDkzNDQ3MDY00200RvQJ4iwF/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.2.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.pay.2.json
index 0202cfc1aed..7466b5b20f6 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zNzN1WjB2TU4wcE00ZHdZT2pCQ0RUcm95a0FqLDkxOTg3ODYw020057F5Q2QL?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4aDlWaFJzbW1Gakx4NzFrRk03a2tzYU1aR0hLLDkzNDQ3MDY00200vsWpT62f?s=ap",
"id": "in_NORMALIZED00000000000006",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zNzN1WjB2TU4wcE00ZHdZT2pCQ0RUcm95a0FqLDkxOTg3ODYw020057F5Q2QL/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4aDlWaFJzbW1Gakx4NzFrRk03a2tzYU1aR0hLLDkzNDQ3MDY00200vsWpT62f/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index 783743d1a8c..09f5cfcfe63 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zS1BrN3RuTEZpYm50bDJ6c3pwMU9TdmdTWEk5LDkxOTg3ODkz020008ebm9bb?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4UzNzZk41blNHSm5YYTUxOEtiVDA4MDNoSktHLDkzNDQ3MDcw0200yJ2NUN0k?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zS1BrN3RuTEZpYm50bDJ6c3pwMU9TdmdTWEk5LDkxOTg3ODkz020008ebm9bb/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4UzNzZk41blNHSm5YYTUxOEtiVDA4MDNoSktHLDkzNDQ3MDcw0200yJ2NUN0k/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index 5d6b98d7b95..7e4fc532e8d 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zemtlY0VrY1lwQjV0MnVYejg3ejZGNnBLUVlrLDkxOTg3ODk40200vU3egTk9?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4RXpydmY3V1lqdEFjTGNZUU9sMk1OODVJNlM1LDkzNDQ3MDcy020035wZBkZ1?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zemtlY0VrY1lwQjV0MnVYejg3ejZGNnBLUVlrLDkxOTg3ODk40200vU3egTk9/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4RXpydmY3V1lqdEFjTGNZUU9sMk1OODVJNlM1LDkzNDQ3MDcy020035wZBkZ1/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json
index f76701175c2..055804492a3 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zbmVJUWhldjM5ajJMY21wbWRqNUJ1ZFlmWE9OLDkxOTg3OTAy0200hvCHy51i?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4ZjB5ZUdmZ3VJWXBlWVZ5Y1lBNzM3SXdBYmVuLDkzNDQ3MDcz0200VFpURl7T?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNm1zbmVJUWhldjM5ajJMY21wbWRqNUJ1ZFlmWE9OLDkxOTg3OTAy0200hvCHy51i/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc4ZjB5ZUdmZ3VJWXBlWVZ5Y1lBNzM3SXdBYmVuLDkzNDQ3MDcz0200VFpURl7T/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json
index 19dace7f4c8..7b0f5820521 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
@@ -8,9 +8,9 @@
"account_country": "US",
"account_name": "Kandra Labs, Inc.",
"account_tax_ids": null,
- "amount_due": 960000,
+ "amount_due": 95840,
"amount_paid": 0,
- "amount_remaining": 960000,
+ "amount_remaining": 95840,
"amount_shipping": 0,
"application": null,
"application_fee_amount": null,
@@ -23,7 +23,7 @@
},
"billing_reason": "manual",
"charge": null,
- "collection_method": "send_invoice",
+ "collection_method": "charge_automatically",
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
@@ -41,23 +41,23 @@
"description": null,
"discount": null,
"discounts": [],
- "due_date": 1000000000,
+ "due_date": null,
"effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpMSlFpamJ6ejdlcjJqM3BJRmNvcnloelVsaDVZLDkyMDM0ODcz0200jA0q3ZOP?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDZ5SkNwd1NMMVI1YW5pb0w2ZkQwZjJkOEYzMWV1LDkzNDQ2NDc202002fXv3npK?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpMSlFpamJ6ejdlcjJqM3BJRmNvcnloelVsaDVZLDkyMDM0ODcz0200jA0q3ZOP/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDZ5SkNwd1NMMVI1YW5pb0w2ZkQwZjJkOEYzMWV1LDkzNDQ2NDc202002fXv3npK/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
"data": [
{
- "amount": 960000,
- "amount_excluding_tax": 960000,
+ "amount": 96000,
+ "amount_excluding_tax": 96000,
"currency": "usd",
- "description": "Zulip Cloud Standard - renewal",
+ "description": "Zulip Cloud Plus - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -67,8 +67,8 @@
"metadata": {},
"object": "line_item",
"period": {
- "end": 1420167845,
- "start": 1388631845
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
@@ -89,19 +89,19 @@
"tiers_mode": null,
"transform_quantity": null,
"type": "one_time",
- "unit_amount": 8000,
- "unit_amount_decimal": "8000"
+ "unit_amount": 16000,
+ "unit_amount_decimal": "16000"
},
"proration": false,
"proration_details": {
"credited_items": null
},
- "quantity": 120,
+ "quantity": 6,
"subscription": null,
"tax_amounts": [],
"tax_rates": [],
"type": "invoiceitem",
- "unit_amount_excluding_tax": "8000"
+ "unit_amount_excluding_tax": "16000"
}
],
"has_more": false,
@@ -111,7 +111,7 @@
},
"livemode": false,
"metadata": {},
- "next_payment_attempt": null,
+ "next_payment_attempt": 1000000000,
"number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
@@ -138,8 +138,8 @@
"rendering_options": null,
"shipping_cost": null,
"shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
+ "starting_balance": -160,
+ "statement_descriptor": "Zulip Cloud Plus",
"status": "open",
"status_transitions": {
"finalized_at": 1000000000,
@@ -151,27 +151,27 @@
"subscription_details": {
"metadata": null
},
- "subtotal": 960000,
- "subtotal_excluding_tax": 960000,
+ "subtotal": 96000,
+ "subtotal_excluding_tax": 96000,
"tax": null,
"test_clock": null,
- "total": 960000,
+ "total": 96000,
"total_discount_amounts": [],
- "total_excluding_tax": 960000,
+ "total_excluding_tax": 96000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
- "id": "evt_1OIlXBDEQaroqDjsZj40mhUl",
+ "id": "evt_1OOgkyDEQaroqDjs42SyWcaA",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "req_NORMALIZED0001",
+ "idempotency_key": "d0ae0dfa-765a-404a-ad4b-0eeb2fbfef0e"
},
- "type": "invoice.sent"
+ "type": "invoice.finalized"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.json
index 93aabbe472a..b1ce9383d78 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
@@ -77,7 +77,7 @@
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0001",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": 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.json
index 51f315c4a44..41187cc8d37 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXdk1Fa2l6QlhHMnRYWEt4SUl0TVdmSXVXQWFJLDkyMDM0ODg102007TAYYszu?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc2bzhJUDc4NFhJUmVmSTRMaGZHTTcyOGFwTXdHLDkzNDQ2OTYw0200PsugUzKg?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXdk1Fa2l6QlhHMnRYWEt4SUl0TVdmSXVXQWFJLDkyMDM0ODg102007TAYYszu/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc2bzhJUDc4NFhJUmVmSTRMaGZHTTcyOGFwTXdHLDkzNDQ2OTYw0200PsugUzKg/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json
index 34440d9e5d1..2d6bdc85165 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXSlZNMzlORzdKM082SGxxeHFEdlQyWmxidE9wLDkyMDM0ODg202001QHHgtkQ?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3aWpwd0hQSHZ2RWpuNGF0TU9uOXhoS1haRnJpLDkzNDQ2OTYy0200GXUIFnXH?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXSlZNMzlORzdKM082SGxxeHFEdlQyWmxidE9wLDkyMDM0ODg202001QHHgtkQ/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3aWpwd0hQSHZ2RWpuNGF0TU9uOXhoS1haRnJpLDkzNDQ2OTYy0200GXUIFnXH/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -77,7 +77,7 @@
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0001",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": 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.json
index 40ad50b5b76..15467d9daaf 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXSlZNMzlORzdKM082SGxxeHFEdlQyWmxidE9wLDkyMDM0ODg30200W4jEILR6?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3aWpwd0hQSHZ2RWpuNGF0TU9uOXhoS1haRnJpLDkzNDQ2OTYz0200g9ZGFN8R?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXSlZNMzlORzdKM082SGxxeHFEdlQyWmxidE9wLDkyMDM0ODg30200W4jEILR6/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3aWpwd0hQSHZ2RWpuNGF0TU9uOXhoS1haRnJpLDkzNDQ2OTYz0200g9ZGFN8R/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -79,7 +79,7 @@
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0001",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXdk1Fa2l6QlhHMnRYWEt4SUl0TVdmSXVXQWFJLDkyMDM0ODg30200cTdiVImm?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc2bzhJUDc4NFhJUmVmSTRMaGZHTTcyOGFwTXdHLDkzNDQ2OTYz0200e1ZM44as?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXdk1Fa2l6QlhHMnRYWEt4SUl0TVdmSXVXQWFJLDkyMDM0ODg30200cTdiVImm/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc2bzhJUDc4NFhJUmVmSTRMaGZHTTcyOGFwTXdHLDkzNDQ2OTYz0200e1ZM44as/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--InvoiceItem.create.2.json
index 50b93cb3014..1ae1623514e 100644
--- a/corporate/tests/stripe_fixtures/fixed_price_plans--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/fixed_price_plans--InvoiceItem.create.2.json
@@ -28,7 +28,7 @@
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0001",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.modify.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.modify.1.json
index 6fe329adf0a..bea2c7b04ea 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
+ "default_payment_method": "pm_1OOgugDEQaroqDjs9XQDo08f",
"footer": null,
"rendering_options": 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.json
index d0cc6f95e65..6dc501b6fb8 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
+ "id": "pm_1OOgugDEQaroqDjs9XQDo08f",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index d0cc6f95e65..6dc501b6fb8 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
+ "id": "pm_1OOgugDEQaroqDjs9XQDo08f",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index d0cc6f95e65..6dc501b6fb8 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
+ "id": "pm_1OOgugDEQaroqDjs9XQDo08f",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index d0cc6f95e65..6dc501b6fb8 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
+ "id": "pm_1OOgugDEQaroqDjs9XQDo08f",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index d0cc6f95e65..6dc501b6fb8 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
+ "id": "pm_1OOgugDEQaroqDjs9XQDo08f",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 09228beb67b..cf6d835d560 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
+ "id": "pm_1OOgugDEQaroqDjs9XQDo08f",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json
index f1fdca12499..4ff226bdf4b 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json
@@ -5,173 +5,83 @@
"created": 1010000003,
"data": {
"object": {
- "account_country": "US",
- "account_name": "Kandra Labs, Inc.",
- "account_tax_ids": null,
- "amount_due": 10000,
- "amount_paid": 0,
- "amount_remaining": 10000,
- "amount_shipping": 0,
+ "amount": 10000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 0,
"application": null,
"application_fee_amount": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": true,
- "automatic_tax": {
- "enabled": false,
- "status": null
+ "automatic_payment_methods": null,
+ "canceled_at": 1000000000,
+ "cancellation_reason": "void_invoice",
+ "capture_method": "automatic",
+ "charges": {
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "send_invoice",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_K1rhfLju2w95hxWYWQLk4Zbbd",
+ "confirmation_method": "automatic",
"created": 1010000004,
"currency": "usd",
- "custom_fields": null,
"customer": "cus_NORMALIZED0002",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZTkpDcjdpWEVrTGdZUFFWZk42SUJKdllpUEk2LDkyMDM0OTky0200IaGGbUv3?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZTkpDcjdpWEVrTGdZUFFWZk42SUJKdllpUEk2LDkyMDM0OTky0200IaGGbUv3/pdf?s=ap",
- "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": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1000000000,
- "start": 1000000000
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1010000005,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "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/in_NORMALIZED00000000000001/lines"
- },
+ "description": "Payment for Invoice",
+ "id": "pi_NORMALIZED00000000000001",
+ "invoice": "in_NORMALIZED00000000000001",
+ "last_payment_error": null,
+ "latest_charge": null,
"livemode": false,
"metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0001",
- "object": "invoice",
+ "next_action": null,
+ "object": "payment_intent",
"on_behalf_of": null,
- "paid": false,
- "paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000001",
- "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"
+ "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
}
},
- "rendering_options": null,
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
+ "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",
- "status": "open",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subscription": null,
- "subscription_details": {
- "metadata": null
- },
- "subtotal": 10000,
- "subtotal_excluding_tax": 10000,
- "tax": null,
- "test_clock": null,
- "total": 10000,
- "total_discount_amounts": [],
- "total_excluding_tax": 10000,
- "total_tax_amounts": [],
+ "statement_descriptor_suffix": null,
+ "status": "canceled",
"transfer_data": null,
- "webhooks_delivered_at": null
+ "transfer_group": null
}
},
- "id": "evt_1OIlZ7DEQaroqDjsPADdJtqu",
+ "id": "evt_3OOguLDEQaroqDjs1ueOrI1t",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "b92622db-e8a6-4391-bef3-25311d9b3f2c"
+ "idempotency_key": "e4d78cbb-3974-4b85-b52a-80b5eddc20b1"
},
- "type": "invoice.finalized"
+ "type": "payment_intent.canceled"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.2.json
index 4305b8b2ad6..6aa86a0d3a5 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.2.json
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1010000006,
+ "created": 1010000005,
"data": {
"object": {
"address": null,
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
+ "default_payment_method": "pm_1OOgugDEQaroqDjs9XQDo08f",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlZDDEQaroqDjsj03LszoQ",
+ "id": "evt_1OOguiDEQaroqDjsY8lpBi20",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "7774c77e-961e-422d-a91c-49f2cf4f9df1"
+ "idempotency_key": "78a3d6b3-a097-4100-aa75-68161f6baa8d"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.json
index 48f453deaca..59b13b0a2cb 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
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,16 +68,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0002",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": 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.json
index 7a3d1b30c37..c222739bc2e 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
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000009,
+ "created": 1010000008,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,16 +68,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000009,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0003",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": 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.json
index f15f67fc84b..0d5295d5d22 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
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000011,
+ "created": 1010000010,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,16 +68,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0002",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": 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.json
index 8af17d38e7b..80c1e59c3ee 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
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA00200new8HKrD?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NUZwbWxLYWVDQ09sYzl2QTVTOEhMWEVzOVNPLDkzNDQ3MDg10200WXlB3Z43?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA00200new8HKrD/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NUZwbWxLYWVDQ09sYzl2QTVTOEhMWEVzOVNPLDkzNDQ3MDg10200WXlB3Z43/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,16 +68,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0002",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -106,7 +106,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.2.json
index 99a17e76ad3..3ab17d2a799 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
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000009,
+ "created": 1010000008,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZaHZuZHJyZmk1Vjg5dllMRjFKS0xxMXpHU1AxLDkyMDM1MDA20200WnXtFjic?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NEJFdDRHSWs2b0poQ3VoQXF5TUdoRElVdkdXLDkzNDQ3MDg40200kghaAguT?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZaHZuZHJyZmk1Vjg5dllMRjFKS0xxMXpHU1AxLDkyMDM1MDA20200WnXtFjic/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NEJFdDRHSWs2b0poQ3VoQXF5TUdoRElVdkdXLDkzNDQ3MDg40200kghaAguT/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,16 +68,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000009,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0003",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -106,7 +106,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0003",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json
index 0cb5e2bdb1b..c22f29fe321 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
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000011,
+ "created": 1010000010,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQkFMemo0ZG5LdkMwNTdERlRNQ0VTdXFDbEhaLDkyMDM1MDA40200EuxAU45Q?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NnRzckJuV2UxR0FtRExtTGh3M25ocnZQQ3hWLDkzNDQ3MDkw0200OKhTHYVj?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQkFMemo0ZG5LdkMwNTdERlRNQ0VTdXFDbEhaLDkyMDM1MDA40200EuxAU45Q/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NnRzckJuV2UxR0FtRExtTGh3M25ocnZQQ3hWLDkzNDQ3MDkw0200OKhTHYVj/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,16 +68,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0002",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -106,7 +106,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0004",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
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.json
index 8374bf0ba09..081b21dcde1 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
@@ -20,7 +20,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA00200new8HKrD?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NUZwbWxLYWVDQ09sYzl2QTVTOEhMWEVzOVNPLDkzNDQ3MDg20200ex2vuQ2D?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA00200new8HKrD/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NUZwbWxLYWVDQ09sYzl2QTVTOEhMWEVzOVNPLDkzNDQ3MDg20200ex2vuQ2D/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -57,8 +57,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -70,16 +70,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0002",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -108,7 +108,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
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.json
index a6036de99e9..99fa7d4a615 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
@@ -20,7 +20,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA00200new8HKrD?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NUZwbWxLYWVDQ09sYzl2QTVTOEhMWEVzOVNPLDkzNDQ3MDg20200ex2vuQ2D?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA00200new8HKrD/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NUZwbWxLYWVDQ09sYzl2QTVTOEhMWEVzOVNPLDkzNDQ3MDg20200ex2vuQ2D/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -57,8 +57,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -70,16 +70,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0002",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -108,7 +108,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.6.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.6.json
index 744c5dd5372..f4ba883a061 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
@@ -20,7 +20,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000009,
+ "created": 1010000008,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZaHZuZHJyZmk1Vjg5dllMRjFKS0xxMXpHU1AxLDkyMDM1MDA20200WnXtFjic?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NEJFdDRHSWs2b0poQ3VoQXF5TUdoRElVdkdXLDkzNDQ3MDg40200kghaAguT?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZaHZuZHJyZmk1Vjg5dllMRjFKS0xxMXpHU1AxLDkyMDM1MDA20200WnXtFjic/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NEJFdDRHSWs2b0poQ3VoQXF5TUdoRElVdkdXLDkzNDQ3MDg40200kghaAguT/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -57,8 +57,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -70,16 +70,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000009,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0003",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -108,7 +108,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0003",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
@@ -178,7 +178,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA20200qnnJXJgu?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NUZwbWxLYWVDQ09sYzl2QTVTOEhMWEVzOVNPLDkzNDQ3MDg40200cW65PLot?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA20200qnnJXJgu/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NUZwbWxLYWVDQ09sYzl2QTVTOEhMWEVzOVNPLDkzNDQ3MDg40200cW65PLot/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -215,8 +215,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -228,16 +228,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0002",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -266,7 +266,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json
index 7613fa737ba..4104fee5059 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
@@ -20,7 +20,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000011,
+ "created": 1010000010,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQkFMemo0ZG5LdkMwNTdERlRNQ0VTdXFDbEhaLDkyMDM1MDA40200EuxAU45Q?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NnRzckJuV2UxR0FtRExtTGh3M25ocnZQQ3hWLDkzNDQ3MDkw0200OKhTHYVj?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQkFMemo0ZG5LdkMwNTdERlRNQ0VTdXFDbEhaLDkyMDM1MDA40200EuxAU45Q/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NnRzckJuV2UxR0FtRExtTGh3M25ocnZQQ3hWLDkzNDQ3MDkw0200OKhTHYVj/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -57,8 +57,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -70,16 +70,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0002",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -108,7 +108,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0004",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
@@ -178,7 +178,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000009,
+ "created": 1010000008,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZaHZuZHJyZmk1Vjg5dllMRjFKS0xxMXpHU1AxLDkyMDM1MDA40200pIqSO0U7?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NEJFdDRHSWs2b0poQ3VoQXF5TUdoRElVdkdXLDkzNDQ3MDkw02009KARiJ6l?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZaHZuZHJyZmk1Vjg5dllMRjFKS0xxMXpHU1AxLDkyMDM1MDA40200pIqSO0U7/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NEJFdDRHSWs2b0poQ3VoQXF5TUdoRElVdkdXLDkzNDQ3MDkw02009KARiJ6l/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -215,8 +215,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -228,16 +228,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000009,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0003",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -266,7 +266,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0003",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
@@ -336,7 +336,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -358,9 +358,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA40200v138J2rF?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NUZwbWxLYWVDQ09sYzl2QTVTOEhMWEVzOVNPLDkzNDQ3MDkw0200NodDDZXz?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA40200v138J2rF/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NUZwbWxLYWVDQ09sYzl2QTVTOEhMWEVzOVNPLDkzNDQ3MDkw0200NodDDZXz/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -373,8 +373,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -386,16 +386,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0002",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -424,7 +424,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.1.json
index 697361235df..3e1ad97f06a 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.1.json
@@ -6,7 +6,7 @@
"description": "Zulip Cloud Standard - renewal",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000002",
+ "id": "ii_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -19,16 +19,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0002",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.2.json
index d28b83c8764..e31609ac961 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.2.json
@@ -6,7 +6,7 @@
"description": "Additional license (Jan 2, 2013 - Mar 2, 2013)",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000003",
+ "id": "ii_NORMALIZED00000000000002",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -19,16 +19,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000009,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0003",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.3.json
index 2a108e06a43..af94cd0fc37 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.3.json
@@ -6,7 +6,7 @@
"description": "Zulip Cloud Standard - renewal",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000004",
+ "id": "ii_NORMALIZED00000000000003",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -19,16 +19,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0002",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.create.1.json
index 752be0b78a0..d2ac9553dba 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZBDEQaroqDjsIVy8MdR4_secret_P6zYGFV8Apc49Nk5ujtFQmdFXUivAGZ",
+ "client_secret": "seti_1OOgugDEQaroqDjsxDBE1hl9_secret_PD78qn4S8ZnHTRGBKivpI3XNYU9AQBS",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZBDEQaroqDjsIVy8MdR4",
+ "id": "seti_1OOgugDEQaroqDjsxDBE1hl9",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlZBDEQaroqDjsE9WoNdc8",
+ "latest_attempt": "setatt_1OOgugDEQaroqDjs32sTDt2y",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
+ "payment_method": "pm_1OOgugDEQaroqDjs9XQDo08f",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.list.1.json
index 587e6ee4c9c..60bafea7952 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZADEQaroqDjsgS0itDYJ_secret_P6zYYlQ937zNt0xnff3IWCdXA0ocrxe",
- "created": 1010000001,
+ "client_secret": "seti_1OOgufDEQaroqDjsWiXI6a58_secret_PD789ht8uBN3gp9miJQPyoONZiYnB4z",
+ "created": 1010000011,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZADEQaroqDjsgS0itDYJ",
+ "id": "seti_1OOgufDEQaroqDjsWiXI6a58",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.retrieve.1.json
index 752be0b78a0..d2ac9553dba 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZBDEQaroqDjsIVy8MdR4_secret_P6zYGFV8Apc49Nk5ujtFQmdFXUivAGZ",
+ "client_secret": "seti_1OOgugDEQaroqDjsxDBE1hl9_secret_PD78qn4S8ZnHTRGBKivpI3XNYU9AQBS",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZBDEQaroqDjsIVy8MdR4",
+ "id": "seti_1OOgugDEQaroqDjsxDBE1hl9",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlZBDEQaroqDjsE9WoNdc8",
+ "latest_attempt": "setatt_1OOgugDEQaroqDjs32sTDt2y",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
+ "payment_method": "pm_1OOgugDEQaroqDjs9XQDo08f",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.create.1.json
index d4a4dfbcfc7..f86b368f7ad 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.create.1.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000001,
+ "created": 1010000011,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED024olEYE61f3AtjwK0Yqph7wiof9QKhAkbbRaHn3iJuIxY3j",
+ "id": "cs_test_NORMALIZED021nYAKxiCjtPUjIRUYLRxlLmrPHBIbDxXWpc9dVyK54nFqT",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlZADEQaroqDjsgS0itDYJ",
+ "setup_intent": "seti_1OOgufDEQaroqDjsWiXI6a58",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED024olEYE61f3AtjwK0Yqph7wiof9QKhAkbbRaHn3iJuIxY3j#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED021nYAKxiCjtPUjIRUYLRxlLmrPHBIbDxXWpc9dVyK54nFqT#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.list.1.json
index 2179f0fa282..d1cd2d5a7b2 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.list.1.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000001,
+ "created": 1010000011,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED024olEYE61f3AtjwK0Yqph7wiof9QKhAkbbRaHn3iJuIxY3j",
+ "id": "cs_test_NORMALIZED021nYAKxiCjtPUjIRUYLRxlLmrPHBIbDxXWpc9dVyK54nFqT",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlZADEQaroqDjsgS0itDYJ",
+ "setup_intent": "seti_1OOgufDEQaroqDjsWiXI6a58",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED024olEYE61f3AtjwK0Yqph7wiof9QKhAkbbRaHn3iJuIxY3j#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED021nYAKxiCjtPUjIRUYLRxlLmrPHBIbDxXWpc9dVyK54nFqT#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json
index 065ca5ac235..e21c6b05940 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQkFMemo0ZG5LdkMwNTdERlRNQ0VTdXFDbEhaLDkyMDM1MDA40200EuxAU45Q?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NnRzckJuV2UxR0FtRExtTGh3M25ocnZQQ3hWLDkzNDQ3MDkw0200OKhTHYVj?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQkFMemo0ZG5LdkMwNTdERlRNQ0VTdXFDbEhaLDkyMDM1MDA40200EuxAU45Q/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5NnRzckJuV2UxR0FtRExtTGh3M25ocnZQQ3hWLDkzNDQ3MDkw0200OKhTHYVj/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -163,13 +163,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlZMDEQaroqDjsBk3FnrxJ",
+ "id": "evt_1OOgusDEQaroqDjssSJcv9t4",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "eb135c2f-8386-48ef-ba95-7c9a423c0921"
+ "idempotency_key": "a105c496-8c6f-4195-ac85-c8ab7bec4d89"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json
index 5e3e6fe7540..23ac60195d8 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEy0200KdXnnCls?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eEw2aEM3bWNKYkxOWjhPT21PWjV3SGo2cmZTLDkzNDQ3MDk002009Egbn22a?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEy0200KdXnnCls/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eEw2aEM3bWNKYkxOWjhPT21PWjV3SGo2cmZTLDkzNDQ3MDk002009Egbn22a/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.2.json
index c9c12c94676..74083859d79 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.2.json
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZcXdFOVFrZzNITXlYT1hjQTgwa3JJN3B0RTg5LDkyMDM1MDE10200ZwfNK4Am?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5dDdUQnFpZkNrUUZ2OGhUaFJPOWtqcTc2SzVXLDkzNDQ3MDk30200yF7KWopH?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZcXdFOVFrZzNITXlYT1hjQTgwa3JJN3B0RTg5LDkyMDM1MDE10200ZwfNK4Am/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5dDdUQnFpZkNrUUZ2OGhUaFJPOWtqcTc2SzVXLDkzNDQ3MDk30200yF7KWopH/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.2.json
index 0e713576ada..6834b75b718 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.2.json
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEz0200c01gnYPK?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eEw2aEM3bWNKYkxOWjhPT21PWjV3SGo2cmZTLDkzNDQ3MDk002009Egbn22a?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEz0200c01gnYPK/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eEw2aEM3bWNKYkxOWjhPT21PWjV3SGo2cmZTLDkzNDQ3MDk002009Egbn22a/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.3.json
index fb8ac3b63b3..ad6ddde8223 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.3.json
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEz0200c01gnYPK?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eEw2aEM3bWNKYkxOWjhPT21PWjV3SGo2cmZTLDkzNDQ3MDk10200ZRJWygdL?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEz0200c01gnYPK/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eEw2aEM3bWNKYkxOWjhPT21PWjV3SGo2cmZTLDkzNDQ3MDk10200ZRJWygdL/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -156,7 +156,7 @@
"total_excluding_tax": 984000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.4.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.4.json
index fb8ac3b63b3..3355c77c061 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.4.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.4.json
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEz0200c01gnYPK?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eEw2aEM3bWNKYkxOWjhPT21PWjV3SGo2cmZTLDkzNDQ3MDk10200ZRJWygdL?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEz0200c01gnYPK/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eEw2aEM3bWNKYkxOWjhPT21PWjV3SGo2cmZTLDkzNDQ3MDk10200ZRJWygdL/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.5.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.5.json
index 8110e4bea45..9757d6dec8f 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.5.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.5.json
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZcXdFOVFrZzNITXlYT1hjQTgwa3JJN3B0RTg5LDkyMDM1MDE10200ZwfNK4Am?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5dDdUQnFpZkNrUUZ2OGhUaFJPOWtqcTc2SzVXLDkzNDQ3MDk30200yF7KWopH?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZcXdFOVFrZzNITXlYT1hjQTgwa3JJN3B0RTg5LDkyMDM1MDE10200ZwfNK4Am/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5dDdUQnFpZkNrUUZ2OGhUaFJPOWtqcTc2SzVXLDkzNDQ3MDk30200yF7KWopH/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDE10200yfAvcUwq?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eEw2aEM3bWNKYkxOWjhPT21PWjV3SGo2cmZTLDkzNDQ3MDk30200bn4pW1eV?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDE10200yfAvcUwq/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eEw2aEM3bWNKYkxOWjhPT21PWjV3SGo2cmZTLDkzNDQ3MDk30200bn4pW1eV/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Customer.modify.1.json
index 7d7a34e3c91..287b98bb50c 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "default_payment_method": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.1.json
index 39f986787a3..c460a2742d0 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.1.json
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "id": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.2.json
index 39f986787a3..c460a2742d0 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.2.json
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "id": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.3.json
index 39f986787a3..c460a2742d0 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.3.json
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "id": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.4.json
index 39f986787a3..c460a2742d0 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.4.json
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "id": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.1.json
index f96e5bf0333..5217cbf4ec3 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "default_payment_method": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlXSDEQaroqDjshHLKlZ26",
+ "id": "evt_1OOgssDEQaroqDjs0N27IgeS",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "161d3320-42bc-487f-adc7-e0e8e586bee0"
+ "idempotency_key": "d0af6f8a-6968-4708-a33f-5ae88dd87bc5"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json
index 01f99171c70..23729c8f662 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "payment_method": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -123,10 +123,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM36qqsGMgYhvtpHvAA6LBYam-AwlSxjEo0xfxBc6LyCTWHLk6U2nzMCMvRwoLkD8cILuyVlSJUKZhIp",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKLqSgawGMgZcq3weISI6LBYVuGwMkA-vK9_OEVgDFnV37A8Nnffw0sKvOqN3shS4tjWmxHRoWCDnGQxj",
"refunded": false,
"refunds": {
"data": [],
@@ -151,7 +150,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_WMtW3rPktaI7zAb1RSvfFlfgP",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_KewULPuHrImLPgmLBS17s3Dne",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -179,7 +178,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "payment_method": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +204,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlXUDEQaroqDjs16UbQkn3",
+ "id": "evt_3OOgsvDEQaroqDjs0oot1HxX",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "b7e4530b-96bb-4f66-b93e-2a17b32044fe"
+ "idempotency_key": "1b3df219-e337-4374-bdb9-232df2fe2a27"
},
"type": "payment_intent.succeeded"
},
@@ -283,7 +282,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "payment_method": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -323,10 +322,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM36qqsGMgZrNDpnvvI6LBYId-MPM4FNxrj1mM_-mQ6DsT5mAYcc6TBaDRXL4vo42NeyRBmehF7AutEE",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKLmSgawGMga1TEMAgc86LBZGH4u-h9CURIz-uu-7zfs501Tc7fykYyOssNjBbVDhisHgtDuEB6avFfCk",
"refunded": false,
"refunds": {
"data": [],
@@ -346,13 +344,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlXUDEQaroqDjs1lHHSlTK",
+ "id": "evt_3OOgsvDEQaroqDjs0x8MBrez",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "b7e4530b-96bb-4f66-b93e-2a17b32044fe"
+ "idempotency_key": "1b3df219-e337-4374-bdb9-232df2fe2a27"
},
"type": "charge.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json
index 77cfb679f6a..31cb189d0b5 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3ZlpSUElJN2phTjBVakVSMkR0S0FlZnY2cDhXLDkzNDQ2OTcy0200QN0Er7B8?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3ZlpSUElJN2phTjBVakVSMkR0S0FlZnY2cDhXLDkzNDQ2OTcy0200QN0Er7B8/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1OIlXYDEQaroqDjsAJzBLeOP",
+ "id": "evt_1OOgsyDEQaroqDjsmRo9ROIw",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "1f6fb8a9-2841-4c21-97db-4ea38deec92b"
+ "idempotency_key": "27e26340-72d8-479e-b797-e6f161b07dd8"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlXXDEQaroqDjsXgGXhFtj",
+ "id": "evt_1OOgsxDEQaroqDjsyzKBn7jq",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "7e43dad1-a60f-44e2-98d8-26d6ad965f03"
+ "idempotency_key": "7c630c4e-2948-48cd-9c31-a08dc2326ef9"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OIlXWDEQaroqDjsUmzmHAKn",
+ "id": "evt_1OOgsxDEQaroqDjsHpAgZgSB",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "de98e040-f59c-4626-91a8-cc739f610411"
+ "idempotency_key": "f0ebbf2d-b90c-4850-8856-9f4c6fd943b7"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OIlXWDEQaroqDjsNDksews5",
+ "id": "evt_1OOgswDEQaroqDjsHiEdVr3u",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "5b94c636-b45d-4792-8635-54b2a34990d5"
+ "idempotency_key": "3c03fac6-604c-4b7b-adb4-24229f792c78"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "default_payment_method": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlXWDEQaroqDjsi3pAMdm2",
+ "id": "evt_1OOgswDEQaroqDjsZH3QD3WW",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "5b94c636-b45d-4792-8635-54b2a34990d5"
+ "idempotency_key": "3c03fac6-604c-4b7b-adb4-24229f792c78"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.4.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.4.json
index 3459256743d..31c17887ea0 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.4.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.4.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3ZlpSUElJN2phTjBVakVSMkR0S0FlZnY2cDhXLDkzNDQ2OTcy0200QN0Er7B8?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3ZlpSUElJN2phTjBVakVSMkR0S0FlZnY2cDhXLDkzNDQ2OTcy0200QN0Er7B8/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlXYDEQaroqDjsHGlGcS0X",
+ "id": "evt_1OOgsyDEQaroqDjsVhuf9CSN",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "1f6fb8a9-2841-4c21-97db-4ea38deec92b"
+ "idempotency_key": "27e26340-72d8-479e-b797-e6f161b07dd8"
},
"type": "invoice.paid"
},
@@ -269,9 +269,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3ZlpSUElJN2phTjBVakVSMkR0S0FlZnY2cDhXLDkzNDQ2OTcy0200QN0Er7B8?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3ZlpSUElJN2phTjBVakVSMkR0S0FlZnY2cDhXLDkzNDQ2OTcy0200QN0Er7B8/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -436,13 +436,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlXYDEQaroqDjsIqFRENYZ",
+ "id": "evt_1OOgsyDEQaroqDjsggW3r86X",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "1f6fb8a9-2841-4c21-97db-4ea38deec92b"
+ "idempotency_key": "27e26340-72d8-479e-b797-e6f161b07dd8"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.5.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.5.json
index 08a57192364..2677f589a68 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.5.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3ZlpSUElJN2phTjBVakVSMkR0S0FlZnY2cDhXLDkzNDQ2OTcy0200QN0Er7B8?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3ZlpSUElJN2phTjBVakVSMkR0S0FlZnY2cDhXLDkzNDQ2OTcy0200QN0Er7B8/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlXYDEQaroqDjsIX0r00xT",
+ "id": "evt_1OOgsyDEQaroqDjsDpXDnpwE",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "1f6fb8a9-2841-4c21-97db-4ea38deec92b"
+ "idempotency_key": "27e26340-72d8-479e-b797-e6f161b07dd8"
},
"type": "invoice.payment_succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.1.json
index 73d14124ea7..f0c25828aa6 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3ZlpSUElJN2phTjBVakVSMkR0S0FlZnY2cDhXLDkzNDQ2OTcy0200QN0Er7B8?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3ZlpSUElJN2phTjBVakVSMkR0S0FlZnY2cDhXLDkzNDQ2OTcy0200QN0Er7B8/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.finalize_invoice.2.json
index b410aa2b256..f1542daa3e8 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXbFY3cnliMklCdzh1Q090dUlxYnNhSFZoTVVSLDkyMDM0ODk50200VEo2dwk0?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3OHBjcENtZzROamI3Y0tYR05laTM4OHV1cGpMLDkzNDQ2OTc20200TPM6uGMS?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXbFY3cnliMklCdzh1Q090dUlxYnNhSFZoTVVSLDkyMDM0ODk50200VEo2dwk0/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3OHBjcENtZzROamI3Y0tYR05laTM4OHV1cGpMLDkzNDQ2OTc20200TPM6uGMS/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json
index 6799056111e..cb38c5b4d4e 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.list.2.json
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXbFY3cnliMklCdzh1Q090dUlxYnNhSFZoTVVSLDkyMDM0OTAw020032NPD63q?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3OHBjcENtZzROamI3Y0tYR05laTM4OHV1cGpMLDkzNDQ2OTc20200TPM6uGMS?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXbFY3cnliMklCdzh1Q090dUlxYnNhSFZoTVVSLDkyMDM0OTAw020032NPD63q/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3OHBjcENtZzROamI3Y0tYR05laTM4OHV1cGpMLDkzNDQ2OTc20200TPM6uGMS/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -256,7 +256,7 @@
"total_excluding_tax": 80697,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
{
"account_country": "US",
@@ -300,9 +300,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0OTAw0200kNn6inDz?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3ZlpSUElJN2phTjBVakVSMkR0S0FlZnY2cDhXLDkzNDQ2OTc20200mkE66YJD?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0OTAw0200kNn6inDz/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc3ZlpSUElJN2phTjBVakVSMkR0S0FlZnY2cDhXLDkzNDQ2OTc20200mkE66YJD/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan--PaymentIntent.create.1.json
index 50eb22f9df0..7b9105e1b0c 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--PaymentIntent.create.1.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "payment_method": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -117,10 +117,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM36qqsGMgYMrVxgl9k6LBZVom9jWVxk-2NC9oyli1L7IYaonkmwBrRCjIVYjcyuadMgz-dnvZFyX52g",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKLmSgawGMgY4sEmqKT86LBZ1ZTzMI7_brf8hdiwNiFMJGMq5PbfXv2l_Q_z7hD2ISvnY56wOXVg_fegs",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +144,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_WMtW3rPktaI7zAb1RSvfFlfgP",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_KewULPuHrImLPgmLBS17s3Dne",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -173,7 +172,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "payment_method": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.create.1.json
index 4fdc75659bf..969ddf5e85f 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlXRDEQaroqDjsgaca2ufn_secret_P6zW3xDf621SPIVI6ZFwtlct1GNM8T0",
+ "client_secret": "seti_1OOgsrDEQaroqDjsiVcGujFu_secret_PD77Jmi0Q9Pjw9WK2xkfoP9cSYgVGVG",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlXRDEQaroqDjsgaca2ufn",
+ "id": "seti_1OOgsrDEQaroqDjsiVcGujFu",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlXRDEQaroqDjsrmjabU81",
+ "latest_attempt": "setatt_1OOgsrDEQaroqDjsdKT90Pg7",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "payment_method": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.list.1.json
index bbc296570f5..38ed75b800b 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlXQDEQaroqDjs2mnxUGpO_secret_P6zWKipM0RZ1luo4HM0GseWIyhnk4PE",
+ "client_secret": "seti_1OOgsqDEQaroqDjsxP9VSv4J_secret_PD77FUQiZicnm4b0Ugmi22DlEoZcNhY",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlXQDEQaroqDjs2mnxUGpO",
+ "id": "seti_1OOgsqDEQaroqDjsxP9VSv4J",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.retrieve.1.json
index 4fdc75659bf..969ddf5e85f 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlXRDEQaroqDjsgaca2ufn_secret_P6zW3xDf621SPIVI6ZFwtlct1GNM8T0",
+ "client_secret": "seti_1OOgsrDEQaroqDjsiVcGujFu_secret_PD77Jmi0Q9Pjw9WK2xkfoP9cSYgVGVG",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlXRDEQaroqDjsgaca2ufn",
+ "id": "seti_1OOgsrDEQaroqDjsiVcGujFu",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlXRDEQaroqDjsrmjabU81",
+ "latest_attempt": "setatt_1OOgsrDEQaroqDjsdKT90Pg7",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
+ "payment_method": "pm_1OOgsrDEQaroqDjslVMJEjsj",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.create.1.json
index cb37dda3dc4..9b4a8b9e30f 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02fVBUjRvdICAml4swpLBYXUSv20q3bHLI3xKsiEqebJkBIy",
+ "id": "cs_test_NORMALIZED02jkp4xcCeBg9yJUOtMKufxs5sx8IF7w7PKZIz1reVpPoJli",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlXQDEQaroqDjs2mnxUGpO",
+ "setup_intent": "seti_1OOgsqDEQaroqDjsxP9VSv4J",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02fVBUjRvdICAml4swpLBYXUSv20q3bHLI3xKsiEqebJkBIy#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02jkp4xcCeBg9yJUOtMKufxs5sx8IF7w7PKZIz1reVpPoJli#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.list.1.json
index 865c937cf68..37af2994a4d 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02fVBUjRvdICAml4swpLBYXUSv20q3bHLI3xKsiEqebJkBIy",
+ "id": "cs_test_NORMALIZED02jkp4xcCeBg9yJUOtMKufxs5sx8IF7w7PKZIz1reVpPoJli",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlXQDEQaroqDjs2mnxUGpO",
+ "setup_intent": "seti_1OOgsqDEQaroqDjsxP9VSv4J",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02fVBUjRvdICAml4swpLBYXUSv20q3bHLI3xKsiEqebJkBIy#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02jkp4xcCeBg9yJUOtMKufxs5sx8IF7w7PKZIz1reVpPoJli#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.create.1.json
index a9f571a450f..856442bd13b 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.create.1.json
@@ -1,16 +1,16 @@
{
"address": null,
"balance": 0,
- "created": 1702576334,
+ "created": 1000000000,
"currency": null,
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 8bb4095c-58a",
+ "description": "zulip.testserver b46d7a23-a8e",
"discount": null,
"email": "[email protected]",
- "id": "cus_PBgRA4C5R3pi4D",
- "invoice_prefix": "3F94EF3A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
@@ -20,7 +20,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "8bb4095c-58a8-42b8-afd4-9d92e91691e5"
+ "remote_realm_uuid": "b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.modify.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.modify.1.json
index cd9f838240f..6c64e0b8593 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Customer.modify.1.json
@@ -1,26 +1,26 @@
{
"address": null,
"balance": 0,
- "created": 1702576334,
+ "created": 1000000000,
"currency": null,
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 8bb4095c-58a",
+ "description": "zulip.testserver b46d7a23-a8e",
"discount": null,
"email": "[email protected]",
- "id": "cus_PBgRA4C5R3pi4D",
- "invoice_prefix": "3F94EF3A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "default_payment_method": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "8bb4095c-58a8-42b8-afd4-9d92e91691e5"
+ "remote_realm_uuid": "b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43"
},
"name": null,
"next_invoice_sequence": 1,
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.json
index ca0780edce3..50bf46243d0 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
@@ -1,16 +1,16 @@
{
"address": null,
"balance": 0,
- "created": 1702576334,
+ "created": 1000000000,
"currency": null,
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 8bb4095c-58a",
+ "description": "zulip.testserver b46d7a23-a8e",
"discount": null,
"email": "[email protected]",
- "id": "cus_PBgRA4C5R3pi4D",
- "invoice_prefix": "3F94EF3A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -37,7 +37,7 @@
"country": "US",
"exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1702576335,
- "customer": "cus_PBgRA4C5R3pi4D",
- "id": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -66,7 +66,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "8bb4095c-58a8-42b8-afd4-9d92e91691e5"
+ "remote_realm_uuid": "b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43"
},
"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.json
index ca0780edce3..50bf46243d0 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
@@ -1,16 +1,16 @@
{
"address": null,
"balance": 0,
- "created": 1702576334,
+ "created": 1000000000,
"currency": null,
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 8bb4095c-58a",
+ "description": "zulip.testserver b46d7a23-a8e",
"discount": null,
"email": "[email protected]",
- "id": "cus_PBgRA4C5R3pi4D",
- "invoice_prefix": "3F94EF3A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -37,7 +37,7 @@
"country": "US",
"exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1702576335,
- "customer": "cus_PBgRA4C5R3pi4D",
- "id": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -66,7 +66,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "8bb4095c-58a8-42b8-afd4-9d92e91691e5"
+ "remote_realm_uuid": "b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43"
},
"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.json
index ca0780edce3..50bf46243d0 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
@@ -1,16 +1,16 @@
{
"address": null,
"balance": 0,
- "created": 1702576334,
+ "created": 1000000000,
"currency": null,
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 8bb4095c-58a",
+ "description": "zulip.testserver b46d7a23-a8e",
"discount": null,
"email": "[email protected]",
- "id": "cus_PBgRA4C5R3pi4D",
- "invoice_prefix": "3F94EF3A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -37,7 +37,7 @@
"country": "US",
"exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1702576335,
- "customer": "cus_PBgRA4C5R3pi4D",
- "id": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -66,7 +66,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "8bb4095c-58a8-42b8-afd4-9d92e91691e5"
+ "remote_realm_uuid": "b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43"
},
"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.json
index ca0780edce3..50bf46243d0 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
@@ -1,16 +1,16 @@
{
"address": null,
"balance": 0,
- "created": 1702576334,
+ "created": 1000000000,
"currency": null,
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 8bb4095c-58a",
+ "description": "zulip.testserver b46d7a23-a8e",
"discount": null,
"email": "[email protected]",
- "id": "cus_PBgRA4C5R3pi4D",
- "invoice_prefix": "3F94EF3A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -37,7 +37,7 @@
"country": "US",
"exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1702576335,
- "customer": "cus_PBgRA4C5R3pi4D",
- "id": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -66,7 +66,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "8bb4095c-58a8-42b8-afd4-9d92e91691e5"
+ "remote_realm_uuid": "b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43"
},
"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.json
index e62154affaf..81c544699c7 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
@@ -1,16 +1,16 @@
{
"address": null,
"balance": 0,
- "created": 1702576334,
+ "created": 1000000000,
"currency": "usd",
"default_currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 8bb4095c-58a",
+ "description": "zulip.testserver b46d7a23-a8e",
"discount": null,
"email": "[email protected]",
- "id": "cus_PBgRA4C5R3pi4D",
- "invoice_prefix": "3F94EF3A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -37,7 +37,7 @@
"country": "US",
"exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1702576335,
- "customer": "cus_PBgRA4C5R3pi4D",
- "id": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -66,7 +66,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "8bb4095c-58a8-42b8-afd4-9d92e91691e5"
+ "remote_realm_uuid": "b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43"
},
"name": null,
"next_invoice_sequence": 2,
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.1.json
index 631a36eb0ba..24962490113 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.1.json
@@ -2,31 +2,31 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1702576337,
+ "created": 1000000000,
"data": {
"object": {
"address": null,
"balance": 0,
- "created": 1702576334,
+ "created": 1000000000,
"currency": null,
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 8bb4095c-58a",
+ "description": "zulip.testserver b46d7a23-a8e",
"discount": null,
"email": "[email protected]",
- "id": "cus_PBgRA4C5R3pi4D",
- "invoice_prefix": "3F94EF3A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "default_payment_method": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "8bb4095c-58a8-42b8-afd4-9d92e91691e5"
+ "remote_realm_uuid": "b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43"
},
"name": null,
"next_invoice_sequence": 1,
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1ONJ53DEQaroqDjs6X8RdGoG",
+ "id": "evt_1OOgxpDEQaroqDjs3n8QnakE",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_wwsRfdUsURvz0x",
- "idempotency_key": "a708c9c9-d37a-45a2-a538-c68f7bab7c4f"
+ "id": "req_NORMALIZED0001",
+ "idempotency_key": "502c7e28-d74c-4116-9a60-49991481c7ce"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json
index e2ff6da703f..0358ea62c20 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
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1702576341,
+ "created": 1000000000,
"data": {
"object": {
"amount": 80000,
@@ -26,7 +26,7 @@
"application": null,
"application_fee": null,
"application_fee_amount": null,
- "balance_transaction": "txn_3ONJ56DEQaroqDjs0M2f9IAT",
+ "balance_transaction": "txn_NORMALIZED00000000000001",
"billing_details": {
"address": {
"city": null,
@@ -42,9 +42,9 @@
},
"calculated_statement_descriptor": "ZULIP BUSINESS",
"captured": true,
- "created": 1702576341,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Business, $80.0 x 10",
"destination": null,
"dispute": null,
@@ -53,7 +53,7 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "ch_3ONJ56DEQaroqDjs0BpPKMXi",
+ "id": "ch_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {
@@ -65,7 +65,7 @@
"price_per_license": "8000",
"remote_realm_host": "zulip.testserver",
"remote_realm_user_email": "[email protected]",
- "remote_realm_user_id": "1",
+ "remote_realm_user_id": "2",
"seat_count": "10",
"type": "upgrade"
},
@@ -76,13 +76,13 @@
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
- "risk_score": 42,
+ "risk_score": 0,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_3ONJ56DEQaroqDjs0GqTybKR",
- "payment_method": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"payment_method_details": {
"card": {
"amount_authorized": 80000,
@@ -98,7 +98,7 @@
"extended_authorization": {
"status": "disabled"
},
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
@@ -124,14 +124,14 @@
},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNaB7asGMgb_lG0CwDA6LBZCJioPOi6vvS1_5Jah85xVXTVBIwa3Q40b6QRKTkL8y6vv7b6n9LHk73Xx",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOyUgawGMgaTRcELw346LBalmRAGZQJNTnPFghYLFYEdk58qc5YojynNyLbZXivDKMO2YPWrF66-aqRr",
"refunded": false,
"refunds": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/ch_3ONJ56DEQaroqDjs0BpPKMXi/refunds"
+ "url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
},
"review": null,
"shipping": null,
@@ -147,18 +147,18 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=pi_3ONJ56DEQaroqDjs0GqTybKR"
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_3ONJ56DEQaroqDjs0GqTybKR_secret_fPt0ZuASHDpKHmov3pUovneYg",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_eCDtZomR9THUUNBv25qmdV7ff",
"confirmation_method": "automatic",
- "created": 1702576340,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Business, $80.0 x 10",
- "id": "pi_3ONJ56DEQaroqDjs0GqTybKR",
+ "id": "pi_NORMALIZED00000000000001",
"invoice": null,
"last_payment_error": null,
- "latest_charge": "ch_3ONJ56DEQaroqDjs0BpPKMXi",
+ "latest_charge": "ch_NORMALIZED00000000000001",
"livemode": false,
"metadata": {
"billing_modality": "charge_automatically",
@@ -169,14 +169,14 @@
"price_per_license": "8000",
"remote_realm_host": "zulip.testserver",
"remote_realm_user_email": "[email protected]",
- "remote_realm_user_id": "1",
+ "remote_realm_user_id": "2",
"seat_count": "10",
"type": "upgrade"
},
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "payment_method": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,19 +202,19 @@
"transfer_group": null
}
},
- "id": "evt_3ONJ56DEQaroqDjs0F79v5g4",
+ "id": "evt_3OOgxrDEQaroqDjs1aYrLdzh",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
- "id": "req_8V6izeXwNoDWNV",
- "idempotency_key": "1cdc58e7-dec7-4356-9b72-61b61a9ed3ed"
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "b3683b72-6008-4be6-9ec4-e506a14fe19e"
},
"type": "payment_intent.succeeded"
},
{
"api_version": "2020-08-27",
- "created": 1702576341,
+ "created": 1000000000,
"data": {
"object": {
"amount": 80000,
@@ -223,7 +223,7 @@
"application": null,
"application_fee": null,
"application_fee_amount": null,
- "balance_transaction": "txn_3ONJ56DEQaroqDjs0M2f9IAT",
+ "balance_transaction": "txn_NORMALIZED00000000000001",
"billing_details": {
"address": {
"city": null,
@@ -239,9 +239,9 @@
},
"calculated_statement_descriptor": "ZULIP BUSINESS",
"captured": true,
- "created": 1702576341,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Business, $80.0 x 10",
"destination": null,
"dispute": null,
@@ -250,7 +250,7 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "ch_3ONJ56DEQaroqDjs0BpPKMXi",
+ "id": "ch_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {
@@ -262,7 +262,7 @@
"price_per_license": "8000",
"remote_realm_host": "zulip.testserver",
"remote_realm_user_email": "[email protected]",
- "remote_realm_user_id": "1",
+ "remote_realm_user_id": "2",
"seat_count": "10",
"type": "upgrade"
},
@@ -273,13 +273,13 @@
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
- "risk_score": 42,
+ "risk_score": 0,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_3ONJ56DEQaroqDjs0GqTybKR",
- "payment_method": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"payment_method_details": {
"card": {
"amount_authorized": 80000,
@@ -295,7 +295,7 @@
"extended_authorization": {
"status": "disabled"
},
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
@@ -321,14 +321,14 @@
},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNWB7asGMgZoVpKVI9Y6LBYFiEbfwSeeDRJVYhm1dXIiKeS-mvibLUviHCmDavwS0pBbUflfN5Ei_gW4",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOyUgawGMgaHvmbb_d06LBZ--m1w17rsK8UZNufVNvo0vfwhx7lZ6ZrdseqJu7dX9k5YkzrZRrRQfhNk",
"refunded": false,
"refunds": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/ch_3ONJ56DEQaroqDjs0BpPKMXi/refunds"
+ "url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
},
"review": null,
"shipping": null,
@@ -341,102 +341,15 @@
"transfer_group": null
}
},
- "id": "evt_3ONJ56DEQaroqDjs0h4RMitN",
+ "id": "evt_3OOgxrDEQaroqDjs1Io2KdbH",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_8V6izeXwNoDWNV",
- "idempotency_key": "1cdc58e7-dec7-4356-9b72-61b61a9ed3ed"
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "b3683b72-6008-4be6-9ec4-e506a14fe19e"
},
"type": "charge.succeeded"
- },
- {
- "api_version": "2020-08-27",
- "created": 1702576340,
- "data": {
- "object": {
- "amount": 80000,
- "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=pi_3ONJ56DEQaroqDjs0GqTybKR"
- },
- "client_secret": "pi_3ONJ56DEQaroqDjs0GqTybKR_secret_fPt0ZuASHDpKHmov3pUovneYg",
- "confirmation_method": "automatic",
- "created": 1702576340,
- "currency": "usd",
- "customer": "cus_PBgRA4C5R3pi4D",
- "description": "Upgrade to Zulip Business, $80.0 x 10",
- "id": "pi_3ONJ56DEQaroqDjs0GqTybKR",
- "invoice": null,
- "last_payment_error": null,
- "latest_charge": null,
- "livemode": false,
- "metadata": {
- "billing_modality": "charge_automatically",
- "billing_schedule": "1",
- "license_management": "automatic",
- "licenses": "10",
- "plan_tier": "103",
- "price_per_license": "8000",
- "remote_realm_host": "zulip.testserver",
- "remote_realm_user_email": "[email protected]",
- "remote_realm_user_id": "1",
- "seat_count": "10",
- "type": "upgrade"
- },
- "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"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "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": "requires_payment_method",
- "transfer_data": null,
- "transfer_group": null
- }
- },
- "id": "evt_3ONJ56DEQaroqDjs07vmQzRX",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_8V6izeXwNoDWNV",
- "idempotency_key": "1cdc58e7-dec7-4356-9b72-61b61a9ed3ed"
- },
- "type": "payment_intent.created"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json
index 15e823a6104..cfe538d1fae 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
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1702576344,
+ "created": 1000000000,
"data": {
"object": {
"account_country": "US",
@@ -24,10 +24,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1702576343,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -42,13 +42,13 @@
"discount": null,
"discounts": [],
"due_date": null,
- "effective_at": 1702576344,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QQmdTSkNoaFdYRHpYT0E1QVJ1Y09WQ1lTQU9Lclk4LDkzMTE3MTQ102007SAk5Ult?s=ap",
- "id": "in_1ONJ59DEQaroqDjsUzP2pYN4",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QQmdTSkNoaFdYRHpYT0E1QVJ1Y09WQ1lTQU9Lclk4LDkzMTE3MTQ102007SAk5Ult/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDV1F2QmFOWEpPbkdTQkRPZHJ3aHdmT0w4RE42LDkzNDQ3Mjc40200ujSWL3KE?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDV1F2QmFOWEpPbkdTQkRPZHJ3aHdmT0w4RE42LDkzNDQ3Mjc40200ujSWL3KE/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ONJ59DEQaroqDjssw1k4VTb",
- "invoice_item": "ii_1ONJ59DEQaroqDjsWrf7ze7y",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -74,16 +74,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1701482271,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OIiSpDEQaroqDjsgWEnTxtK",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P6wL91VQYef5Zp",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -111,29 +111,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ONJ59DEQaroqDjsM5QX68m5",
- "invoice_item": "ii_1ONJ58DEQaroqDjs8GcLTLsv",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1702576342,
- "start": 1702576342
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700565834,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEs3aDEQaroqDjszVnZ9owE",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -157,12 +157,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ONJ59DEQaroqDjsUzP2pYN4/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "3F94EF3A-0001",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -173,8 +173,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1702576343,
- "period_start": 1702576343,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -192,9 +192,9 @@
"statement_descriptor": "Zulip Business",
"status": "paid",
"status_transitions": {
- "finalized_at": 1702576344,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1702576344,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -210,7 +210,7 @@
"total_excluding_tax": 0,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1702576344
+ "webhooks_delivered_at": null
},
"previous_attributes": {
"attempted": false,
@@ -219,7 +219,7 @@
"ending_balance": null,
"hosted_invoice_url": null,
"invoice_pdf": null,
- "next_payment_attempt": 1702579943,
+ "next_payment_attempt": 1000000000,
"number": null,
"paid": false,
"rendering": {
@@ -234,19 +234,19 @@
}
}
},
- "id": "evt_1ONJ5BDEQaroqDjsYQhfAK8o",
+ "id": "evt_1OOgxuDEQaroqDjsGVh1pnqK",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_C4QsvtqC0MULT7",
- "idempotency_key": "7e929cfa-04e8-4d96-859e-c862f9d8aa0c"
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "d04cdb80-859a-4b2c-bcfd-5f38aa5bf906"
},
"type": "invoice.updated"
},
{
"api_version": "2020-08-27",
- "created": 1702576343,
+ "created": 1000000000,
"data": {
"object": {
"account_country": "US",
@@ -268,10 +268,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1702576343,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -291,7 +291,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "in_1ONJ59DEQaroqDjsUzP2pYN4",
+ "id": "in_NORMALIZED00000000000001",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -305,8 +305,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ONJ59DEQaroqDjssw1k4VTb",
- "invoice_item": "ii_1ONJ59DEQaroqDjsWrf7ze7y",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -318,16 +318,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1701482271,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OIiSpDEQaroqDjsgWEnTxtK",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P6wL91VQYef5Zp",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -355,29 +355,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ONJ59DEQaroqDjsM5QX68m5",
- "invoice_item": "ii_1ONJ58DEQaroqDjs8GcLTLsv",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1702576342,
- "start": 1702576342
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700565834,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEs3aDEQaroqDjszVnZ9owE",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -401,11 +401,11 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ONJ59DEQaroqDjsUzP2pYN4/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
- "next_payment_attempt": 1702579943,
+ "next_payment_attempt": 1000000000,
"number": null,
"object": "invoice",
"on_behalf_of": null,
@@ -417,8 +417,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1702576343,
- "period_start": 1702576343,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -457,29 +457,29 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ONJ5ADEQaroqDjsZ0lhyuIF",
+ "id": "evt_1OOgxuDEQaroqDjsTduA6Jpd",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_bEUGBI20bpmfLA",
- "idempotency_key": "b0b89be4-7c1f-448f-8e47-d16aea228cfa"
+ "id": "req_NORMALIZED0004",
+ "idempotency_key": "44043e1c-4a57-419d-8ac0-0513959bfd76"
},
"type": "invoice.created"
},
{
"api_version": "2020-08-27",
- "created": 1702576343,
+ "created": 1000000000,
"data": {
"object": {
"amount": 80000,
"currency": "usd",
- "customer": "cus_PBgRA4C5R3pi4D",
- "date": 1702576343,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Zulip Business",
"discountable": false,
"discounts": [],
- "id": "ii_1ONJ59DEQaroqDjsWrf7ze7y",
+ "id": "ii_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -492,16 +492,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1701482271,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OIiSpDEQaroqDjsgWEnTxtK",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P6wL91VQYef5Zp",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -519,51 +519,51 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1ONJ59DEQaroqDjsXRolg24c",
+ "id": "evt_1OOgxtDEQaroqDjsIvp91HWm",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_qHCiOfgWnK4ggM",
- "idempotency_key": "d10ca38c-6487-45b4-837a-044cf8e40e20"
+ "id": "req_NORMALIZED0005",
+ "idempotency_key": "53619ce5-e6ef-4418-899d-557abfbea920"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1702576342,
+ "created": 1000000000,
"data": {
"object": {
"amount": -80000,
"currency": "usd",
- "customer": "cus_PBgRA4C5R3pi4D",
- "date": 1702576342,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Payment (Card ending in 4242)",
"discountable": false,
"discounts": [],
- "id": "ii_1ONJ58DEQaroqDjs8GcLTLsv",
+ "id": "ii_NORMALIZED00000000000002",
"invoice": null,
"livemode": false,
"metadata": {},
"object": "invoiceitem",
"period": {
- "end": 1702576342,
- "start": 1702576342
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700565834,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEs3aDEQaroqDjszVnZ9owE",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -581,43 +581,43 @@
"unit_amount_decimal": "-80000"
}
},
- "id": "evt_1ONJ59DEQaroqDjsQM6q8WPT",
+ "id": "evt_1OOgxtDEQaroqDjsUBpDLcC3",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_s6u52P6HI1FqZO",
- "idempotency_key": "65868faa-9cb7-4c6f-a6d0-244c36f96ed4"
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "dfa8bbca-0f9d-440e-a2eb-2b282cfb6f4b"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1702576342,
+ "created": 1000000000,
"data": {
"object": {
"address": null,
"balance": 0,
- "created": 1702576334,
+ "created": 1000000000,
"currency": "usd",
"default_currency": "usd",
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 8bb4095c-58a",
+ "description": "zulip.testserver b46d7a23-a8e",
"discount": null,
"email": "[email protected]",
- "id": "cus_PBgRA4C5R3pi4D",
- "invoice_prefix": "3F94EF3A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "default_payment_method": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "8bb4095c-58a8-42b8-afd4-9d92e91691e5"
+ "remote_realm_uuid": "b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43"
},
"name": null,
"next_invoice_sequence": 1,
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1ONJ59DEQaroqDjsSwL1yXix",
+ "id": "evt_1OOgxtDEQaroqDjs66I8R291",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_s6u52P6HI1FqZO",
- "idempotency_key": "65868faa-9cb7-4c6f-a6d0-244c36f96ed4"
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "dfa8bbca-0f9d-440e-a2eb-2b282cfb6f4b"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.4.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.4.json
index 42236941d15..cc6a646b8fb 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.4.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.4.json
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1702576344,
+ "created": 1000000000,
"data": {
"object": {
"account_country": "US",
@@ -24,10 +24,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1702576343,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -42,13 +42,13 @@
"discount": null,
"discounts": [],
"due_date": null,
- "effective_at": 1702576344,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QQmdTSkNoaFdYRHpYT0E1QVJ1Y09WQ1lTQU9Lclk4LDkzMTE3MTQ102007SAk5Ult?s=ap",
- "id": "in_1ONJ59DEQaroqDjsUzP2pYN4",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QQmdTSkNoaFdYRHpYT0E1QVJ1Y09WQ1lTQU9Lclk4LDkzMTE3MTQ102007SAk5Ult/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDV1F2QmFOWEpPbkdTQkRPZHJ3aHdmT0w4RE42LDkzNDQ3Mjc50200pHhEI2SJ?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDV1F2QmFOWEpPbkdTQkRPZHJ3aHdmT0w4RE42LDkzNDQ3Mjc50200pHhEI2SJ/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ONJ59DEQaroqDjssw1k4VTb",
- "invoice_item": "ii_1ONJ59DEQaroqDjsWrf7ze7y",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -74,16 +74,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1701482271,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OIiSpDEQaroqDjsgWEnTxtK",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P6wL91VQYef5Zp",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -111,29 +111,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ONJ59DEQaroqDjsM5QX68m5",
- "invoice_item": "ii_1ONJ58DEQaroqDjs8GcLTLsv",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1702576342,
- "start": 1702576342
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700565834,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEs3aDEQaroqDjszVnZ9owE",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -157,12 +157,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ONJ59DEQaroqDjsUzP2pYN4/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "3F94EF3A-0001",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -173,8 +173,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1702576343,
- "period_start": 1702576343,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -192,9 +192,9 @@
"statement_descriptor": "Zulip Business",
"status": "paid",
"status_transitions": {
- "finalized_at": 1702576344,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1702576344,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -210,245 +210,22 @@
"total_excluding_tax": 0,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1702576344
+ "webhooks_delivered_at": null
}
},
- "id": "evt_1ONJ5BDEQaroqDjsqVWjxUDI",
+ "id": "evt_1OOgxvDEQaroqDjsoPIw8593",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_C4QsvtqC0MULT7",
- "idempotency_key": "7e929cfa-04e8-4d96-859e-c862f9d8aa0c"
- },
- "type": "invoice.payment_succeeded"
- },
- {
- "api_version": "2020-08-27",
- "created": 1702576344,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "Kandra Labs, Inc.",
- "account_tax_ids": null,
- "amount_due": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1702576343,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_PBgRA4C5R3pi4D",
- "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": 1702576344,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QQmdTSkNoaFdYRHpYT0E1QVJ1Y09WQ1lTQU9Lclk4LDkzMTE3MTQ102007SAk5Ult?s=ap",
- "id": "in_1ONJ59DEQaroqDjsUzP2pYN4",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QQmdTSkNoaFdYRHpYT0E1QVJ1Y09WQ1lTQU9Lclk4LDkzMTE3MTQ102007SAk5Ult/pdf?s=ap",
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 80000,
- "amount_excluding_tax": 80000,
- "currency": "usd",
- "description": "Zulip Business",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_1ONJ59DEQaroqDjssw1k4VTb",
- "invoice_item": "ii_1ONJ59DEQaroqDjsWrf7ze7y",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1701482271,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_1OIiSpDEQaroqDjsgWEnTxtK",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_P6wL91VQYef5Zp",
- "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": 10,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "8000"
- },
- {
- "amount": -80000,
- "amount_excluding_tax": -80000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_1ONJ59DEQaroqDjsM5QX68m5",
- "invoice_item": "ii_1ONJ58DEQaroqDjs8GcLTLsv",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1702576342,
- "start": 1702576342
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1700565834,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_1OEs3aDEQaroqDjszVnZ9owE",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_OvY3hKgN66WIeP",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -80000,
- "unit_amount_decimal": "-80000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-80000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_1ONJ59DEQaroqDjsUzP2pYN4/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "3F94EF3A-0001",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "payment_intent": null,
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1702576343,
- "period_start": 1702576343,
- "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 Business",
- "status": "paid",
- "status_transitions": {
- "finalized_at": 1702576344,
- "marked_uncollectible_at": null,
- "paid_at": 1702576344,
- "voided_at": null
- },
- "subscription": null,
- "subscription_details": {
- "metadata": null
- },
- "subtotal": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": 1702576344
- }
- },
- "id": "evt_1ONJ5BDEQaroqDjs5cCSUBTH",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_C4QsvtqC0MULT7",
- "idempotency_key": "7e929cfa-04e8-4d96-859e-c862f9d8aa0c"
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "d04cdb80-859a-4b2c-bcfd-5f38aa5bf906"
},
"type": "invoice.paid"
},
{
"api_version": "2020-08-27",
- "created": 1702576344,
+ "created": 1000000000,
"data": {
"object": {
"account_country": "US",
@@ -470,10 +247,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1702576343,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -488,13 +265,13 @@
"discount": null,
"discounts": [],
"due_date": null,
- "effective_at": 1702576344,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QQmdTSkNoaFdYRHpYT0E1QVJ1Y09WQ1lTQU9Lclk4LDkzMTE3MTQ102007SAk5Ult?s=ap",
- "id": "in_1ONJ59DEQaroqDjsUzP2pYN4",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QQmdTSkNoaFdYRHpYT0E1QVJ1Y09WQ1lTQU9Lclk4LDkzMTE3MTQ102007SAk5Ult/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDV1F2QmFOWEpPbkdTQkRPZHJ3aHdmT0w4RE42LDkzNDQ3Mjc40200ujSWL3KE?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDV1F2QmFOWEpPbkdTQkRPZHJ3aHdmT0w4RE42LDkzNDQ3Mjc40200ujSWL3KE/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -507,8 +284,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ONJ59DEQaroqDjssw1k4VTb",
- "invoice_item": "ii_1ONJ59DEQaroqDjsWrf7ze7y",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -520,16 +297,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1701482271,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OIiSpDEQaroqDjsgWEnTxtK",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P6wL91VQYef5Zp",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -557,29 +334,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ONJ59DEQaroqDjsM5QX68m5",
- "invoice_item": "ii_1ONJ58DEQaroqDjs8GcLTLsv",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1702576342,
- "start": 1702576342
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700565834,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEs3aDEQaroqDjszVnZ9owE",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -603,12 +380,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ONJ59DEQaroqDjsUzP2pYN4/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "3F94EF3A-0001",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -619,8 +396,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1702576343,
- "period_start": 1702576343,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -638,9 +415,9 @@
"statement_descriptor": "Zulip Business",
"status": "paid",
"status_transitions": {
- "finalized_at": 1702576344,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1702576344,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -656,16 +433,16 @@
"total_excluding_tax": 0,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1702576344
+ "webhooks_delivered_at": null
}
},
- "id": "evt_1ONJ5BDEQaroqDjsw0VZxItF",
+ "id": "evt_1OOgxvDEQaroqDjsAGXOAvFg",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_C4QsvtqC0MULT7",
- "idempotency_key": "7e929cfa-04e8-4d96-859e-c862f9d8aa0c"
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "d04cdb80-859a-4b2c-bcfd-5f38aa5bf906"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.5.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.5.json
index 6d922067afe..8c9bb73ac76 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.5.json
@@ -1,5 +1,229 @@
{
- "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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDV1F2QmFOWEpPbkdTQkRPZHJ3aHdmT0w4RE42LDkzNDQ3Mjc50200pHhEI2SJ?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDV1F2QmFOWEpPbkdTQkRPZHJ3aHdmT0w4RE42LDkzNDQ3Mjc50200pHhEI2SJ/pdf?s=ap",
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 80000,
+ "amount_excluding_tax": 80000,
+ "currency": "usd",
+ "description": "Zulip Business",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "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": 10,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "8000"
+ },
+ {
+ "amount": -80000,
+ "amount_excluding_tax": -80000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -80000,
+ "unit_amount_decimal": "-80000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-80000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0002",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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 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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgxvDEQaroqDjsdkp7VA2o",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "d04cdb80-859a-4b2c-bcfd-5f38aa5bf906"
+ },
+ "type": "invoice.payment_succeeded"
+ }
+ ],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.6.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.6.json
new file mode 100644
index 00000000000..6d922067afe
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.6.json
@@ -0,0 +1,6 @@
+{
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/events"
+}
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json
index effea70934f..dee6dd2852d 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
@@ -18,10 +18,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1702576343,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -41,7 +41,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "in_1ONJ59DEQaroqDjsUzP2pYN4",
+ "id": "in_NORMALIZED00000000000001",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ONJ59DEQaroqDjssw1k4VTb",
- "invoice_item": "ii_1ONJ59DEQaroqDjsWrf7ze7y",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,16 +68,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1701482271,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OIiSpDEQaroqDjsgWEnTxtK",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P6wL91VQYef5Zp",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -105,29 +105,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ONJ59DEQaroqDjsM5QX68m5",
- "invoice_item": "ii_1ONJ58DEQaroqDjs8GcLTLsv",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1702576342,
- "start": 1702576342
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700565834,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEs3aDEQaroqDjszVnZ9owE",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -151,11 +151,11 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ONJ59DEQaroqDjsUzP2pYN4/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
- "next_payment_attempt": 1702579943,
+ "next_payment_attempt": 1000000000,
"number": null,
"object": "invoice",
"on_behalf_of": null,
@@ -167,8 +167,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1702576343,
- "period_start": 1702576343,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": 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.json
index b1d0b133398..2c146c2ff21 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
@@ -18,10 +18,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1702576343,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -36,13 +36,13 @@
"discount": null,
"discounts": [],
"due_date": null,
- "effective_at": 1702576344,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QQmdTSkNoaFdYRHpYT0E1QVJ1Y09WQ1lTQU9Lclk4LDkzMTE3MTQ00200ynvW9wzF?s=ap",
- "id": "in_1ONJ59DEQaroqDjsUzP2pYN4",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QQmdTSkNoaFdYRHpYT0E1QVJ1Y09WQ1lTQU9Lclk4LDkzMTE3MTQ00200ynvW9wzF/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDV1F2QmFOWEpPbkdTQkRPZHJ3aHdmT0w4RE42LDkzNDQ3Mjc40200ujSWL3KE?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDV1F2QmFOWEpPbkdTQkRPZHJ3aHdmT0w4RE42LDkzNDQ3Mjc40200ujSWL3KE/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ONJ59DEQaroqDjssw1k4VTb",
- "invoice_item": "ii_1ONJ59DEQaroqDjsWrf7ze7y",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,16 +68,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1701482271,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OIiSpDEQaroqDjsgWEnTxtK",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P6wL91VQYef5Zp",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -105,29 +105,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ONJ59DEQaroqDjsM5QX68m5",
- "invoice_item": "ii_1ONJ58DEQaroqDjs8GcLTLsv",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1702576342,
- "start": 1702576342
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700565834,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEs3aDEQaroqDjszVnZ9owE",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -151,12 +151,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ONJ59DEQaroqDjsUzP2pYN4/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "3F94EF3A-0001",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -167,8 +167,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1702576343,
- "period_start": 1702576343,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -186,9 +186,9 @@
"statement_descriptor": "Zulip Business",
"status": "paid",
"status_transitions": {
- "finalized_at": 1702576344,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1702576344,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -204,5 +204,5 @@
"total_excluding_tax": 0,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1702576344
+ "webhooks_delivered_at": null
}
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.json
index ddb9d9e39e4..76bc062d9c7 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
@@ -1,34 +1,34 @@
{
"amount": -80000,
"currency": "usd",
- "customer": "cus_PBgRA4C5R3pi4D",
- "date": 1702576342,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Payment (Card ending in 4242)",
"discountable": false,
"discounts": [],
- "id": "ii_1ONJ58DEQaroqDjs8GcLTLsv",
+ "id": "ii_NORMALIZED00000000000002",
"invoice": null,
"livemode": false,
"metadata": {},
"object": "invoiceitem",
"period": {
- "end": 1702576342,
- "start": 1702576342
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700565834,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEs3aDEQaroqDjszVnZ9owE",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.2.json
index a5dbe96af2c..ac377732152 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.2.json
@@ -1,12 +1,12 @@
{
"amount": 80000,
"currency": "usd",
- "customer": "cus_PBgRA4C5R3pi4D",
- "date": 1702576343,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Zulip Business",
"discountable": false,
"discounts": [],
- "id": "ii_1ONJ59DEQaroqDjsWrf7ze7y",
+ "id": "ii_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -19,16 +19,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1701482271,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OIiSpDEQaroqDjsgWEnTxtK",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P6wL91VQYef5Zp",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--PaymentIntent.create.1.json
index 4e7ba877756..1b346aa07bf 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--PaymentIntent.create.1.json
@@ -20,7 +20,7 @@
"application": null,
"application_fee": null,
"application_fee_amount": null,
- "balance_transaction": "txn_3ONJ56DEQaroqDjs0M2f9IAT",
+ "balance_transaction": "txn_NORMALIZED00000000000001",
"billing_details": {
"address": {
"city": null,
@@ -36,9 +36,9 @@
},
"calculated_statement_descriptor": "ZULIP BUSINESS",
"captured": true,
- "created": 1702576341,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Business, $80.0 x 10",
"destination": null,
"dispute": null,
@@ -47,7 +47,7 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "ch_3ONJ56DEQaroqDjs0BpPKMXi",
+ "id": "ch_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {
@@ -59,7 +59,7 @@
"price_per_license": "8000",
"remote_realm_host": "zulip.testserver",
"remote_realm_user_email": "[email protected]",
- "remote_realm_user_id": "1",
+ "remote_realm_user_id": "2",
"seat_count": "10",
"type": "upgrade"
},
@@ -70,13 +70,13 @@
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
- "risk_score": 42,
+ "risk_score": 0,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_3ONJ56DEQaroqDjs0GqTybKR",
- "payment_method": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"payment_method_details": {
"card": {
"amount_authorized": 80000,
@@ -92,7 +92,7 @@
"extended_authorization": {
"status": "disabled"
},
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
@@ -118,14 +118,14 @@
},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNWB7asGMgaQgUMl0uk6LBaI3EDlvb9GkU1rXPQWvth9c8efRC6OUx8tpZgICrb4ST6zwYP4VmG6ZRqq",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOyUgawGMgYxJ8fXEnE6LBY5f_v9NH3vOpVWDXZdxZV42LAme86u4U65P_BUkwTxZbdj-_fQ8X80AsJH",
"refunded": false,
"refunds": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/ch_3ONJ56DEQaroqDjs0BpPKMXi/refunds"
+ "url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
},
"review": null,
"shipping": null,
@@ -141,18 +141,18 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=pi_3ONJ56DEQaroqDjs0GqTybKR"
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_3ONJ56DEQaroqDjs0GqTybKR_secret_fPt0ZuASHDpKHmov3pUovneYg",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_eCDtZomR9THUUNBv25qmdV7ff",
"confirmation_method": "automatic",
- "created": 1702576340,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Business, $80.0 x 10",
- "id": "pi_3ONJ56DEQaroqDjs0GqTybKR",
+ "id": "pi_NORMALIZED00000000000001",
"invoice": null,
"last_payment_error": null,
- "latest_charge": "ch_3ONJ56DEQaroqDjs0BpPKMXi",
+ "latest_charge": "ch_NORMALIZED00000000000001",
"livemode": false,
"metadata": {
"billing_modality": "charge_automatically",
@@ -163,14 +163,14 @@
"price_per_license": "8000",
"remote_realm_host": "zulip.testserver",
"remote_realm_user_email": "[email protected]",
- "remote_realm_user_id": "1",
+ "remote_realm_user_id": "2",
"seat_count": "10",
"type": "upgrade"
},
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "payment_method": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.create.1.json
index bbed0c4ce85..07472c7cde9 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1ONJ51DEQaroqDjsZNLHHtQn_secret_PBgRmbfqmvy01Qdp2OcqIiVep8ZYauJ",
- "created": 1702576335,
- "customer": "cus_PBgRA4C5R3pi4D",
+ "client_secret": "seti_1OOgxnDEQaroqDjsi7FO3jFP_secret_PD7CyXbHPI3difL0bMs0mVjfeIpe0EK",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ONJ51DEQaroqDjsZNLHHtQn",
+ "id": "seti_1OOgxnDEQaroqDjsi7FO3jFP",
"last_setup_error": null,
- "latest_attempt": "setatt_1ONJ51DEQaroqDjsi7EH4DD8",
+ "latest_attempt": "setatt_1OOgxnDEQaroqDjsV0aPfyRE",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "payment_method": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.list.1.json
index 81f68138845..85762d7b116 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1ONJ50DEQaroqDjs4pap3aTQ_secret_PBgRHYUx24GJSskzKKwSuQLrKhYNeay",
- "created": 1702576334,
- "customer": "cus_PBgRA4C5R3pi4D",
+ "client_secret": "seti_1OOgxmDEQaroqDjs5K0moUnP_secret_PD7COmAJk8EAvINs5zd0uVCgoJoh6DP",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ONJ50DEQaroqDjs4pap3aTQ",
+ "id": "seti_1OOgxmDEQaroqDjs5K0moUnP",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.retrieve.1.json
index bbed0c4ce85..07472c7cde9 100644
--- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1ONJ51DEQaroqDjsZNLHHtQn_secret_PBgRmbfqmvy01Qdp2OcqIiVep8ZYauJ",
- "created": 1702576335,
- "customer": "cus_PBgRA4C5R3pi4D",
+ "client_secret": "seti_1OOgxnDEQaroqDjsi7FO3jFP_secret_PD7CyXbHPI3difL0bMs0mVjfeIpe0EK",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ONJ51DEQaroqDjsZNLHHtQn",
+ "id": "seti_1OOgxnDEQaroqDjsi7FO3jFP",
"last_setup_error": null,
- "latest_attempt": "setatt_1ONJ51DEQaroqDjsi7EH4DD8",
+ "latest_attempt": "setatt_1OOgxnDEQaroqDjsV0aPfyRE",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ONJ51DEQaroqDjs55u0UX9G",
+ "payment_method": "pm_1OOgxnDEQaroqDjsVKBHx8El",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
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.json
index 13f92597f0f..952a0d9ad2b 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
@@ -8,12 +8,12 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://selfhosting.testserver/realm/8bb4095c-58a8-42b8-afd4-9d92e91691e5/upgrade/",
+ "cancel_url": "http://selfhosting.testserver/realm/b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1702576334,
+ "created": 1000000000,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -23,7 +23,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -34,14 +34,14 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1702662734,
- "id": "cs_test_c1qc1I3QN6VOVyLmmPYRt748pBxWTIgXj1XJRwQN5cD8HCNx5X6vq036GI",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED02ASCJWVwKKpPzmPcoJSfXMfWdD5pNYIJGn2icFi5Cd3Rync",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_realm_user_id": "1",
+ "remote_realm_user_id": "2",
"type": "card_update"
},
"mode": "setup",
@@ -59,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ONJ50DEQaroqDjs4pap3aTQ",
+ "setup_intent": "seti_1OOgxmDEQaroqDjs5K0moUnP",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -67,8 +67,8 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/8bb4095c-58a8-42b8-afd4-9d92e91691e5/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_c1qc1I3QN6VOVyLmmPYRt748pBxWTIgXj1XJRwQN5cD8HCNx5X6vq036GI#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02ASCJWVwKKpPzmPcoJSfXMfWdD5pNYIJGn2icFi5Cd3Rync#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
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.json
index 85feaa1cb21..c27d5b40f95 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
@@ -10,12 +10,12 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://selfhosting.testserver/realm/8bb4095c-58a8-42b8-afd4-9d92e91691e5/upgrade/",
+ "cancel_url": "http://selfhosting.testserver/realm/b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1702576334,
+ "created": 1000000000,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -25,7 +25,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_PBgRA4C5R3pi4D",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -36,14 +36,14 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1702662734,
- "id": "cs_test_c1qc1I3QN6VOVyLmmPYRt748pBxWTIgXj1XJRwQN5cD8HCNx5X6vq036GI",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED02ASCJWVwKKpPzmPcoJSfXMfWdD5pNYIJGn2icFi5Cd3Rync",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_realm_user_id": "1",
+ "remote_realm_user_id": "2",
"type": "card_update"
},
"mode": "setup",
@@ -61,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ONJ50DEQaroqDjs4pap3aTQ",
+ "setup_intent": "seti_1OOgxmDEQaroqDjs5K0moUnP",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,10 +69,10 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/8bb4095c-58a8-42b8-afd4-9d92e91691e5/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/b46d7a23-a8ef-4fe3-9650-b7b85e2a9b43/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_c1qc1I3QN6VOVyLmmPYRt748pBxWTIgXj1XJRwQN5cD8HCNx5X6vq036GI#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02ASCJWVwKKpPzmPcoJSfXMfWdD5pNYIJGn2icFi5Cd3Rync#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.modify.1.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.modify.1.json
index 0dd8ee0aebb..6d74cea38a2 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "default_payment_method": "pm_1OOgv1DEQaroqDjsx69fWBje",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json
index 4117b4b0c67..6c3ac7d267a 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.retrieve.1.json
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "id": "pm_1OOgv1DEQaroqDjsx69fWBje",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.retrieve.2.json
index 4117b4b0c67..6c3ac7d267a 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.retrieve.2.json
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "id": "pm_1OOgv1DEQaroqDjsx69fWBje",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.retrieve.3.json
index 4117b4b0c67..6c3ac7d267a 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Customer.retrieve.3.json
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "id": "pm_1OOgv1DEQaroqDjsx69fWBje",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Event.list.1.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Event.list.1.json
index 07e23ff90d2..e02071fcfe6 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "default_payment_method": "pm_1OOgv1DEQaroqDjsx69fWBje",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlZXDEQaroqDjszdu1PLGm",
+ "id": "evt_1OOgv3DEQaroqDjsouIgilyr",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "64abef9e-7de6-4592-94b3-20ad3c2f2690"
+ "idempotency_key": "91c8ffb4-da32-4b55-82ee-221040cc563e"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Event.list.2.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Event.list.2.json
index ac38ce955b6..74343e065f4 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Event.list.2.json
@@ -42,7 +42,7 @@
},
"calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
"captured": true,
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "payment_method": "pm_1OOgv1DEQaroqDjsx69fWBje",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -123,10 +123,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM77qqsGMgbU9H0uERk6LBYpcla43eFWXBZbiPFzt6jDO9zdDF25nKHBdi2PDGuOUJrpDGzamU02f3VQ",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMCTgawGMgbgUOxX4bg6LBa4fiD4sWoqpI5aCfYl5ZTrnj3ob3arno4pSEseMNunfB08SQfJiQvt0w_t",
"refunded": false,
"refunds": {
"data": [],
@@ -151,9 +150,9 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_m9xMfWwQp3bHB1NRXpgW823vW",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_x9OebXzJoULi97VHYrIbRc7wf",
"confirmation_method": "automatic",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -179,7 +178,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "payment_method": "pm_1OOgv1DEQaroqDjsx69fWBje",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +204,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlZZDEQaroqDjs11FM49Rf",
+ "id": "evt_3OOgv5DEQaroqDjs0udMJuSg",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "148e66eb-e0af-493d-bd47-e18eaea5e7d0"
+ "idempotency_key": "53294610-8caf-48da-a254-e09b428e9eca"
},
"type": "payment_intent.succeeded"
},
@@ -242,7 +241,7 @@
},
"calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
"captured": true,
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -283,7 +282,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "payment_method": "pm_1OOgv1DEQaroqDjsx69fWBje",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -323,10 +322,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM77qqsGMgYTbnwUXW86LBZ_U3W3vqlKcnyZhRgRir_yUhO2UusdSJIXX4iZQO-xghqsLx3NRV5NUnIe",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMCTgawGMgZOJxBsM-U6LBYHVvJQ0rJ8LbkjLUicEoLJkiYM_nhlbwX6Ns5s4_dJahOMaxxABG1pmJQm",
"refunded": false,
"refunds": {
"data": [],
@@ -346,13 +344,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlZZDEQaroqDjs1vwK4alC",
+ "id": "evt_3OOgv5DEQaroqDjs050js7CE",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "148e66eb-e0af-493d-bd47-e18eaea5e7d0"
+ "idempotency_key": "53294610-8caf-48da-a254-e09b428e9eca"
},
"type": "charge.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Event.list.3.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Event.list.3.json
index 0f6a914e1c3..8f39819b1a9 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--Event.list.3.json
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1010000006,
+ "created": 1010000005,
"data": {
"object": {
"amount": -48000,
@@ -25,7 +25,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -52,19 +52,19 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OIlZbDEQaroqDjsKU68akKP",
+ "id": "evt_1OOgv6DEQaroqDjsEM63FBCS",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "3e78da3d-c9dd-4902-a7ae-ad39b7e8b97e"
+ "idempotency_key": "a052cc69-b4c0-41e8-bef1-3a6c1474a80f"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1010000006,
+ "created": 1010000005,
"data": {
"object": {
"address": null,
@@ -81,7 +81,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "default_payment_method": "pm_1OOgv1DEQaroqDjsx69fWBje",
"footer": null,
"rendering_options": null
},
@@ -104,13 +104,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlZbDEQaroqDjsclqQ2bIM",
+ "id": "evt_1OOgv6DEQaroqDjsrSGzNk8z",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "3e78da3d-c9dd-4902-a7ae-ad39b7e8b97e"
+ "idempotency_key": "a052cc69-b4c0-41e8-bef1-3a6c1474a80f"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--InvoiceItem.create.1.json
index c940075b416..457258b2d7a 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--InvoiceItem.create.1.json
@@ -19,7 +19,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--PaymentIntent.create.1.json
index 5a232ad332e..3f541cdc90a 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--PaymentIntent.create.1.json
@@ -36,7 +36,7 @@
},
"calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
"captured": true,
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "payment_method": "pm_1OOgv1DEQaroqDjsx69fWBje",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -117,10 +117,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM77qqsGMgYrC1cOowA6LBb_QRj9liR65TWNRlXE5wMSoyqYmKzNCq7ORomQ0dJBJvtNE7S4TY7v32KV",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKL-TgawGMgZvZKc2OZM6LBZXYIY7pz_KLBrqGfCQpR5y7Uui1cPAGS1Uxvy28gFwp3u1HlEVB09PskBS",
"refunded": false,
"refunds": {
"data": [],
@@ -145,9 +144,9 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_m9xMfWwQp3bHB1NRXpgW823vW",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_x9OebXzJoULi97VHYrIbRc7wf",
"confirmation_method": "automatic",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -173,7 +172,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "payment_method": "pm_1OOgv1DEQaroqDjsx69fWBje",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--SetupIntent.create.1.json
index b17507cd78c..af85e803409 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZWDEQaroqDjswk4S6KQs_secret_P6zYeFfU6JaL8YowWTbghLdD14b5SA7",
+ "client_secret": "seti_1OOgv1DEQaroqDjsfYqkBwVo_secret_PD79ARdLIZNlxvsqApGyZNZpBSzyAmM",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZWDEQaroqDjswk4S6KQs",
+ "id": "seti_1OOgv1DEQaroqDjsfYqkBwVo",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlZWDEQaroqDjsDyVT3HG5",
+ "latest_attempt": "setatt_1OOgv1DEQaroqDjsATRaRkey",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "payment_method": "pm_1OOgv1DEQaroqDjsx69fWBje",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--SetupIntent.list.1.json
index dcb8e844eb9..711ab63f1cf 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZVDEQaroqDjsc8iFVQPI_secret_P6zYNvIPhkc3ZwLlGD0ulqu6RqlNryp",
- "created": 1010000008,
+ "client_secret": "seti_1OOgv0DEQaroqDjsP5tSo15z_secret_PD79hZjZA4y7yoH0up3fcYLZUX14Dv3",
+ "created": 1010000001,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZVDEQaroqDjsc8iFVQPI",
+ "id": "seti_1OOgv0DEQaroqDjsP5tSo15z",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--SetupIntent.retrieve.1.json
index b17507cd78c..af85e803409 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZWDEQaroqDjswk4S6KQs_secret_P6zYeFfU6JaL8YowWTbghLdD14b5SA7",
+ "client_secret": "seti_1OOgv1DEQaroqDjsfYqkBwVo_secret_PD79ARdLIZNlxvsqApGyZNZpBSzyAmM",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZWDEQaroqDjswk4S6KQs",
+ "id": "seti_1OOgv1DEQaroqDjsfYqkBwVo",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlZWDEQaroqDjsDyVT3HG5",
+ "latest_attempt": "setatt_1OOgv1DEQaroqDjsATRaRkey",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
+ "payment_method": "pm_1OOgv1DEQaroqDjsx69fWBje",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--checkout.Session.create.1.json
index 2db78496560..5ff6c6e6956 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--checkout.Session.create.1.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000008,
+ "created": 1010000001,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED016M1Aw24t88WLGaLBqgomj7XWd3PpuVXysM7wlLknWeJSfS",
+ "id": "cs_test_NORMALIZED01SFOQz4s2p7XRXssIFDnjilQyXE7NoUdIccOUhuEdSrlPZr",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlZVDEQaroqDjsc8iFVQPI",
+ "setup_intent": "seti_1OOgv0DEQaroqDjsP5tSo15z",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED016M1Aw24t88WLGaLBqgomj7XWd3PpuVXysM7wlLknWeJSfS#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01SFOQz4s2p7XRXssIFDnjilQyXE7NoUdIccOUhuEdSrlPZr#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--checkout.Session.list.1.json
index e921bae0c47..4405ee963c2 100644
--- a/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/payment_intent_succeeded_event_with_uncaught_exception--checkout.Session.list.1.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000008,
+ "created": 1010000001,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED016M1Aw24t88WLGaLBqgomj7XWd3PpuVXysM7wlLknWeJSfS",
+ "id": "cs_test_NORMALIZED01SFOQz4s2p7XRXssIFDnjilQyXE7NoUdIccOUhuEdSrlPZr",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlZVDEQaroqDjsc8iFVQPI",
+ "setup_intent": "seti_1OOgv0DEQaroqDjsP5tSo15z",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED016M1Aw24t88WLGaLBqgomj7XWd3PpuVXysM7wlLknWeJSfS#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01SFOQz4s2p7XRXssIFDnjilQyXE7NoUdIccOUhuEdSrlPZr#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.1.json
index 268c00bd100..026931f3b8a 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "default_payment_method": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.2.json
index 972964c3991..e90ad7608c5 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.2.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlZrDEQaroqDjs906nPEKz",
+ "default_payment_method": "pm_1OOhBZDEQaroqDjsjrr4p4dg",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.3.json
index aa5d461b7d9..d13f5061781 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.3.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlZxDEQaroqDjsOkOpLsAE",
+ "default_payment_method": "pm_1OOhBfDEQaroqDjsSbA5T4hs",
"footer": null,
"rendering_options": 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.json
index df51268c2c0..9a308d96c38 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "id": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index df51268c2c0..9a308d96c38 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "id": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index df51268c2c0..9a308d96c38 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "id": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index df51268c2c0..9a308d96c38 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "id": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 54a4f29c20b..2f5bb714da9 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
+ "id": "pm_1OOhBZDEQaroqDjsjrr4p4dg",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 16c48357dda..ccc3e6c24e8 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZxDEQaroqDjsOkOpLsAE",
+ "id": "pm_1OOhBfDEQaroqDjsSbA5T4hs",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json
index 904ffb37ede..e3498d940bb 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "default_payment_method": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlZgDEQaroqDjsDe0aPNNf",
+ "id": "evt_1OOhBNDEQaroqDjsR10vb8xq",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "7e159d25-902f-44a2-8cae-60c745157c9f"
+ "idempotency_key": "d70065c2-d3d3-4206-a3f8-a1b8480f1e68"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json
index be9a9a1ee20..d12b7a51fb1 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
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "payment_method": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -123,10 +123,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNf7qqsGMga4A0OHsqs6LBY5P23Y1ojNAnta69dy6Rz218UmmqycI9QqvUG1y2J7mL2iMvAZ2Whjnko7",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKLSbgawGMgbju9jaR-s6LBb4u7KKx4itXvQjOGn1SMyG_BZhPUWSw6cIJU97uYrqICsahbc6Z1aVS34P",
"refunded": false,
"refunds": {
"data": [],
@@ -151,7 +150,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_mA3WGOAKeG1RWpwwFeSFLWy8o",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_GrdBBgWQ3sEMJIROLy1gYahdy",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -179,7 +178,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "payment_method": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +204,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlZiDEQaroqDjs1W9Vv3Oi",
+ "id": "evt_3OOhBPDEQaroqDjs1yzEO5t3",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "7e8b57f4-1cc7-4413-84ff-73f6c06c59c0"
+ "idempotency_key": "d0541578-3256-4139-b247-3d61503500da"
},
"type": "payment_intent.succeeded"
},
@@ -283,7 +282,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "payment_method": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -323,10 +322,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNf7qqsGMgZpcznYnN46LBZChseUptRrFTc-S0KGA2931SHGv4LH33keZ51FdS0-Sqq1AANLVXwICb2o",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKLSbgawGMgYmAdA1zGk6LBZyt5tulNYjv_hMGIM6ycHiUf6kcDIlUSxyP8bPU7pSVXpGPZbycn8M7liM",
"refunded": false,
"refunds": {
"data": [],
@@ -346,13 +344,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlZiDEQaroqDjs1ro0vXQX",
+ "id": "evt_3OOhBPDEQaroqDjs1nPcSlLg",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "7e8b57f4-1cc7-4413-84ff-73f6c06c59c0"
+ "idempotency_key": "d0541578-3256-4139-b247-3d61503500da"
},
"type": "charge.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json
index 66804fc724f..e2d1f05b372 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDMz0200dBtKIsxy?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRM0JobGJnMDhibVBkbE5COGVUeGJ2U05DS0ZNLDkzNDQ4MTE50200mwDUGl9k?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDMz0200dBtKIsxy/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRM0JobGJnMDhibVBkbE5COGVUeGJ2U05DS0ZNLDkzNDQ4MTE50200mwDUGl9k/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1OIlZlDEQaroqDjs44kOYXpQ",
+ "id": "evt_1OOhBTDEQaroqDjsKCJMvTba",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "819a719f-6b81-4640-93c5-94ed69d67e4c"
+ "idempotency_key": "b296d193-99cf-48e6-aabc-2f9681053cdb"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlZlDEQaroqDjsW6YphDWf",
+ "id": "evt_1OOhBSDEQaroqDjsw7o4W7lb",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "fa037254-70f0-481f-b8ac-afb3a645f471"
+ "idempotency_key": "9d067b00-6262-4876-a347-f23a714ba17f"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OIlZkDEQaroqDjszDTpFRfw",
+ "id": "evt_1OOhBRDEQaroqDjsPqe9AheJ",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "dc2f8ef3-157a-4dc6-b4b5-ccf28b2ae122"
+ "idempotency_key": "d76c8f94-6a3d-4248-b1d1-1036d072a3dc"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OIlZkDEQaroqDjszfkmUW6j",
+ "id": "evt_1OOhBRDEQaroqDjsfxEPIPks",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "4ef6e5e7-244d-43b2-9ade-d5de4cd1e784"
+ "idempotency_key": "886db749-8a3c-4316-93a3-6a643c2a1dbc"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "default_payment_method": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlZkDEQaroqDjsYGezgWjf",
+ "id": "evt_1OOhBRDEQaroqDjsFIQi87N3",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "4ef6e5e7-244d-43b2-9ade-d5de4cd1e784"
+ "idempotency_key": "886db749-8a3c-4316-93a3-6a643c2a1dbc"
},
"type": "customer.updated"
}
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.json
index efdef60997e..83d1a5de287 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDM00200gz5W16N1?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRM0JobGJnMDhibVBkbE5COGVUeGJ2U05DS0ZNLDkzNDQ4MTE50200mwDUGl9k?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDM00200gz5W16N1/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRM0JobGJnMDhibVBkbE5COGVUeGJ2U05DS0ZNLDkzNDQ4MTE50200mwDUGl9k/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,236 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlZmDEQaroqDjsVSsjRNKV",
+ "id": "evt_1OOhBTDEQaroqDjsen5yptbp",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "819a719f-6b81-4640-93c5-94ed69d67e4c"
- },
- "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": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDM00200gz5W16N1?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDM00200gz5W16N1/pdf?s=ap",
- "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": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
- "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": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "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"
- },
- {
- "amount": -48000,
- "amount_excluding_tax": -48000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
- "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": "price_NORMALIZED00000000000002",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -48000,
- "unit_amount_decimal": "-48000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-48000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0002",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIlZmDEQaroqDjstISCzIsZ",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "819a719f-6b81-4640-93c5-94ed69d67e4c"
+ "idempotency_key": "b296d193-99cf-48e6-aabc-2f9681053cdb"
},
"type": "invoice.paid"
},
@@ -492,9 +269,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDM00200gz5W16N1?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRM0JobGJnMDhibVBkbE5COGVUeGJ2U05DS0ZNLDkzNDQ4MTE50200mwDUGl9k?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDM00200gz5W16N1/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRM0JobGJnMDhibVBkbE5COGVUeGJ2U05DS0ZNLDkzNDQ4MTE50200mwDUGl9k/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -659,13 +436,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlZmDEQaroqDjsKUacGBYo",
+ "id": "evt_1OOhBTDEQaroqDjstfaG1ZYP",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "819a719f-6b81-4640-93c5-94ed69d67e4c"
+ "idempotency_key": "b296d193-99cf-48e6-aabc-2f9681053cdb"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.5.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.5.json
index 6d922067afe..0f1d058f145 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.5.json
@@ -1,5 +1,229 @@
{
- "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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRM0JobGJnMDhibVBkbE5COGVUeGJ2U05DS0ZNLDkzNDQ4MTE50200mwDUGl9k?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRM0JobGJnMDhibVBkbE5COGVUeGJ2U05DS0ZNLDkzNDQ4MTE50200mwDUGl9k/pdf?s=ap",
+ "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": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "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"
+ },
+ {
+ "amount": -48000,
+ "amount_excluding_tax": -48000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -48000,
+ "unit_amount_decimal": "-48000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-48000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0002",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOhBTDEQaroqDjsSjx3vBbu",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "b296d193-99cf-48e6-aabc-2f9681053cdb"
+ },
+ "type": "invoice.payment_succeeded"
+ }
+ ],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.6.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.6.json
new file mode 100644
index 00000000000..6d922067afe
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.6.json
@@ -0,0 +1,6 @@
+{
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/events"
+}
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.json
index b02df24f327..1252f545169 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDMz0200dBtKIsxy?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRM0JobGJnMDhibVBkbE5COGVUeGJ2U05DS0ZNLDkzNDQ4MTE50200mwDUGl9k?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDMz0200dBtKIsxy/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRM0JobGJnMDhibVBkbE5COGVUeGJ2U05DS0ZNLDkzNDQ4MTE50200mwDUGl9k/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.2.json
index 5f778686ed7..73f7f698f8f 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDM20200VKKj6Btf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRSFdWNEZsN2U4TWkwUHZOSmczcHRQQlk2WmJpLDkzNDQ4MTIy02007luFtNJh?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDM20200VKKj6Btf/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRSFdWNEZsN2U4TWkwUHZOSmczcHRQQlk2WmJpLDkzNDQ4MTIy02007luFtNJh/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.2.json
index 1da7765fb5f..8996c2ec36d 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDQx0200v32HRQCI?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRSFdWNEZsN2U4TWkwUHZOSmczcHRQQlk2WmJpLDkzNDQ4MTI30200isp6vViM?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDQx0200v32HRQCI/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRSFdWNEZsN2U4TWkwUHZOSmczcHRQQlk2WmJpLDkzNDQ4MTI30200isp6vViM/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.3.json
index 6ba6260085c..7dc0c80efe3 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDQ302001mHDs75j?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRSFdWNEZsN2U4TWkwUHZOSmczcHRQQlk2WmJpLDkzNDQ4MTMz0200zM4gLyEE?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDQ302001mHDs75j/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRSFdWNEZsN2U4TWkwUHZOSmczcHRQQlk2WmJpLDkzNDQ4MTMz0200zM4gLyEE/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.4.json
index 5436ae4b67c..1bf84b072de 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDUw0200AbiyJmyG?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRSFdWNEZsN2U4TWkwUHZOSmczcHRQQlk2WmJpLDkzNDQ4MTM20200Bzqi3QuD?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDUw0200AbiyJmyG/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRSFdWNEZsN2U4TWkwUHZOSmczcHRQQlk2WmJpLDkzNDQ4MTM20200Bzqi3QuD/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDUw0200L3jt5DAq?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRM0JobGJnMDhibVBkbE5COGVUeGJ2U05DS0ZNLDkzNDQ4MTM20200utAhnC6H?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDUw0200L3jt5DAq/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRM0JobGJnMDhibVBkbE5COGVUeGJ2U05DS0ZNLDkzNDQ4MTM20200utAhnC6H/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index 5209a494a2a..845b07b0deb 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
@@ -74,7 +74,7 @@
},
"paid": false,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1OIlZrDEQaroqDjs906nPEKz",
+ "payment_method": "pm_1OOhBZDEQaroqDjsjrr4p4dg",
"payment_method_details": {
"card": {
"amount_authorized": null,
@@ -136,7 +136,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_4vFgqVl7KOFAqcgGRpc5rWQaa",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_Ov2D1BDnuVPiuN9rhlcAgnEtf",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -191,7 +191,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
+ "id": "pm_1OOhBZDEQaroqDjsjrr4p4dg",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -273,13 +273,13 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
+ "id": "pm_1OOhBZDEQaroqDjsjrr4p4dg",
"livemode": false,
"metadata": {},
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0007?t=1701494241",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0007?t=1702907327",
"setup_intent": null,
"source": null,
"type": "card_error"
@@ -296,7 +296,7 @@
"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",
"Date": "NORMALIZED DATETIME",
- "Idempotency-Key": "f3105370-ecca-4e80-a1d2-60bf10a378a3",
+ "Idempotency-Key": "36aa1721-9236-4330-97c3-85e372e003fd",
"Original-Request": "req_NORMALIZED0007",
"Request-Id": "req_NORMALIZED0007",
"Server": "nginx",
@@ -381,7 +381,7 @@
},
"paid": false,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1OIlZrDEQaroqDjs906nPEKz",
+ "payment_method": "pm_1OOhBZDEQaroqDjsjrr4p4dg",
"payment_method_details": {
"card": {
"amount_authorized": null,
@@ -449,7 +449,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_4vFgqVl7KOFAqcgGRpc5rWQaa",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_Ov2D1BDnuVPiuN9rhlcAgnEtf",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -504,7 +504,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
+ "id": "pm_1OOhBZDEQaroqDjsjrr4p4dg",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -586,13 +586,13 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
+ "id": "pm_1OOhBZDEQaroqDjsjrr4p4dg",
"livemode": false,
"metadata": {},
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0007?t=1701494241",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0007?t=1702907327",
"type": "card_error"
}
},
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json
index de4e951526c..cc4a8f634f8 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDQ40200g3PImNOU?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRSFdWNEZsN2U4TWkwUHZOSmczcHRQQlk2WmJpLDkzNDQ4MTM10200p137yyV8?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDQ40200g3PImNOU/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdRSFdWNEZsN2U4TWkwUHZOSmczcHRQQlk2WmJpLDkzNDQ4MTM10200p137yyV8/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentIntent.create.1.json
index 65f3f1e6bbb..a9fcb2aac04 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--PaymentIntent.create.1.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "payment_method": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -117,10 +117,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNf7qqsGMgZkFEoQtcA6LBaKVg2Ll3XQOe0lAsfp-S4JSZQOe6CzDRrIlEJ69j-C_foOWlNMJ4hn6-uH",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKLSbgawGMgaN7IRH57M6LBa3m0v7VZ0kCyDOOoBa5Xa60e5GNX0BWNuN84FYdSwz5wmIh5hMUFyL4EUP",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +144,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_mA3WGOAKeG1RWpwwFeSFLWy8o",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_GrdBBgWQ3sEMJIROLy1gYahdy",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -173,7 +172,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "payment_method": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
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.json
index 1c8beb12994..c7dcf72535a 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
@@ -39,7 +39,7 @@
},
"created": 1000000000,
"customer": null,
- "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
+ "id": "pm_1OOhBZDEQaroqDjsjrr4p4dg",
"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.json
index 9186f182d1a..bc868b0c3d3 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
@@ -39,7 +39,7 @@
},
"created": 1000000000,
"customer": null,
- "id": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "id": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index c78d3b4944c..1a8b590201e 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
@@ -41,7 +41,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
+ "id": "pm_1OOhBZDEQaroqDjsjrr4p4dg",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -88,7 +88,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "id": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 41e3bc1b122..6eab3d3513a 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
@@ -41,7 +41,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlZxDEQaroqDjsOkOpLsAE",
+ "id": "pm_1OOhBfDEQaroqDjsSbA5T4hs",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.1.json
index d5898444b1d..8d07abc7c2c 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZeDEQaroqDjsJIOtsqD2_secret_P6zY6O3NthCNXjAJNDcEkbNUV0P5oVE",
+ "client_secret": "seti_1OOhBLDEQaroqDjsYoNz2tyA_secret_PD7QGlAuQ4pTNQpDGBHBRneEQIOW1pG",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZeDEQaroqDjsJIOtsqD2",
+ "id": "seti_1OOhBLDEQaroqDjsYoNz2tyA",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlZeDEQaroqDjsF83qwMij",
+ "latest_attempt": "setatt_1OOhBLDEQaroqDjs34S2Eq3L",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "payment_method": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json
index f646bea902a..a48ed6219cd 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
@@ -50,23 +50,23 @@
},
"created": 1000000000,
"customer": null,
- "id": "pm_1OIlZpDEQaroqDjsNC24Lz0m",
+ "id": "pm_1OOhBXDEQaroqDjsHIXP56Yj",
"livemode": false,
"metadata": {},
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0008?t=1701494237",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0008?t=1702907323",
"setup_intent": {
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZpDEQaroqDjsLWVSyL38_secret_P6zYYgOUSiaNEq33DqjWgfya7LpqyYN",
+ "client_secret": "seti_1OOhBXDEQaroqDjs1JLfHHPY_secret_PD7QIYXVOYJt5gIEJAUljqfqNRyMYYi",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZpDEQaroqDjsLWVSyL38",
+ "id": "seti_1OOhBXDEQaroqDjs1JLfHHPY",
"last_setup_error": {
"code": "card_declined",
"decline_code": "generic_decline",
@@ -113,7 +113,7 @@
},
"created": 1000000000,
"customer": null,
- "id": "pm_1OIlZpDEQaroqDjsNC24Lz0m",
+ "id": "pm_1OOhBXDEQaroqDjsHIXP56Yj",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -121,7 +121,7 @@
},
"type": "card_error"
},
- "latest_attempt": "setatt_1OIlZpDEQaroqDjsTUEM7spX",
+ "latest_attempt": "setatt_1OOhBXDEQaroqDjsAxbfWDgs",
"livemode": false,
"mandate": null,
"metadata": {},
@@ -159,7 +159,7 @@
"Content-Security-Policy": "report-uri https://q.stripe.com/csp-report?p=v1%2Fsetup_intents; 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",
"Date": "NORMALIZED DATETIME",
- "Idempotency-Key": "47d63e51-c40b-4a6f-b458-cffb08525cf5",
+ "Idempotency-Key": "0fcd6661-b601-4366-9040-a5443fe6e087",
"Original-Request": "req_NORMALIZED0008",
"Request-Id": "req_NORMALIZED0008",
"Server": "nginx",
@@ -218,23 +218,23 @@
},
"created": 1000000000,
"customer": null,
- "id": "pm_1OIlZpDEQaroqDjsNC24Lz0m",
+ "id": "pm_1OOhBXDEQaroqDjsHIXP56Yj",
"livemode": false,
"metadata": {},
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0008?t=1701494237",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0008?t=1702907323",
"setup_intent": {
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZpDEQaroqDjsLWVSyL38_secret_P6zYYgOUSiaNEq33DqjWgfya7LpqyYN",
+ "client_secret": "seti_1OOhBXDEQaroqDjs1JLfHHPY_secret_PD7QIYXVOYJt5gIEJAUljqfqNRyMYYi",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZpDEQaroqDjsLWVSyL38",
+ "id": "seti_1OOhBXDEQaroqDjs1JLfHHPY",
"last_setup_error": {
"code": "card_declined",
"decline_code": "generic_decline",
@@ -281,7 +281,7 @@
},
"created": 1000000000,
"customer": null,
- "id": "pm_1OIlZpDEQaroqDjsNC24Lz0m",
+ "id": "pm_1OOhBXDEQaroqDjsHIXP56Yj",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -289,7 +289,7 @@
},
"type": "card_error"
},
- "latest_attempt": "setatt_1OIlZpDEQaroqDjsTUEM7spX",
+ "latest_attempt": "setatt_1OOhBXDEQaroqDjsAxbfWDgs",
"livemode": false,
"mandate": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.3.json
index 1f9c5383f1e..9b9e3aef57d 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.3.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZrDEQaroqDjsyre4tf9O_secret_P6zY7zcvqaVDdN0kSVDhl0Wha343Cnd",
+ "client_secret": "seti_1OOhBZDEQaroqDjsBRNKTAlQ_secret_PD7QIElbTkQJ5MfJ7S9db5zTDsnGnIn",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZrDEQaroqDjsyre4tf9O",
+ "id": "seti_1OOhBZDEQaroqDjsBRNKTAlQ",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlZrDEQaroqDjsvLyg1fAn",
+ "latest_attempt": "setatt_1OOhBZDEQaroqDjsfWD1Q94u",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZrDEQaroqDjs906nPEKz",
+ "payment_method": "pm_1OOhBZDEQaroqDjsjrr4p4dg",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.4.json
index be12ca8b988..64a16a47e36 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.4.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.4.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZxDEQaroqDjsPzt3hBNY_secret_P6zZbDxpsvwhp4CS1HeM87iKybdqTJj",
+ "client_secret": "seti_1OOhBfDEQaroqDjsfFsovkBv_secret_PD7QZLVX97WrIjXTOPesHft6CwWSKgg",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZxDEQaroqDjsPzt3hBNY",
+ "id": "seti_1OOhBfDEQaroqDjsfFsovkBv",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlZxDEQaroqDjs3OfhknKz",
+ "latest_attempt": "setatt_1OOhBfDEQaroqDjsMGIH5ea4",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZxDEQaroqDjsOkOpLsAE",
+ "payment_method": "pm_1OOhBfDEQaroqDjsSbA5T4hs",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.1.json
index 8ab0bbd11d6..5cd9a27e429 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZeDEQaroqDjs87mfD2SQ_secret_P6zY7cH1Skfi1WTapR7VubSRqHNRX91",
+ "client_secret": "seti_1OOhBJDEQaroqDjsh6ge3G4p_secret_PD7QiCB0o8PCDiP4X0G0Wm6S0ghGUAT",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZeDEQaroqDjs87mfD2SQ",
+ "id": "seti_1OOhBJDEQaroqDjsh6ge3G4p",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.2.json
index a5a10c9ea75..f9d83338726 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.2.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZpDEQaroqDjsXQbFIX56_secret_P6zY6ht7fOjMQXVfKSG9gi1d24pF6wM",
+ "client_secret": "seti_1OOhBXDEQaroqDjspz3v8mbw_secret_PD7Q8TeIUXmam9e836xvbzJzlCk5tsW",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZpDEQaroqDjsXQbFIX56",
+ "id": "seti_1OOhBXDEQaroqDjspz3v8mbw",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.3.json
index d81fae69086..8a4db489b34 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.3.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZqDEQaroqDjsucpwOQo9_secret_P6zYY9AlN3kSppaNkZqGFfPeZZqqWzb",
+ "client_secret": "seti_1OOhBYDEQaroqDjsrB16Y6nY_secret_PD7QRtRBRnD0YBmbAnYAbOr6mKAKksa",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZqDEQaroqDjsucpwOQo9",
+ "id": "seti_1OOhBYDEQaroqDjsrB16Y6nY",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.4.json
index 7327ef15c4d..3d07c82da5d 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.4.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.list.4.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZwDEQaroqDjsh2QFjVab_secret_P6zZIZHPqh8n82zFyxg2DxsIFSMRkHh",
+ "client_secret": "seti_1OOhBfDEQaroqDjsSkKXsEfA_secret_PD7Qtsh9EFBszhYWscgE0qTGvCNsJzM",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZwDEQaroqDjsh2QFjVab",
+ "id": "seti_1OOhBfDEQaroqDjsSkKXsEfA",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.1.json
index d5898444b1d..8d07abc7c2c 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZeDEQaroqDjsJIOtsqD2_secret_P6zY6O3NthCNXjAJNDcEkbNUV0P5oVE",
+ "client_secret": "seti_1OOhBLDEQaroqDjsYoNz2tyA_secret_PD7QGlAuQ4pTNQpDGBHBRneEQIOW1pG",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZeDEQaroqDjsJIOtsqD2",
+ "id": "seti_1OOhBLDEQaroqDjsYoNz2tyA",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlZeDEQaroqDjsF83qwMij",
+ "latest_attempt": "setatt_1OOhBLDEQaroqDjs34S2Eq3L",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
+ "payment_method": "pm_1OOhBLDEQaroqDjsvgwnGpxp",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.2.json
index 1f9c5383f1e..9b9e3aef57d 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.2.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZrDEQaroqDjsyre4tf9O_secret_P6zY7zcvqaVDdN0kSVDhl0Wha343Cnd",
+ "client_secret": "seti_1OOhBZDEQaroqDjsBRNKTAlQ_secret_PD7QIElbTkQJ5MfJ7S9db5zTDsnGnIn",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZrDEQaroqDjsyre4tf9O",
+ "id": "seti_1OOhBZDEQaroqDjsBRNKTAlQ",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlZrDEQaroqDjsvLyg1fAn",
+ "latest_attempt": "setatt_1OOhBZDEQaroqDjsfWD1Q94u",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZrDEQaroqDjs906nPEKz",
+ "payment_method": "pm_1OOhBZDEQaroqDjsjrr4p4dg",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.3.json
index be12ca8b988..64a16a47e36 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.retrieve.3.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlZxDEQaroqDjsPzt3hBNY_secret_P6zZbDxpsvwhp4CS1HeM87iKybdqTJj",
+ "client_secret": "seti_1OOhBfDEQaroqDjsfFsovkBv_secret_PD7QZLVX97WrIjXTOPesHft6CwWSKgg",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlZxDEQaroqDjsPzt3hBNY",
+ "id": "seti_1OOhBfDEQaroqDjsfFsovkBv",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlZxDEQaroqDjs3OfhknKz",
+ "latest_attempt": "setatt_1OOhBfDEQaroqDjsMGIH5ea4",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlZxDEQaroqDjsOkOpLsAE",
+ "payment_method": "pm_1OOhBfDEQaroqDjsSbA5T4hs",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.1.json
index 0495f4f66fc..ea14f0a1599 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02SKaaUzxhZNkh3ToJNAOmlEnoA374QbvPe6tJ90YHXbAszc",
+ "id": "cs_test_NORMALIZED02bLrbO1Y2EhQL4x0mHCTvoG8RRSh2TP6WA6o7mglJ4BcAGk",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlZeDEQaroqDjs87mfD2SQ",
+ "setup_intent": "seti_1OOhBJDEQaroqDjsh6ge3G4p",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02SKaaUzxhZNkh3ToJNAOmlEnoA374QbvPe6tJ90YHXbAszc#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02bLrbO1Y2EhQL4x0mHCTvoG8RRSh2TP6WA6o7mglJ4BcAGk#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.2.json
index 7c944bc9d21..c4bbadeb3c4 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.2.json
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED0344J3gLMGcZFPoX13ysPhw4cikv7easr3hp7PUNWhN80D40",
+ "id": "cs_test_NORMALIZED03gPRYMpvtQMLKdEf8W5EiR37mdv87Y6oaxtt4Djz2F7aR1w",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlZpDEQaroqDjsXQbFIX56",
+ "setup_intent": "seti_1OOhBXDEQaroqDjspz3v8mbw",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED0344J3gLMGcZFPoX13ysPhw4cikv7easr3hp7PUNWhN80D40#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03gPRYMpvtQMLKdEf8W5EiR37mdv87Y6oaxtt4Djz2F7aR1w#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.3.json
index aaf389abb65..df7f0688623 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.3.json
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED04EKM00XLa8FiQQdO2MizZ1Y6jSmJ00Vsn52z489MttJaKmi",
+ "id": "cs_test_NORMALIZED04OvXy36ae5gvHWJoGwz92GLOFPxngHwcTxV7MJTFHqFClng",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlZqDEQaroqDjsucpwOQo9",
+ "setup_intent": "seti_1OOhBYDEQaroqDjsrB16Y6nY",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED04EKM00XLa8FiQQdO2MizZ1Y6jSmJ00Vsn52z489MttJaKmi#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED04OvXy36ae5gvHWJoGwz92GLOFPxngHwcTxV7MJTFHqFClng#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.4.json
index 9abde5e5891..6e99501a044 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.4.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.4.json
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED05vYwRldaQtZFdoWUxXnWIpoybxGyq4gP8ZWt5oJnsIF3yZn",
+ "id": "cs_test_NORMALIZED05ZrxcbME1aK2MwFfo8stcW1Iu8zt3lkeKHkV3lzoEwCDJ7B",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlZwDEQaroqDjsh2QFjVab",
+ "setup_intent": "seti_1OOhBfDEQaroqDjsSkKXsEfA",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED05vYwRldaQtZFdoWUxXnWIpoybxGyq4gP8ZWt5oJnsIF3yZn#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED05ZrxcbME1aK2MwFfo8stcW1Iu8zt3lkeKHkV3lzoEwCDJ7B#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.5.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.5.json
index 7b7f271349a..10f1bb4c5c7 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.5.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.5.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=true",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=true&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED06jNJ3WW3j1zRJyffaNKdVpQnJIE8FATMozOLlPYJx9V1snB",
+ "id": "cs_test_NORMALIZED06ARC8jzNGiu3bEgIXLiO37JYpfXXh6t2Lg1Bo3mlb700DNn",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIla2DEQaroqDjszldAemOH",
+ "setup_intent": "seti_1OOhBkDEQaroqDjsC3NSNvkh",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED06jNJ3WW3j1zRJyffaNKdVpQnJIE8FATMozOLlPYJx9V1snB#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED06ARC8jzNGiu3bEgIXLiO37JYpfXXh6t2Lg1Bo3mlb700DNn#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.1.json
index dc19da282bf..ac1bb3bcefb 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02SKaaUzxhZNkh3ToJNAOmlEnoA374QbvPe6tJ90YHXbAszc",
+ "id": "cs_test_NORMALIZED02bLrbO1Y2EhQL4x0mHCTvoG8RRSh2TP6WA6o7mglJ4BcAGk",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlZeDEQaroqDjs87mfD2SQ",
+ "setup_intent": "seti_1OOhBJDEQaroqDjsh6ge3G4p",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02SKaaUzxhZNkh3ToJNAOmlEnoA374QbvPe6tJ90YHXbAszc#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02bLrbO1Y2EhQL4x0mHCTvoG8RRSh2TP6WA6o7mglJ4BcAGk#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.2.json
index 9722f9e42d6..edcc3b5554c 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.2.json
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED04EKM00XLa8FiQQdO2MizZ1Y6jSmJ00Vsn52z489MttJaKmi",
+ "id": "cs_test_NORMALIZED04OvXy36ae5gvHWJoGwz92GLOFPxngHwcTxV7MJTFHqFClng",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlZqDEQaroqDjsucpwOQo9",
+ "setup_intent": "seti_1OOhBYDEQaroqDjsrB16Y6nY",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED04EKM00XLa8FiQQdO2MizZ1Y6jSmJ00Vsn52z489MttJaKmi#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED04OvXy36ae5gvHWJoGwz92GLOFPxngHwcTxV7MJTFHqFClng#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.3.json
index 3f10bd93112..e4d33a3cce6 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.3.json
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED05vYwRldaQtZFdoWUxXnWIpoybxGyq4gP8ZWt5oJnsIF3yZn",
+ "id": "cs_test_NORMALIZED05ZrxcbME1aK2MwFfo8stcW1Iu8zt3lkeKHkV3lzoEwCDJ7B",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlZwDEQaroqDjsh2QFjVab",
+ "setup_intent": "seti_1OOhBfDEQaroqDjsSkKXsEfA",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED05vYwRldaQtZFdoWUxXnWIpoybxGyq4gP8ZWt5oJnsIF3yZn#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED05ZrxcbME1aK2MwFfo8stcW1Iu8zt3lkeKHkV3lzoEwCDJ7B#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.modify.1.json
index f6c64322de6..ad61a500051 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "default_payment_method": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"footer": null,
"rendering_options": null
},
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.json
index 06eeafa2e83..9172aacdeeb 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "id": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 06eeafa2e83..9172aacdeeb 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "id": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 06eeafa2e83..9172aacdeeb 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "id": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 06eeafa2e83..9172aacdeeb 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "id": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.1.json
index 3fcdd6ebbb3..c3963927808 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "default_payment_method": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIla8DEQaroqDjs59M4D2Lm",
+ "id": "evt_1OOgvRDEQaroqDjseaxXGEkR",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "05b461b6-47de-49c8-8687-e3bdbfd87362"
+ "idempotency_key": "ce78804c-42b4-4fd9-840a-56fc7bb9fc6b"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json
index 38d91e33dd2..2984f0d76e5 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
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "payment_method": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -123,10 +123,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPP7qqsGMgaPQrLSu6w6LBaZABjQDDz3iaViazANp_FudqC1SxURFmNaKuUb2Qar3fWR6_lwaVEL0wtu",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNiTgawGMgbwbTf5hU06LBbbMhKQ3LIf7GjOUAtHcfNbd0bKIGMdZ3lEN3Nzst0fyW-pZ35d5CO2MOCy",
"refunded": false,
"refunds": {
"data": [],
@@ -151,7 +150,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_L9an0tnDQUFOpjq1Jqx3MMjbo",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_FAboNPSxPjd8c0XAblgo0jTCz",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -179,7 +178,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "payment_method": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +204,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlaADEQaroqDjs12ygc4Pz",
+ "id": "evt_3OOgvTDEQaroqDjs1sj7tD1b",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "ce26d6f7-8cbd-49de-b509-a03735c59549"
+ "idempotency_key": "37142354-d293-4185-8599-b2fc5256e109"
},
"type": "payment_intent.succeeded"
},
@@ -283,7 +282,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "payment_method": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -323,10 +322,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPP7qqsGMgZbVo4HtN06LBbLprWE95XXLwzx0tAuLyF3s5E5vBAppt-CnMPff_Z-jwVY-sxzL26IMxWM",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNiTgawGMgaW6Fi3Gjc6LBYnctwMn4-O8omG6IxD3puH8P15Tk9-59GaJo6fYvkmLbzkA4gpnycHr70_",
"refunded": false,
"refunds": {
"data": [],
@@ -346,13 +344,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlaADEQaroqDjs1JXxaEP6",
+ "id": "evt_3OOgvTDEQaroqDjs10GjGLkd",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "ce26d6f7-8cbd-49de-b509-a03735c59549"
+ "idempotency_key": "37142354-d293-4185-8599-b2fc5256e109"
},
"type": "charge.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json
index 6b8defb8b26..75269287fb9 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYy0200inV4WiiL?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eUZEZ3A5bEJ4TVZPc1FUdFNidVpJYnhZSWFQLDkzNDQ3MTMx0200e8AM7J6M?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYy0200inV4WiiL/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eUZEZ3A5bEJ4TVZPc1FUdFNidVpJYnhZSWFQLDkzNDQ3MTMx0200e8AM7J6M/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1OIlaEDEQaroqDjs8FIl5jaS",
+ "id": "evt_1OOgvXDEQaroqDjswZvd5r0u",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "389a31e4-08c7-4bc5-9ac7-f7fd7bcf91da"
+ "idempotency_key": "1cba874b-c2d6-4375-828a-57b0e676b827"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlaDDEQaroqDjsvxzk9AfH",
+ "id": "evt_1OOgvWDEQaroqDjsRQlpLx95",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "8dba70d0-31f3-4ab5-84a4-186515ec3edc"
+ "idempotency_key": "13d33a4e-51ca-4e4f-bc72-ff2f9d1ae941"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OIlaCDEQaroqDjsYekhiHyu",
+ "id": "evt_1OOgvVDEQaroqDjseeMp1D7X",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "1626f435-14a5-4868-99e2-07773fa490db"
+ "idempotency_key": "ffc3e261-ec8d-415d-8587-f465af0afe5b"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OIlaCDEQaroqDjseTmT9455",
+ "id": "evt_1OOgvVDEQaroqDjsKzNlOxxb",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "a0959ed5-b68e-4289-9603-931138a0cf57"
+ "idempotency_key": "6ffe0146-3bb9-4bef-add1-af0194947780"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "default_payment_method": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlaCDEQaroqDjszVfZUoKw",
+ "id": "evt_1OOgvVDEQaroqDjsZVmyqf5d",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 1,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "a0959ed5-b68e-4289-9603-931138a0cf57"
+ "idempotency_key": "6ffe0146-3bb9-4bef-add1-af0194947780"
},
"type": "customer.updated"
}
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.json
index 913f43c8ec2..ee14653f787 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYy0200inV4WiiL?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eUZEZ3A5bEJ4TVZPc1FUdFNidVpJYnhZSWFQLDkzNDQ3MTMx0200e8AM7J6M?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYy0200inV4WiiL/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eUZEZ3A5bEJ4TVZPc1FUdFNidVpJYnhZSWFQLDkzNDQ3MTMx0200e8AM7J6M/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,236 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlaEDEQaroqDjsCHc2evoH",
+ "id": "evt_1OOgvXDEQaroqDjsOxuIxTIt",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "389a31e4-08c7-4bc5-9ac7-f7fd7bcf91da"
- },
- "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": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYy0200inV4WiiL?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYy0200inV4WiiL/pdf?s=ap",
- "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": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
- "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": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "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"
- },
- {
- "amount": -48000,
- "amount_excluding_tax": -48000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
- "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": "price_NORMALIZED00000000000002",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -48000,
- "unit_amount_decimal": "-48000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-48000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0002",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIlaEDEQaroqDjsnobCgdde",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "389a31e4-08c7-4bc5-9ac7-f7fd7bcf91da"
+ "idempotency_key": "1cba874b-c2d6-4375-828a-57b0e676b827"
},
"type": "invoice.paid"
},
@@ -492,9 +269,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYy0200inV4WiiL?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eUZEZ3A5bEJ4TVZPc1FUdFNidVpJYnhZSWFQLDkzNDQ3MTMx0200e8AM7J6M?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYy0200inV4WiiL/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eUZEZ3A5bEJ4TVZPc1FUdFNidVpJYnhZSWFQLDkzNDQ3MTMx0200e8AM7J6M/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -659,13 +436,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlaEDEQaroqDjs2rPtjbtE",
+ "id": "evt_1OOgvXDEQaroqDjs40orIWS3",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "389a31e4-08c7-4bc5-9ac7-f7fd7bcf91da"
+ "idempotency_key": "1cba874b-c2d6-4375-828a-57b0e676b827"
},
"type": "invoice.finalized"
}
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.json
index 6d922067afe..7366e527d81 100644
--- 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.json
@@ -1,5 +1,229 @@
{
- "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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eUZEZ3A5bEJ4TVZPc1FUdFNidVpJYnhZSWFQLDkzNDQ3MTMx0200e8AM7J6M?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eUZEZ3A5bEJ4TVZPc1FUdFNidVpJYnhZSWFQLDkzNDQ3MTMx0200e8AM7J6M/pdf?s=ap",
+ "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": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "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"
+ },
+ {
+ "amount": -48000,
+ "amount_excluding_tax": -48000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -48000,
+ "unit_amount_decimal": "-48000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-48000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0002",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgvXDEQaroqDjs5WQlk4kR",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "1cba874b-c2d6-4375-828a-57b0e676b827"
+ },
+ "type": "invoice.payment_succeeded"
+ }
+ ],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.6.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.6.json
new file mode 100644
index 00000000000..6d922067afe
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.6.json
@@ -0,0 +1,6 @@
+{
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/events"
+}
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.finalize_invoice.1.json
index 9bd3eddb5b8..78fd6c344d8 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYx0200R70XCaho?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eUZEZ3A5bEJ4TVZPc1FUdFNidVpJYnhZSWFQLDkzNDQ3MTMw0200TtZYrYkf?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYx0200R70XCaho/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDc5eUZEZ3A5bEJ4TVZPc1FUdFNidVpJYnhZSWFQLDkzNDQ3MTMw0200TtZYrYkf/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--PaymentIntent.create.1.json
index 8deac67b2f4..6c74dcabc30 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--PaymentIntent.create.1.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "payment_method": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -117,10 +117,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPP7qqsGMgahBLsndjk6LBZoXgulf69rWsB4tnOoaJVzB3tp-E9iCpxTx_eialqqbYm8jjCKVbsM5KZI",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNiTgawGMgauQjklW6k6LBY-Jsr64sxuWFj4p9UzqIutyW_M6DD8UJbz9CZG244Myjtgdgm1IDMo9oTS",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +144,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_L9an0tnDQUFOpjq1Jqx3MMjbo",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_FAboNPSxPjd8c0XAblgo0jTCz",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -173,7 +172,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "payment_method": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.create.1.json
index 6c157a62573..e6093abe4ae 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIla7DEQaroqDjsQem9TBd8_secret_P6zZAXHh1EQj6SaVekZg8iPWUUXZtYn",
+ "client_secret": "seti_1OOgvPDEQaroqDjsUFQbSj5H_secret_PD79w0NxcH831sXh4KyShIdkfb1hVPy",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIla7DEQaroqDjsQem9TBd8",
+ "id": "seti_1OOgvPDEQaroqDjsUFQbSj5H",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIla7DEQaroqDjs7qGkcEzl",
+ "latest_attempt": "setatt_1OOgvPDEQaroqDjsn5seurei",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "payment_method": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.list.1.json
index ffcadb98dfd..e86f1ff1114 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIla6DEQaroqDjsoY95LSwi_secret_P6zZwyEYoDkXjcQFKGKziJRo3ck3jwT",
+ "client_secret": "seti_1OOgvPDEQaroqDjs8HtzMTR2_secret_PD79POvuWUjHMfGUkTSIXk6yoW1Jz1R",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIla6DEQaroqDjsoY95LSwi",
+ "id": "seti_1OOgvPDEQaroqDjs8HtzMTR2",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.retrieve.1.json
index 6c157a62573..e6093abe4ae 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIla7DEQaroqDjsQem9TBd8_secret_P6zZAXHh1EQj6SaVekZg8iPWUUXZtYn",
+ "client_secret": "seti_1OOgvPDEQaroqDjsUFQbSj5H_secret_PD79w0NxcH831sXh4KyShIdkfb1hVPy",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIla7DEQaroqDjsQem9TBd8",
+ "id": "seti_1OOgvPDEQaroqDjsUFQbSj5H",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIla7DEQaroqDjs7qGkcEzl",
+ "latest_attempt": "setatt_1OOgvPDEQaroqDjsn5seurei",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
+ "payment_method": "pm_1OOgvPDEQaroqDjsE3eW26KN",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.create.1.json
index 737d4fc2f76..3e5de934d16 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED024HfiyBzSqgQiXKAuVF6IpI49pqQqSpRyNEwy9gfdLuG27j",
+ "id": "cs_test_NORMALIZED02MeWMMj4PBSuj85SMFvhlx0eicIikbS59OmqSW37GnyCjMj",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIla6DEQaroqDjsoY95LSwi",
+ "setup_intent": "seti_1OOgvPDEQaroqDjs8HtzMTR2",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED024HfiyBzSqgQiXKAuVF6IpI49pqQqSpRyNEwy9gfdLuG27j#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02MeWMMj4PBSuj85SMFvhlx0eicIikbS59OmqSW37GnyCjMj#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.list.1.json
index 05ae18a94f0..23d83bcc496 100644
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED024HfiyBzSqgQiXKAuVF6IpI49pqQqSpRyNEwy9gfdLuG27j",
+ "id": "cs_test_NORMALIZED02MeWMMj4PBSuj85SMFvhlx0eicIikbS59OmqSW37GnyCjMj",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIla6DEQaroqDjsoY95LSwi",
+ "setup_intent": "seti_1OOgvPDEQaroqDjs8HtzMTR2",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED024HfiyBzSqgQiXKAuVF6IpI49pqQqSpRyNEwy9gfdLuG27j#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02MeWMMj4PBSuj85SMFvhlx0eicIikbS59OmqSW37GnyCjMj#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.modify.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.modify.1.json
index bc0be9fbb5a..104d9961de1 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "default_payment_method": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"footer": null,
"rendering_options": null
},
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.json
index 0f3d96442ed..3c67cad2d63 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "id": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 0f3d96442ed..3c67cad2d63 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "id": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 0f3d96442ed..3c67cad2d63 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "id": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 0f3d96442ed..3c67cad2d63 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "id": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 5cbc1afb1e1..f67f81dba45 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "id": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index f3902855a1d..c6cb82988da 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "id": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.1.json
index 1e4b280b702..22d03d26f58 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "default_payment_method": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlaIDEQaroqDjsrCxGZtUx",
+ "id": "evt_1OOgvbDEQaroqDjs1VUQP3qE",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "7d199a8a-c910-400b-a3db-c609a2e69b43"
+ "idempotency_key": "698b9cd4-be16-4c47-8f33-53f9490fa44b"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json
index 070383114aa..c4e8042cba8 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
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "payment_method": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -123,10 +123,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKP77qqsGMgYv723Z7L46LBZ4t9uZuwmiBm9CF7Dvy6l8mndd5odRfIQUS4DDEEohgL--C09jw5fGSp7C",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOOTgawGMgYhAevJ-sM6LBYq1QWWO32_5eumHmZzf8xiL-lYfFazqmO9hAV4Ubt34Rs2FfFzHy0pc5Fb",
"refunded": false,
"refunds": {
"data": [],
@@ -151,7 +150,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_s3q50TcfcD1ojZQpTBlz2NPZG",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_8sMa3y7gxPCdmrKLUG43vAxkD",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -179,7 +178,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "payment_method": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +204,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlaLDEQaroqDjs1Mc37zrr",
+ "id": "evt_3OOgveDEQaroqDjs0UpZhnbh",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "94894db5-b53f-4291-8c60-0797cb9be938"
+ "idempotency_key": "325704ed-287a-49f2-9bcb-0fca62d56745"
},
"type": "payment_intent.succeeded"
},
@@ -283,7 +282,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "payment_method": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -323,10 +322,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKP37qqsGMgYlqUoD_7Y6LBZXaz5wmIQShE9GqfyxgHBiRukjj0rjL6zAXLPh3JRrQX7jEqdijefB60kS",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOKTgawGMgaM6qxDm8o6LBacxyeB_G-lgfwsw6fAlni_mtHyfyMYWGUxKATnIQBoTZuNMQqlA-Rm7DyV",
"refunded": false,
"refunds": {
"data": [],
@@ -346,13 +344,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlaLDEQaroqDjs19h8hDXV",
+ "id": "evt_3OOgveDEQaroqDjs0lUFrrrC",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "94894db5-b53f-4291-8c60-0797cb9be938"
+ "idempotency_key": "325704ed-287a-49f2-9bcb-0fca62d56745"
},
"type": "charge.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json
index df133f186c5..f5a736a6390 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQx0200C9nJhiFd?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQx0200C9nJhiFd/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1OIlaODEQaroqDjsFhLOWNpz",
+ "id": "evt_1OOgvhDEQaroqDjs4PSoe1NG",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "67b9c215-56e2-490a-ad5a-7864ea57659c"
+ "idempotency_key": "a32ad0fb-ff3e-4abf-819e-c9da8ea16f74"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlaNDEQaroqDjs7dBiJvh6",
+ "id": "evt_1OOgvgDEQaroqDjsp63bxgtE",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "91f45331-aa32-43d4-868b-68b5d8d79678"
+ "idempotency_key": "a3b05d4c-1c5c-4bf9-a510-c344400d9c66"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OIlaNDEQaroqDjs1ol2Sfua",
+ "id": "evt_1OOgvgDEQaroqDjsMEsjqOot",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "b89d03d0-8bb4-4544-b16f-03e58d8c0909"
+ "idempotency_key": "5a38d2fd-1b1c-42a1-8f70-16f7fc8d9052"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OIlaMDEQaroqDjspqGJ55Ox",
+ "id": "evt_1OOgvfDEQaroqDjsZawDlvfE",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "b507461a-5688-4b9e-8ad4-fe9440b24b31"
+ "idempotency_key": "1a55f8e1-8cfb-4dbf-b2ee-ffdfb0770a83"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "default_payment_method": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlaMDEQaroqDjstZzhiUU8",
+ "id": "evt_1OOgvfDEQaroqDjsa7awAJp4",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "b507461a-5688-4b9e-8ad4-fe9440b24b31"
+ "idempotency_key": "1a55f8e1-8cfb-4dbf-b2ee-ffdfb0770a83"
},
"type": "customer.updated"
}
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.json
index e44257520bf..adae2168ef0 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQx0200C9nJhiFd?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQx0200C9nJhiFd/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,236 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlaODEQaroqDjsa7EXSwio",
+ "id": "evt_1OOgvhDEQaroqDjsFxmCSU4d",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "67b9c215-56e2-490a-ad5a-7864ea57659c"
- },
- "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": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia/pdf?s=ap",
- "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": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
- "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": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "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"
- },
- {
- "amount": -48000,
- "amount_excluding_tax": -48000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
- "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": "price_NORMALIZED00000000000002",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -48000,
- "unit_amount_decimal": "-48000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-48000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0002",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIlaODEQaroqDjshrOdW6q0",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "67b9c215-56e2-490a-ad5a-7864ea57659c"
+ "idempotency_key": "a32ad0fb-ff3e-4abf-819e-c9da8ea16f74"
},
"type": "invoice.paid"
},
@@ -492,9 +269,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQx0200C9nJhiFd?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQx0200C9nJhiFd/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -659,13 +436,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlaODEQaroqDjsCOB6sDsD",
+ "id": "evt_1OOgvhDEQaroqDjsyZ2RxLW6",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "67b9c215-56e2-490a-ad5a-7864ea57659c"
+ "idempotency_key": "a32ad0fb-ff3e-4abf-819e-c9da8ea16f74"
},
"type": "invoice.finalized"
}
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.json
index 6d922067afe..7213f6b609d 100644
--- 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.json
@@ -1,5 +1,229 @@
{
- "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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQy0200oNvbOu0X?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQy0200oNvbOu0X/pdf?s=ap",
+ "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": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "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"
+ },
+ {
+ "amount": -48000,
+ "amount_excluding_tax": -48000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -48000,
+ "unit_amount_decimal": "-48000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-48000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0002",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgviDEQaroqDjsn8O17kBl",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "a32ad0fb-ff3e-4abf-819e-c9da8ea16f74"
+ },
+ "type": "invoice.payment_succeeded"
+ }
+ ],
"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.6.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.6.json
new file mode 100644
index 00000000000..6d922067afe
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.6.json
@@ -0,0 +1,6 @@
+{
+ "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.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
index 1c590153d10..a44c1b29dc8 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQx0200C9nJhiFd?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQx0200C9nJhiFd/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json
index 4bc90800b47..d43f3dfa5c6 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaM1VYcmpzRzF6Z2R2VFFUanlCcXE2WmhxSER6LDkyMDM1MDc10200ZkKoZc1e?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBOERoMTBwSkxtM0laTHNRTG12R09nYXF3QktBLDkzNDQ3MTQ102004RL29ioQ?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaM1VYcmpzRzF6Z2R2VFFUanlCcXE2WmhxSER6LDkyMDM1MDc10200ZkKoZc1e/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBOERoMTBwSkxtM0laTHNRTG12R09nYXF3QktBLDkzNDQ3MTQ102004RL29ioQ/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index eaaa4ca2dc8..9d7d81233c9 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaSG5BZGp4REx4WE9RRjl5NzVWbE1VNDA0VTRoLDkyMDM1MDc30200mCXxiXId?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBbG9RZEc3SEVyWTJqVTM5R0s5YTNsUnFYM1VGLDkzNDQ3MTQ30200nhYz99az?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaSG5BZGp4REx4WE9RRjl5NzVWbE1VNDA0VTRoLDkyMDM1MDc30200mCXxiXId/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBbG9RZEc3SEVyWTJqVTM5R0s5YTNsUnFYM1VGLDkzNDQ3MTQ30200nhYz99az/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.list.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.list.2.json
index 62ec228f520..03a29ca342f 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaM1VYcmpzRzF6Z2R2VFFUanlCcXE2WmhxSER6LDkyMDM1MDc10200ZkKoZc1e?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBOERoMTBwSkxtM0laTHNRTG12R09nYXF3QktBLDkzNDQ3MTQ102004RL29ioQ?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaM1VYcmpzRzF6Z2R2VFFUanlCcXE2WmhxSER6LDkyMDM1MDc10200ZkKoZc1e/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBOERoMTBwSkxtM0laTHNRTG12R09nYXF3QktBLDkzNDQ3MTQ102004RL29ioQ/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -250,9 +250,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDc10200UuKP3Kzt?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQ10200xgoT2b3w?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDc10200UuKP3Kzt/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQ10200xgoT2b3w/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.list.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.list.3.json
index c1613f41641..22502c2678c 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaSG5BZGp4REx4WE9RRjl5NzVWbE1VNDA0VTRoLDkyMDM1MDc30200mCXxiXId?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBbG9RZEc3SEVyWTJqVTM5R0s5YTNsUnFYM1VGLDkzNDQ3MTQ30200nhYz99az?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaSG5BZGp4REx4WE9RRjl5NzVWbE1VNDA0VTRoLDkyMDM1MDc30200mCXxiXId/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBbG9RZEc3SEVyWTJqVTM5R0s5YTNsUnFYM1VGLDkzNDQ3MTQ30200nhYz99az/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaM1VYcmpzRzF6Z2R2VFFUanlCcXE2WmhxSER6LDkyMDM1MDc30200hpSWi76T?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBOERoMTBwSkxtM0laTHNRTG12R09nYXF3QktBLDkzNDQ3MTQ30200JmL9thjn?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaM1VYcmpzRzF6Z2R2VFFUanlCcXE2WmhxSER6LDkyMDM1MDc30200hpSWi76T/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBOERoMTBwSkxtM0laTHNRTG12R09nYXF3QktBLDkzNDQ3MTQ30200JmL9thjn/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -408,9 +408,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDc30200daBVjtCx?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQ30200xYytenm3?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDc30200daBVjtCx/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBaHI5NkdkamIwYnRIVlFBNDlwZmN0R2c1NzJ2LDkzNDQ3MTQ30200xYytenm3/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--PaymentIntent.create.1.json
index 56b0f5ffa3d..4b0d6dc4433 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--PaymentIntent.create.1.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "payment_method": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -117,10 +117,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKP37qqsGMgZfMcV0TEI6LBYoqJQNM8IGieyjfa1Q25xdqTIHfS8HcknVlIFdBrMuS8VwHSBAddZyvsZB",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOKTgawGMgbM450F2sQ6LBYc-P40-r-sgkz88lxvAq2BeZwNuLeJjrAgPmpVqz_kajvi5QNibxkuUx5I",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +144,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_s3q50TcfcD1ojZQpTBlz2NPZG",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_8sMa3y7gxPCdmrKLUG43vAxkD",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -173,7 +172,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "payment_method": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.create.1.json
index 22e695ff657..94b630546c1 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlaHDEQaroqDjszgwxwBz2_secret_P6zZjeJQSnHnJHelDCPINnpsAIuJegP",
+ "client_secret": "seti_1OOgvaDEQaroqDjs3qTW9ZIT_secret_PD79cJfAs2WCZoW4KYUNZYxU1YK9Ssk",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlaHDEQaroqDjszgwxwBz2",
+ "id": "seti_1OOgvaDEQaroqDjs3qTW9ZIT",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlaHDEQaroqDjswne8PFSD",
+ "latest_attempt": "setatt_1OOgvaDEQaroqDjs80XTgLnz",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "payment_method": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.list.1.json
index eb799108b77..003da69c4b3 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlaGDEQaroqDjs9OqvG9Va_secret_P6zZ1Pp8G7mNTAUdsqiimXkKsRUOztP",
+ "client_secret": "seti_1OOgvZDEQaroqDjsjRAFZHBf_secret_PD79hEPgEjXK4uXZ6axcdV41gMvjvDp",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlaGDEQaroqDjs9OqvG9Va",
+ "id": "seti_1OOgvZDEQaroqDjsjRAFZHBf",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.retrieve.1.json
index 22e695ff657..94b630546c1 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlaHDEQaroqDjszgwxwBz2_secret_P6zZjeJQSnHnJHelDCPINnpsAIuJegP",
+ "client_secret": "seti_1OOgvaDEQaroqDjs3qTW9ZIT_secret_PD79cJfAs2WCZoW4KYUNZYxU1YK9Ssk",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlaHDEQaroqDjszgwxwBz2",
+ "id": "seti_1OOgvaDEQaroqDjs3qTW9ZIT",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlaHDEQaroqDjswne8PFSD",
+ "latest_attempt": "setatt_1OOgvaDEQaroqDjs80XTgLnz",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
+ "payment_method": "pm_1OOgvaDEQaroqDjsHSvyB4B7",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.create.1.json
index 03b878e9182..e9c24980ec2 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED022NkW6EEVC4zehnZIphQL070TQoLzJYGmvrZVcKe5rgGMrM",
+ "id": "cs_test_NORMALIZED02ohFa9NbgjbMw4ZuAOng0nlwwmUxXuf8esakyJbjVJU02Qh",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlaGDEQaroqDjs9OqvG9Va",
+ "setup_intent": "seti_1OOgvZDEQaroqDjsjRAFZHBf",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED022NkW6EEVC4zehnZIphQL070TQoLzJYGmvrZVcKe5rgGMrM#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02ohFa9NbgjbMw4ZuAOng0nlwwmUxXuf8esakyJbjVJU02Qh#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.list.1.json
index 9fba4cae6ce..80f7ea1a053 100644
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED022NkW6EEVC4zehnZIphQL070TQoLzJYGmvrZVcKe5rgGMrM",
+ "id": "cs_test_NORMALIZED02ohFa9NbgjbMw4ZuAOng0nlwwmUxXuf8esakyJbjVJU02Qh",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlaGDEQaroqDjs9OqvG9Va",
+ "setup_intent": "seti_1OOgvZDEQaroqDjsjRAFZHBf",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED022NkW6EEVC4zehnZIphQL070TQoLzJYGmvrZVcKe5rgGMrM#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02ohFa9NbgjbMw4ZuAOng0nlwwmUxXuf8esakyJbjVJU02Qh#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.modify.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.modify.1.json
index fe487f13520..4218f508ce9 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "default_payment_method": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"footer": null,
"rendering_options": 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.json
index 3de25ea30f0..27cd964b13a 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "id": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 3de25ea30f0..27cd964b13a 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "id": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 3de25ea30f0..27cd964b13a 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "id": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 3de25ea30f0..27cd964b13a 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "id": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index e334a069b6d..22b3e93c23c 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "id": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.1.json
index 8c9a749fce3..8829385f1a6 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "default_payment_method": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlaXDEQaroqDjsjZczqFZK",
+ "id": "evt_1OOgvrDEQaroqDjs7qurqR5V",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "123b14cd-ac28-4ea8-97cb-2208fbc3fe59"
+ "idempotency_key": "1bf7d2b5-b56c-4b70-981c-47919d491f85"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json
index abb79dcb15c..0a2b271bef4 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
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "payment_method": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"payment_method_details": {
"card": {
"amount_authorized": 4800,
@@ -126,7 +126,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKI38qqsGMgaOnFgsBnE6LBa53PpNVfS_T_K5HwXY95H77gL2V-3agp3J9ihPq6B0H1cD4Vbi9YdaSEPH",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPKTgawGMgZAUtHqpDI6LBb_PhMZCcDIwk2oQkCRtAxfCp_VjFXjqonRD59gvVArexJ1s_uyDfJlUKbE",
"refunded": false,
"refunds": {
"data": [],
@@ -151,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_6TAC3XJGsIH6q2vaLDTlsGFe5",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_2erOZOcNwWKKxMrojRoEv3sLq",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -179,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "payment_method": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlaaDEQaroqDjs1foPbFnw",
+ "id": "evt_3OOgvtDEQaroqDjs18mBpPfF",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "7d307804-003c-439c-8561-2bf769d3d340"
+ "idempotency_key": "48fb795c-2285-43bf-9418-ff006145d01e"
},
"type": "payment_intent.succeeded"
},
@@ -283,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "payment_method": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"payment_method_details": {
"card": {
"amount_authorized": 4800,
@@ -326,7 +326,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKI38qqsGMgZCzDHbxpo6LBYd-qvdpbClO5oslANqpWSCM7TpJrDJ--Mv7CrrhXvMbhYRe2EF7Yhd5oDR",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPKTgawGMgZJwy58oZw6LBacfGJIYaC6qjMwffyRVGmbxJWzM3BNhVYjzHZSyAU0W04n21KXaZClibhL",
"refunded": false,
"refunds": {
"data": [],
@@ -346,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlaaDEQaroqDjs1ofrKimC",
+ "id": "evt_3OOgvtDEQaroqDjs1osMNEVu",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "7d307804-003c-439c-8561-2bf769d3d340"
+ "idempotency_key": "48fb795c-2285-43bf-9418-ff006145d01e"
},
"type": "charge.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json
index f7363247938..42c868a32eb 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg30200PUkDpVmp?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTU20200ZdCfpM5Y?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg30200PUkDpVmp/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTU20200ZdCfpM5Y/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1OIladDEQaroqDjsTaYcN0Gt",
+ "id": "evt_1OOgvwDEQaroqDjshozb8Yvi",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "c844c0c4-80be-4547-b157-55370a840599"
+ "idempotency_key": "e357a448-3f18-48f5-96bf-f376c55a3e2a"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlacDEQaroqDjspXq6FeTf",
+ "id": "evt_1OOgvvDEQaroqDjs0ouXOlmL",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "d54329e7-1a3f-49f3-a641-45f3c159f23c"
+ "idempotency_key": "93d945f4-a0a5-4d78-90f3-0111156ce052"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "800"
}
},
- "id": "evt_1OIlacDEQaroqDjsVhmEUS3v",
+ "id": "evt_1OOgvvDEQaroqDjs5JKRAPYC",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "a1b8488d-4841-43af-98f5-fbd7a97c3c37"
+ "idempotency_key": "c91957b6-9eb2-4f5c-8547-78eb66af286d"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-4800"
}
},
- "id": "evt_1OIlabDEQaroqDjsh9paLakr",
+ "id": "evt_1OOgvvDEQaroqDjsNouRAosy",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "1936258a-b4e3-43e4-9687-3f2c29c7f795"
+ "idempotency_key": "1df84d03-3d70-4a20-8d7b-1371249e95a6"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "default_payment_method": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlabDEQaroqDjss8liUUFL",
+ "id": "evt_1OOgvvDEQaroqDjsvls1budp",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "1936258a-b4e3-43e4-9687-3f2c29c7f795"
+ "idempotency_key": "1df84d03-3d70-4a20-8d7b-1371249e95a6"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.4.json
index 33e94606650..372087391a8 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.4.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.4.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg30200PUkDpVmp?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTU30200qsgH6B3F?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg40200ydYInMvn/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTU30200qsgH6B3F/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,236 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlaeDEQaroqDjs3RwTH6ec",
+ "id": "evt_1OOgvxDEQaroqDjsyCT9GS3k",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "c844c0c4-80be-4547-b157-55370a840599"
- },
- "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": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg30200PUkDpVmp?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg30200PUkDpVmp/pdf?s=ap",
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 4800,
- "amount_excluding_tax": 4800,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1328151845,
- "start": 1325473445
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1000000000,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": 800,
- "unit_amount_decimal": "800"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 6,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "800"
- },
- {
- "amount": -4800,
- "amount_excluding_tax": -4800,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
- "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": "price_NORMALIZED00000000000002",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -4800,
- "unit_amount_decimal": "-4800"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-4800"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0002",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIladDEQaroqDjsDoR2u0nc",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "c844c0c4-80be-4547-b157-55370a840599"
+ "idempotency_key": "e357a448-3f18-48f5-96bf-f376c55a3e2a"
},
"type": "invoice.paid"
},
@@ -492,9 +269,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg30200PUkDpVmp?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTU20200ZdCfpM5Y?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg30200PUkDpVmp/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTU20200ZdCfpM5Y/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -659,13 +436,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIladDEQaroqDjs9Kojw2VN",
+ "id": "evt_1OOgvwDEQaroqDjsChzvCRHQ",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "c844c0c4-80be-4547-b157-55370a840599"
+ "idempotency_key": "e357a448-3f18-48f5-96bf-f376c55a3e2a"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.5.json
index 6d922067afe..5253233b56b 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.5.json
@@ -1,5 +1,229 @@
{
- "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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTU30200qsgH6B3F?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTU30200qsgH6B3F/pdf?s=ap",
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 4800,
+ "amount_excluding_tax": 4800,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "period": {
+ "end": 1328151845,
+ "start": 1325473445
+ },
+ "plan": null,
+ "price": {
+ "active": false,
+ "billing_scheme": "per_unit",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_unit_amount": null,
+ "id": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": 800,
+ "unit_amount_decimal": "800"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 6,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "800"
+ },
+ {
+ "amount": -4800,
+ "amount_excluding_tax": -4800,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -4800,
+ "unit_amount_decimal": "-4800"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-4800"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0002",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgvxDEQaroqDjsgq2z8HBa",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "e357a448-3f18-48f5-96bf-f376c55a3e2a"
+ },
+ "type": "invoice.payment_succeeded"
+ }
+ ],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.6.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.6.json
new file mode 100644
index 00000000000..6d922067afe
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.6.json
@@ -0,0 +1,6 @@
+{
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/events"
+}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.1.json
index 1af446f4f1a..0e184f49c5e 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg30200PUkDpVmp?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTU20200ZdCfpM5Y?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg30200PUkDpVmp/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTU20200ZdCfpM5Y/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json
index f9460505caa..96cbe503148 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDkw0200NCGMqci8?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBanFqMUliZzFxSnFGZU0xYjd0TWlibFBsakI5LDkzNDQ3MTU50200EaXWgQcU?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDkw0200NCGMqci8/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBanFqMUliZzFxSnFGZU0xYjd0TWlibFBsakI5LDkzNDQ3MTU50200EaXWgQcU/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.3.json
index b312239fd2b..02642c9f203 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDky0200Qz9PgaTA?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBcVY1MDN1d2paM0xObmg3bTFmUmVjdzlDdnluLDkzNDQ3MTYx0200Mp4Xyx4o?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDky0200Qz9PgaTA/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBcVY1MDN1d2paM0xObmg3bTFmUmVjdzlDdnluLDkzNDQ3MTYx0200Mp4Xyx4o/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.4.json
index 77268d2c178..09577d8338c 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaQW1pSTVLQmZveFEyTEZ0aVFGUkdrVFB3emdmLDkyMDM1MDk00200dA9bvP0c?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBRGF4WTJXQzI5MW5EQzBSRkt1RWFmQzNTV09TLDkzNDQ3MTY00200lCwDruej?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaQW1pSTVLQmZveFEyTEZ0aVFGUkdrVFB3emdmLDkyMDM1MDk00200dA9bvP0c/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBRGF4WTJXQzI5MW5EQzBSRkt1RWFmQzNTV09TLDkzNDQ3MTY00200lCwDruej/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json
index ad632374389..b94adf6db6f 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaZGJYcmFiRW9RdFNXcW95UFlHdHBHMVpuV3BZLDkyMDM1MDk20200ic6HSaFw?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBclpaSzBzQ3ZTQUpWbXlWbmZDSlZVYVBINlZELDkzNDQ3MTY20200sQnUJGQU?s=ap",
"id": "in_NORMALIZED00000000000005",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaZGJYcmFiRW9RdFNXcW95UFlHdHBHMVpuV3BZLDkyMDM1MDk20200ic6HSaFw/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBclpaSzBzQ3ZTQUpWbXlWbmZDSlZVYVBINlZELDkzNDQ3MTY20200sQnUJGQU/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.2.json
index a67f1f1cdf9..7ab0362abeb 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDky0200Qz9PgaTA?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBcVY1MDN1d2paM0xObmg3bTFmUmVjdzlDdnluLDkzNDQ3MTYy0200JmnWKf4V?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDky0200Qz9PgaTA/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBcVY1MDN1d2paM0xObmg3bTFmUmVjdzlDdnluLDkzNDQ3MTYy0200JmnWKf4V/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -250,9 +250,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDky0200Z03sCUUr?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBanFqMUliZzFxSnFGZU0xYjd0TWlibFBsakI5LDkzNDQ3MTYy0200B3PxyMuq?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDky0200Z03sCUUr/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBanFqMUliZzFxSnFGZU0xYjd0TWlibFBsakI5LDkzNDQ3MTYy0200B3PxyMuq/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -408,9 +408,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDky0200uxNqUohX?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTYy0200Zil5xgud?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDky0200uxNqUohX/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTYy0200Zil5xgud/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.3.json
index 8020bbee062..651a7f72422 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaQW1pSTVLQmZveFEyTEZ0aVFGUkdrVFB3emdmLDkyMDM1MDk00200dA9bvP0c?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBRGF4WTJXQzI5MW5EQzBSRkt1RWFmQzNTV09TLDkzNDQ3MTY00200lCwDruej?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaQW1pSTVLQmZveFEyTEZ0aVFGUkdrVFB3emdmLDkyMDM1MDk00200dA9bvP0c/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBRGF4WTJXQzI5MW5EQzBSRkt1RWFmQzNTV09TLDkzNDQ3MTY00200lCwDruej/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDk00200CPdPtRBo?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBcVY1MDN1d2paM0xObmg3bTFmUmVjdzlDdnluLDkzNDQ3MTY00200tDAtvZX5?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDk00200CPdPtRBo/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBcVY1MDN1d2paM0xObmg3bTFmUmVjdzlDdnluLDkzNDQ3MTY00200tDAtvZX5/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -408,9 +408,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDk00200XsXKb8jh?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBanFqMUliZzFxSnFGZU0xYjd0TWlibFBsakI5LDkzNDQ3MTY00200Uc1gWc0I?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDk00200XsXKb8jh/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBanFqMUliZzFxSnFGZU0xYjd0TWlibFBsakI5LDkzNDQ3MTY00200Uc1gWc0I/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -566,9 +566,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDk00200T7NIg8tC?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTY00200foCFl3DK?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDk00200T7NIg8tC/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTY00200foCFl3DK/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.4.json
index 20cec2f3b54..f31b769eee9 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaZGJYcmFiRW9RdFNXcW95UFlHdHBHMVpuV3BZLDkyMDM1MDk20200ic6HSaFw?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBclpaSzBzQ3ZTQUpWbXlWbmZDSlZVYVBINlZELDkzNDQ3MTY20200sQnUJGQU?s=ap",
"id": "in_NORMALIZED00000000000005",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaZGJYcmFiRW9RdFNXcW95UFlHdHBHMVpuV3BZLDkyMDM1MDk20200ic6HSaFw/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBclpaSzBzQ3ZTQUpWbXlWbmZDSlZVYVBINlZELDkzNDQ3MTY20200sQnUJGQU/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaQW1pSTVLQmZveFEyTEZ0aVFGUkdrVFB3emdmLDkyMDM1MDk20200C9VJZPNC?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBRGF4WTJXQzI5MW5EQzBSRkt1RWFmQzNTV09TLDkzNDQ3MTY20200e2v1v4d9?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaQW1pSTVLQmZveFEyTEZ0aVFGUkdrVFB3emdmLDkyMDM1MDk20200C9VJZPNC/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBRGF4WTJXQzI5MW5EQzBSRkt1RWFmQzNTV09TLDkzNDQ3MTY20200e2v1v4d9/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -358,9 +358,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDk20200k214TXVk?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBcVY1MDN1d2paM0xObmg3bTFmUmVjdzlDdnluLDkzNDQ3MTY20200w0NDiYPQ?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDk20200k214TXVk/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBcVY1MDN1d2paM0xObmg3bTFmUmVjdzlDdnluLDkzNDQ3MTY20200w0NDiYPQ/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -566,9 +566,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDk20200vhaOkpkU?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBanFqMUliZzFxSnFGZU0xYjd0TWlibFBsakI5LDkzNDQ3MTY20200QtYFIuDi?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDk20200vhaOkpkU/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBanFqMUliZzFxSnFGZU0xYjd0TWlibFBsakI5LDkzNDQ3MTY20200QtYFIuDi/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -724,9 +724,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDk20200foLjFR1Q?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTY20200RzcFVCxe?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDk20200foLjFR1Q/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBT2dFQXVwclJNM0lTZ2JmaklEd3l5ZzdHenhLLDkzNDQ3MTY20200RzcFVCxe/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--PaymentIntent.create.1.json
index eac8424b613..614ec24db80 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--PaymentIntent.create.1.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "payment_method": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"payment_method_details": {
"card": {
"amount_authorized": 4800,
@@ -120,7 +120,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIz8qqsGMgYlEvYsZEc6LBZ-ubZRgOf8Lafp4s7haswYrP9aBO2NEz7Yft6LJz3fpF9YlcoEZojY4pnG",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPKTgawGMgYVXssQmjg6LBZKcOzgjC20CgoEKnoAitu_fiUMUXG_hmIsQ7XrvbBvFNtO78SBQlI5WwTD",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_6TAC3XJGsIH6q2vaLDTlsGFe5",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_2erOZOcNwWKKxMrojRoEv3sLq",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -173,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "payment_method": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.create.1.json
index c4eecc28f5d..ef0bf19276d 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlaWDEQaroqDjsfqkiF5vF_secret_P6zZmEqkygLGMry8yleSV2nxa0Ap3R5",
+ "client_secret": "seti_1OOgvpDEQaroqDjsCEZlQlhb_secret_PD7AAAptJUjBpE6qB94Q44e0YJLhPIs",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlaWDEQaroqDjsfqkiF5vF",
+ "id": "seti_1OOgvpDEQaroqDjsCEZlQlhb",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlaWDEQaroqDjsN24g7wUu",
+ "latest_attempt": "setatt_1OOgvpDEQaroqDjsKO8rlFd4",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "payment_method": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.list.1.json
index 8adeed9871e..a93acf2a8f0 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlaVDEQaroqDjsde1vtq0n_secret_P6zZlnlApjRAErKRYaD6I87lCiSI3bB",
+ "client_secret": "seti_1OOgvoDEQaroqDjsKYGAPB3F_secret_PD7AHM45kboY2jJJXBScQzt6AQpBdRW",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlaVDEQaroqDjsde1vtq0n",
+ "id": "seti_1OOgvoDEQaroqDjsKYGAPB3F",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.retrieve.1.json
index c4eecc28f5d..ef0bf19276d 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlaWDEQaroqDjsfqkiF5vF_secret_P6zZmEqkygLGMry8yleSV2nxa0Ap3R5",
+ "client_secret": "seti_1OOgvpDEQaroqDjsCEZlQlhb_secret_PD7AAAptJUjBpE6qB94Q44e0YJLhPIs",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlaWDEQaroqDjsfqkiF5vF",
+ "id": "seti_1OOgvpDEQaroqDjsCEZlQlhb",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlaWDEQaroqDjsN24g7wUu",
+ "latest_attempt": "setatt_1OOgvpDEQaroqDjsKO8rlFd4",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
+ "payment_method": "pm_1OOgvpDEQaroqDjs3uXrnlSG",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.create.1.json
index 87955a048b2..5b75824ade2 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02HiefI6DLIvR89Xbp1Jtsd580hJv3ikGD4j6JqoBTsgYJue",
+ "id": "cs_test_NORMALIZED02dFDXCBaCMvcdhPWiifczY8Ve89XnsT6UBZhcw97lCbFTuQ",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlaVDEQaroqDjsde1vtq0n",
+ "setup_intent": "seti_1OOgvoDEQaroqDjsKYGAPB3F",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02HiefI6DLIvR89Xbp1Jtsd580hJv3ikGD4j6JqoBTsgYJue#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02dFDXCBaCMvcdhPWiifczY8Ve89XnsT6UBZhcw97lCbFTuQ#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.list.1.json
index 018cf100855..7174984841a 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02HiefI6DLIvR89Xbp1Jtsd580hJv3ikGD4j6JqoBTsgYJue",
+ "id": "cs_test_NORMALIZED02dFDXCBaCMvcdhPWiifczY8Ve89XnsT6UBZhcw97lCbFTuQ",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlaVDEQaroqDjsde1vtq0n",
+ "setup_intent": "seti_1OOgvoDEQaroqDjsKYGAPB3F",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02HiefI6DLIvR89Xbp1Jtsd580hJv3ikGD4j6JqoBTsgYJue#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02dFDXCBaCMvcdhPWiifczY8Ve89XnsT6UBZhcw97lCbFTuQ#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.modify.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.modify.1.json
index 569e9f6a20b..706b990b12c 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "default_payment_method": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"footer": null,
"rendering_options": 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.json
index 8a045b0865a..9f299d62f26 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "id": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 8a045b0865a..9f299d62f26 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "id": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 8a045b0865a..9f299d62f26 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "id": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 8a045b0865a..9f299d62f26 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "id": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index c573628926f..37c25102a23 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "id": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.1.json
index 4d879c75e61..2193582b79f 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "default_payment_method": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlaqDEQaroqDjsZwaZ0zBy",
+ "id": "evt_1OOgwADEQaroqDjsz1ekFvyh",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "6f3c7177-2034-4d78-9b1f-45a181ee73b0"
+ "idempotency_key": "7435329c-80a1-4a73-9f8b-572ce147f6fb"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json
index a2e84c81e27..e6788dfecb0 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
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "payment_method": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"payment_method_details": {
"card": {
"amount_authorized": 28000,
@@ -123,10 +123,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJ_8qqsGMgZrhwDQRyw6LBb9FE9Hy4kC_kftck-2BSRblvRhj6eZplrzgd6TkE53NjIQTGlc7F1i2qQD",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIWUgawGMgYAJF6zHKo6LBYdAknvtpLGw7M2pzxLiAyvSk5aUbai4O8qhj2uuSXyytNEElq4bz-b01Bc",
"refunded": false,
"refunds": {
"data": [],
@@ -151,7 +150,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_jD8RRYvzX8GmbB0YS3Zn797pE",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_uGgaeqUZEZ6udK8lBgnp0SvKI",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -179,7 +178,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "payment_method": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +204,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlasDEQaroqDjs1kSuXumA",
+ "id": "evt_3OOgwCDEQaroqDjs0R6d8de0",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "34bf0066-3977-44d5-9669-a36fb22f7948"
+ "idempotency_key": "880c62a6-e8ff-47a7-b6b6-0ec58ed3b325"
},
"type": "payment_intent.succeeded"
},
@@ -283,7 +282,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "payment_method": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"payment_method_details": {
"card": {
"amount_authorized": 28000,
@@ -323,10 +322,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJ_8qqsGMgZ_m9YmO0E6LBZvrpEr9oSnwYKlyKO2SN5CBpRSGBSk_IR--SjUDde-R6Bn9rbgKUvdl4pi",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIWUgawGMgbTOM9nPy46LBaS9KkkECJmCiNODReZZm_yxsDd8XaywkPFJQFAcw_nUFpzdgCslFTBFIqg",
"refunded": false,
"refunds": {
"data": [],
@@ -346,13 +344,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlasDEQaroqDjs1YFG3zAJ",
+ "id": "evt_3OOgwCDEQaroqDjs0uhduxuA",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "34bf0066-3977-44d5-9669-a36fb22f7948"
+ "idempotency_key": "880c62a6-e8ff-47a7-b6b6-0ec58ed3b325"
},
"type": "charge.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json
index db4aa041db9..c57ceab9bf1 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA10200eJBu1XmJ?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTc102003XmIjpZM?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA10200eJBu1XmJ/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTc102003XmIjpZM/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1OIlavDEQaroqDjsNwN1z60S",
+ "id": "evt_1OOgwGDEQaroqDjsmOxkwyKg",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "81e5e0fc-a9da-4381-b3fa-7f769272a0fe"
+ "idempotency_key": "585693d5-302e-4330-8a94-bb505304714b"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlavDEQaroqDjsSFnYh8lu",
+ "id": "evt_1OOgwFDEQaroqDjsn21w6pBn",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "fc92364b-ef12-4066-aecb-b3f62efc5123"
+ "idempotency_key": "407fccb8-23b3-4c2d-a454-5964e895950d"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "800"
}
},
- "id": "evt_1OIlauDEQaroqDjsaiHelwyH",
+ "id": "evt_1OOgwEDEQaroqDjspYRB0CC9",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "721d64c0-784e-4915-89c0-f9e822334126"
+ "idempotency_key": "acc1a1f2-1bf4-4f98-9589-7a8a17132fb9"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-28000"
}
},
- "id": "evt_1OIlauDEQaroqDjsjsy4L2LM",
+ "id": "evt_1OOgwEDEQaroqDjsA3h0rqAh",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "6a44b0e1-e1b1-4ffb-9851-5e07e5b70fe9"
+ "idempotency_key": "b902a3cd-db96-4f3d-9a5b-b0bf32861627"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "default_payment_method": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlauDEQaroqDjsIxnw4q0O",
+ "id": "evt_1OOgwEDEQaroqDjs8D1dOXnN",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "6a44b0e1-e1b1-4ffb-9851-5e07e5b70fe9"
+ "idempotency_key": "b902a3cd-db96-4f3d-9a5b-b0bf32861627"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.4.json
index 802319966c1..93150b7ca04 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.4.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.4.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA20200IsPN2pun?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTc20200Kpc4albq?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA20200IsPN2pun/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTc20200Kpc4albq/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,236 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlawDEQaroqDjse1JKNupV",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "81e5e0fc-a9da-4381-b3fa-7f769272a0fe"
- },
- "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": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA10200eJBu1XmJ?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA10200eJBu1XmJ/pdf?s=ap",
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 28000,
- "amount_excluding_tax": 28000,
- "currency": "usd",
- "description": "Zulip Cloud Standard",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1328151845,
- "start": 1325473445
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1000000000,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": 800,
- "unit_amount_decimal": "800"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 35,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "800"
- },
- {
- "amount": -28000,
- "amount_excluding_tax": -28000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
- "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": "price_NORMALIZED00000000000002",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -28000,
- "unit_amount_decimal": "-28000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-28000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0002",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIlavDEQaroqDjsxkmujDxx",
+ "id": "evt_1OOgwGDEQaroqDjs978UdduM",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "81e5e0fc-a9da-4381-b3fa-7f769272a0fe"
+ "idempotency_key": "585693d5-302e-4330-8a94-bb505304714b"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.5.json
index eae398073a2..89101e01b77 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.5.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA20200IsPN2pun?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTc20200Kpc4albq?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA20200IsPN2pun/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTc20200Kpc4albq/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,15 +213,238 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlawDEQaroqDjsQ2KAEnGp",
+ "id": "evt_1OOgwGDEQaroqDjsfjBrNryG",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "81e5e0fc-a9da-4381-b3fa-7f769272a0fe"
+ "idempotency_key": "585693d5-302e-4330-8a94-bb505304714b"
},
"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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTc20200Kpc4albq?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTc20200Kpc4albq/pdf?s=ap",
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 28000,
+ "amount_excluding_tax": 28000,
+ "currency": "usd",
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "period": {
+ "end": 1328151845,
+ "start": 1325473445
+ },
+ "plan": null,
+ "price": {
+ "active": false,
+ "billing_scheme": "per_unit",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_unit_amount": null,
+ "id": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": 800,
+ "unit_amount_decimal": "800"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 35,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "800"
+ },
+ {
+ "amount": -28000,
+ "amount_excluding_tax": -28000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -28000,
+ "unit_amount_decimal": "-28000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-28000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0002",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgwGDEQaroqDjse16bUtrO",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "585693d5-302e-4330-8a94-bb505304714b"
+ },
+ "type": "invoice.paid"
}
],
"has_more": false,
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.json
index cde1031d9a8..5c0c5061f57 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA10200eJBu1XmJ?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTc102003XmIjpZM?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA10200eJBu1XmJ/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTc102003XmIjpZM/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index 634888bbe88..facd97ee09a 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphRkhmV01QNFBhcldnUkpubTFENENUblI3QmRoLDkyMDM1MTA40200QeL7bljh?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBY01wRURSQWZKOThjSTdOdENwUE1DTVF6dWlpLDkzNDQ3MTc502001CWZ65VU?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphRkhmV01QNFBhcldnUkpubTFENENUblI3QmRoLDkyMDM1MTA40200QeL7bljh/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBY01wRURSQWZKOThjSTdOdENwUE1DTVF6dWlpLDkzNDQ3MTc502001CWZ65VU/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index fa96b8e19f0..65e4a75201a 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTmJ5SmZ4TWdFeURYMURETHdLRDlmb0l5eFBjLDkyMDM1MTEw0200ph34eCZo?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBQVJUbkFnOWhnTmx4NTRaT2IzN28yODlzZWtILDkzNDQ3MTgx0200gkVjYQ9F?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTmJ5SmZ4TWdFeURYMURETHdLRDlmb0l5eFBjLDkyMDM1MTEw0200ph34eCZo/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBQVJUbkFnOWhnTmx4NTRaT2IzN28yODlzZWtILDkzNDQ3MTgx0200gkVjYQ9F/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index c30bf66b730..10739db743e 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphRkhmV01QNFBhcldnUkpubTFENENUblI3QmRoLDkyMDM1MTA50200WOD4SGPE?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBY01wRURSQWZKOThjSTdOdENwUE1DTVF6dWlpLDkzNDQ3MTc502001CWZ65VU?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphRkhmV01QNFBhcldnUkpubTFENENUblI3QmRoLDkyMDM1MTA50200WOD4SGPE/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBY01wRURSQWZKOThjSTdOdENwUE1DTVF6dWlpLDkzNDQ3MTc502001CWZ65VU/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA50200rS7ZkXWv?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTc50200QCCYw2ih?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA50200rS7ZkXWv/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTc50200QCCYw2ih/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index 139a8ec4244..391b9e213b5 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTmJ5SmZ4TWdFeURYMURETHdLRDlmb0l5eFBjLDkyMDM1MTEx0200B4tGDnYn?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBQVJUbkFnOWhnTmx4NTRaT2IzN28yODlzZWtILDkzNDQ3MTgx0200gkVjYQ9F?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTmJ5SmZ4TWdFeURYMURETHdLRDlmb0l5eFBjLDkyMDM1MTEx0200B4tGDnYn/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBQVJUbkFnOWhnTmx4NTRaT2IzN28yODlzZWtILDkzNDQ3MTgx0200gkVjYQ9F/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphRkhmV01QNFBhcldnUkpubTFENENUblI3QmRoLDkyMDM1MTEx0200FnNILgMH?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBY01wRURSQWZKOThjSTdOdENwUE1DTVF6dWlpLDkzNDQ3MTgx0200RN5x5L2x?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphRkhmV01QNFBhcldnUkpubTFENENUblI3QmRoLDkyMDM1MTEx0200FnNILgMH/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBY01wRURSQWZKOThjSTdOdENwUE1DTVF6dWlpLDkzNDQ3MTgx0200RN5x5L2x/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -358,9 +358,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTEx0200TKznTSa3?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTgx0200subZTtR7?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTEx0200TKznTSa3/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBeVZZVDJ6aWdKUlVWOEdoelNaN0owWjJaVzhTLDkzNDQ3MTgx0200subZTtR7/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--PaymentIntent.create.1.json
index 78928d511e7..74d5f9bba69 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--PaymentIntent.create.1.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "payment_method": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"payment_method_details": {
"card": {
"amount_authorized": 28000,
@@ -117,10 +117,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJ_8qqsGMgbftNrtQ9A6LBZtHhju_jF5nmvMrs2aZFvOhmBy73xNcwFbmatmw_Oco7UAbU1LaY61-Vg2",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIWUgawGMgbwRKo3Rfg6LBZXqY5e8VDiXTXy--cpa9Fwda2_oeKhiFcCDRBpJWdeXlzLDgLm88c1CWC6",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +144,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_jD8RRYvzX8GmbB0YS3Zn797pE",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_uGgaeqUZEZ6udK8lBgnp0SvKI",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -173,7 +172,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "payment_method": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.create.1.json
index b7aaafd4e40..29117a788fc 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlaoDEQaroqDjsCfabkyLU_secret_P6zZUddqsIAhwQ3nmFDoxSfQ8qhfhf4",
+ "client_secret": "seti_1OOgw8DEQaroqDjsQcMfr1r1_secret_PD7AUBDTCx4j1k8CTaxRDMQTU3Gz6mF",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlaoDEQaroqDjsCfabkyLU",
+ "id": "seti_1OOgw8DEQaroqDjsQcMfr1r1",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlaoDEQaroqDjsxaWoCPNI",
+ "latest_attempt": "setatt_1OOgw8DEQaroqDjsnphFqS3l",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "payment_method": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.list.1.json
index 3d76ceb4fab..b1410ad44fb 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlaoDEQaroqDjscswmv5az_secret_P6zZqAzj4qGbHfsZDOrRHwTzIKgtpk1",
+ "client_secret": "seti_1OOgw8DEQaroqDjskLKucJv5_secret_PD7A0LoKdWRrjxEPQGmgzu8iIpJTGRO",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlaoDEQaroqDjscswmv5az",
+ "id": "seti_1OOgw8DEQaroqDjskLKucJv5",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.retrieve.1.json
index b7aaafd4e40..29117a788fc 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlaoDEQaroqDjsCfabkyLU_secret_P6zZUddqsIAhwQ3nmFDoxSfQ8qhfhf4",
+ "client_secret": "seti_1OOgw8DEQaroqDjsQcMfr1r1_secret_PD7AUBDTCx4j1k8CTaxRDMQTU3Gz6mF",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlaoDEQaroqDjsCfabkyLU",
+ "id": "seti_1OOgw8DEQaroqDjsQcMfr1r1",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlaoDEQaroqDjsxaWoCPNI",
+ "latest_attempt": "setatt_1OOgw8DEQaroqDjsnphFqS3l",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
+ "payment_method": "pm_1OOgw8DEQaroqDjs7oGMTyce",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.create.1.json
index 68dcd4b22d9..ae6e851a755 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02iGnnSPsITMGc7NdVSVc1kP1Y1LaNV5s2RMPg3wR11gCxbf",
+ "id": "cs_test_NORMALIZED02WFQ9cBmLytTygAWhAsGDAFIggmDmMR9pfaoE4fbj4NKspk",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlaoDEQaroqDjscswmv5az",
+ "setup_intent": "seti_1OOgw8DEQaroqDjskLKucJv5",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02iGnnSPsITMGc7NdVSVc1kP1Y1LaNV5s2RMPg3wR11gCxbf#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02WFQ9cBmLytTygAWhAsGDAFIggmDmMR9pfaoE4fbj4NKspk#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.list.1.json
index 3536da39de9..8aed35c7b17 100644
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02iGnnSPsITMGc7NdVSVc1kP1Y1LaNV5s2RMPg3wR11gCxbf",
+ "id": "cs_test_NORMALIZED02WFQ9cBmLytTygAWhAsGDAFIggmDmMR9pfaoE4fbj4NKspk",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlaoDEQaroqDjscswmv5az",
+ "setup_intent": "seti_1OOgw8DEQaroqDjskLKucJv5",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02iGnnSPsITMGc7NdVSVc1kP1Y1LaNV5s2RMPg3wR11gCxbf#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02WFQ9cBmLytTygAWhAsGDAFIggmDmMR9pfaoE4fbj4NKspk#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.modify.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.modify.1.json
index 8c1342d1f39..4f49f07cf42 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
+ "default_payment_method": "pm_1OOgwNDEQaroqDjsroLgKHwa",
"footer": null,
"rendering_options": 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.json
index d64856a92ff..68841ba1963 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
+ "id": "pm_1OOgwNDEQaroqDjsroLgKHwa",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index d64856a92ff..68841ba1963 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
+ "id": "pm_1OOgwNDEQaroqDjsroLgKHwa",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index d64856a92ff..68841ba1963 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
+ "id": "pm_1OOgwNDEQaroqDjsroLgKHwa",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index d64856a92ff..68841ba1963 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
+ "id": "pm_1OOgwNDEQaroqDjsroLgKHwa",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json
index 7c095ec25a5..334fa59a43f 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
+ "default_payment_method": "pm_1OOgwNDEQaroqDjsroLgKHwa",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlb5DEQaroqDjsbRYPQIsV",
+ "id": "evt_1OOgwPDEQaroqDjspkQ0BEtO",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "4fc1dc7d-a095-40cc-a9a1-2d8e21575270"
+ "idempotency_key": "0c345553-a89d-449a-a1f0-2ddedeea1031"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.create.1.json
index 51a9048d76e..fc567bfef90 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlb3DEQaroqDjsEAHhddfz_secret_P6zaEBcdhkiacrBpqyQb5lyu1txPvTH",
+ "client_secret": "seti_1OOgwNDEQaroqDjsDv7kjcz7_secret_PD7AVoDyIIPjJqXwAN7FKw4VCWOuHx7",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlb3DEQaroqDjsEAHhddfz",
+ "id": "seti_1OOgwNDEQaroqDjsDv7kjcz7",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlb3DEQaroqDjs7JJpR5wb",
+ "latest_attempt": "setatt_1OOgwNDEQaroqDjsrBMahyeR",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
+ "payment_method": "pm_1OOgwNDEQaroqDjsroLgKHwa",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.list.1.json
index 608a0801ade..08b168f3efd 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlb2DEQaroqDjsO5x2EXc7_secret_P6zaB3aWtnlnJfCvjwF31Y19FrleDA0",
+ "client_secret": "seti_1OOgwMDEQaroqDjs7QxHxJga_secret_PD7AyAb7qZ2BosRyffOpGbyvbKAHetN",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlb2DEQaroqDjsO5x2EXc7",
+ "id": "seti_1OOgwMDEQaroqDjs7QxHxJga",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.retrieve.1.json
index 51a9048d76e..fc567bfef90 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlb3DEQaroqDjsEAHhddfz_secret_P6zaEBcdhkiacrBpqyQb5lyu1txPvTH",
+ "client_secret": "seti_1OOgwNDEQaroqDjsDv7kjcz7_secret_PD7AVoDyIIPjJqXwAN7FKw4VCWOuHx7",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlb3DEQaroqDjsEAHhddfz",
+ "id": "seti_1OOgwNDEQaroqDjsDv7kjcz7",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlb3DEQaroqDjs7JJpR5wb",
+ "latest_attempt": "setatt_1OOgwNDEQaroqDjsrBMahyeR",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
+ "payment_method": "pm_1OOgwNDEQaroqDjsroLgKHwa",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.create.1.json
index 71e84d239b6..cbc023a7573 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01tjtGe4sgxYl79o89mpIdXfihE4K8kUPRIDWAe8Jou3XVQS",
+ "id": "cs_test_NORMALIZED01y1utiKMfJvgJzntcNgsverGsMTbcpu5H1JOMj840frMN28",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlb2DEQaroqDjsO5x2EXc7",
+ "setup_intent": "seti_1OOgwMDEQaroqDjs7QxHxJga",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01tjtGe4sgxYl79o89mpIdXfihE4K8kUPRIDWAe8Jou3XVQS#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01y1utiKMfJvgJzntcNgsverGsMTbcpu5H1JOMj840frMN28#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.list.1.json
index 0dfee7fd168..4070cbd501a 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01tjtGe4sgxYl79o89mpIdXfihE4K8kUPRIDWAe8Jou3XVQS",
+ "id": "cs_test_NORMALIZED01y1utiKMfJvgJzntcNgsverGsMTbcpu5H1JOMj840frMN28",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlb2DEQaroqDjsO5x2EXc7",
+ "setup_intent": "seti_1OOgwMDEQaroqDjs7QxHxJga",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01tjtGe4sgxYl79o89mpIdXfihE4K8kUPRIDWAe8Jou3XVQS#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01y1utiKMfJvgJzntcNgsverGsMTbcpu5H1JOMj840frMN28#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.modify.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.modify.1.json
index e25e2a8db80..5b20e2e6a14 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
+ "default_payment_method": "pm_1OOgwSDEQaroqDjsRkf99pwf",
"footer": null,
"rendering_options": 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.json
index c8788ff1dd5..5536bd92b52 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
+ "id": "pm_1OOgwSDEQaroqDjsRkf99pwf",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index c8788ff1dd5..5536bd92b52 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
+ "id": "pm_1OOgwSDEQaroqDjsRkf99pwf",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index c8788ff1dd5..5536bd92b52 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
+ "id": "pm_1OOgwSDEQaroqDjsRkf99pwf",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index c8788ff1dd5..5536bd92b52 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
+ "id": "pm_1OOgwSDEQaroqDjsRkf99pwf",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Event.list.1.json
index e14d86bcb70..a083c4a5ffe 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
+ "default_payment_method": "pm_1OOgwSDEQaroqDjsRkf99pwf",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlbADEQaroqDjskjEl4q0u",
+ "id": "evt_1OOgwUDEQaroqDjsWYgKYT3S",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "b098255c-7826-4ae5-8855-f4a856a2b2dc"
+ "idempotency_key": "2ca7eec5-7002-46cf-949d-7a3f9427f17c"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.create.1.json
index e6d8420cfb8..3ab25d0f290 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlb8DEQaroqDjsfTh9Efq6_secret_P6zamRCBh4a8GmZYGDyuaEKCUEBGu4z",
+ "client_secret": "seti_1OOgwSDEQaroqDjsj1L5rreL_secret_PD7ANYYwXMrGDJ5LYcBRUdaZIiMjdXb",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlb8DEQaroqDjsfTh9Efq6",
+ "id": "seti_1OOgwSDEQaroqDjsj1L5rreL",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlb8DEQaroqDjsIvgMoGby",
+ "latest_attempt": "setatt_1OOgwSDEQaroqDjsQimiuHZI",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
+ "payment_method": "pm_1OOgwSDEQaroqDjsRkf99pwf",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.list.1.json
index 723e6b20a87..67d91db7fc5 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlb8DEQaroqDjsvXacX4Pc_secret_P6zaIR9mPjlTH6aFFZqh6xE24J4d5Sp",
+ "client_secret": "seti_1OOgwSDEQaroqDjshvb17sgw_secret_PD7A7dSG8aeto8tmnCVAmaDqGVPJ7Z5",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlb8DEQaroqDjsvXacX4Pc",
+ "id": "seti_1OOgwSDEQaroqDjshvb17sgw",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.retrieve.1.json
index e6d8420cfb8..3ab25d0f290 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlb8DEQaroqDjsfTh9Efq6_secret_P6zamRCBh4a8GmZYGDyuaEKCUEBGu4z",
+ "client_secret": "seti_1OOgwSDEQaroqDjsj1L5rreL_secret_PD7ANYYwXMrGDJ5LYcBRUdaZIiMjdXb",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlb8DEQaroqDjsfTh9Efq6",
+ "id": "seti_1OOgwSDEQaroqDjsj1L5rreL",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlb8DEQaroqDjsIvgMoGby",
+ "latest_attempt": "setatt_1OOgwSDEQaroqDjsQimiuHZI",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
+ "payment_method": "pm_1OOgwSDEQaroqDjsRkf99pwf",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.create.1.json
index 19b51ecceb9..5c8ba5108b3 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01v7w2AADuM90XJuiqu2dKIGFrGFzPVIGoGCXpV82CBvzBuD",
+ "id": "cs_test_NORMALIZED01cYu50D5eks4e2w0Qv7bNsu0W62I4n0BuwTrITj4Ra4xJkL",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlb8DEQaroqDjsvXacX4Pc",
+ "setup_intent": "seti_1OOgwSDEQaroqDjshvb17sgw",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01v7w2AADuM90XJuiqu2dKIGFrGFzPVIGoGCXpV82CBvzBuD#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01cYu50D5eks4e2w0Qv7bNsu0W62I4n0BuwTrITj4Ra4xJkL#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.list.1.json
index cf4eec5c785..af61852cf8d 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01v7w2AADuM90XJuiqu2dKIGFrGFzPVIGoGCXpV82CBvzBuD",
+ "id": "cs_test_NORMALIZED01cYu50D5eks4e2w0Qv7bNsu0W62I4n0BuwTrITj4Ra4xJkL",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlb8DEQaroqDjsvXacX4Pc",
+ "setup_intent": "seti_1OOgwSDEQaroqDjshvb17sgw",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01v7w2AADuM90XJuiqu2dKIGFrGFzPVIGoGCXpV82CBvzBuD#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01cYu50D5eks4e2w0Qv7bNsu0W62I4n0BuwTrITj4Ra4xJkL#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json
index a1707566394..e5191185d15 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": -339,
+ "amount": -160,
"created": 1000000000,
"credit_note": null,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Credit from early termination of active plan",
- "ending_balance": -339,
+ "ending_balance": -160,
"id": "cbtxn_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.modify.1.json
index cca74450851..fd52f8f21c4 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "default_payment_method": "pm_1OOgyTDEQaroqDjsswgvT45k",
"footer": null,
"rendering_options": null
},
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.json
index 5172ba263e1..0b0b618317b 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "id": "pm_1OOgyTDEQaroqDjsswgvT45k",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 5172ba263e1..0b0b618317b 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "id": "pm_1OOgyTDEQaroqDjsswgvT45k",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 5172ba263e1..0b0b618317b 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "id": "pm_1OOgyTDEQaroqDjsswgvT45k",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 5172ba263e1..0b0b618317b 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "id": "pm_1OOgyTDEQaroqDjsswgvT45k",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.1.json
index d76731c4643..0b57f2a59c8 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.1.json
@@ -5,173 +5,53 @@
"created": 1000000000,
"data": {
"object": {
- "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,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "send_invoice",
+ "address": null,
+ "balance": 0,
"created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0002",
- "customer_address": null,
- "customer_email": "[email protected]",
- "customer_name": null,
- "customer_phone": null,
- "customer_shipping": null,
- "customer_tax_exempt": "none",
- "customer_tax_ids": [],
- "default_payment_method": null,
+ "currency": null,
+ "default_currency": null,
"default_source": null,
- "default_tax_rates": [],
- "description": null,
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYMThmemJWVFRBNWt4YjhxN3hVN0dUVThCZTJnLDkyMDM1MjI40200cHdzMA7T?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYMThmemJWVFRBNWt4YjhxN3hVN0dUVThCZTJnLDkyMDM1MjI40200cHdzMA7T/pdf?s=ap",
- "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": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
- "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": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "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/in_NORMALIZED00000000000001/lines"
+ "email": "[email protected]",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": "pm_1OOgyTDEQaroqDjsswgvT45k",
+ "footer": null,
+ "rendering_options": null
},
"livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0001",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": false,
- "paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000001",
- "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
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
},
- "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
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+ },
+ "previous_attributes": {
+ "invoice_settings": {
+ "default_payment_method": null
+ }
}
},
- "id": "evt_1OIlcuDEQaroqDjsX54mmZtB",
+ "id": "evt_1OOgyVDEQaroqDjsIeTXvGHX",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "req_NORMALIZED0001",
+ "idempotency_key": "56118ebf-0a58-42cb-859f-c0f49d4ae5af"
},
- "type": "invoice.sent"
+ "type": "customer.updated"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json
index 11787be4724..03743f3e945 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
@@ -82,8 +82,8 @@
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OOgyTDEQaroqDjsswgvT45k",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -123,10 +123,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJ39qqsGMgZh5d5XODE6LBZiUrlxEtrh-a4P5wbgjbFHJPFaFabZ47GoS833o7lgYwmHoJsHkPx4rcvz",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJaVgawGMgZMFP89BuM6LBY3LcKI_DVKNunMuff635Pn8ztQZeBbs-_L9UzmoL-X13ZXxacvf9p7CJet",
"refunded": false,
"refunds": {
"data": [],
@@ -149,15 +148,15 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_Zh46dccATrE3g8qiqxlrm2qC4",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_7sqyCk0vSswnl3oFcUtQRPO6L",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
- "id": "pi_NORMALIZED00000000000002",
+ "id": "pi_NORMALIZED00000000000001",
"invoice": null,
"last_payment_error": null,
"latest_charge": "ch_NORMALIZED00000000000001",
@@ -179,7 +178,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "payment_method": "pm_1OOgyTDEQaroqDjsswgvT45k",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +204,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlcuDEQaroqDjs15WQG3pl",
+ "id": "evt_3OOgyXDEQaroqDjs0ctheGsP",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_NORMALIZED0001",
- "idempotency_key": "3f32e67e-4000-4cfb-b29b-862145bb4394"
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "46cb3d02-12d9-4e3e-ad23-9aaf0fb6f4e6"
},
"type": "payment_intent.succeeded"
},
@@ -282,8 +281,8 @@
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OOgyTDEQaroqDjsswgvT45k",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -323,10 +322,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJ39qqsGMgbdjvNMRLg6LBarAsHlmAdFlIDSHd2Wzr3pqRq9P1p8CGjbv6SFjfku7jSBXsMNZCoYUWGW",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJaVgawGMgaUw0hKt3g6LBaVDx7vKrJFXYMGAMCXf7-9gFMYq6sYyHFchcPn4IaaI5GVsXGVTZ-mr729",
"refunded": false,
"refunds": {
"data": [],
@@ -346,361 +344,15 @@
"transfer_group": null
}
},
- "id": "evt_3OIlcuDEQaroqDjs1bFxeo1s",
+ "id": "evt_3OOgyXDEQaroqDjs0X6d7ZKu",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0001",
- "idempotency_key": "3f32e67e-4000-4cfb-b29b-862145bb4394"
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "46cb3d02-12d9-4e3e-ad23-9aaf0fb6f4e6"
},
"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": 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,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "send_invoice",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0003",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZNTdyR2VrQnBXTFhGRkJBREtpMnpMMEw5WDFiLDkyMDM1MjI40200RlCiaL8e?s=ap",
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZNTdyR2VrQnBXTFhGRkJBREtpMnpMMEw5WDFiLDkyMDM1MjI40200RlCiaL8e/pdf?s=ap",
- "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": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
- "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": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "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/in_NORMALIZED00000000000002/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0002",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": false,
- "paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000003",
- "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": 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": "evt_1OIlcuDEQaroqDjs5wQ3tBAN",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": null,
- "idempotency_key": null
- },
- "type": "invoice.sent"
- },
- {
- "api_version": "2020-08-27",
- "created": 1000000000,
- "data": {
- "object": {
- "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,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "send_invoice",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0004",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZbFpBSmV0cjl2NWpEenlPSkE2T3NLRU5xOFdOLDkyMDM1MjI40200Lziq9TXO?s=ap",
- "id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZbFpBSmV0cjl2NWpEenlPSkE2T3NLRU5xOFdOLDkyMDM1MjI40200Lziq9TXO/pdf?s=ap",
- "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": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
- "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": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "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/in_NORMALIZED00000000000003/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0003",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": false,
- "paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000004",
- "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": 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": "evt_1OIlcuDEQaroqDjsBsIFrar9",
- "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/switch_realm_from_standard_to_plus_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.json
index fc9ea800b9b..a1c6cf4aefa 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjb2IyYU9ZY3hXV1hhc3dzOTM3ZFJtV2dBNm9nLDkyMDM1MjMy0200rY9t9nQm?s=ap",
- "id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjb2IyYU9ZY3hXV1hhc3dzOTM3ZFJtV2dBNm9nLDkyMDM1MjMy0200rY9t9nQm/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRHVjYjcxeUFnWHBLWDNGMjBhcXBFaUJkTE9YLDkzNDQ3MzIw0200iDCeGCOc?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRHVjYjcxeUFnWHBLWDNGMjBhcXBFaUJkTE9YLDkzNDQ3MzIw0200iDCeGCOc/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -77,7 +77,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +111,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000005",
- "invoice_item": "ii_NORMALIZED00000000000005",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -127,7 +127,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -157,12 +157,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0004",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1OIlcyDEQaroqDjsXypfht0c",
+ "id": "evt_1OOgyaDEQaroqDjshEOyy2Tx",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_NORMALIZED0002",
- "idempotency_key": "38f5d6e3-e5ec-4046-98d3-979b8b6f737e"
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "767d41bb-e32b-488e-bd26-83592781ff67"
},
"type": "invoice.updated"
},
@@ -291,7 +291,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "in_NORMALIZED00000000000004",
+ "id": "in_NORMALIZED00000000000001",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -305,8 +305,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -321,7 +321,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -355,8 +355,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000005",
- "invoice_item": "ii_NORMALIZED00000000000005",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -371,7 +371,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -401,7 +401,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlcxDEQaroqDjsrxXjS9c6",
+ "id": "evt_1OOgyZDEQaroqDjs6fpTk2Bh",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "f5e39471-f435-4423-bd55-31d7501a7f45"
+ "id": "req_NORMALIZED0004",
+ "idempotency_key": "1f08a369-e456-448a-bb3e-22e3d02c77eb"
},
"type": "invoice.created"
},
@@ -479,7 +479,7 @@
"description": "Zulip Cloud Standard",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000004",
+ "id": "ii_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -495,7 +495,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OIlcxDEQaroqDjsjhFzia7R",
+ "id": "evt_1OOgyZDEQaroqDjsnL1yyYnb",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0004",
- "idempotency_key": "1349928b-a706-4ea6-ac76-01bbce908090"
+ "id": "req_NORMALIZED0005",
+ "idempotency_key": "1b4fea85-d90e-4b67-a124-89f62bd97362"
},
"type": "invoiceitem.created"
},
@@ -541,7 +541,7 @@
"description": "Payment (Card ending in 4242)",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000005",
+ "id": "ii_NORMALIZED00000000000002",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -557,7 +557,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OIlcwDEQaroqDjsSOpiV5q1",
+ "id": "evt_1OOgyZDEQaroqDjsFwvRyjag",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0005",
- "idempotency_key": "b72f35f0-dc22-475e-b995-822f033dcf70"
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "3a9e9c1a-9f41-469c-995a-3e29134f0788"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "default_payment_method": "pm_1OOgyTDEQaroqDjsswgvT45k",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlcwDEQaroqDjsyKIzW0oz",
+ "id": "evt_1OOgyZDEQaroqDjsd7nP66bm",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0005",
- "idempotency_key": "b72f35f0-dc22-475e-b995-822f033dcf70"
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "3a9e9c1a-9f41-469c-995a-3e29134f0788"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.4.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.4.json
index 1654ee10788..2b1c3f54f49 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.4.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.4.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjb2IyYU9ZY3hXV1hhc3dzOTM3ZFJtV2dBNm9nLDkyMDM1MjMy0200rY9t9nQm?s=ap",
- "id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjb2IyYU9ZY3hXV1hhc3dzOTM3ZFJtV2dBNm9nLDkyMDM1MjMy0200rY9t9nQm/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRHVjYjcxeUFnWHBLWDNGMjBhcXBFaUJkTE9YLDkzNDQ3MzIw0200iDCeGCOc?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRHVjYjcxeUFnWHBLWDNGMjBhcXBFaUJkTE9YLDkzNDQ3MzIw0200iDCeGCOc/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -77,7 +77,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +111,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000005",
- "invoice_item": "ii_NORMALIZED00000000000005",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -121,179 +121,6 @@
"start": 1000000000
},
"plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1000000000,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -48000,
- "unit_amount_decimal": "-48000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-48000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0005",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIlcyDEQaroqDjsm70WiGqI",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0002",
- "idempotency_key": "38f5d6e3-e5ec-4046-98d3-979b8b6f737e"
- },
- "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": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjb2IyYU9ZY3hXV1hhc3dzOTM3ZFJtV2dBNm9nLDkyMDM1MjMy0200rY9t9nQm?s=ap",
- "id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjb2IyYU9ZY3hXV1hhc3dzOTM3ZFJtV2dBNm9nLDkyMDM1MjMy0200rY9t9nQm/pdf?s=ap",
- "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": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
@@ -306,56 +133,6 @@
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0001",
- "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"
- },
- {
- "amount": -48000,
- "amount_excluding_tax": -48000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000005",
- "invoice_item": "ii_NORMALIZED00000000000005",
- "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": "price_NORMALIZED00000000000003",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
"product": "prod_NORMALIZED0002",
"recurring": null,
"tax_behavior": "unspecified",
@@ -380,12 +157,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0005",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -436,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlcyDEQaroqDjslhosohOc",
+ "id": "evt_1OOgyaDEQaroqDjsYjYeWk5x",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0002",
- "idempotency_key": "38f5d6e3-e5ec-4046-98d3-979b8b6f737e"
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "767d41bb-e32b-488e-bd26-83592781ff67"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.5.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.5.json
index a8f1db24c53..1b4c9343b97 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.5.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjb2IyYU9ZY3hXV1hhc3dzOTM3ZFJtV2dBNm9nLDkyMDM1MjMy0200rY9t9nQm?s=ap",
- "id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjb2IyYU9ZY3hXV1hhc3dzOTM3ZFJtV2dBNm9nLDkyMDM1MjMy0200rY9t9nQm/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRHVjYjcxeUFnWHBLWDNGMjBhcXBFaUJkTE9YLDkzNDQ3MzIx0200NpNMcYlX?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRHVjYjcxeUFnWHBLWDNGMjBhcXBFaUJkTE9YLDkzNDQ3MzIx0200NpNMcYlX/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,6 +71,56 @@
"start": 1325473445
},
"plan": null,
+ "price": {
+ "active": false,
+ "billing_scheme": "per_unit",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_unit_amount": null,
+ "id": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "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"
+ },
+ {
+ "amount": -48000,
+ "amount_excluding_tax": -48000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "period": {
+ "end": 1000000000,
+ "start": 1000000000
+ },
+ "plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
@@ -83,6 +133,179 @@
"metadata": {},
"nickname": null,
"object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -48000,
+ "unit_amount_decimal": "-48000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-48000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0002",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgybDEQaroqDjsWaYykRQd",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 2,
+ "request": {
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "767d41bb-e32b-488e-bd26-83592781ff67"
+ },
+ "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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRHVjYjcxeUFnWHBLWDNGMjBhcXBFaUJkTE9YLDkzNDQ3MzIx0200NpNMcYlX?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRHVjYjcxeUFnWHBLWDNGMjBhcXBFaUJkTE9YLDkzNDQ3MzIx0200NpNMcYlX/pdf?s=ap",
+ "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": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
"product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
@@ -111,8 +334,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000005",
- "invoice_item": "ii_NORMALIZED00000000000005",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -127,7 +350,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -157,12 +380,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0005",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -213,15 +436,15 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlcyDEQaroqDjsBdO41XHJ",
+ "id": "evt_1OOgybDEQaroqDjsJOR4oLcB",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0002",
- "idempotency_key": "38f5d6e3-e5ec-4046-98d3-979b8b6f737e"
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "767d41bb-e32b-488e-bd26-83592781ff67"
},
- "type": "invoice.payment_succeeded"
+ "type": "invoice.paid"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json
index 1bf16d47d4b..ee4c6393e41 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
@@ -41,7 +41,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "in_NORMALIZED00000000000004",
+ "id": "in_NORMALIZED00000000000001",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,7 +71,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -105,8 +105,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000005",
- "invoice_item": "ii_NORMALIZED00000000000005",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -121,7 +121,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -151,7 +151,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json
index d22e7363ed8..cd727470a55 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": 95661,
+ "amount_due": 95840,
"amount_paid": 0,
- "amount_remaining": 95661,
+ "amount_remaining": 95840,
"amount_shipping": 0,
"application": null,
"application_fee_amount": null,
@@ -41,7 +41,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "in_NORMALIZED00000000000005",
+ "id": "in_NORMALIZED00000000000002",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000006",
- "invoice_item": "ii_NORMALIZED00000000000006",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,7 +71,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000004",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -101,7 +101,7 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_NORMALIZED00000000000005/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
@@ -132,7 +132,7 @@
"rendering_options": null,
"shipping_cost": null,
"shipping_details": null,
- "starting_balance": -339,
+ "starting_balance": -160,
"statement_descriptor": "Zulip Cloud Plus",
"status": "draft",
"status_transitions": {
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json
index e1b1458d7e6..3661658b7cf 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjb2IyYU9ZY3hXV1hhc3dzOTM3ZFJtV2dBNm9nLDkyMDM1MjMy0200rY9t9nQm?s=ap",
- "id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjb2IyYU9ZY3hXV1hhc3dzOTM3ZFJtV2dBNm9nLDkyMDM1MjMy0200rY9t9nQm/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRHVjYjcxeUFnWHBLWDNGMjBhcXBFaUJkTE9YLDkzNDQ3MzIw0200iDCeGCOc?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDRHVjYjcxeUFnWHBLWDNGMjBhcXBFaUJkTE9YLDkzNDQ3MzIw0200iDCeGCOc/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000004",
- "invoice_item": "ii_NORMALIZED00000000000004",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,7 +71,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -105,8 +105,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000005",
- "invoice_item": "ii_NORMALIZED00000000000005",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -121,7 +121,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -151,12 +151,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0005",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json
index e4b3d81163f..c9d7bacedde 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": 95661,
+ "amount_due": 95840,
"amount_paid": 0,
- "amount_remaining": 95661,
+ "amount_remaining": 95840,
"amount_shipping": 0,
"application": null,
"application_fee_amount": null,
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjcFFsTkpZcHdGYXFIQU9QaXNXTVUyTGh0aUowLDkyMDM1MjM10200Dg8QInmt?s=ap",
- "id": "in_NORMALIZED00000000000005",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjcFFsTkpZcHdGYXFIQU9QaXNXTVUyTGh0aUowLDkyMDM1MjM10200Dg8QInmt/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdETGt4NTdDMGtLWjllNERiQ0lpUERnRUYyY2s2LDkzNDQ3MzIz0200nhUBShgA?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdETGt4NTdDMGtLWjllNERiQ0lpUERnRUYyY2s2LDkzNDQ3MzIz0200nhUBShgA/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000006",
- "invoice_item": "ii_NORMALIZED00000000000006",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,7 +71,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000004",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -101,17 +101,17 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_NORMALIZED00000000000005/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0006",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000005",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
@@ -132,7 +132,7 @@
"rendering_options": null,
"shipping_cost": null,
"shipping_details": null,
- "starting_balance": -339,
+ "starting_balance": -160,
"statement_descriptor": "Zulip Cloud Plus",
"status": "open",
"status_transitions": {
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.1.json
index 03abf6a85e4..fcb1c3c2e9d 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.1.json
@@ -6,7 +6,7 @@
"description": "Payment (Card ending in 4242)",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000005",
+ "id": "ii_NORMALIZED00000000000002",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.2.json
index 7be7e3518c4..11622f30a73 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.2.json
@@ -6,7 +6,7 @@
"description": "Zulip Cloud Standard",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000004",
+ "id": "ii_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.3.json
index 2c2ab690acc..72bca2597bd 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.3.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.3.json
@@ -6,7 +6,7 @@
"description": "Zulip Cloud Plus - renewal",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000006",
+ "id": "ii_NORMALIZED00000000000003",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000004",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--PaymentIntent.create.1.json
index ac3df874853..3a8de6d9621 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--PaymentIntent.create.1.json
@@ -76,8 +76,8 @@
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OOgyTDEQaroqDjsswgvT45k",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -117,10 +117,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJ39qqsGMgY9Bd24WPU6LBayGjeDORdYaZDCpYVDyoC7qiuGQA4PmdMPiHXNnwxL7MCf0rwNPDcSvjIE",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJaVgawGMgazTlJm-1Q6LBZPfgiOlLtSqJLefPc1xdTlY9vjGBff2VVJTANNIZOCAxONNAUOf7MI1BQj",
"refunded": false,
"refunds": {
"data": [],
@@ -143,15 +142,15 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_Zh46dccATrE3g8qiqxlrm2qC4",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_7sqyCk0vSswnl3oFcUtQRPO6L",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
- "id": "pi_NORMALIZED00000000000002",
+ "id": "pi_NORMALIZED00000000000001",
"invoice": null,
"last_payment_error": null,
"latest_charge": "ch_NORMALIZED00000000000001",
@@ -173,7 +172,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "payment_method": "pm_1OOgyTDEQaroqDjsswgvT45k",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.create.1.json
index d7fe9bd9498..39ab08dae14 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlcrDEQaroqDjsFeKbN7DV_secret_P6zceCgRAzbcMU85ccfYGMSXjGoPgt7",
+ "client_secret": "seti_1OOgyTDEQaroqDjsm1ferw4C_secret_PD7CzVMhRvkTibyhMU41RpdC9RtYe4Q",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlcrDEQaroqDjsFeKbN7DV",
+ "id": "seti_1OOgyTDEQaroqDjsm1ferw4C",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlcrDEQaroqDjsMWfIXM66",
+ "latest_attempt": "setatt_1OOgyTDEQaroqDjsbmkJ1fta",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "payment_method": "pm_1OOgyTDEQaroqDjsswgvT45k",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.list.1.json
index 3e77475be70..2fbb5014776 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlcqDEQaroqDjsZO0yJl5U_secret_P6zcdR2k4Sjz0PRF0R6rN1ntzo9MkGa",
+ "client_secret": "seti_1OOgySDEQaroqDjs7UkuFJ3j_secret_PD7C9msSe5mNKGEeb9LItKrW69Fptzr",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlcqDEQaroqDjsZO0yJl5U",
+ "id": "seti_1OOgySDEQaroqDjs7UkuFJ3j",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.retrieve.1.json
index d7fe9bd9498..39ab08dae14 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlcrDEQaroqDjsFeKbN7DV_secret_P6zceCgRAzbcMU85ccfYGMSXjGoPgt7",
+ "client_secret": "seti_1OOgyTDEQaroqDjsm1ferw4C_secret_PD7CzVMhRvkTibyhMU41RpdC9RtYe4Q",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlcrDEQaroqDjsFeKbN7DV",
+ "id": "seti_1OOgyTDEQaroqDjsm1ferw4C",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlcrDEQaroqDjsMWfIXM66",
+ "latest_attempt": "setatt_1OOgyTDEQaroqDjsbmkJ1fta",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "payment_method": "pm_1OOgyTDEQaroqDjsswgvT45k",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.create.1.json
index 028b98f0a2e..6d2d7378b16 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED026p1Cgp0oP8OiGJV70uDm2efZ9itMBngIj8DfZz4P4gNDmv",
+ "id": "cs_test_NORMALIZED02QfbseDE0CR3GgEL7gsWkDYLqPmbSKv47FeT0CSjvfi3EmE",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlcqDEQaroqDjsZO0yJl5U",
+ "setup_intent": "seti_1OOgySDEQaroqDjs7UkuFJ3j",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED026p1Cgp0oP8OiGJV70uDm2efZ9itMBngIj8DfZz4P4gNDmv#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02QfbseDE0CR3GgEL7gsWkDYLqPmbSKv47FeT0CSjvfi3EmE#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.list.1.json
index 23eb0cdef8f..ea5a45e23a3 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED026p1Cgp0oP8OiGJV70uDm2efZ9itMBngIj8DfZz4P4gNDmv",
+ "id": "cs_test_NORMALIZED02QfbseDE0CR3GgEL7gsWkDYLqPmbSKv47FeT0CSjvfi3EmE",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlcqDEQaroqDjsZO0yJl5U",
+ "setup_intent": "seti_1OOgySDEQaroqDjs7UkuFJ3j",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED026p1Cgp0oP8OiGJV70uDm2efZ9itMBngIj8DfZz4P4gNDmv#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02QfbseDE0CR3GgEL7gsWkDYLqPmbSKv47FeT0CSjvfi3EmE#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json
index 395854cc1bb..b9914edb1b5 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA02",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
+ "default_payment_method": "pm_1OOgwSDEQaroqDjsRkf99pwf",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlbADEQaroqDjskjEl4q0u",
+ "id": "evt_1OOgwUDEQaroqDjsWYgKYT3S",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "b098255c-7826-4ae5-8855-f4a856a2b2dc"
+ "idempotency_key": "2ca7eec5-7002-46cf-949d-7a3f9427f17c"
},
"type": "customer.updated"
}
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.json
index 9ffb7430cf2..c3226842588 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphUGhUN3pDTk8xYjdMa2MzNU5oSExtM0x6Um96LDkyMDM1MTI10200CM7FWQql?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBemdlQ3RqQldBMzcwa0d0TG9xRzh1MEc0QzJMLDkzNDQ3MTk10200hGg2JnWX?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphUGhUN3pDTk8xYjdMa2MzNU5oSExtM0x6Um96LDkyMDM1MTI10200CM7FWQql/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBemdlQ3RqQldBMzcwa0d0TG9xRzh1MEc0QzJMLDkzNDQ3MTk10200hGg2JnWX/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.2.json
index e74001a2656..f377bf3f3fa 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphSHBuZXhIeXI5Y2V0dTdCc2dsQWlDMmoyeGN3LDkyMDM1MTI30200EBO3LQlU?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBYk9kbmtUbVZHTDhOdDlaNVU1UzZZQUN6aHZhLDkzNDQ3MTk40200rT5DwLFi?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphSHBuZXhIeXI5Y2V0dTdCc2dsQWlDMmoyeGN3LDkyMDM1MTI30200EBO3LQlU/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBYk9kbmtUbVZHTDhOdDlaNVU1UzZZQUN6aHZhLDkzNDQ3MTk40200rT5DwLFi/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -204,5 +204,5 @@
"total_excluding_tax": 1600000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
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.json
index 234bf78d926..807f5daed77 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphQzFZSkc2U1VXbGI4TzBraGhOZWlSQ0poTmNjLDkyMDM1MTMw0200q451JXZh?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBajJvNDJuQ1FqckpveXVsZ2p3dHJEN2FSdndxLDkzNDQ3MjAw0200E0zYUSff?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphQzFZSkc2U1VXbGI4TzBraGhOZWlSQ0poTmNjLDkyMDM1MTMw0200q451JXZh/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBajJvNDJuQ1FqckpveXVsZ2p3dHJEN2FSdndxLDkzNDQ3MjAw0200E0zYUSff/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -154,5 +154,5 @@
"total_excluding_tax": 960000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": 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.json
index 1d90608ff53..d734f2b1cc2 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphSHBuZXhIeXI5Y2V0dTdCc2dsQWlDMmoyeGN3LDkyMDM1MTI40200rb2CxPjO?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBYk9kbmtUbVZHTDhOdDlaNVU1UzZZQUN6aHZhLDkzNDQ3MTk40200rT5DwLFi?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphSHBuZXhIeXI5Y2V0dTdCc2dsQWlDMmoyeGN3LDkyMDM1MTI40200rb2CxPjO/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBYk9kbmtUbVZHTDhOdDlaNVU1UzZZQUN6aHZhLDkzNDQ3MTk40200rT5DwLFi/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -206,7 +206,7 @@
"total_excluding_tax": 1600000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
{
"account_country": "US",
@@ -250,9 +250,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphUGhUN3pDTk8xYjdMa2MzNU5oSExtM0x6Um96LDkyMDM1MTI40200bh8vN16z?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBemdlQ3RqQldBMzcwa0d0TG9xRzh1MEc0QzJMLDkzNDQ3MTk40200mClVR48Y?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphUGhUN3pDTk8xYjdMa2MzNU5oSExtM0x6Um96LDkyMDM1MTI40200bh8vN16z/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBemdlQ3RqQldBMzcwa0d0TG9xRzh1MEc0QzJMLDkzNDQ3MTk40200mClVR48Y/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.list.2.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.list.2.json
index ccc9c4639b5..af8713682dd 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphQzFZSkc2U1VXbGI4TzBraGhOZWlSQ0poTmNjLDkyMDM1MTMx0200s8zVnzg9?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBajJvNDJuQ1FqckpveXVsZ2p3dHJEN2FSdndxLDkzNDQ3MjAx0200IJq0OugX?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphQzFZSkc2U1VXbGI4TzBraGhOZWlSQ0poTmNjLDkyMDM1MTMx0200s8zVnzg9/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBajJvNDJuQ1FqckpveXVsZ2p3dHJEN2FSdndxLDkzNDQ3MjAx0200IJq0OugX/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -156,7 +156,7 @@
"total_excluding_tax": 960000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
},
{
"account_country": "US",
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphSHBuZXhIeXI5Y2V0dTdCc2dsQWlDMmoyeGN3LDkyMDM1MTMx0200TMJ3qDaA?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBYk9kbmtUbVZHTDhOdDlaNVU1UzZZQUN6aHZhLDkzNDQ3MjAx0200uvLkT3Kv?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphSHBuZXhIeXI5Y2V0dTdCc2dsQWlDMmoyeGN3LDkyMDM1MTMx0200TMJ3qDaA/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBYk9kbmtUbVZHTDhOdDlaNVU1UzZZQUN6aHZhLDkzNDQ3MjAx0200uvLkT3Kv/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -408,9 +408,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphUGhUN3pDTk8xYjdMa2MzNU5oSExtM0x6Um96LDkyMDM1MTMx0200LaaZsZah?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBemdlQ3RqQldBMzcwa0d0TG9xRzh1MEc0QzJMLDkzNDQ3MjAx0200wy6v2t1n?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphUGhUN3pDTk8xYjdMa2MzNU5oSExtM0x6Um96LDkyMDM1MTMx0200LaaZsZah/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBemdlQ3RqQldBMzcwa0d0TG9xRzh1MEc0QzJMLDkzNDQ3MjAx0200wy6v2t1n/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json
index e3168bf7734..e24efe39ea6 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
@@ -64,7 +64,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "payment_method": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -104,10 +104,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMf8qqsGMgZB-nguyFE6LBbtAN24Q8qaaDtBrRxhJm5eyQdmP04_6KSpy09azOp35Uo9wJ0rE_xLpIgj",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKK6UgawGMgbse4fC-bw6LBYZgx6Qd3P6pRfn1E5sdXKsDloJxaLyYNV1XlEUB5XXB0hFMRyNAzFrrmJU",
"refunded": false,
"refunds": {
"data": [],
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.modify.1.json
index 3098de81085..8f7c9c760a9 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "default_payment_method": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"footer": null,
"rendering_options": null
},
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.json
index 1252292d604..b455a082092 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
@@ -54,7 +54,7 @@
},
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "id": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 1252292d604..b455a082092 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
@@ -54,7 +54,7 @@
},
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "id": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 1252292d604..b455a082092 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
@@ -54,7 +54,7 @@
},
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "id": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 1252292d604..b455a082092 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
@@ -54,7 +54,7 @@
},
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "id": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 7464bc70a09..1849b2f7068 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
@@ -54,7 +54,7 @@
},
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "id": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json
index e8a7873c24c..06106c3af54 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphQzFZSkc2U1VXbGI4TzBraGhOZWlSQ0poTmNjLDkyMDM1MTMw0200q451JXZh?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBajJvNDJuQ1FqckpveXVsZ2p3dHJEN2FSdndxLDkzNDQ3MjAx0200IJq0OugX?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphQzFZSkc2U1VXbGI4TzBraGhOZWlSQ0poTmNjLDkyMDM1MTMw0200q451JXZh/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdBajJvNDJuQ1FqckpveXVsZ2p3dHJEN2FSdndxLDkzNDQ3MjAx0200IJq0OugX/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -160,16 +160,16 @@
"total_excluding_tax": 960000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
- "id": "evt_1OIlbKDEQaroqDjs7g4qJCBS",
+ "id": "evt_1OOgwfDEQaroqDjsjo7pmZRu",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "5a40ccb9-eced-41b3-904d-c62cc2935e8c"
+ "idempotency_key": "8e3cbff0-495d-48f2-9ce7-9dae1c49ab5f"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json
index a4c04f311f2..ea1c6b51dc8 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "default_payment_method": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlbRDEQaroqDjsjzsPGBDe",
+ "id": "evt_1OOgwkDEQaroqDjsrCSA2b9M",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "e4757e5a-40c1-4321-9327-a63c37a5a4c7"
+ "idempotency_key": "fa2034ed-b4ab-4b29-8634-e80c668976d1"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json
index 254009fca3e..86790f91692 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
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "payment_method": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -123,10 +123,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMT8qqsGMgbwjpwE-AY6LBag83iGOoJLvu7xVTcf3kVm5rcU9gzIr9k1DP5vtKKxhl3FPE0Waqed1qOv",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKKqUgawGMgZnuwr5vl86LBaVyCfde9lT3DNfcEw0ifGIRxpGOeT5wJ0-JylUHkx8J3hkOvzjH_m1CQQL",
"refunded": false,
"refunds": {
"data": [],
@@ -151,9 +150,9 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_BpzDxt6tZwG1IiGZ1GMQC3yeq",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_Cyfua2xGpRHKCdTLqE66EadMi",
"confirmation_method": "automatic",
- "created": 1010000001,
+ "created": 1010000008,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -179,7 +178,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "payment_method": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +204,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlbTDEQaroqDjs0I5XalLq",
+ "id": "evt_3OOgwmDEQaroqDjs1cfS1KI1",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "618c150d-f632-47f4-9319-6d98b1678c74"
+ "idempotency_key": "52c744cb-4a85-47a5-b9b5-3d9fbe5e1967"
},
"type": "payment_intent.succeeded"
},
@@ -283,7 +282,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "payment_method": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -323,10 +322,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMT8qqsGMgbNfLWDLqA6LBZtHYxjVexwIyAuBOfCC0D1eFpJ1suOD_RITNYrywYvY_drJ5cYz4-HWSI2",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKKmUgawGMgYWf_zTodM6LBa9uVpernfM-xAXhvkRZgfJRTCgfpryjcPyo_8A1WpLn4I2CP9CLamdFPT6",
"refunded": false,
"refunds": {
"data": [],
@@ -346,13 +344,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlbTDEQaroqDjs0qPWNLnt",
+ "id": "evt_3OOgwmDEQaroqDjs14EJS0ud",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "618c150d-f632-47f4-9319-6d98b1678c74"
+ "idempotency_key": "52c744cb-4a85-47a5-b9b5-3d9fbe5e1967"
},
"type": "charge.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json
index 4f82146c0bf..730ea84ad07 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
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1010000008,
+ "created": 1010000009,
"data": {
"object": {
"account_country": "US",
@@ -24,7 +24,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000009,
+ "created": 1010000010,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQy0200HIHxLSSS?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCMkxWeGpDNmNJNUY0YVBzR0VFbmhBODV4SXF0LDkzNDQ3MjEy0200WnkXdcog?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQy0200HIHxLSSS/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCMkxWeGpDNmNJNUY0YVBzR0VFbmhBODV4SXF0LDkzNDQ3MjEy0200WnkXdcog/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -74,7 +74,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -124,7 +124,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000011,
+ "created": 1010000012,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000003",
@@ -234,19 +234,19 @@
}
}
},
- "id": "evt_1OIlbWDEQaroqDjsvMV8dGMu",
+ "id": "evt_1OOgwqDEQaroqDjsZVOY1kTI",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "9a30befa-40f4-4427-b73a-476364d6a121"
+ "idempotency_key": "569ff9dd-06fb-43d9-a24d-d5a99fce1b41"
},
"type": "invoice.updated"
},
{
"api_version": "2020-08-27",
- "created": 1010000009,
+ "created": 1010000010,
"data": {
"object": {
"account_country": "US",
@@ -268,7 +268,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000009,
+ "created": 1010000010,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -318,7 +318,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -368,7 +368,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000011,
+ "created": 1010000012,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000003",
@@ -457,19 +457,19 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlbVDEQaroqDjsinaCPb9k",
+ "id": "evt_1OOgwpDEQaroqDjs87ym7Otq",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "0aa04d54-c413-4959-a7cd-7d15f8b17128"
+ "idempotency_key": "f8f22cca-0c6c-467c-8a4d-c649f1a38718"
},
"type": "invoice.created"
},
{
"api_version": "2020-08-27",
- "created": 1010000009,
+ "created": 1010000013,
"data": {
"object": {
"amount": 48000,
@@ -492,7 +492,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -519,19 +519,19 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OIlbVDEQaroqDjs11VfDDhE",
+ "id": "evt_1OOgwpDEQaroqDjspVU5G6H2",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "79d3b768-20ce-4519-8288-eb9b0cd52a2c"
+ "idempotency_key": "049a13df-a814-4609-bff5-9570edfb27be"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1010000012,
+ "created": 1010000013,
"data": {
"object": {
"amount": -48000,
@@ -554,7 +554,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000011,
+ "created": 1010000012,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000003",
@@ -581,19 +581,19 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OIlbUDEQaroqDjsteW2jC2Q",
+ "id": "evt_1OOgwoDEQaroqDjsGSISmStp",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0007",
- "idempotency_key": "a8e6362b-e33b-4142-a927-a564bfbf1549"
+ "idempotency_key": "c08796b7-b038-48c1-a480-d093e7f3e2b8"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1010000012,
+ "created": 1010000013,
"data": {
"object": {
"address": null,
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "default_payment_method": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlbUDEQaroqDjszOKmp4Fz",
+ "id": "evt_1OOgwoDEQaroqDjsuaojLLDj",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0007",
- "idempotency_key": "a8e6362b-e33b-4142-a927-a564bfbf1549"
+ "idempotency_key": "c08796b7-b038-48c1-a480-d093e7f3e2b8"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.5.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.5.json
index 9576994f28f..e68b626cade 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.5.json
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1010000008,
+ "created": 1010000009,
"data": {
"object": {
"account_country": "US",
@@ -24,7 +24,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000009,
+ "created": 1010000010,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQz0200kMAhEqS4?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCMkxWeGpDNmNJNUY0YVBzR0VFbmhBODV4SXF0LDkzNDQ3MjEy0200WnkXdcog?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQz0200kMAhEqS4/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCMkxWeGpDNmNJNUY0YVBzR0VFbmhBODV4SXF0LDkzNDQ3MjEy0200WnkXdcog/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -71,235 +71,12 @@
"start": 1325473445
},
"plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1010000010,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "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"
- },
- {
- "amount": -48000,
- "amount_excluding_tax": -48000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1000000000,
- "start": 1000000000
- },
- "plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0003",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -48000,
- "unit_amount_decimal": "-48000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-48000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0003",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- }
- },
- "id": "evt_1OIlbXDEQaroqDjsxxqBwnJJ",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0004",
- "idempotency_key": "9a30befa-40f4-4427-b73a-476364d6a121"
- },
- "type": "invoice.payment_succeeded"
- },
- {
- "api_version": "2020-08-27",
- "created": 1010000008,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "Kandra Labs, Inc.",
- "account_tax_ids": null,
- "amount_due": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1010000009,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQy0200HIHxLSSS?s=ap",
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQy0200HIHxLSSS/pdf?s=ap",
- "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": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1010000010,
- "currency": "usd",
- "custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
@@ -347,7 +124,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000011,
+ "created": 1010000012,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000003",
@@ -436,19 +213,19 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlbWDEQaroqDjssGNqqDUN",
+ "id": "evt_1OOgwqDEQaroqDjs8eon9Pjk",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "9a30befa-40f4-4427-b73a-476364d6a121"
+ "idempotency_key": "569ff9dd-06fb-43d9-a24d-d5a99fce1b41"
},
"type": "invoice.paid"
},
{
"api_version": "2020-08-27",
- "created": 1010000008,
+ "created": 1010000009,
"data": {
"object": {
"account_country": "US",
@@ -470,7 +247,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000009,
+ "created": 1010000010,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -492,9 +269,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQy0200HIHxLSSS?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCMkxWeGpDNmNJNUY0YVBzR0VFbmhBODV4SXF0LDkzNDQ3MjEy0200WnkXdcog?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQy0200HIHxLSSS/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCMkxWeGpDNmNJNUY0YVBzR0VFbmhBODV4SXF0LDkzNDQ3MjEy0200WnkXdcog/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -520,7 +297,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -570,7 +347,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000011,
+ "created": 1010000012,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000003",
@@ -659,13 +436,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlbWDEQaroqDjst9NDjTAo",
+ "id": "evt_1OOgwqDEQaroqDjs8FggEK0a",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "9a30befa-40f4-4427-b73a-476364d6a121"
+ "idempotency_key": "569ff9dd-06fb-43d9-a24d-d5a99fce1b41"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.6.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.6.json
index 6d922067afe..d8e1ebe83ce 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.6.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.6.json
@@ -1,5 +1,229 @@
{
- "data": [],
+ "data": [
+ {
+ "api_version": "2020-08-27",
+ "created": 1010000009,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "Kandra Labs, Inc.",
+ "account_tax_ids": null,
+ "amount_due": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1010000010,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCMkxWeGpDNmNJNUY0YVBzR0VFbmhBODV4SXF0LDkzNDQ3MjEz0200mMLRx0CH?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCMkxWeGpDNmNJNUY0YVBzR0VFbmhBODV4SXF0LDkzNDQ3MjEz0200mMLRx0CH/pdf?s=ap",
+ "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": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "period": {
+ "end": 1357095845,
+ "start": 1325473445
+ },
+ "plan": null,
+ "price": {
+ "active": false,
+ "billing_scheme": "per_unit",
+ "created": 1010000011,
+ "currency": "usd",
+ "custom_unit_amount": null,
+ "id": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "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"
+ },
+ {
+ "amount": -48000,
+ "amount_excluding_tax": -48000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
+ "livemode": false,
+ "metadata": {},
+ "object": "line_item",
+ "period": {
+ "end": 1000000000,
+ "start": 1000000000
+ },
+ "plan": null,
+ "price": {
+ "active": false,
+ "billing_scheme": "per_unit",
+ "created": 1010000012,
+ "currency": "usd",
+ "custom_unit_amount": null,
+ "id": "price_NORMALIZED00000000000003",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0003",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -48000,
+ "unit_amount_decimal": "-48000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-48000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0003",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgwrDEQaroqDjsslK13tUi",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0004",
+ "idempotency_key": "569ff9dd-06fb-43d9-a24d-d5a99fce1b41"
+ },
+ "type": "invoice.payment_succeeded"
+ }
+ ],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.7.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.7.json
new file mode 100644
index 00000000000..6d922067afe
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.7.json
@@ -0,0 +1,6 @@
+{
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/events"
+}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.json
index c961813fc4c..4547a189574 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
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000009,
+ "created": 1010000010,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -68,7 +68,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -118,7 +118,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000011,
+ "created": 1010000012,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000003",
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.json
index f176d6ad5c6..bdef6fa6a5f 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
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000009,
+ "created": 1010000010,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQy0200HIHxLSSS?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCMkxWeGpDNmNJNUY0YVBzR0VFbmhBODV4SXF0LDkzNDQ3MjEy0200WnkXdcog?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQy0200HIHxLSSS/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCMkxWeGpDNmNJNUY0YVBzR0VFbmhBODV4SXF0LDkzNDQ3MjEy0200WnkXdcog/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -68,7 +68,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -118,7 +118,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000011,
+ "created": 1010000012,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000003",
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.json
index 73a66726917..eee31d97d2d 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
@@ -20,7 +20,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000009,
+ "created": 1010000010,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQ00200yqwsZAQh?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCMkxWeGpDNmNJNUY0YVBzR0VFbmhBODV4SXF0LDkzNDQ3MjE00200aIRXmspo?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQ00200yqwsZAQh/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCMkxWeGpDNmNJNUY0YVBzR0VFbmhBODV4SXF0LDkzNDQ3MjE00200aIRXmspo/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -70,7 +70,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -120,7 +120,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000011,
+ "created": 1010000012,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000003",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--InvoiceItem.create.1.json
index 00d5ac23bfc..bede9f6dd34 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--InvoiceItem.create.1.json
@@ -19,7 +19,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000011,
+ "created": 1010000012,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000003",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card--InvoiceItem.create.2.json
index 4cb5093d5e8..8b88c2ae42f 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--InvoiceItem.create.2.json
@@ -19,7 +19,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000010,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--PaymentIntent.create.1.json
index ef20dea2845..b3269b274bf 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--PaymentIntent.create.1.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "payment_method": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -117,10 +117,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMT8qqsGMgYj870G6Uc6LBZuXAYcjw1HakFXRIDlwToQctj69T3PJmgALucGYWTTwPqVC-vlwdTOUhPm",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKKmUgawGMga7zZKbLnc6LBYa9Cu2cR98OKzND3HUMC36RytQmwflVORebsD06v9EJZ2Vm6zIEU4EzDlX",
"refunded": false,
"refunds": {
"data": [],
@@ -145,9 +144,9 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_BpzDxt6tZwG1IiGZ1GMQC3yeq",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_Cyfua2xGpRHKCdTLqE66EadMi",
"confirmation_method": "automatic",
- "created": 1010000001,
+ "created": 1010000008,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -173,7 +172,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "payment_method": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.create.1.json
index 4d375b5bb49..10357c719a4 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlbPDEQaroqDjs3zUvU5ib_secret_P6zavg9RM25W6UWhG9b8Tquwafx85L3",
+ "client_secret": "seti_1OOgwjDEQaroqDjsRIeFi6Uq_secret_PD7BOwQpr2gvPXMWMizGYu0RZz6IESi",
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlbPDEQaroqDjs3zUvU5ib",
+ "id": "seti_1OOgwjDEQaroqDjsRIeFi6Uq",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlbPDEQaroqDjsSn84QmVy",
+ "latest_attempt": "setatt_1OOgwjDEQaroqDjsrWYgaJBF",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "payment_method": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.list.1.json
index 28753d4fff6..5632ef61ba2 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlbODEQaroqDjs9Rj89GnD_secret_P6zaYoTgMKx9R6hd446gn36V7Y3s4Ky",
- "created": 1010000002,
+ "client_secret": "seti_1OOgwiDEQaroqDjspsWoZ7XX_secret_PD7BEiFaXk9GYruWONBTYjwRA3HYL2b",
+ "created": 1010000014,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlbODEQaroqDjs9Rj89GnD",
+ "id": "seti_1OOgwiDEQaroqDjspsWoZ7XX",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.retrieve.1.json
index 4d375b5bb49..10357c719a4 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlbPDEQaroqDjs3zUvU5ib_secret_P6zavg9RM25W6UWhG9b8Tquwafx85L3",
+ "client_secret": "seti_1OOgwjDEQaroqDjsRIeFi6Uq_secret_PD7BOwQpr2gvPXMWMizGYu0RZz6IESi",
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlbPDEQaroqDjs3zUvU5ib",
+ "id": "seti_1OOgwjDEQaroqDjsRIeFi6Uq",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlbPDEQaroqDjsSn84QmVy",
+ "latest_attempt": "setatt_1OOgwjDEQaroqDjsrWYgaJBF",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
+ "payment_method": "pm_1OOgwjDEQaroqDjsFqxK22DG",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.create.1.json
index 8c8add9a08d..b4dedb1c43f 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.create.1.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000002,
+ "created": 1010000014,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02f84xD2ReksRC6q9gOpjmzbAahzxU7U0SlNMsVjpQRoem5P",
+ "id": "cs_test_NORMALIZED02aVAyOEGZEpALfXKJUjrOdoZpOtbNbt53sBNNPsq7xXx9yw",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlbODEQaroqDjs9Rj89GnD",
+ "setup_intent": "seti_1OOgwiDEQaroqDjspsWoZ7XX",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02f84xD2ReksRC6q9gOpjmzbAahzxU7U0SlNMsVjpQRoem5P#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02aVAyOEGZEpALfXKJUjrOdoZpOtbNbt53sBNNPsq7xXx9yw#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.list.1.json
index 90668edf2f4..67c4d06e548 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.list.1.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000002,
+ "created": 1010000014,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02f84xD2ReksRC6q9gOpjmzbAahzxU7U0SlNMsVjpQRoem5P",
+ "id": "cs_test_NORMALIZED02aVAyOEGZEpALfXKJUjrOdoZpOtbNbt53sBNNPsq7xXx9yw",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlbODEQaroqDjs9Rj89GnD",
+ "setup_intent": "seti_1OOgwiDEQaroqDjspsWoZ7XX",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02f84xD2ReksRC6q9gOpjmzbAahzxU7U0SlNMsVjpQRoem5P#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02aVAyOEGZEpALfXKJUjrOdoZpOtbNbt53sBNNPsq7xXx9yw#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json
index 2dcc08683a0..c1fc17baf0d 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
@@ -64,7 +64,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "payment_method": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -107,7 +107,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNL8qqsGMgbtKEzRc3Q6LBaDmOfuUFjBhUIgkVijwOKlm6XkIZ7Roy_8k9aI9Mzoja40-jKL0t4iLvtt",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKLiUgawGMgZ9SWp6ZKg6LBbcWH70WrnhThII7mpYgtIr9zyOJC3pO56zoBTjlX41P6Y6H5tAiXAo1sa7",
"refunded": false,
"refunds": {
"data": [],
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Customer.modify.1.json
index 1221a3ce519..e77e829d99b 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "default_payment_method": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"footer": null,
"rendering_options": null
},
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.json
index 544b4189723..c28f3d83d1a 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
@@ -54,7 +54,7 @@
},
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "id": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 544b4189723..c28f3d83d1a 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
@@ -54,7 +54,7 @@
},
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "id": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.1.json
index 5d0a295b35b..0f1aef8b6de 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.1.json
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "default_payment_method": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlbcDEQaroqDjsk1Qq4JGv",
+ "id": "evt_1OOgwwDEQaroqDjsWNFR3y6H",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "0b500705-85ce-4d4c-b00c-6722b36702d1"
+ "idempotency_key": "649145a2-75a6-4578-b235-1d46afbfd22d"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json
index 0379ff7efb9..8d0c1e44e90 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
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1010000005,
+ "created": 1010000001,
"data": {
"object": {
"amount": 48000,
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "payment_method": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -126,7 +126,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM78qqsGMgY6XD1URXY6LBYP_hvOSrG1cQTB3eo8vXx3iMXaKZwMGPhptP7aOiHySKKuA6PlUL0Mgqk-",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKLSUgawGMgZh5nh6x-M6LBaF28wdwY9P-AbxfcTHohlvzq9ScZlmioH3at_E6hNBxOZEPEyrAy_eYeFP",
"refunded": false,
"refunds": {
"data": [],
@@ -151,9 +151,9 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_eh7Ko8cC8BHv74uDG0yDcWGzR",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_h9DIAShDTh5Iaf7NmAAZ9uVLY",
"confirmation_method": "automatic",
- "created": 1010000001,
+ "created": 1010000005,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -179,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "payment_method": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,19 +205,19 @@
"transfer_group": null
}
},
- "id": "evt_3OIlbdDEQaroqDjs0FtkW56g",
+ "id": "evt_3OOgwxDEQaroqDjs0z22TA9m",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "2bb45568-102e-4214-9138-d3a4884600aa"
+ "idempotency_key": "4c1d7688-b681-4b28-a8e5-0edb2415e378"
},
"type": "payment_intent.succeeded"
},
{
"api_version": "2020-08-27",
- "created": 1010000005,
+ "created": 1010000001,
"data": {
"object": {
"amount": 48000,
@@ -283,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "payment_method": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -326,7 +326,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM78qqsGMgYHIeXP1UY6LBacLJShpwiwAlNFnT9sRF69KOU9M0cDiyIpbCKLr43m_HTrB10SPQ7vtXEj",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKLSUgawGMgaBnpTAIxs6LBaszs7YDRzA24_ZYD4EfB45zfRsavorz8zZ4X2DttfiZ23SKkSK-kJWL0C6",
"refunded": false,
"refunds": {
"data": [],
@@ -346,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlbdDEQaroqDjs0oEMF8yo",
+ "id": "evt_3OOgwxDEQaroqDjs0Xa7byEz",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "2bb45568-102e-4214-9138-d3a4884600aa"
+ "idempotency_key": "4c1d7688-b681-4b28-a8e5-0edb2415e378"
},
"type": "charge.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json
index 08f3933c796..4d493fd47ce 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
@@ -24,7 +24,7 @@
"total_count": 0,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_oUxgpMslXVFjvkqbQzPTKRqx0",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_5kbbfNqdPWlVsmfQUs9bKmYXN",
"confirmation_method": "automatic",
"created": 1010000006,
"currency": "usd",
@@ -67,13 +67,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlbgDEQaroqDjs00sxMikz",
+ "id": "evt_3OOgx0DEQaroqDjs1UtK2Z9e",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "8a0e0274-488f-4769-bfe1-0d7f7b2bec5b"
+ "idempotency_key": "36b6637c-f7f6-4c35-9671-d0ec651eeb78"
},
"type": "payment_intent.created"
},
@@ -101,7 +101,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -151,7 +151,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -201,7 +201,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000009,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -290,19 +290,19 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlbgDEQaroqDjsm6vBYfmK",
+ "id": "evt_1OOgx0DEQaroqDjs2XRRpDQi",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "ee626e0b-447f-42bf-9ae6-a44f7fba0c68"
+ "idempotency_key": "4bc4672b-f254-4f7c-99b9-e0103d2b1757"
},
"type": "invoice.created"
},
{
"api_version": "2020-08-27",
- "created": 1010000007,
+ "created": 1010000009,
"data": {
"object": {
"amount": 184000,
@@ -325,7 +325,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -352,19 +352,19 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OIlbfDEQaroqDjsNs1WEJlG",
+ "id": "evt_1OOgwzDEQaroqDjspVLtdN13",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "bcd3d554-294f-45db-b3b7-4574b9f9dd31"
+ "idempotency_key": "9b734ffa-b5f4-4446-ba20-44bbe10b2b44"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1010000007,
+ "created": 1010000009,
"data": {
"object": {
"amount": -48000,
@@ -387,7 +387,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000009,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -414,19 +414,19 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OIlbfDEQaroqDjsl3s0Q631",
+ "id": "evt_1OOgwzDEQaroqDjs1s7SfUMm",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "fc82cb1f-1406-4d18-b71d-9e03683f0e87"
+ "idempotency_key": "7a427b85-fb9e-4007-a054-490a01b00540"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1010000007,
+ "created": 1010000009,
"data": {
"object": {
"address": null,
@@ -443,7 +443,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "default_payment_method": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"footer": null,
"rendering_options": null
},
@@ -466,13 +466,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlbfDEQaroqDjsZObOqCoq",
+ "id": "evt_1OOgwzDEQaroqDjsy8we1sOb",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "fc82cb1f-1406-4d18-b71d-9e03683f0e87"
+ "idempotency_key": "7a427b85-fb9e-4007-a054-490a01b00540"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.4.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.4.json
index 358c363af93..136a6eb6724 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
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1010000006,
+ "created": 1010000010,
"data": {
"object": {
"account_country": "US",
@@ -24,7 +24,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUz02001P1Xq2Fl?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCdXF2Uk5YV2I3S3FJa3E1NjRjWDJnbHQ4Um1BLDkzNDQ3MjIz0200MBjBU3aw?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUz02001P1Xq2Fl/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCdXF2Uk5YV2I3S3FJa3E1NjRjWDJnbHQ4Um1BLDkzNDQ3MjIz0200MBjBU3aw/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -74,7 +74,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -124,7 +124,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000009,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -213,19 +213,19 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlbhDEQaroqDjslKSnh8QR",
+ "id": "evt_1OOgx1DEQaroqDjssleqdCT8",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "8a0e0274-488f-4769-bfe1-0d7f7b2bec5b"
+ "idempotency_key": "36b6637c-f7f6-4c35-9671-d0ec651eeb78"
},
"type": "invoice.finalized"
},
{
"api_version": "2020-08-27",
- "created": 1010000006,
+ "created": 1010000010,
"data": {
"object": {
"account_country": "US",
@@ -247,7 +247,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -269,9 +269,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUz02001P1Xq2Fl?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCdXF2Uk5YV2I3S3FJa3E1NjRjWDJnbHQ4Um1BLDkzNDQ3MjIz0200MBjBU3aw?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUz02001P1Xq2Fl/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCdXF2Uk5YV2I3S3FJa3E1NjRjWDJnbHQ4Um1BLDkzNDQ3MjIz0200MBjBU3aw/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -297,7 +297,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -347,7 +347,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000009,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -453,13 +453,13 @@
}
}
},
- "id": "evt_1OIlbhDEQaroqDjskitZgXzv",
+ "id": "evt_1OOgx1DEQaroqDjsTeORC3ml",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "8a0e0274-488f-4769-bfe1-0d7f7b2bec5b"
+ "idempotency_key": "36b6637c-f7f6-4c35-9671-d0ec651eeb78"
},
"type": "invoice.updated"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json
index 7c81472b6ae..8cc023a4963 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
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -68,7 +68,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -118,7 +118,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000009,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.1.json
index a29d7f0b7e5..67f58d3fb6a 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
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUy02009Hng419i?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCdXF2Uk5YV2I3S3FJa3E1NjRjWDJnbHQ4Um1BLDkzNDQ3MjIz0200MBjBU3aw?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUy02009Hng419i/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCdXF2Uk5YV2I3S3FJa3E1NjRjWDJnbHQ4Um1BLDkzNDQ3MjIz0200MBjBU3aw/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -68,7 +68,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -118,7 +118,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000009,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.list.2.json
index 3a738a16584..9912627cb71 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
@@ -20,7 +20,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000007,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTU00200dlx5eGfU?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCdXF2Uk5YV2I3S3FJa3E1NjRjWDJnbHQ4Um1BLDkzNDQ3MjI10200lZEpvJez?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTU00200dlx5eGfU/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCdXF2Uk5YV2I3S3FJa3E1NjRjWDJnbHQ4Um1BLDkzNDQ3MjI10200lZEpvJez/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -70,7 +70,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -120,7 +120,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000009,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.1.json
index 5bcd160b6e1..ce279a5b2e6 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.1.json
@@ -19,7 +19,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000009,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.2.json
index 1cc7e357e24..a35ac2e3687 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.2.json
@@ -19,7 +19,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--PaymentIntent.create.1.json
index a70b5293be5..5040e0909de 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--PaymentIntent.create.1.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "payment_method": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -120,7 +120,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM78qqsGMgbly0H8pnM6LBbJFC9LCw2Or-nrEgUlEKTY9QfvAE3T02_zBgU6946fnRcVTcDXuTcZT2-V",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKLSUgawGMgZMAP7XZMM6LBYa4XnMDIyp5yn1aDWD5WloJrGJdqUvtQFjCRKiFtrPryphJT0X5EoqvCBu",
"refunded": false,
"refunds": {
"data": [],
@@ -145,9 +145,9 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_eh7Ko8cC8BHv74uDG0yDcWGzR",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_h9DIAShDTh5Iaf7NmAAZ9uVLY",
"confirmation_method": "automatic",
- "created": 1010000001,
+ "created": 1010000005,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -173,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "payment_method": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.create.1.json
index b79615658d9..8ef14d9d39c 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlbaDEQaroqDjsQ7igXhzD_secret_P6za4YkUyobRRfR3sB0FIkqIDAekXDm",
+ "client_secret": "seti_1OOgwuDEQaroqDjsUgWCoUhX_secret_PD7BPXN6Kc3RBYeFJIrYBC06Ik0FjLG",
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlbaDEQaroqDjsQ7igXhzD",
+ "id": "seti_1OOgwuDEQaroqDjsUgWCoUhX",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlbaDEQaroqDjsMloAaHDc",
+ "latest_attempt": "setatt_1OOgwuDEQaroqDjszBU4J3LR",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "payment_method": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.list.1.json
index 49da401ad95..dc2e01354e5 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlbZDEQaroqDjsTMFD9GZF_secret_P6za1VcD3i11C9a3L9O1kcN2vre0CMc",
+ "client_secret": "seti_1OOgwtDEQaroqDjs0dmY6o2F_secret_PD7Btat5yxvvvk0maboRGnwR6pWSm42",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlbZDEQaroqDjsTMFD9GZF",
+ "id": "seti_1OOgwtDEQaroqDjs0dmY6o2F",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.retrieve.1.json
index b79615658d9..8ef14d9d39c 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlbaDEQaroqDjsQ7igXhzD_secret_P6za4YkUyobRRfR3sB0FIkqIDAekXDm",
+ "client_secret": "seti_1OOgwuDEQaroqDjsUgWCoUhX_secret_PD7BPXN6Kc3RBYeFJIrYBC06Ik0FjLG",
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlbaDEQaroqDjsQ7igXhzD",
+ "id": "seti_1OOgwuDEQaroqDjsUgWCoUhX",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlbaDEQaroqDjsMloAaHDc",
+ "latest_attempt": "setatt_1OOgwuDEQaroqDjszBU4J3LR",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
+ "payment_method": "pm_1OOgwuDEQaroqDjsP6ksdAKJ",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.create.1.json
index 60fc4069004..dd1447e9ab8 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02gDLnoI1IkBtki9mtsks8g0GfcbKwgZMFr2vmB3FmHkaxzP",
+ "id": "cs_test_NORMALIZED028wDcF2enxrxXr3WnRYwKpjXJndUkKUnvZ5bsJqTzFCJlII",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlbZDEQaroqDjsTMFD9GZF",
+ "setup_intent": "seti_1OOgwtDEQaroqDjs0dmY6o2F",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02gDLnoI1IkBtki9mtsks8g0GfcbKwgZMFr2vmB3FmHkaxzP#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED028wDcF2enxrxXr3WnRYwKpjXJndUkKUnvZ5bsJqTzFCJlII#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.list.1.json
index 1f158274037..dd021b1661b 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02gDLnoI1IkBtki9mtsks8g0GfcbKwgZMFr2vmB3FmHkaxzP",
+ "id": "cs_test_NORMALIZED028wDcF2enxrxXr3WnRYwKpjXJndUkKUnvZ5bsJqTzFCJlII",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlbZDEQaroqDjsTMFD9GZF",
+ "setup_intent": "seti_1OOgwtDEQaroqDjs0dmY6o2F",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02gDLnoI1IkBtki9mtsks8g0GfcbKwgZMFr2vmB3FmHkaxzP#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED028wDcF2enxrxXr3WnRYwKpjXJndUkKUnvZ5bsJqTzFCJlII#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Customer.retrieve.2.json
index 4bd8d49629b..cfc8347665d 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Customer.retrieve.2.json
@@ -4,7 +4,7 @@
"created": 1010000001,
"currency": "usd",
"default_currency": "usd",
- "default_source": null,
+ "default_source": "src_NORMALIZED00000000000001",
"delinquent": false,
"description": "zulip (Zulip Dev)",
"discount": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json
index 00b99336704..8e14168f400 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUz02001P1Xq2Fl?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCdXF2Uk5YV2I3S3FJa3E1NjRjWDJnbHQ4Um1BLDkzNDQ3MjIz0200MBjBU3aw?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUz02001P1Xq2Fl/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCdXF2Uk5YV2I3S3FJa3E1NjRjWDJnbHQ4Um1BLDkzNDQ3MjIz0200MBjBU3aw/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlbhDEQaroqDjslKSnh8QR",
+ "id": "evt_1OOgx1DEQaroqDjssleqdCT8",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "8a0e0274-488f-4769-bfe1-0d7f7b2bec5b"
+ "idempotency_key": "36b6637c-f7f6-4c35-9671-d0ec651eeb78"
},
"type": "invoice.finalized"
}
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.json
index 45452fb60e5..85a3b029ec2 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTk1UTk16T09QZmxJVWpqdjE5MDBPMU53TFpVLDkyMDM1MTU30200kzbsKCoM?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCUnp3bHBYdXRwRUlLSExkOE9yR2x4Nk5pRUUzLDkzNDQ3MjI30200AnSJkw28?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTk1UTk16T09QZmxJVWpqdjE5MDBPMU53TFpVLDkyMDM1MTU30200kzbsKCoM/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCUnp3bHBYdXRwRUlLSExkOE9yR2x4Nk5pRUUzLDkzNDQ3MjI30200AnSJkw28/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index 4256c194192..9a745bff350 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTk1UTk16T09QZmxJVWpqdjE5MDBPMU53TFpVLDkyMDM1MTU40200jg3Bl7k9?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCUnp3bHBYdXRwRUlLSExkOE9yR2x4Nk5pRUUzLDkzNDQ3MjI40200H9YX2r5y?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTk1UTk16T09QZmxJVWpqdjE5MDBPMU53TFpVLDkyMDM1MTU40200jg3Bl7k9/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCUnp3bHBYdXRwRUlLSExkOE9yR2x4Nk5pRUUzLDkzNDQ3MjI40200H9YX2r5y/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -156,7 +156,7 @@
"total_excluding_tax": 984000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.modify.1.json
index 46d44c9c781..f1410dae300 100644
--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "default_payment_method": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"footer": null,
"rendering_options": 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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 6505696f6d6..555c718f26a 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "id": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.create.1.json
index 75387361a65..87f723d1eba 100644
--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlboDEQaroqDjsCr28wSTk_secret_P6zbQVB6mkNvgS2TWMnp2vq5v3N1HuH",
+ "client_secret": "seti_1OOgx8DEQaroqDjsLWL2zb2X_secret_PD7BqEDBRpUUhQVu3JKOfb9VBwzI3e2",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlboDEQaroqDjsCr28wSTk",
+ "id": "seti_1OOgx8DEQaroqDjsLWL2zb2X",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlboDEQaroqDjses7MXuWl",
+ "latest_attempt": "setatt_1OOgx9DEQaroqDjssX4IyEXR",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "payment_method": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.list.1.json
index 2edbbc331ba..b15a9b612e0 100644
--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlboDEQaroqDjsGuhNyB8b_secret_P6zbshpoj0hYSjDfCGnvmvUySXPcrCM",
+ "client_secret": "seti_1OOgx8DEQaroqDjsTZJ5zf88_secret_PD7BpA5atAAndLH4LoQIe38EVW6GihN",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlboDEQaroqDjsGuhNyB8b",
+ "id": "seti_1OOgx8DEQaroqDjsTZJ5zf88",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.retrieve.1.json
index 75387361a65..87f723d1eba 100644
--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlboDEQaroqDjsCr28wSTk_secret_P6zbQVB6mkNvgS2TWMnp2vq5v3N1HuH",
+ "client_secret": "seti_1OOgx8DEQaroqDjsLWL2zb2X_secret_PD7BqEDBRpUUhQVu3JKOfb9VBwzI3e2",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlboDEQaroqDjsCr28wSTk",
+ "id": "seti_1OOgx8DEQaroqDjsLWL2zb2X",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlboDEQaroqDjses7MXuWl",
+ "latest_attempt": "setatt_1OOgx9DEQaroqDjssX4IyEXR",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlboDEQaroqDjswKgYEqo6",
+ "payment_method": "pm_1OOgx8DEQaroqDjsAaUH1NCG",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.create.1.json
index 244fdbf7a91..c62200cff98 100644
--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01BjTu1W8ZHqKNl5cwdJOOe4F5StUwdhSdzkrJzOPUwWQuj3",
+ "id": "cs_test_NORMALIZED01wEjO9xRWPRGJ8szQaJL2dvZ2SUz1wjdge9qbGf5kyI2wyG",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlboDEQaroqDjsGuhNyB8b",
+ "setup_intent": "seti_1OOgx8DEQaroqDjsTZJ5zf88",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01BjTu1W8ZHqKNl5cwdJOOe4F5StUwdhSdzkrJzOPUwWQuj3#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01wEjO9xRWPRGJ8szQaJL2dvZ2SUz1wjdge9qbGf5kyI2wyG#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.list.1.json
index 1582ac4335a..62c8c85813d 100644
--- a/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01BjTu1W8ZHqKNl5cwdJOOe4F5StUwdhSdzkrJzOPUwWQuj3",
+ "id": "cs_test_NORMALIZED01wEjO9xRWPRGJ8szQaJL2dvZ2SUz1wjdge9qbGf5kyI2wyG",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlboDEQaroqDjsGuhNyB8b",
+ "setup_intent": "seti_1OOgx8DEQaroqDjsTZJ5zf88",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01BjTu1W8ZHqKNl5cwdJOOe4F5StUwdhSdzkrJzOPUwWQuj3#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01wEjO9xRWPRGJ8szQaJL2dvZ2SUz1wjdge9qbGf5kyI2wyG#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.modify.1.json
index 0d726a959bc..ab151a0ad4c 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "default_payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"footer": null,
"rendering_options": 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.json
index 37cadfb1b67..6cf8dcf030a 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "id": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 37cadfb1b67..6cf8dcf030a 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "id": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 37cadfb1b67..6cf8dcf030a 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "id": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 37cadfb1b67..6cf8dcf030a 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
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "id": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 17524008fca..ccc2da91ffb 100644
--- 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.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "default_payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"footer": null,
"rendering_options": null
},
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.1.json
index 49111c4784b..946e067e4f4 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.1.json
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -123,10 +123,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOn8qqsGMgY7MyOA_s06LBZ_labKK4xiZWECMaYSFJw-_GPVK46R98x2qkiuPUZgX7zYwSioWQWyjGod",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM-UgawGMgZlToFp7lo6LBYuJSL8AqApCBeMnqlt3NfY0UHVl0YQohnZ2YXBS_kCXhEKOiWb2Rmq_Fu-",
"refunded": false,
"refunds": {
"data": [],
@@ -151,7 +150,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_Awp9pKTlpnSRnN4R7HAujr9vg",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_Qbm75F2SS2b2nyTGzImQbKAJJ",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -179,7 +178,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +204,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlc4DEQaroqDjs0rCeAMne",
+ "id": "evt_3OOgxODEQaroqDjs1w8DmN3W",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "1e3aa969-1bb3-42a0-b995-19d5aeeaccf4"
+ "idempotency_key": "ebf17ddf-7152-4dce-8a54-a929aae4d79a"
},
"type": "payment_intent.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json
index 7fad6982500..300377e041c 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
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -123,10 +123,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOn8qqsGMgY7MyOA_s06LBZ_labKK4xiZWECMaYSFJw-_GPVK46R98x2qkiuPUZgX7zYwSioWQWyjGod",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM-UgawGMgZlToFp7lo6LBYuJSL8AqApCBeMnqlt3NfY0UHVl0YQohnZ2YXBS_kCXhEKOiWb2Rmq_Fu-",
"refunded": false,
"refunds": {
"data": [],
@@ -151,7 +150,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_Awp9pKTlpnSRnN4R7HAujr9vg",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_Qbm75F2SS2b2nyTGzImQbKAJJ",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -179,7 +178,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +204,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlc4DEQaroqDjs0rCeAMne",
+ "id": "evt_3OOgxODEQaroqDjs1w8DmN3W",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "1e3aa969-1bb3-42a0-b995-19d5aeeaccf4"
+ "idempotency_key": "ebf17ddf-7152-4dce-8a54-a929aae4d79a"
},
"type": "payment_intent.succeeded"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json
index a4a5ced53d3..5da4c643dbb 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
@@ -83,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -123,10 +123,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKO38qqsGMgb8K-cPXSo6LBbKTsYtem3W7xucCoPe2z1a2_wKnLkUdphMO5PAi2ZA6b22rRZfaIVT3QGm",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNKUgawGMgZI0K7w2kA6LBbM3IyoimiZhrX-LI2AIiwAf44UqDynRXvw0R8aDdj5huSbFJ89f4tyMzbo",
"refunded": false,
"refunds": {
"data": [],
@@ -151,7 +150,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_IomgZyn1RNAyJvfhQISSFEFfD",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_Drbm0eg52wtdynpkeaWCmU0oS",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -179,7 +178,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -205,13 +204,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlc8DEQaroqDjs17LDVY1L",
+ "id": "evt_3OOgxSDEQaroqDjs0EUSnX5W",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "d2090367-6d6d-47e0-aea2-0a8e7d269dd6"
+ "idempotency_key": "e9e2fa95-fa43-4253-af77-a483da9bb88c"
},
"type": "payment_intent.succeeded"
},
@@ -283,7 +282,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -323,10 +322,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOz8qqsGMgZh29ub_fA6LBZ61hhPPyIa0w4-Pcs2rjtU4YaLbUOfNN_T1FFccLYHywQRixzZBZDoCD4U",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNKUgawGMgb8MKXMi586LBamsyeWRIF_9S3-E5JSsaV4MjIidovNsb9ruUGXsl2qQt8LE4MsSL7DEJ3r",
"refunded": false,
"refunds": {
"data": [],
@@ -346,15 +344,103 @@
"transfer_group": null
}
},
- "id": "evt_3OIlc8DEQaroqDjs1oEZqYzP",
+ "id": "evt_3OOgxSDEQaroqDjs0PtvNVJM",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "d2090367-6d6d-47e0-aea2-0a8e7d269dd6"
+ "idempotency_key": "e9e2fa95-fa43-4253-af77-a483da9bb88c"
},
"type": "charge.succeeded"
+ },
+ {
+ "api_version": "2020-08-27",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "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": {
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
+ },
+ "client_secret": "pi_NORMALIZED00000000000002_secret_Drbm0eg52wtdynpkeaWCmU0oS",
+ "confirmation_method": "automatic",
+ "created": 1000000000,
+ "currency": "usd",
+ "customer": "cus_NORMALIZED0001",
+ "description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
+ "id": "pi_NORMALIZED00000000000002",
+ "invoice": null,
+ "last_payment_error": null,
+ "latest_charge": null,
+ "livemode": false,
+ "metadata": {
+ "billing_modality": "charge_automatically",
+ "billing_schedule": "1",
+ "license_management": "automatic",
+ "licenses": "6",
+ "plan_tier": "1",
+ "price_per_license": "8000",
+ "realm_id": "1",
+ "realm_str": "zulip",
+ "seat_count": "6",
+ "type": "upgrade",
+ "user_email": "[email protected]",
+ "user_id": "12"
+ },
+ "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"
+ }
+ },
+ "payment_method_types": [
+ "card"
+ ],
+ "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": "evt_3OOgxSDEQaroqDjs0SaAvbkp",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 2,
+ "request": {
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "e9e2fa95-fa43-4253-af77-a483da9bb88c"
+ },
+ "type": "payment_intent.created"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.4.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.4.json
index aade1a83ff7..c68fecf7b2b 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.4.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.4.json
@@ -1,249 +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": 0,
- "amount_paid": 0,
- "amount_remaining": 0,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": true,
- "auto_advance": false,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1000000000,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_NORMALIZED0001",
- "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo/pdf?s=ap",
- "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": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
- "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": "price_NORMALIZED00000000000001",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0001",
- "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"
- },
- {
- "amount": -48000,
- "amount_excluding_tax": -48000,
- "currency": "usd",
- "description": "Payment (Card ending in 4242)",
- "discount_amounts": [],
- "discountable": false,
- "discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
- "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": "price_NORMALIZED00000000000002",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_NORMALIZED0002",
- "recurring": null,
- "tax_behavior": "unspecified",
- "tiers_mode": null,
- "transform_quantity": null,
- "type": "one_time",
- "unit_amount": -48000,
- "unit_amount_decimal": "-48000"
- },
- "proration": false,
- "proration_details": {
- "credited_items": null
- },
- "quantity": 1,
- "subscription": null,
- "tax_amounts": [],
- "tax_rates": [],
- "type": "invoiceitem",
- "unit_amount_excluding_tax": "-48000"
- }
- ],
- "has_more": false,
- "object": "list",
- "total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "NORMALI-0001",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": true,
- "paid_out_of_band": false,
- "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": 0,
- "subtotal_excluding_tax": 0,
- "tax": null,
- "test_clock": null,
- "total": 0,
- "total_discount_amounts": [],
- "total_excluding_tax": 0,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- },
- "previous_attributes": {
- "attempted": false,
- "auto_advance": true,
- "effective_at": null,
- "ending_balance": null,
- "hosted_invoice_url": null,
- "invoice_pdf": null,
- "next_payment_attempt": 1000000000,
- "number": null,
- "paid": false,
- "rendering": {
- "pdf": {
- "page_size": "auto"
- }
- },
- "status": "draft",
- "status_transitions": {
- "finalized_at": null,
- "paid_at": null
- }
- }
- },
- "id": "evt_1OIlcBDEQaroqDjsUyT8bv2E",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "53c5a32c-32e3-4962-8d55-ca97146ec82b"
- },
- "type": "invoice.updated"
- },
{
"api_version": "2020-08-27",
"created": 1000000000,
@@ -457,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlcADEQaroqDjsBKbXBMSd",
+ "id": "evt_1OOgxUDEQaroqDjsPMkXUXMu",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0004",
- "idempotency_key": "c55d687a-89e1-458c-986c-b88c992d736d"
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "b08a5e49-3301-43de-96b6-415a145fcefa"
},
"type": "invoice.created"
},
@@ -519,13 +275,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OIlcADEQaroqDjsgygXr1KK",
+ "id": "evt_1OOgxUDEQaroqDjsO7IVit9o",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0005",
- "idempotency_key": "058b619d-c831-4c80-a716-9782c31ecad8"
+ "id": "req_NORMALIZED0004",
+ "idempotency_key": "b827f4d9-ace8-4cd2-a7ea-6c58ebd044d6"
},
"type": "invoiceitem.created"
},
@@ -581,13 +337,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OIlc9DEQaroqDjseEc3YLKL",
+ "id": "evt_1OOgxTDEQaroqDjsEq3Ni7bx",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0006",
- "idempotency_key": "8a6a969a-1fbf-4d1a-9273-c991a749949f"
+ "id": "req_NORMALIZED0005",
+ "idempotency_key": "7509976e-2bdd-46c4-9fc5-a37788f9a2b0"
},
"type": "invoiceitem.created"
},
@@ -610,7 +366,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "default_payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"footer": null,
"rendering_options": null
},
@@ -633,13 +389,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlc9DEQaroqDjse67gRB7s",
+ "id": "evt_1OOgxTDEQaroqDjsdbFWTv04",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0006",
- "idempotency_key": "8a6a969a-1fbf-4d1a-9273-c991a749949f"
+ "id": "req_NORMALIZED0005",
+ "idempotency_key": "7509976e-2bdd-46c4-9fc5-a37788f9a2b0"
},
"type": "customer.updated"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.5.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.5.json
index 9e2764e680d..75cc3258345 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.5.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.5.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCbldwMHM0QWNUdWh2SlFiSTBnQkJ2VDY4TDE1LDkzNDQ3MjUz0200dJKnFDOY?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCbldwMHM0QWNUdWh2SlFiSTBnQkJ2VDY4TDE1LDkzNDQ3MjUz0200dJKnFDOY/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -162,7 +162,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -213,15 +213,15 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlcBDEQaroqDjsUGTOk3x8",
+ "id": "evt_1OOgxVDEQaroqDjs1vJm6LVe",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "53c5a32c-32e3-4962-8d55-ca97146ec82b"
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "edc836c5-461c-4a2f-a5c9-a05c57637f31"
},
- "type": "invoice.paid"
+ "type": "invoice.finalized"
},
{
"api_version": "2020-08-27",
@@ -269,9 +269,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCbldwMHM0QWNUdWh2SlFiSTBnQkJ2VDY4TDE1LDkzNDQ3MjUz0200dJKnFDOY?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCbldwMHM0QWNUdWh2SlFiSTBnQkJ2VDY4TDE1LDkzNDQ3MjUz0200dJKnFDOY/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -385,7 +385,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -434,17 +434,38 @@
"total_tax_amounts": [],
"transfer_data": null,
"webhooks_delivered_at": null
+ },
+ "previous_attributes": {
+ "attempted": false,
+ "auto_advance": true,
+ "effective_at": null,
+ "ending_balance": null,
+ "hosted_invoice_url": null,
+ "invoice_pdf": null,
+ "next_payment_attempt": 1000000000,
+ "number": null,
+ "paid": false,
+ "rendering": {
+ "pdf": {
+ "page_size": "auto"
+ }
+ },
+ "status": "draft",
+ "status_transitions": {
+ "finalized_at": null,
+ "paid_at": null
+ }
}
},
- "id": "evt_1OIlcBDEQaroqDjsGFKR0LKA",
+ "id": "evt_1OOgxVDEQaroqDjsgfekQXAz",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "53c5a32c-32e3-4962-8d55-ca97146ec82b"
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "edc836c5-461c-4a2f-a5c9-a05c57637f31"
},
- "type": "invoice.finalized"
+ "type": "invoice.updated"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.6.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.6.json
index 205f46c7392..d8d8d1973a5 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.6.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.6.json
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCbldwMHM0QWNUdWh2SlFiSTBnQkJ2VDY4TDE1LDkzNDQ3MjU00200EljOZLUX?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCbldwMHM0QWNUdWh2SlFiSTBnQkJ2VDY4TDE1LDkzNDQ3MjU00200EljOZLUX/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -162,7 +162,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -213,15 +213,238 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlcBDEQaroqDjsbBMnblUE",
+ "id": "evt_1OOgxWDEQaroqDjsOoubk06n",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "53c5a32c-32e3-4962-8d55-ca97146ec82b"
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "edc836c5-461c-4a2f-a5c9-a05c57637f31"
},
"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": 0,
+ "amount_paid": 0,
+ "amount_remaining": 0,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": true,
+ "auto_advance": false,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_fields": null,
+ "customer": "cus_NORMALIZED0001",
+ "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_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCbldwMHM0QWNUdWh2SlFiSTBnQkJ2VDY4TDE1LDkzNDQ3MjUz0200dJKnFDOY?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCbldwMHM0QWNUdWh2SlFiSTBnQkJ2VDY4TDE1LDkzNDQ3MjUz0200dJKnFDOY/pdf?s=ap",
+ "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": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
+ "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": "price_NORMALIZED00000000000001",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0001",
+ "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"
+ },
+ {
+ "amount": -48000,
+ "amount_excluding_tax": -48000,
+ "currency": "usd",
+ "description": "Payment (Card ending in 4242)",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
+ "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": "price_NORMALIZED00000000000002",
+ "livemode": false,
+ "lookup_key": null,
+ "metadata": {},
+ "nickname": null,
+ "object": "price",
+ "product": "prod_NORMALIZED0002",
+ "recurring": null,
+ "tax_behavior": "unspecified",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -48000,
+ "unit_amount_decimal": "-48000"
+ },
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
+ },
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-48000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ },
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0001",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": true,
+ "paid_out_of_band": false,
+ "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": 0,
+ "subtotal_excluding_tax": 0,
+ "tax": null,
+ "test_clock": null,
+ "total": 0,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 0,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ }
+ },
+ "id": "evt_1OOgxVDEQaroqDjso584rDPD",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "edc836c5-461c-4a2f-a5c9-a05c57637f31"
+ },
+ "type": "invoice.paid"
}
],
"has_more": false,
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.json
index 229e1b1c5ee..53b077f8d65 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCbldwMHM0QWNUdWh2SlFiSTBnQkJ2VDY4TDE1LDkzNDQ3MjUz0200dJKnFDOY?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCbldwMHM0QWNUdWh2SlFiSTBnQkJ2VDY4TDE1LDkzNDQ3MjUz0200dJKnFDOY/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -156,7 +156,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.finalize_invoice.2.json
index cb11f2bed00..bef25dbfb36 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.finalize_invoice.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.finalize_invoice.2.json
@@ -40,9 +40,9 @@
"ending_balance": -48000,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpieUE5Tldic1E4RHgwejU1bnRkR2w5SnZRN1pXLDkyMDM1MTg10200G06j5DXj?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCZzRRbmplSXZZbGgzTFdOV295cGZIazQ0dmYxLDkzNDQ3MjU20200JsVIcGLD?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpieUE5Tldic1E4RHgwejU1bnRkR2w5SnZRN1pXLDkyMDM1MTg10200G06j5DXj/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCZzRRbmplSXZZbGgzTFdOV295cGZIazQ0dmYxLDkzNDQ3MjU20200JsVIcGLD/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -106,7 +106,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0003",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -154,5 +154,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_race_condition_during_card_upgrade--Invoice.list.2.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.list.2.json
index 7925c413a9c..55252d47779 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
@@ -42,9 +42,9 @@
"ending_balance": -48000,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpieUE5Tldic1E4RHgwejU1bnRkR2w5SnZRN1pXLDkyMDM1MTg20200x6zHJRYm?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCZzRRbmplSXZZbGgzTFdOV295cGZIazQ0dmYxLDkzNDQ3MjU20200JsVIcGLD?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpieUE5Tldic1E4RHgwejU1bnRkR2w5SnZRN1pXLDkyMDM1MTg20200x6zHJRYm/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCZzRRbmplSXZZbGgzTFdOV295cGZIazQ0dmYxLDkzNDQ3MjU20200JsVIcGLD/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -108,7 +108,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0003",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -156,7 +156,7 @@
"total_excluding_tax": -48000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
{
"account_country": "US",
@@ -200,9 +200,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTg20200Z6WfZzsh?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCbldwMHM0QWNUdWh2SlFiSTBnQkJ2VDY4TDE1LDkzNDQ3MjU20200Iw7J1IAV?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTg20200Z6WfZzsh/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdCbldwMHM0QWNUdWh2SlFiSTBnQkJ2VDY4TDE1LDkzNDQ3MjU20200Iw7J1IAV/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -316,7 +316,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentIntent.create.1.json
index 4f08cd9f7b8..044e8536ee9 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentIntent.create.1.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -117,10 +117,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOn8qqsGMgYR2d1Mx086LBa4AVD69dyQGtZIaRO4Fsbm_rPPoSei_P7byB9n21Wh9hlubt5cFU1_MP4I",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM-UgawGMgbGW0VGHck6LBaTaIRvmpdjcbiLFSxiAcKxBreZXLhmxnoqW6VtkVi4qAaJolet95hImbPg",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +144,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_Awp9pKTlpnSRnN4R7HAujr9vg",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_Qbm75F2SS2b2nyTGzImQbKAJJ",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -173,7 +172,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentIntent.create.2.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentIntent.create.2.json
index ca24ab19539..387faa7f5a1 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentIntent.create.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentIntent.create.2.json
@@ -77,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -117,10 +117,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOz8qqsGMgbAB4XJ17Y6LBbBDlxFOwMbTPce3dBPFlR31KOgJO37WwkEVG0TCnajOaZV9a1VtiTcb5-3",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNKUgawGMgYtWUE5-T86LBbeeh-YtQkob9zQOXXfy0xptSy8DiQwxugvWdCbwQvjlHbFkBtrQj44526B",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +144,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_IomgZyn1RNAyJvfhQISSFEFfD",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_Drbm0eg52wtdynpkeaWCmU0oS",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -173,7 +172,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentIntent.list.1.json
index 2cdeaf4ac4b..ddc4ad787e0 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--PaymentIntent.list.1.json
@@ -79,7 +79,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -119,10 +119,9 @@
},
"type": "card"
},
- "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOr8qqsGMgZGBr6O5l86LBYFrDFoFjRpynpm6Gj_IHOR7_ZOsQFTkzHpRvGXTiUqFOKL9V2oJJymgKM7",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNCUgawGMgaHGZFKsNY6LBarB8OhsKTcNFljrbZsoQVH5cIovxYBkqoyuTejKDNpiEVmvWq8Ud_aFd7C",
"refunded": false,
"refunds": {
"data": [],
@@ -147,7 +146,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_Awp9pKTlpnSRnN4R7HAujr9vg",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_Qbm75F2SS2b2nyTGzImQbKAJJ",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -175,7 +174,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.create.1.json
index bca48c641bf..ea6b80c0f94 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlc2DEQaroqDjsIbKDI9s6_secret_P6zbdxjkNCqqnroego53dJUL6KTomxO",
+ "client_secret": "seti_1OOgxMDEQaroqDjsU0g8FYe3_secret_PD7BP5UeOkCIyAuColpSH1b2lah0nm7",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlc2DEQaroqDjsIbKDI9s6",
+ "id": "seti_1OOgxMDEQaroqDjsU0g8FYe3",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlc2DEQaroqDjsJJVIfYCf",
+ "latest_attempt": "setatt_1OOgxMDEQaroqDjselaAu7OZ",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.list.1.json
index c2e58cd3491..0a3f81f7e41 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlc1DEQaroqDjsYJCcCHiM_secret_P6zbHmse7UCleK4vr4NknpHTSMlXEi0",
+ "client_secret": "seti_1OOgxLDEQaroqDjskte3zSMz_secret_PD7BNXA91pPW17cdkt2kLg2JxET25Zs",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlc1DEQaroqDjsYJCcCHiM",
+ "id": "seti_1OOgxLDEQaroqDjskte3zSMz",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.retrieve.1.json
index bca48c641bf..ea6b80c0f94 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlc2DEQaroqDjsIbKDI9s6_secret_P6zbdxjkNCqqnroego53dJUL6KTomxO",
+ "client_secret": "seti_1OOgxMDEQaroqDjsU0g8FYe3_secret_PD7BP5UeOkCIyAuColpSH1b2lah0nm7",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlc2DEQaroqDjsIbKDI9s6",
+ "id": "seti_1OOgxMDEQaroqDjsU0g8FYe3",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlc2DEQaroqDjsJJVIfYCf",
+ "latest_attempt": "setatt_1OOgxMDEQaroqDjselaAu7OZ",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
+ "payment_method": "pm_1OOgxLDEQaroqDjsjl7ObYvT",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.create.1.json
index fd40af28527..256b33c678f 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.create.1.json
@@ -8,7 +8,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -18,6 +18,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02nuc79j2ZD5uEiM7oSWD2XCfpwEBre2lYaUJc0KrvEO5aK1",
+ "id": "cs_test_NORMALIZED02I0dcmAWiDz5CmBE7g2z9dDN4pBi9oV7Er9rfCp21E37No3",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlc1DEQaroqDjsYJCcCHiM",
+ "setup_intent": "seti_1OOgxLDEQaroqDjskte3zSMz",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02nuc79j2ZD5uEiM7oSWD2XCfpwEBre2lYaUJc0KrvEO5aK1#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02I0dcmAWiDz5CmBE7g2z9dDN4pBi9oV7Er9rfCp21E37No3#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.list.1.json
index e77b0b34fcb..8468484da3b 100644
--- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.list.1.json
@@ -10,7 +10,7 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -20,6 +20,7 @@
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02nuc79j2ZD5uEiM7oSWD2XCfpwEBre2lYaUJc0KrvEO5aK1",
+ "id": "cs_test_NORMALIZED02I0dcmAWiDz5CmBE7g2z9dDN4pBi9oV7Er9rfCp21E37No3",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlc1DEQaroqDjsYJCcCHiM",
+ "setup_intent": "seti_1OOgxLDEQaroqDjskte3zSMz",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02nuc79j2ZD5uEiM7oSWD2XCfpwEBre2lYaUJc0KrvEO5aK1#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02I0dcmAWiDz5CmBE7g2z9dDN4pBi9oV7Er9rfCp21E37No3#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.modify.1.json
index e7c19698554..4a7b567b360 100644
--- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--Customer.modify.1.json
@@ -13,7 +13,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlcGDEQaroqDjsDO00GI2B",
+ "default_payment_method": "pm_1OOgxbDEQaroqDjsApt3i9jH",
"footer": null,
"rendering_options": null
},
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.json
index 0e4adf231db..aa25c5e4ed5 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlcGDEQaroqDjsDO00GI2B",
+ "id": "pm_1OOgxbDEQaroqDjsApt3i9jH",
"livemode": false,
"metadata": {},
"object": "payment_method",
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.json
index 0e4adf231db..aa25c5e4ed5 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
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OIlcGDEQaroqDjsDO00GI2B",
+ "id": "pm_1OOgxbDEQaroqDjsApt3i9jH",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.create.1.json
index 35661b65b5f..64b46bba735 100644
--- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.create.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlcGDEQaroqDjsgbmHeLd2_secret_P6zbA4b9uZjhEA0UsqVQLXYfDdqFCjX",
+ "client_secret": "seti_1OOgxbDEQaroqDjsG050ZVa8_secret_PD7BGnMV53pnSXO5UL9XVDhOdwVHsrl",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlcGDEQaroqDjsgbmHeLd2",
+ "id": "seti_1OOgxbDEQaroqDjsG050ZVa8",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlcHDEQaroqDjsJA75lVLY",
+ "latest_attempt": "setatt_1OOgxbDEQaroqDjsZQzj8piL",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlcGDEQaroqDjsDO00GI2B",
+ "payment_method": "pm_1OOgxbDEQaroqDjsApt3i9jH",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.list.1.json
index eb9123cfe6e..1f7ef76f48f 100644
--- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.list.1.json
@@ -4,12 +4,12 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlcGDEQaroqDjslNYkiSF6_secret_P6zb3dxLpdFen33HzZSoEPN140b7TCt",
- "created": 1010000002,
+ "client_secret": "seti_1OOgxaDEQaroqDjslolNsi03_secret_PD7BFrk0LqrglH0zLVTAHUlGZKBkBhS",
+ "created": 1010000003,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlcGDEQaroqDjslNYkiSF6",
+ "id": "seti_1OOgxaDEQaroqDjslolNsi03",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.retrieve.1.json
index 35661b65b5f..64b46bba735 100644
--- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--SetupIntent.retrieve.1.json
@@ -2,21 +2,21 @@
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OIlcGDEQaroqDjsgbmHeLd2_secret_P6zbA4b9uZjhEA0UsqVQLXYfDdqFCjX",
+ "client_secret": "seti_1OOgxbDEQaroqDjsG050ZVa8_secret_PD7BGnMV53pnSXO5UL9XVDhOdwVHsrl",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlcGDEQaroqDjsgbmHeLd2",
+ "id": "seti_1OOgxbDEQaroqDjsG050ZVa8",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlcHDEQaroqDjsJA75lVLY",
+ "latest_attempt": "setatt_1OOgxbDEQaroqDjsZQzj8piL",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlcGDEQaroqDjsDO00GI2B",
+ "payment_method": "pm_1OOgxbDEQaroqDjsApt3i9jH",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.create.1.json
index 6227f706f1d..13924e259d6 100644
--- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.create.1.json
@@ -8,16 +8,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000002,
+ "created": 1010000003,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -34,7 +35,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01pPD8CONGVQsw6O7xxB6FW6sCoSPNUQ6wQs3gi7hGFMJ3b8",
+ "id": "cs_test_NORMALIZED01XfE3Ru9ooo2zf1sXij5F4f1S4AbwtEa4SI7cB1v1Wm7LQN",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +59,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlcGDEQaroqDjslNYkiSF6",
+ "setup_intent": "seti_1OOgxaDEQaroqDjslolNsi03",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +70,5 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01pPD8CONGVQsw6O7xxB6FW6sCoSPNUQ6wQs3gi7hGFMJ3b8#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01XfE3Ru9ooo2zf1sXij5F4f1S4AbwtEa4SI7cB1v1Wm7LQN#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.list.1.json
index ef928af0667..b5d67cfb7ba 100644
--- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.list.1.json
@@ -10,16 +10,17 @@
"status": null
},
"billing_address_collection": null,
- "cancel_url": "http://zulip.testserver/upgrade/",
+ "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000002,
+ "created": 1010000003,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
+ "after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
@@ -36,7 +37,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01pPD8CONGVQsw6O7xxB6FW6sCoSPNUQ6wQs3gi7hGFMJ3b8",
+ "id": "cs_test_NORMALIZED01XfE3Ru9ooo2zf1sXij5F4f1S4AbwtEa4SI7cB1v1Wm7LQN",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +61,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlcGDEQaroqDjslNYkiSF6",
+ "setup_intent": "seti_1OOgxaDEQaroqDjslolNsi03",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +72,7 @@
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01pPD8CONGVQsw6O7xxB6FW6sCoSPNUQ6wQs3gi7hGFMJ3b8#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01XfE3Ru9ooo2zf1sXij5F4f1S4AbwtEa4SI7cB1v1Wm7LQN#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
}
],
"has_more": true,
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.json
index 9838aab6eb3..57cad08e765 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk00200SznqB2C8?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDR0JwS1NZU25DMWk3aEQ1ZEZSNUNOQmlJMzdlLDkzNDQ3MjY002003ExPed4C?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk00200SznqB2C8/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDR0JwS1NZU25DMWk3aEQ1ZEZSNUNOQmlJMzdlLDkzNDQ3MjY002003ExPed4C/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index 077fe41436b..13c66d8c57b 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk102005c8Y0uin?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDek9Id2dXTTFia2JMbGJpNm1BNmI2aFV2dVc4LDkzNDQ3MjY20200QrhGScGc?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk102005c8Y0uin/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDek9Id2dXTTFia2JMbGJpNm1BNmI2aFV2dVc4LDkzNDQ3MjY20200QrhGScGc/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index e099c9e2289..267a45598a8 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk20200lh4vF65m?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDR0JwS1NZU25DMWk3aEQ1ZEZSNUNOQmlJMzdlLDkzNDQ3MjY20200TTxBMhJT?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk20200lh4vF65m/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDR0JwS1NZU25DMWk3aEQ1ZEZSNUNOQmlJMzdlLDkzNDQ3MjY20200TTxBMhJT/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index a74ff0d4525..381dedafde3 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk30200smrvvHF0?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDR0JwS1NZU25DMWk3aEQ1ZEZSNUNOQmlJMzdlLDkzNDQ3MjY30200ir08IfRZ?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk30200smrvvHF0/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDR0JwS1NZU25DMWk3aEQ1ZEZSNUNOQmlJMzdlLDkzNDQ3MjY30200ir08IfRZ/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index ae61c64d9d4..406755564cc 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk40200AmZDWcNV?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDek9Id2dXTTFia2JMbGJpNm1BNmI2aFV2dVc4LDkzNDQ3MjY30200YlNomcC7?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk40200AmZDWcNV/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDek9Id2dXTTFia2JMbGJpNm1BNmI2aFV2dVc4LDkzNDQ3MjY30200YlNomcC7/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index e0f255bc469..cd7103be32e 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk502003KqSxmFa?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDek9Id2dXTTFia2JMbGJpNm1BNmI2aFV2dVc4LDkzNDQ3MjY50200ObJLYTgl?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk502003KqSxmFa/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDek9Id2dXTTFia2JMbGJpNm1BNmI2aFV2dVc4LDkzNDQ3MjY50200ObJLYTgl/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index 68a0d6bc7b9..664056eb9a8 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk30200smrvvHF0?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDR0JwS1NZU25DMWk3aEQ1ZEZSNUNOQmlJMzdlLDkzNDQ3MjY20200TTxBMhJT?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk30200smrvvHF0/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDR0JwS1NZU25DMWk3aEQ1ZEZSNUNOQmlJMzdlLDkzNDQ3MjY20200TTxBMhJT/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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.json
index d81722e50a0..7b97f38856b 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk40200AmZDWcNV?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDek9Id2dXTTFia2JMbGJpNm1BNmI2aFV2dVc4LDkzNDQ3MjY40200RhpFsu7f?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk40200AmZDWcNV/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QRDdDek9Id2dXTTFia2JMbGJpNm1BNmI2aFV2dVc4LDkzNDQ3MjY40200RhpFsu7f/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py
index 35f98e12cc9..31a029b0956 100644
--- a/corporate/tests/test_stripe.py
+++ b/corporate/tests/test_stripe.py
@@ -535,7 +535,10 @@ class StripeTestCase(ZulipTestCase):
def add_card_to_customer_for_upgrade(self, charge_succeeds: bool = True) -> None:
start_session_json_response = self.client_billing_post(
- "/upgrade/session/start_card_update_session"
+ "/upgrade/session/start_card_update_session",
+ {
+ "tier": 1,
+ },
)
response_dict = self.assert_json_success(start_session_json_response)
self.assert_details_of_valid_session_from_event_status_endpoint(
@@ -544,6 +547,7 @@ class StripeTestCase(ZulipTestCase):
"type": "card_update_from_upgrade_page",
"status": "created",
"is_manual_license_management_upgrade_session": False,
+ "tier": 1,
},
)
self.trigger_stripe_checkout_session_completed_webhook(
@@ -560,6 +564,7 @@ class StripeTestCase(ZulipTestCase):
"type": "card_update_from_upgrade_page",
"status": "completed",
"is_manual_license_management_upgrade_session": False,
+ "tier": 1,
"event_handler": {"status": "succeeded"},
},
)
@@ -2148,6 +2153,7 @@ class StripeTest(StripeTestCase):
"type": "card_update_from_billing_page",
"status": "created",
"is_manual_license_management_upgrade_session": False,
+ "tier": None,
},
)
with self.assertRaises(stripe.error.CardError):
@@ -2169,6 +2175,7 @@ class StripeTest(StripeTestCase):
"type": "card_update_from_billing_page",
"status": "created",
"is_manual_license_management_upgrade_session": False,
+ "tier": None,
},
)
with self.assertLogs("corporate.stripe", "INFO") as m:
@@ -2186,6 +2193,7 @@ class StripeTest(StripeTestCase):
"type": "card_update_from_billing_page",
"status": "completed",
"is_manual_license_management_upgrade_session": False,
+ "tier": None,
"event_handler": {
"status": "failed",
"error": {"message": "Your card was declined.", "description": "card error"},
@@ -2220,6 +2228,7 @@ class StripeTest(StripeTestCase):
"type": "card_update_from_billing_page",
"status": "completed",
"is_manual_license_management_upgrade_session": False,
+ "tier": None,
"event_handler": {"status": "succeeded"},
},
)
@@ -2247,7 +2256,10 @@ class StripeTest(StripeTestCase):
# Test if manual license management upgrade session is created and is successfully recovered.
start_session_json_response = self.client_billing_post(
"/upgrade/session/start_card_update_session",
- {"manual_license_management": "true"},
+ {
+ "manual_license_management": "true",
+ "tier": 1,
+ },
)
response_dict = self.assert_json_success(start_session_json_response)
self.assert_details_of_valid_session_from_event_status_endpoint(
@@ -2256,6 +2268,7 @@ class StripeTest(StripeTestCase):
"type": "card_update_from_upgrade_page",
"status": "created",
"is_manual_license_management_upgrade_session": True,
+ "tier": 1,
},
)
diff --git a/corporate/views/portico.py b/corporate/views/portico.py
index cae5e64417c..a59eae53acc 100644
--- a/corporate/views/portico.py
+++ b/corporate/views/portico.py
@@ -84,6 +84,10 @@ class PlansPageContext:
billing_base_url: str = ""
+ tier_self_hosted_business: int = CustomerPlan.TIER_SELF_HOSTED_BUSINESS
+
+ tier_cloud_standard: int = CustomerPlan.TIER_CLOUD_STANDARD
+
@add_google_analytics
def plans_view(request: HttpRequest) -> HttpResponse:
diff --git a/corporate/views/session.py b/corporate/views/session.py
index 0371ac07a2c..134abe7cbc6 100644
--- a/corporate/views/session.py
+++ b/corporate/views/session.py
@@ -59,9 +59,12 @@ def start_card_update_stripe_session_for_realm_upgrade(
user: UserProfile,
*,
manual_license_management: Json[bool] = False,
+ tier: Json[int],
) -> HttpResponse:
billing_session = RealmBillingSession(user)
- session_data = billing_session.create_card_update_session_for_upgrade(manual_license_management)
+ session_data = billing_session.create_card_update_session_for_upgrade(
+ manual_license_management, tier
+ )
return json_success(
request,
data=session_data,
@@ -75,8 +78,11 @@ def start_card_update_stripe_session_for_remote_realm_upgrade(
billing_session: RemoteRealmBillingSession,
*,
manual_license_management: Json[bool] = False,
+ tier: Json[int],
) -> HttpResponse:
- session_data = billing_session.create_card_update_session_for_upgrade(manual_license_management)
+ session_data = billing_session.create_card_update_session_for_upgrade(
+ manual_license_management, tier
+ )
return json_success(
request,
data=session_data,
@@ -90,8 +96,11 @@ def start_card_update_stripe_session_for_remote_server_upgrade(
billing_session: RemoteServerBillingSession,
*,
manual_license_management: Json[bool] = False,
+ tier: Json[int],
) -> HttpResponse: # nocoverage
- session_data = billing_session.create_card_update_session_for_upgrade(manual_license_management)
+ session_data = billing_session.create_card_update_session_for_upgrade(
+ manual_license_management, tier
+ )
return json_success(
request,
data=session_data,
diff --git a/corporate/views/upgrade.py b/corporate/views/upgrade.py
index 74fc9cba79a..da0e0b80b52 100644
--- a/corporate/views/upgrade.py
+++ b/corporate/views/upgrade.py
@@ -46,6 +46,7 @@ def upgrade(
default=None, str_validator=check_string_in(VALID_LICENSE_MANAGEMENT_VALUES)
),
licenses: Optional[int] = REQ(json_validator=check_int, default=None),
+ tier: int = REQ(default=CustomerPlan.TIER_CLOUD_STANDARD, json_validator=check_int),
) -> HttpResponse:
try:
upgrade_request = UpgradeRequest(
@@ -55,8 +56,7 @@ def upgrade(
salt=salt,
license_management=license_management,
licenses=licenses,
- # TODO: tier should be a passed parameter.
- tier=CustomerPlan.TIER_CLOUD_STANDARD,
+ tier=tier,
remote_server_plan_start_date=None,
)
billing_session = RealmBillingSession(user)
@@ -97,6 +97,7 @@ def remote_realm_upgrade(
),
licenses: Optional[int] = REQ(json_validator=check_int, default=None),
remote_server_plan_start_date: Optional[str] = REQ(default=None),
+ tier: int = REQ(default=CustomerPlan.TIER_SELF_HOSTED_BUSINESS, json_validator=check_int),
) -> HttpResponse:
try:
upgrade_request = UpgradeRequest(
@@ -106,8 +107,7 @@ def remote_realm_upgrade(
salt=salt,
license_management=license_management,
licenses=licenses,
- # TODO: tier should be a passed parameter.
- tier=CustomerPlan.TIER_SELF_HOSTED_BUSINESS,
+ tier=tier,
remote_server_plan_start_date=remote_server_plan_start_date,
)
data = billing_session.do_upgrade(upgrade_request)
@@ -146,6 +146,7 @@ def remote_server_upgrade(
),
licenses: Optional[int] = REQ(json_validator=check_int, default=None),
remote_server_plan_start_date: Optional[str] = REQ(default=None),
+ tier: int = REQ(default=CustomerPlan.TIER_SELF_HOSTED_BUSINESS, json_validator=check_int),
) -> HttpResponse: # nocoverage
try:
upgrade_request = UpgradeRequest(
@@ -155,8 +156,7 @@ def remote_server_upgrade(
salt=salt,
license_management=license_management,
licenses=licenses,
- # TODO: tier should be a passed parameter.
- tier=CustomerPlan.TIER_SELF_HOSTED_BUSINESS,
+ tier=tier,
remote_server_plan_start_date=remote_server_plan_start_date,
)
data = billing_session.do_upgrade(upgrade_request)
@@ -186,6 +186,7 @@ def remote_server_upgrade(
def upgrade_page(
request: HttpRequest,
manual_license_management: bool = REQ(default=False, json_validator=check_bool),
+ tier: int = REQ(default=CustomerPlan.TIER_CLOUD_STANDARD, json_validator=check_int),
) -> HttpResponse:
user = request.user
assert user.is_authenticated
@@ -195,7 +196,7 @@ def upgrade_page(
initial_upgrade_request = InitialUpgradeRequest(
manual_license_management=manual_license_management,
- tier=CustomerPlan.TIER_CLOUD_STANDARD,
+ tier=tier,
)
billing_session = RealmBillingSession(user)
redirect_url, context = billing_session.get_initial_upgrade_context(initial_upgrade_request)
@@ -215,10 +216,11 @@ def remote_realm_upgrade_page(
*,
manual_license_management: Json[bool] = False,
success_message: str = "",
+ tier: str = str(CustomerPlan.TIER_SELF_HOSTED_BUSINESS),
) -> HttpResponse:
initial_upgrade_request = InitialUpgradeRequest(
manual_license_management=manual_license_management,
- tier=CustomerPlan.TIER_SELF_HOSTED_BUSINESS,
+ tier=int(tier),
success_message=success_message,
)
try:
@@ -241,10 +243,11 @@ def remote_server_upgrade_page(
*,
manual_license_management: Json[bool] = False,
success_message: str = "",
+ tier: str = str(CustomerPlan.TIER_SELF_HOSTED_BUSINESS),
) -> HttpResponse: # nocoverage
initial_upgrade_request = InitialUpgradeRequest(
manual_license_management=manual_license_management,
- tier=CustomerPlan.TIER_SELF_HOSTED_BUSINESS,
+ tier=int(tier),
success_message=success_message,
)
try:
diff --git a/templates/corporate/pricing_model.html b/templates/corporate/pricing_model.html
index f49ab9149c3..d1aafd3dc6e 100644
--- a/templates/corporate/pricing_model.html
+++ b/templates/corporate/pricing_model.html
@@ -84,7 +84,7 @@
</div>
</div>
{% if is_cloud_realm and on_free_tier and not sponsorship_pending %}
- <a href="/upgrade/" class="button upgrade-button">
+ <a href="/upgrade/?tier%3D{{ tier_cloud_standard }}" class="button upgrade-button">
{% if free_trial_days %}
Start {{ free_trial_days }}-day free trial
{% else %}
@@ -263,11 +263,11 @@
Upgrade is scheduled
</a>
{% elif is_self_hosted_realm and sponsorship_pending and requested_sponsorship_plan == "Business" %}
- <a href="{{ billing_base_url }}/upgrade/" class="button current-plan-button" type="button">
+ <a href="{{ billing_base_url }}/upgrade/?tier%3D{{ tier_self_hosted_business }}" class="button current-plan-button" type="button">
Sponsorship requested
</a>
{% elif is_self_hosted_realm and on_free_tier and not sponsorship_pending %}
- <a href="{{ billing_base_url }}/upgrade/" class="button upgrade-button">
+ <a href="{{ billing_base_url }}/upgrade/?tier%3D{{ tier_self_hosted_business }}" class="button upgrade-button">
{% if free_trial_days %}
Start {{ free_trial_days }}-day free trial
{% else %}
@@ -284,7 +284,7 @@
{% endif %}
</a>
{% elif is_self_hosted_realm %}
- <a href="{{ billing_base_url }}/upgrade/" class="button upgrade-button">
+ <a href="{{ billing_base_url }}/upgrade/?tier%3D{{ tier_self_hosted_business }}" class="button upgrade-button">
{% if free_trial_days %}
Start {{ free_trial_days }}-day free trial
{% else %}
diff --git a/templates/corporate/upgrade.html b/templates/corporate/upgrade.html
index be0ef655c47..59f80f0a1f2 100644
--- a/templates/corporate/upgrade.html
+++ b/templates/corporate/upgrade.html
@@ -42,6 +42,7 @@
<input type="hidden" name="signed_seat_count" value="{{ signed_seat_count }}" />
<input type="hidden" name="salt" value="{{ salt }}" />
<input type="hidden" name="billing_modality" value="charge_automatically" />
+ <input type="hidden" name="tier" value="{{ page_params.tier }}" />
<div id="free-trial-top-banner" class="input-box upgrade-page-field">
{% if free_trial_days %}
@@ -156,7 +157,7 @@
<p class="not-editable-realm-field">
Your subscription will renew automatically. Your bill will vary based on the number
of active users in your organization. You can also
- <a href="{{ page_params.billing_base_url }}/upgrade/?manual_license_management=true">purchase a fixed number of licenses</a> instead. See
+ <a href="{{ page_params.billing_base_url }}/upgrade/?manual_license_management=true&tier%3D{{ page_params.tier }}">purchase a fixed number of licenses</a> instead. See
<a target="_blank" href="https://zulip.com/help/zulip-cloud-billing">here</a> for details.
</p>
<input type="hidden" name="licenses" id="automatic_license_count" value="{{ seat_count }}" />
@@ -166,7 +167,7 @@
<p class="not-editable-realm-field">
Your subscription will renew automatically. You will be able to manage the number of licenses on
your organization's billing page. You can also
- <a href="{{ page_params.billing_base_url }}/upgrade/">choose automatic license management</a> instead. See
+ <a href="{{ page_params.billing_base_url }}/upgrade/?tier%3D{{ page_params.tier }}">choose automatic license management</a> instead. See
<a href="https://zulip.com/help/zulip-cloud-billing">here</a> for details.
</p>
</div>
@@ -218,11 +219,12 @@
<div id="autopay-error" class="alert alert-danger upgrade-page-error hide"></div>
</div>
</form>
- {% if manual_license_management %}
<form id="upgrade-cardchange-form">
+ {% if manual_license_management %}
<input type="hidden" name="manual_license_management" value="true" />
+ {% endif %}
+ <input type="hidden" name="tier" value="{{ page_params.tier }}" />
</form>
- {% endif %}
<div class="input-box upgrade-page-field">
<div class="support-link not-editable-realm-field">
To pay by invoice or for any other questions, contact <a href="mailto:[email protected]">[email protected]</a>.
diff --git a/web/src/billing/event_status.ts b/web/src/billing/event_status.ts
index c9f0d12f157..9e4baf52e87 100644
--- a/web/src/billing/event_status.ts
+++ b/web/src/billing/event_status.ts
@@ -13,6 +13,7 @@ const stripe_response_schema = z.object({
stripe_payment_intent_id: z.string().optional(),
status: z.string(),
is_manual_license_management_upgrade_session: z.boolean().optional(),
+ tier: z.number(),
event_handler: z
.object({
status: z.string(),
@@ -47,6 +48,7 @@ function handle_session_complete_event(session: StripeSession): void {
case "card_update_from_upgrade_page":
redirect_to = helpers.get_upgrade_page_url(
session.is_manual_license_management_upgrade_session,
+ session.tier,
billing_base_url,
);
break;
diff --git a/web/src/billing/helpers.ts b/web/src/billing/helpers.ts
index 5e1baded35b..7957c05aef7 100644
--- a/web/src/billing/helpers.ts
+++ b/web/src/billing/helpers.ts
@@ -182,11 +182,15 @@ export function redirect_to_billing_with_successful_upgrade(billing_base_url: st
export function get_upgrade_page_url(
is_manual_license_management_upgrade_session: boolean | undefined,
+ tier: number,
billing_base_url: string,
): string {
- let redirect_to = "/upgrade";
- if (is_manual_license_management_upgrade_session) {
- redirect_to += "/?manual_license_management=true";
+ const base_url = billing_base_url + "/upgrade/";
+ let params = `tier=${String(tier)}`;
+ if (is_manual_license_management_upgrade_session !== undefined) {
+ params += `&manual_license_management=${String(
+ is_manual_license_management_upgrade_session,
+ )}`;
}
- return billing_base_url + redirect_to;
+ return base_url + "?" + params;
}
diff --git a/web/src/billing/page_params.ts b/web/src/billing/page_params.ts
index e0f03f1512c..b5c5434bdc5 100644
--- a/web/src/billing/page_params.ts
+++ b/web/src/billing/page_params.ts
@@ -8,6 +8,7 @@ export const page_params: {
monthly_price: number;
seat_count: number;
billing_base_url: string;
+ tier: number;
} = $("#page-params").data("params");
if (!page_params) {