Skip to content

armgit / zulip

Public Imported from GitHub
0

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

stripe: Show tier information correctly on billing and upgrade page.

Aman Agrawalf942bbd70fcc
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 24830610c12..c4f52a0e876 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -500,6 +500,7 @@ class UpgradeRequest:
salt: str
license_management: Optional[str]
licenses: Optional[int]
+ tier: int
@dataclass
@@ -677,11 +678,29 @@ class BillingSession(ABC):
) -> Dict[str, Any]:
pass
- @abstractmethod
def get_data_for_stripe_payment_intent(
- self, price_per_license: int, licenses: int
+ self,
+ price_per_license: int,
+ licenses: int,
+ plan_tier: int,
+ email: str,
) -> StripePaymentIntentData:
- pass
+ if hasattr(self, "support_session") and self.support_session: # nocoverage
+ raise BillingError(
+ "invalid support session",
+ "Support requests do not set any stripe billing information.",
+ )
+
+ amount = price_per_license * licenses
+
+ plan_name = CustomerPlan.name_from_tier(plan_tier)
+ description = f"Upgrade to {plan_name}, ${price_per_license/100} x {licenses}"
+ return StripePaymentIntentData(
+ amount=amount,
+ description=description,
+ plan_name=plan_name,
+ email=email,
+ )
@abstractmethod
def update_or_create_customer(
@@ -807,7 +826,9 @@ class BillingSession(ABC):
# NOTE: This charges users immediately.
customer = self.get_customer()
assert customer is not None and customer.stripe_customer_id is not None
- payment_intent_data = self.get_data_for_stripe_payment_intent(price_per_license, licenses)
+ payment_intent_data = self.get_data_for_stripe_payment_intent(
+ price_per_license, licenses, metadata["plan_tier"], self.get_email()
+ )
# Ensure customers have a default payment method set.
stripe_customer = stripe_get_customer(customer.stripe_customer_id)
if not stripe_customer_has_credit_card_as_default_payment_method(stripe_customer):
@@ -979,6 +1000,7 @@ class BillingSession(ABC):
"price_per_license": price_per_license,
"seat_count": seat_count,
"type": "upgrade",
+ "plan_tier": plan_tier,
}
updated_metadata = self.update_data_for_checkout_session_and_payment_intent(
general_metadata
@@ -1138,7 +1160,7 @@ class BillingSession(ABC):
# Directly upgrade free trial orgs or invoice payment orgs to standard plan.
if free_trial or not charge_automatically:
self.process_initial_upgrade(
- CustomerPlan.TIER_CLOUD_STANDARD,
+ upgrade_request.tier,
licenses,
automanage_licenses,
billing_schedule,
@@ -1148,7 +1170,7 @@ class BillingSession(ABC):
data["organization_upgrade_successful"] = True
else:
stripe_payment_intent_id = self.setup_upgrade_payment_intent_and_charge(
- CustomerPlan.TIER_CLOUD_STANDARD,
+ upgrade_request.tier,
seat_count,
licenses,
license_management,
@@ -1480,6 +1502,7 @@ class BillingSession(ABC):
"price_per_license": price_per_license,
"is_sponsorship_pending": customer.sponsorship_pending,
"discount_percent": format_discount_percentage(customer.default_discount),
+ "is_self_hosted_billing": not isinstance(self, RealmBillingSession),
}
return context
@@ -2216,26 +2239,6 @@ class RealmBillingSession(BillingSession):
)
return updated_metadata
- @override
- def get_data_for_stripe_payment_intent(
- self, price_per_license: int, licenses: int
- ) -> StripePaymentIntentData:
- # Support requests do not set any stripe billing information.
- assert self.support_session is False
- assert self.user is not None
- amount = price_per_license * licenses
-
- # TODO: Don't hardcode plan name; it should be looked up for
- # the tier.
- description = f"Upgrade to Zulip Cloud Standard, ${price_per_license/100} x {licenses}"
- plan_name = "Zulip Cloud Standard"
- return StripePaymentIntentData(
- amount=amount,
- description=description,
- plan_name=plan_name,
- email=self.get_email(),
- )
-
@override
def update_or_create_customer(
self, stripe_customer_id: Optional[str] = None, *, defaults: Optional[Dict[str, Any]] = None
@@ -2532,23 +2535,6 @@ class RemoteRealmBillingSession(BillingSession): # nocoverage
)
return updated_metadata
- @override
- def get_data_for_stripe_payment_intent(
- self, price_per_license: int, licenses: int
- ) -> StripePaymentIntentData:
- # Support requests do not set any stripe billing information.
- assert self.support_session is False
- amount = price_per_license * licenses
- # TODO: Don't hardcode plan names.
- description = f"Upgrade to Zulip X Standard, ${price_per_license/100} x {licenses}"
- plan_name = "Zulip X Standard"
- return StripePaymentIntentData(
- amount=amount,
- description=description,
- plan_name=plan_name,
- email=self.get_email(),
- )
-
@override
def update_or_create_customer(
self, stripe_customer_id: Optional[str] = None, *, defaults: Optional[Dict[str, Any]] = None
@@ -2569,22 +2555,18 @@ class RemoteRealmBillingSession(BillingSession): # nocoverage
@override
def do_change_plan_type(self, *, tier: Optional[int], is_sponsored: bool = False) -> None:
- # TODO: Create actual plan types.
-
- # This function needs to translate between the different
- # formats of CustomerPlan.tier and Realm.plan_type.
if is_sponsored:
plan_type = RemoteRealm.PLAN_TYPE_COMMUNITY
- elif tier == CustomerPlan.TIER_CLOUD_STANDARD:
+ elif tier == CustomerPlan.TIER_SELF_HOSTED_BUSINESS:
plan_type = RemoteRealm.PLAN_TYPE_BUSINESS
elif (
- tier == CustomerPlan.TIER_CLOUD_PLUS
+ tier == CustomerPlan.TIER_SELF_HOSTED_PLUS
): # nocoverage # Plus plan doesn't use this code path yet.
plan_type = RemoteRealm.PLAN_TYPE_ENTERPRISE
else:
raise AssertionError("Unexpected tier")
- # TODO: Audit logging.
+ # TODO: Audit logging and set usage limits.
self.remote_realm.plan_type = plan_type
self.remote_realm.save(update_fields=["plan_type"])
@@ -2817,22 +2799,6 @@ class RemoteServerBillingSession(BillingSession): # nocoverage
)
return updated_metadata
- @override
- def get_data_for_stripe_payment_intent(
- self, price_per_license: int, licenses: int
- ) -> StripePaymentIntentData:
- # Support requests do not set any stripe billing information.
- assert self.support_session is False
- amount = price_per_license * licenses
- description = f"Upgrade to Zulip X Standard, ${price_per_license/100} x {licenses}"
- plan_name = "Zulip X Standard"
- return StripePaymentIntentData(
- amount=amount,
- description=description,
- plan_name=plan_name,
- email=self.get_email(),
- )
-
@override
def update_or_create_customer(
self, stripe_customer_id: Optional[str] = None, *, defaults: Optional[Dict[str, Any]] = None
@@ -2859,16 +2825,16 @@ class RemoteServerBillingSession(BillingSession): # nocoverage
# formats of CustomerPlan.tier and RealmZulipServer.plan_type.
if is_sponsored:
plan_type = RemoteZulipServer.PLAN_TYPE_COMMUNITY
- elif tier == CustomerPlan.TIER_CLOUD_STANDARD:
+ elif tier == CustomerPlan.TIER_SELF_HOSTED_BUSINESS:
plan_type = RemoteZulipServer.PLAN_TYPE_BUSINESS
elif (
- tier == CustomerPlan.TIER_CLOUD_PLUS
+ tier == CustomerPlan.TIER_SELF_HOSTED_PLUS
): # nocoverage # Plus plan doesn't use this code path yet.
plan_type = RemoteZulipServer.PLAN_TYPE_ENTERPRISE
else:
raise AssertionError("Unexpected tier")
- # TODO: Audit logging.
+ # TODO: Audit logging and set usage limits.
self.remote_server.plan_type = plan_type
self.remote_server.save(update_fields=["plan_type"])
diff --git a/corporate/lib/stripe_event_handler.py b/corporate/lib/stripe_event_handler.py
index 1b842dfb48b..ceb571a8fad 100644
--- a/corporate/lib/stripe_event_handler.py
+++ b/corporate/lib/stripe_event_handler.py
@@ -123,6 +123,7 @@ def handle_payment_intent_succeeded_event(
description=description,
discountable=False,
)
+ plan_tier = int(metadata["plan_tier"])
try:
ensure_customer_does_not_have_active_plan(payment_intent.customer)
except UpgradeWithExistingPlanError as e:
@@ -131,7 +132,8 @@ def handle_payment_intent_succeeded_event(
collection_method="charge_automatically",
customer=stripe_payment_intent.customer,
days_until_due=None,
- statement_descriptor="Cloud Standard Credit",
+ statement_descriptor=CustomerPlan.name_from_tier(plan_tier).replace("Zulip ", "")
+ + " Credit",
)
stripe.Invoice.finalize_invoice(stripe_invoice)
raise e
@@ -140,7 +142,7 @@ def handle_payment_intent_succeeded_event(
payment_intent.customer, metadata.get("user_id")
)
billing_session.process_initial_upgrade(
- CustomerPlan.TIER_CLOUD_STANDARD,
+ plan_tier,
int(metadata["licenses"]),
metadata["license_management"] == "automatic",
int(metadata["billing_schedule"]),
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 fb205392b34..0613849f319 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
@@ -42,6 +42,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "1200",
"realm_id": "1",
"realm_str": "zulip",
@@ -63,7 +64,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"payment_method_details": {
"card": {
"amount_authorized": 7200,
@@ -74,7 +75,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -103,9 +104,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKN2236oGMgb9kDIy5gQ6LBYzDvh-SG906rLxQE_yro-FRsYkoPjn-i_qJQdTIK-xEdHTCA_2CleF55FL",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIr9qqsGMgaM-GKNpmc6LBZoWb7DJvCIVhczLJKOYXKROrzmBYTFtupIgmreHcTL1xLwXB0pQP-R7gBA",
"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 dfc0f1c22f2..9b4fa8a6ccf 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
@@ -42,6 +42,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "6000",
"realm_id": "1",
"realm_str": "zulip",
@@ -63,7 +64,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"payment_method_details": {
"card": {
"amount_authorized": 36000,
@@ -74,7 +75,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -103,9 +104,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOe236oGMgZY2Sh2lSg6LBb_LqNtJ4g5re1ZvG-9hZPTBnBy7l5cYScBJtuv7oe8msjRYfJ1bGTbhoQG",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJT9qqsGMgbmGcE2CPg6LBYt6tPCI7CnKaxaLVq3zjSaM7atoyWnbp6xDOd4JEAbIIuFCeKskEzYWUyb",
"refunded": false,
"refunds": {
"data": [],
@@ -166,6 +168,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "1200",
"realm_id": "1",
"realm_str": "zulip",
@@ -187,7 +190,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"payment_method_details": {
"card": {
"amount_authorized": 7200,
@@ -198,7 +201,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -227,9 +230,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOe236oGMgZDkV9htao6LBYQiYhe60bGjGf7_sAYhEiv6yf9BiA0g9RgNDZptf6yXj1P7GRKECNYSf7I",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJT9qqsGMgZmMGKxY746LBarTbqnnWLLGRzmrQAWL3_ig-D1uUENWBVpjxcDGfuFmMRWLxqSgEkXJuqq",
"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 6e301160837..2ffc40b5041 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_1ODZbrDEQaroqDjskigXZyia",
+ "default_payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"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 47132fea929..c7456f095db 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_1ODZc2DEQaroqDjsTb1INXJw",
+ "default_payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"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 a024a2c67c5..cccc580c9f5 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "id": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"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 a024a2c67c5..cccc580c9f5 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "id": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"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 a024a2c67c5..cccc580c9f5 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "id": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"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 a024a2c67c5..cccc580c9f5 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "id": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"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 6c7e9d9f07f..19caa257e43 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "id": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"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 6c7e9d9f07f..19caa257e43 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "id": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"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 6c7e9d9f07f..19caa257e43 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "id": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"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 6c7e9d9f07f..19caa257e43 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "id": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"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 ff44f98e8cc..2c44353ca2a 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_1ODZbrDEQaroqDjskigXZyia",
+ "default_payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1ODZbtDEQaroqDjsr9pwx0zW",
+ "id": "evt_1OIlcWDEQaroqDjsDYC5kGA8",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "41dc2066-d11d-4609-b5e9-930cca787983"
+ "idempotency_key": "ec0d8ceb-bc0b-4141-9ecf-9f91d42f5a7e"
},
"type": "customer.updated"
}
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 d760a7842dc..ed44efa0d2e 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
@@ -61,6 +61,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "1200",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"payment_method_details": {
"card": {
"amount_authorized": 7200,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNi236oGMgZLhECvzRM6LBYsJNRLODsJSDBJeGkVl6-qT9lHjspeJ0IxSgujORyVZ0mCEfc6KC3njyfT",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIf9qqsGMgZb20Gi7do6LBb8Nk4YXcMYuHylkNS09JAb63jzjtrknnoa60TiX-hHWdshgcroMLKDWN5c",
"refunded": false,
"refunds": {
"data": [],
@@ -149,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_eEcskqSx0TpRGq2xx4S3jQfjE",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_TT71wq3meHmzTEd7mpZbqrDnP",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -165,6 +167,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "1200",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZbvDEQaroqDjs1tq9QfVM",
+ "id": "evt_3OIlcYDEQaroqDjs16WfiUYV",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "0ac0ca55-e728-4a70-a0e4-0af3358d334d"
+ "idempotency_key": "89f4d29d-4c41-4c1d-baf7-b33a1c7d25ff"
},
"type": "payment_intent.succeeded"
},
@@ -258,6 +261,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "1200",
"realm_id": "1",
"realm_str": "zulip",
@@ -279,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"payment_method_details": {
"card": {
"amount_authorized": 7200,
@@ -290,7 +294,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -319,9 +323,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNi236oGMgbSxzKAd6s6LBbAPq0vr1B4leqlRTD5gW-nTyic4VMvXjm9o3wiSF9om47ZJpnK_YPUynWs",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIf9qqsGMgaRG54HB6k6LBYbdkPPJRe4ZuuV5tR6SrHKPTGj9DFYvf8ZlOiAmw8lVKk8NDaGGFlsjRM8",
"refunded": false,
"refunds": {
"data": [],
@@ -341,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZbvDEQaroqDjs1KF32dZ0",
+ "id": "evt_3OIlcYDEQaroqDjs1OA8t8hC",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "0ac0ca55-e728-4a70-a0e4-0af3358d334d"
+ "idempotency_key": "89f4d29d-4c41-4c1d-baf7-b33a1c7d25ff"
},
"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 af7822ba08d..53dbf5d12f2 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,455 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDAz0200KsIFNryD?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDAz0200KsIFNryD/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-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_1ODZbzDEQaroqDjsSqDkgbYD",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "6959d907-781b-4140-987b-0eec0b9e2600"
- },
- "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDAz0200KsIFNryD?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDAz0200KsIFNryD/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-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_1ODZbzDEQaroqDjsdAV06ZBx",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "6959d907-781b-4140-987b-0eec0b9e2600"
- },
- "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
- },
- "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDAz0200KsIFNryD?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDAz0200KsIFNryD/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjA502000hPybKLo/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -680,13 +234,13 @@
}
}
},
- "id": "evt_1ODZbzDEQaroqDjslGBubqGq",
+ "id": "evt_1OIlcbDEQaroqDjs0RgNo7tS",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "6959d907-781b-4140-987b-0eec0b9e2600"
+ "idempotency_key": "d8040535-2a29-417e-a8cd-313f534cb633"
},
"type": "invoice.updated"
},
@@ -903,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZbyDEQaroqDjsHWOPcotK",
+ "id": "evt_1OIlcaDEQaroqDjsgW8xhHxB",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "f0d2067b-5212-4574-94d5-e10b7c223df7"
+ "idempotency_key": "e1bdf299-f588-4704-ae2c-82d0debf6534"
},
"type": "invoice.created"
},
@@ -965,13 +519,13 @@
"unit_amount_decimal": "1200"
}
},
- "id": "evt_1ODZbxDEQaroqDjsOsWzWoRk",
+ "id": "evt_1OIlcaDEQaroqDjsCma6I5rr",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "b84a2ba1-c9a7-49d9-a07f-f621f2973389"
+ "idempotency_key": "cfb4b441-f25a-4d95-a2f0-f0f950bd40fe"
},
"type": "invoiceitem.created"
},
@@ -1027,13 +581,13 @@
"unit_amount_decimal": "-7200"
}
},
- "id": "evt_1ODZbxDEQaroqDjsgtWSRoeV",
+ "id": "evt_1OIlcZDEQaroqDjs6GyIO3FO",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "b4d2796f-2f92-47c1-9c28-2a43cc0ba533"
+ "idempotency_key": "13255827-b4d3-42fe-9f18-fbcb67305a04"
},
"type": "invoiceitem.created"
},
@@ -1056,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "default_payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"footer": null,
"rendering_options": null
},
@@ -1079,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1ODZbxDEQaroqDjsLaFyBWUD",
+ "id": "evt_1OIlcZDEQaroqDjs2IZnZELZ",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "b4d2796f-2f92-47c1-9c28-2a43cc0ba533"
+ "idempotency_key": "13255827-b4d3-42fe-9f18-fbcb67305a04"
},
"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 d1d17e00902..1c2bcec12dd 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDAz0200KsIFNryD?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDAz0200KsIFNryD/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjEw0200uGqIV7uQ/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,15 +213,461 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZbzDEQaroqDjsEDioNsUQ",
+ "id": "evt_1OIlccDEQaroqDjsArfDmoTy",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "6959d907-781b-4140-987b-0eec0b9e2600"
+ "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"
+ },
+ "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_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_1OIlcbDEQaroqDjshdrWm9Tg",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "d8040535-2a29-417e-a8cd-313f534cb633"
+ },
+ "type": "invoice.finalized"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json
index 5981e002507..565c7fb799e 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
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "default_payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"footer": null,
"rendering_options": null
},
@@ -39,17 +39,17 @@
},
"previous_attributes": {
"invoice_settings": {
- "default_payment_method": "pm_1ODZbrDEQaroqDjskigXZyia"
+ "default_payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK"
}
}
},
- "id": "evt_1ODZc4DEQaroqDjsWF37D8Rz",
+ "id": "evt_1OIlcgDEQaroqDjsPE8wVcBq",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0007",
- "idempotency_key": "3fe0ab0e-2fd6-49e3-91f3-57b8528e1307"
+ "idempotency_key": "6e41d51b-0e25-4d1f-9da2-4472878eb45f"
},
"type": "customer.updated"
}
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 782571f4707..290791cd524 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
@@ -61,6 +61,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "6000",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"payment_method_details": {
"card": {
"amount_authorized": 36000,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOS236oGMgYw055P3qw6LBZCsxhPPl4eLLCFRThPYz4w7v_KNCjf_Fuy32A3nKYCv3i3h-JjPf3m-v6U",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJH9qqsGMgbQjtDZqQM6LBZPz4stEfKrXRPEFZYCyclDAo2Dez80I8lUHYTVeT16LQpU7Ou6wGCFugiR",
"refunded": false,
"refunds": {
"data": [],
@@ -149,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_5qCtuI33fYqu6bb8Vza1ESJLu",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_6P4eLudA3uvQYCOoNiDTkNQEI",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -165,6 +167,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "6000",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZc7DEQaroqDjs1nXfh7h3",
+ "id": "evt_3OIlciDEQaroqDjs14Vw2Reo",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0008",
- "idempotency_key": "dcf51f3d-2d3d-450b-9906-4d052168dd61"
+ "idempotency_key": "f7ce8212-6677-40df-912b-4ac6c3765065"
},
"type": "payment_intent.succeeded"
},
@@ -258,6 +261,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "6000",
"realm_id": "1",
"realm_str": "zulip",
@@ -279,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"payment_method_details": {
"card": {
"amount_authorized": 36000,
@@ -290,7 +294,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -319,9 +323,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOS236oGMgZ8wiMJU_k6LBYWx6PEOZgmJ6-py6hrR-CI7w1iP8Gwuppd57l-oKhQfd7Ns4lQnt_xDF-_",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJH9qqsGMgYqjd-cSvE6LBaZocBeNc1j6HmSljaGjK9coB5-xRAyLYhQxqOON0JTW8MYWAJtnxrRxAiL",
"refunded": false,
"refunds": {
"data": [],
@@ -341,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZc7DEQaroqDjs1awhlLav",
+ "id": "evt_3OIlciDEQaroqDjs1zZA7DlT",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0008",
- "idempotency_key": "dcf51f3d-2d3d-450b-9906-4d052168dd61"
+ "idempotency_key": "f7ce8212-6677-40df-912b-4ac6c3765065"
},
"type": "charge.succeeded"
}
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 58edcca0eb2..e92b51ece6e 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE00200ZmNmTYH5?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE00200ZmNmTYH5/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZcADEQaroqDjsehqtPOpi",
+ "id": "evt_1OIlclDEQaroqDjslxJqiQFY",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0009",
- "idempotency_key": "41832353-17f6-4b4f-9204-193000c3bfdc"
+ "idempotency_key": "5fb5bcd9-f037-402f-b67a-6f8eb89f3c11"
},
"type": "invoice.finalized"
},
@@ -269,9 +269,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE00200ZmNmTYH5?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE00200ZmNmTYH5/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -457,13 +457,13 @@
}
}
},
- "id": "evt_1ODZcADEQaroqDjsO0GefrRE",
+ "id": "evt_1OIlclDEQaroqDjsbyHu8WF8",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 1,
"request": {
"id": "req_NORMALIZED0009",
- "idempotency_key": "41832353-17f6-4b4f-9204-193000c3bfdc"
+ "idempotency_key": "5fb5bcd9-f037-402f-b67a-6f8eb89f3c11"
},
"type": "invoice.updated"
},
@@ -680,13 +680,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZc9DEQaroqDjsPUU3iHSB",
+ "id": "evt_1OIlckDEQaroqDjsUsuf3ZOp",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0010",
- "idempotency_key": "fe30e876-9859-407d-bd3e-63d4e1d300f5"
+ "idempotency_key": "a4d2ad76-c98a-446a-8236-ec43f0faf5fa"
},
"type": "invoice.created"
},
@@ -742,13 +742,13 @@
"unit_amount_decimal": "6000"
}
},
- "id": "evt_1ODZc9DEQaroqDjsru1mZ0jz",
+ "id": "evt_1OIlckDEQaroqDjsYzRhmX8V",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0011",
- "idempotency_key": "3dacffcf-19f7-4572-98e1-e9befb5a423b"
+ "idempotency_key": "0c11698d-33dd-4270-81bd-05e97ff35e0e"
},
"type": "invoiceitem.created"
},
@@ -804,13 +804,13 @@
"unit_amount_decimal": "-36000"
}
},
- "id": "evt_1ODZc8DEQaroqDjsdfUa3CVQ",
+ "id": "evt_1OIlcjDEQaroqDjsWfKiiWQ1",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0012",
- "idempotency_key": "eca43853-49ff-49df-a4dd-5e7220906e4d"
+ "idempotency_key": "e0683c69-8080-4a6a-b9e7-7750eba12988"
},
"type": "invoiceitem.created"
}
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 4226f3c9ff9..759c41c1c28 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE10200Y7OuDtPX?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE10200Y7OuDtPX/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZcBDEQaroqDjsC37fkyX9",
+ "id": "evt_1OIlclDEQaroqDjsYQluU75w",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0009",
- "idempotency_key": "41832353-17f6-4b4f-9204-193000c3bfdc"
+ "idempotency_key": "5fb5bcd9-f037-402f-b67a-6f8eb89f3c11"
},
"type": "invoice.payment_succeeded"
},
@@ -269,9 +269,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE00200ZmNmTYH5?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE00200ZmNmTYH5/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -436,13 +436,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZcADEQaroqDjs1xtT22P8",
+ "id": "evt_1OIlclDEQaroqDjsWkTK3kjn",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0009",
- "idempotency_key": "41832353-17f6-4b4f-9204-193000c3bfdc"
+ "idempotency_key": "5fb5bcd9-f037-402f-b67a-6f8eb89f3c11"
},
"type": "invoice.paid"
}
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 9ac3cd70004..aa3ce0514c6 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDAz0200KsIFNryD?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDAz0200KsIFNryD/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjA502000hPybKLo/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 0cd950158ce..3d93af6dcb1 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE00200ZmNmTYH5?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE00200ZmNmTYH5/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjE502004xw8zwol/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 3232d93491f..9853627a710 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNySk1zeENWY3I0d1JOT3hKa29LdWxDaWhkTTQ3LDkwNzk3NDE40200wLpqaPJl?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjd2l4VnY1aGVsY1Ztb3BRODN5dGRHbGhpNk02LDkyMDM1MjIy0200dqk7fzRz?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNySk1zeENWY3I0d1JOT3hKa29LdWxDaWhkTTQ3LDkwNzk3NDE40200wLpqaPJl/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjd2l4VnY1aGVsY1Ztb3BRODN5dGRHbGhpNk02LDkyMDM1MjIy0200dqk7fzRz/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 a7ad652901b..8250bd6fcea 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDA10200t065vkMv?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDA10200t065vkMv/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjEx0200eb8tuh13/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 79b29747a98..fecef2542e2 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE20200Pd5LpP2O?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE20200Pd5LpP2O/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjIx0200OMBLJkxA/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDE20200ZWpC82Ov?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDE20200ZWpC82Ov/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjIx02006mE2ERoT/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 4921950c255..ec86c1b0acb 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNySk1zeENWY3I0d1JOT3hKa29LdWxDaWhkTTQ3LDkwNzk3NDE40200wLpqaPJl?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjd2l4VnY1aGVsY1Ztb3BRODN5dGRHbGhpNk02LDkyMDM1MjIz02008PWTxXb7?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNySk1zeENWY3I0d1JOT3hKa29LdWxDaWhkTTQ3LDkwNzk3NDE40200wLpqaPJl/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpjd2l4VnY1aGVsY1Ztb3BRODN5dGRHbGhpNk02LDkyMDM1MjIz02008PWTxXb7/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE40200GbLelWSs?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyalVqNnpnVDNBa2xlclBsZFp2RXpOejlDcEpULDkwNzk3NDE40200GbLelWSs/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZG84bnRuUUtrVXRnN0pvOEFlUkJqY0ZBZFhCLDkyMDM1MjIz0200JbHnRP6C/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDE402002NMWc89k?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyTndOWlV1UGxOd0hiRlRUcWpKY2JNb3dOck1NLDkwNzk3NDE402002NMWc89k/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiMHNFNHp4OGxtTUNIclNiWWdZa0NQNmpqMVRJLDkyMDM1MjIz0200ykr4PqiR/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 484575cd6f2..b52338ebb59 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
@@ -55,6 +55,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "1200",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"payment_method_details": {
"card": {
"amount_authorized": 7200,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNi236oGMgYSbL4UQx06LBYNKoREIpelmHkF5IANdnuSUHLVwxtzJP92-ZeqtRDXtpTdoXXm0T4Q9dL1",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIf9qqsGMgYln1CvRQg6LBas64aXppcCqDXm8lE0Sbd6BM7omStVTXKhathHXWOU3wC8kyUuXRRePlvZ",
"refunded": false,
"refunds": {
"data": [],
@@ -143,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_eEcskqSx0TpRGq2xx4S3jQfjE",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_TT71wq3meHmzTEd7mpZbqrDnP",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -159,6 +161,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "1200",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"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 ca06fc243eb..09e726309af 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
@@ -55,6 +55,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "6000",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"payment_method_details": {
"card": {
"amount_authorized": 36000,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOO236oGMgb7SRMnvZg6LBYjPFCRTCANLJrlbiQozsyL178UivzRIPl606cMrYLbaX1ye26dEim5j_BO",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJD9qqsGMgahoOxs2tY6LBYE_7mVLMS2-_xQ_C_j9KSayaWsbJ6jjdpSQjsrQImBFFAZjT-6A-PbNsDv",
"refunded": false,
"refunds": {
"data": [],
@@ -143,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_5qCtuI33fYqu6bb8Vza1ESJLu",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_6P4eLudA3uvQYCOoNiDTkNQEI",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -159,6 +161,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "6000",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"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 0968dbf618c..a478623c3e8 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_1ODZbrDEQaroqDjsjUPMca0a_secret_P1crN749fbuxucilbRjnmjwz8bP6QLK",
+ "client_secret": "seti_1OIlcUDEQaroqDjsvk7SRRcH_secret_P6zbAgeO1YNtM2cmjYChSjYCWBsUOAB",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZbrDEQaroqDjsjUPMca0a",
+ "id": "seti_1OIlcUDEQaroqDjsvk7SRRcH",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZbrDEQaroqDjs4ezW2OlK",
+ "latest_attempt": "setatt_1OIlcUDEQaroqDjsLAiOPmHx",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"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 1cf9dff22f9..3f925f6b960 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_1ODZc3DEQaroqDjspauxhmiC_secret_P1cr1sZRe9FuuhTJVE4e61XTKnw5Kzb",
+ "client_secret": "seti_1OIlceDEQaroqDjsF69R2WG0_secret_P6zbftiDh6C2B0Le8GK6ALVcHby9Gyu",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZc3DEQaroqDjspauxhmiC",
+ "id": "seti_1OIlceDEQaroqDjsF69R2WG0",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZc3DEQaroqDjsxjZhA8wm",
+ "latest_attempt": "setatt_1OIlceDEQaroqDjs1hVqql0s",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"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 91ef3e1d6a7..0e519dd187b 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_1ODZbqDEQaroqDjsknIvOLB2_secret_P1crtWwt6m1tbC8nONQGEsNErMusQiE",
+ "client_secret": "seti_1OIlcTDEQaroqDjs7K1pjsyq_secret_P6zb4X2b8va5VZDxRMR3CgIYMwreYzC",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZbqDEQaroqDjsknIvOLB2",
+ "id": "seti_1OIlcTDEQaroqDjs7K1pjsyq",
"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 2f1ebb4d932..6f583469709 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_1ODZc2DEQaroqDjsejHIY8Wc_secret_P1crh66ebsjpd6SXH8ixmBuZ9x1878N",
+ "client_secret": "seti_1OIlcdDEQaroqDjsB4ugOdVp_secret_P6zbipSmx7qqSUGMRGqVxyYPXoN42bP",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZc2DEQaroqDjsejHIY8Wc",
+ "id": "seti_1OIlcdDEQaroqDjsB4ugOdVp",
"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 0968dbf618c..a478623c3e8 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_1ODZbrDEQaroqDjsjUPMca0a_secret_P1crN749fbuxucilbRjnmjwz8bP6QLK",
+ "client_secret": "seti_1OIlcUDEQaroqDjsvk7SRRcH_secret_P6zbAgeO1YNtM2cmjYChSjYCWBsUOAB",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZbrDEQaroqDjsjUPMca0a",
+ "id": "seti_1OIlcUDEQaroqDjsvk7SRRcH",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZbrDEQaroqDjs4ezW2OlK",
+ "latest_attempt": "setatt_1OIlcUDEQaroqDjsLAiOPmHx",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZbrDEQaroqDjskigXZyia",
+ "payment_method": "pm_1OIlcUDEQaroqDjsqDT70KqK",
"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 1cf9dff22f9..3f925f6b960 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_1ODZc3DEQaroqDjspauxhmiC_secret_P1cr1sZRe9FuuhTJVE4e61XTKnw5Kzb",
+ "client_secret": "seti_1OIlceDEQaroqDjsF69R2WG0_secret_P6zbftiDh6C2B0Le8GK6ALVcHby9Gyu",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZc3DEQaroqDjspauxhmiC",
+ "id": "seti_1OIlceDEQaroqDjsF69R2WG0",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZc3DEQaroqDjsxjZhA8wm",
+ "latest_attempt": "setatt_1OIlceDEQaroqDjs1hVqql0s",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZc2DEQaroqDjsTb1INXJw",
+ "payment_method": "pm_1OIlceDEQaroqDjshc2Y2l9b",
"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 322f1f00194..bec2277979c 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02QMy1mIZ04tCo36HFoXSMTpehz2ws7iPkk0v5IX6gyW6qdd",
+ "id": "cs_test_NORMALIZED02sb4yHaq28VHOZscOtqKWTLoGQJALldTi43GUE0P56ay9sU",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZbqDEQaroqDjsknIvOLB2",
+ "setup_intent": "seti_1OIlcTDEQaroqDjs7K1pjsyq",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED02QMy1mIZ04tCo36HFoXSMTpehz2ws7iPkk0v5IX6gyW6qdd#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02sb4yHaq28VHOZscOtqKWTLoGQJALldTi43GUE0P56ay9sU#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 ead18345471..1db3e270ad6 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED03aUkaVhDwlnsGCE41lkeNdwHArxc37WzPh9abR2ci9LWLlr",
+ "id": "cs_test_NORMALIZED03vZmJUBP0ybiRb1yrtpVKGaX0cm1V0nhnpM6e5pcI1y8CkG",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZc2DEQaroqDjsejHIY8Wc",
+ "setup_intent": "seti_1OIlcdDEQaroqDjsB4ugOdVp",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED03aUkaVhDwlnsGCE41lkeNdwHArxc37WzPh9abR2ci9LWLlr#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03vZmJUBP0ybiRb1yrtpVKGaX0cm1V0nhnpM6e5pcI1y8CkG#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 c94ad3428c5..b793c7b9bac 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02QMy1mIZ04tCo36HFoXSMTpehz2ws7iPkk0v5IX6gyW6qdd",
+ "id": "cs_test_NORMALIZED02sb4yHaq28VHOZscOtqKWTLoGQJALldTi43GUE0P56ay9sU",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZbqDEQaroqDjsknIvOLB2",
+ "setup_intent": "seti_1OIlcTDEQaroqDjs7K1pjsyq",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED02QMy1mIZ04tCo36HFoXSMTpehz2ws7iPkk0v5IX6gyW6qdd#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02sb4yHaq28VHOZscOtqKWTLoGQJALldTi43GUE0P56ay9sU#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 a0a45bb98ee..d34bcb59e73 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED03aUkaVhDwlnsGCE41lkeNdwHArxc37WzPh9abR2ci9LWLlr",
+ "id": "cs_test_NORMALIZED03vZmJUBP0ybiRb1yrtpVKGaX0cm1V0nhnpM6e5pcI1y8CkG",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZc2DEQaroqDjsejHIY8Wc",
+ "setup_intent": "seti_1OIlcdDEQaroqDjsB4ugOdVp",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED03aUkaVhDwlnsGCE41lkeNdwHArxc37WzPh9abR2ci9LWLlr#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03vZmJUBP0ybiRb1yrtpVKGaX0cm1V0nhnpM6e5pcI1y8CkG#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 ece47c50a8c..78c4a3da27b 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_1ODZXmDEQaroqDjsemP192DM",
+ "default_payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"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 bd73e65441c..b121ce6e878 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "id": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"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 bd73e65441c..b121ce6e878 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "id": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"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 bd73e65441c..b121ce6e878 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "id": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"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 bd73e65441c..b121ce6e878 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "id": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"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 d1d7f649fc6..d0ccb619735 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "id": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"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 d1d7f649fc6..d0ccb619735 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "id": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"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 b7dd6387d08..8adfcbc0a66 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_1ODZXmDEQaroqDjsemP192DM",
+ "default_payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1ODZXoDEQaroqDjsazKpXqPa",
+ "id": "evt_1OIlXjDEQaroqDjsLhrUEUe3",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "2510229b-ebf4-4842-a22f-206ca6e58136"
+ "idempotency_key": "12b7d34b-4958-462b-8fda-e2f6c17957bd"
},
"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 7b54abe1246..9f2024fa127 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
@@ -61,6 +61,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNu036oGMgYd-zDwUuw6LBZhT3N8C0bPauXXVemQlIsPbaqCFAmSYbrogals37GtQCl6K3b6zNvRVKW6",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKN76qqsGMgYgrE0XQWw6LBau_ilRx6BPEf5zlgCHW2ojzwBSlxtCQxmlmII5DkhOSXuAsc1VGTmDFZd6",
"refunded": false,
"refunds": {
"data": [],
@@ -149,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_hz13FcMGzbXnd0PjYlT8nOd20",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_gaaXxocbBjOepNzIQyoHlMcVE",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -165,6 +167,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZXqDEQaroqDjs1ntrH5kh",
+ "id": "evt_3OIlXlDEQaroqDjs0FGYzTr9",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "5a52ddf1-844c-4d63-ada9-31db1bfaa4f4"
+ "idempotency_key": "899e9bd5-f82b-4ed6-a09b-e04dba8c0edd"
},
"type": "payment_intent.succeeded"
},
@@ -258,6 +261,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -279,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -290,7 +294,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -319,9 +323,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNu036oGMgZOd5xVIC06LBbj35T1lsN__G2R-COCZaYgQDwkaQMNtFr5RuURrXhrLju3-934HZFxcJSd",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKN76qqsGMgYp5rJn4Pg6LBYAjHCItgf9iiKG_mmqSy1FuggXUU5fXaGzNuMWlKsIBYlUVnaYe37Fid2s",
"refunded": false,
"refunds": {
"data": [],
@@ -341,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZXqDEQaroqDjs1K3mhFh0",
+ "id": "evt_3OIlXlDEQaroqDjs0F5rvmUM",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "5a52ddf1-844c-4d63-ada9-31db1bfaa4f4"
+ "idempotency_key": "899e9bd5-f82b-4ed6-a09b-e04dba8c0edd"
},
"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 a7efa647a72..41b90ad87ec 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNueG01YW5GUGg3ZllyUEdNRVZKcVk4V2xqVVpTLDkwNzk3MTUw0200wlo144L1?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNueG01YW5GUGg3ZllyUEdNRVZKcVk4V2xqVVpTLDkwNzk3MTUw0200wlo144L1/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEz0200nMuZd38e/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1ODZXuDEQaroqDjsW9RyOman",
+ "id": "evt_1OIlXpDEQaroqDjsFjFkC07g",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "da047b57-f188-4924-8e4a-e6187bc8f417"
+ "idempotency_key": "8b119345-6159-4607-9010-e8237d20823b"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZXtDEQaroqDjsd5IgIcpZ",
+ "id": "evt_1OIlXoDEQaroqDjsll2CgAs8",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "d90f4cd9-03ea-464b-91e3-fab9d95fd649"
+ "idempotency_key": "294b5729-e1c0-42e1-b77a-2545f8f7006c"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1ODZXsDEQaroqDjsasSBFkri",
+ "id": "evt_1OIlXnDEQaroqDjsoAX0aCzf",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "e2158b85-0c14-489d-b784-b2cd136c4e57"
+ "idempotency_key": "4ead5392-1ff9-44e0-943e-cd705accc213"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1ODZXsDEQaroqDjseyFALkOF",
+ "id": "evt_1OIlXnDEQaroqDjsQ5wMmZEb",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "47872440-8f04-4e41-ae42-0d1802dd7f70"
+ "idempotency_key": "e5d2c5ec-9f6f-4f28-b5b9-e43e3f58b653"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "default_payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1ODZXsDEQaroqDjsxhXThZHi",
+ "id": "evt_1OIlXnDEQaroqDjsKXCIWpVq",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "47872440-8f04-4e41-ae42-0d1802dd7f70"
+ "idempotency_key": "e5d2c5ec-9f6f-4f28-b5b9-e43e3f58b653"
},
"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 1a55720456e..55e34d1c69b 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNueG01YW5GUGg3ZllyUEdNRVZKcVk4V2xqVVpTLDkwNzk3MTUw0200wlo144L1?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNueG01YW5GUGg3ZllyUEdNRVZKcVk4V2xqVVpTLDkwNzk3MTUw0200wlo144L1/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEz0200nMuZd38e/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,236 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZXuDEQaroqDjsCkol6a24",
+ "id": "evt_1OIlXpDEQaroqDjsMH9F6Vqj",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "da047b57-f188-4924-8e4a-e6187bc8f417"
+ "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"
},
@@ -269,9 +492,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNueG01YW5GUGg3ZllyUEdNRVZKcVk4V2xqVVpTLDkwNzk3MTUw0200wlo144L1?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNueG01YW5GUGg3ZllyUEdNRVZKcVk4V2xqVVpTLDkwNzk3MTUw0200wlo144L1/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEz0200nMuZd38e/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -436,13 +659,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZXuDEQaroqDjsgJ4biVrH",
+ "id": "evt_1OIlXpDEQaroqDjs9DRA4TlG",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "da047b57-f188-4924-8e4a-e6187bc8f417"
+ "idempotency_key": "8b119345-6159-4607-9010-e8237d20823b"
},
"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 db206261631..6d922067afe 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,229 +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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNueG01YW5GUGg3ZllyUEdNRVZKcVk4V2xqVVpTLDkwNzk3MTUw0200wlo144L1?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNueG01YW5GUGg3ZllyUEdNRVZKcVk4V2xqVVpTLDkwNzk3MTUw0200wlo144L1/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_1ODZXuDEQaroqDjsd1DnbP9x",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "da047b57-f188-4924-8e4a-e6187bc8f417"
- },
- "type": "invoice.payment_succeeded"
- }
- ],
+ "data": [],
"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
deleted file mode 100644
index 6d922067afe..00000000000
--- a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.6.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/events"
-}
diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.finalize_invoice.1.json
index 564590ffb06..1d137d60ad9 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNueG01YW5GUGg3ZllyUEdNRVZKcVk4V2xqVVpTLDkwNzk3MTQ50200DCAUTZjK?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEy0200M1ADhNeL?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNueG01YW5GUGg3ZllyUEdNRVZKcVk4V2xqVVpTLDkwNzk3MTQ50200DCAUTZjK/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXWlpYcFFGQklGamtRUExacnBFdXlvU0I2dlZTLDkyMDM0OTEy0200M1ADhNeL/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 a51480c1caa..fb3dfaa4544 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
@@ -55,6 +55,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNu036oGMgadvHDoumQ6LBaCwh87rbDR7JldLWCpfETq0ZVKEWyerThjC1H69W6SqHnT3YPHzz-zbVM1",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKN76qqsGMgZgaui54Nc6LBbpn6dtN1hXcAVR2ChXte8Ecqdu3cWtk6VikFLgoeo7xJBfgY0LR4CIhJhe",
"refunded": false,
"refunds": {
"data": [],
@@ -143,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_hz13FcMGzbXnd0PjYlT8nOd20",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_gaaXxocbBjOepNzIQyoHlMcVE",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -159,6 +161,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"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 0aef74f192a..54ddd475054 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_1ODZXnDEQaroqDjsCmngKwK6_secret_P1cnUx7CKKDYjNTRBFefmSYtnoInnsm",
+ "client_secret": "seti_1OIlXiDEQaroqDjsvI6zH6rR_secret_P6zWBPBOAxlXilaHazyONXX4vFcGI5s",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZXnDEQaroqDjsCmngKwK6",
+ "id": "seti_1OIlXiDEQaroqDjsvI6zH6rR",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZXnDEQaroqDjsCIbUqU1v",
+ "latest_attempt": "setatt_1OIlXiDEQaroqDjs8vqJZ53H",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"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 88ed96dd227..30395506785 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_1ODZXmDEQaroqDjsBNUKYAY6_secret_P1cnHVcN8rotisyb7FEouGSuVo8qMpM",
+ "client_secret": "seti_1OIlXhDEQaroqDjs1fXXuFlu_secret_P6zWkqWwRlOqpbP3JGSRFT1s92F1sUU",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZXmDEQaroqDjsBNUKYAY6",
+ "id": "seti_1OIlXhDEQaroqDjs1fXXuFlu",
"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 0aef74f192a..54ddd475054 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_1ODZXnDEQaroqDjsCmngKwK6_secret_P1cnUx7CKKDYjNTRBFefmSYtnoInnsm",
+ "client_secret": "seti_1OIlXiDEQaroqDjsvI6zH6rR_secret_P6zWBPBOAxlXilaHazyONXX4vFcGI5s",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZXnDEQaroqDjsCmngKwK6",
+ "id": "seti_1OIlXiDEQaroqDjsvI6zH6rR",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZXnDEQaroqDjsCIbUqU1v",
+ "latest_attempt": "setatt_1OIlXiDEQaroqDjs8vqJZ53H",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZXmDEQaroqDjsemP192DM",
+ "payment_method": "pm_1OIlXhDEQaroqDjsm8crnb7t",
"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 c5cfbb349a5..f1439ee4565 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02YTXo9NmXUlmUpuDoN3QunlOBYrNPdDoUq0LYqcyGReAtyO",
+ "id": "cs_test_NORMALIZED022uV9JxUF8wFtvKu0nBvAfD8xqGg4mH8COGhMYSydyKnyEa",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZXmDEQaroqDjsBNUKYAY6",
+ "setup_intent": "seti_1OIlXhDEQaroqDjs1fXXuFlu",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED02YTXo9NmXUlmUpuDoN3QunlOBYrNPdDoUq0LYqcyGReAtyO#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED022uV9JxUF8wFtvKu0nBvAfD8xqGg4mH8COGhMYSydyKnyEa#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 e8154b1c4c9..1c40d1e1ca9 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02YTXo9NmXUlmUpuDoN3QunlOBYrNPdDoUq0LYqcyGReAtyO",
+ "id": "cs_test_NORMALIZED022uV9JxUF8wFtvKu0nBvAfD8xqGg4mH8COGhMYSydyKnyEa",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZXmDEQaroqDjsBNUKYAY6",
+ "setup_intent": "seti_1OIlXhDEQaroqDjs1fXXuFlu",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED02YTXo9NmXUlmUpuDoN3QunlOBYrNPdDoUq0LYqcyGReAtyO#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED022uV9JxUF8wFtvKu0nBvAfD8xqGg4mH8COGhMYSydyKnyEa#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 de2802faa47..08c75aad745 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_1ODkuHDEQaroqDjsOkC5GftU",
+ "default_payment_method": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"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 b0e27e7b8a3..54413c2ed17 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODkuHDEQaroqDjsOkC5GftU",
+ "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"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 b0e27e7b8a3..54413c2ed17 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODkuHDEQaroqDjsOkC5GftU",
+ "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"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 b0e27e7b8a3..54413c2ed17 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODkuHDEQaroqDjsOkC5GftU",
+ "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"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 970aa21bcaf..2cdd892b639 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_1ODkuHDEQaroqDjsOkC5GftU",
+ "default_payment_method": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1ODkuIDEQaroqDjsa7wYDH8M",
+ "id": "evt_1OIlXvDEQaroqDjsoJvhLiqB",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "62fc5b24-11a5-41cb-89a1-bb4cb117eb3f"
+ "idempotency_key": "49bc0d95-d9ec-4872-891b-a1ce23989500"
},
"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 fd9dcadf5e8..5d751203413 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
@@ -65,6 +65,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -86,7 +87,7 @@
},
"paid": false,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODkuHDEQaroqDjsOkC5GftU",
+ "payment_method": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"payment_method_details": {
"card": {
"amount_authorized": null,
@@ -97,7 +98,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -126,6 +127,7 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
"receipt_url": null,
@@ -147,9 +149,9 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_35S0RwZGKlxPgcF3b7KQLi1YT",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_n1KKNJkXE3HBn9XQXDPAxg09C",
"confirmation_method": "automatic",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -183,7 +185,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -202,7 +204,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODkuHDEQaroqDjsOkC5GftU",
+ "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -217,6 +219,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -275,7 +278,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -294,13 +297,13 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODkuHDEQaroqDjsOkC5GftU",
+ "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"livemode": false,
"metadata": {},
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0002?t=1700300024",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0002?t=1701494121",
"setup_intent": null,
"source": null,
"type": "card_error"
@@ -313,11 +316,11 @@
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Connection": "keep-alive",
- "Content-Length": "9856",
+ "Content-Length": "9960",
"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": "82307328-b31e-4861-b497-54c103e2d89d",
+ "Idempotency-Key": "2a366e05-a7b2-4fd7-81d6-8cb36f6a2b1b",
"Original-Request": "req_NORMALIZED0002",
"Request-Id": "req_NORMALIZED0002",
"Server": "nginx",
@@ -393,6 +396,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -414,7 +418,7 @@
},
"paid": false,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODkuHDEQaroqDjsOkC5GftU",
+ "payment_method": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"payment_method_details": {
"card": {
"amount_authorized": null,
@@ -425,7 +429,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -454,6 +458,7 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
"receipt_url": null,
@@ -481,9 +486,9 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_35S0RwZGKlxPgcF3b7KQLi1YT",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_n1KKNJkXE3HBn9XQXDPAxg09C",
"confirmation_method": "automatic",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -517,7 +522,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -536,7 +541,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODkuHDEQaroqDjsOkC5GftU",
+ "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -551,6 +556,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -609,7 +615,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -628,13 +634,13 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODkuHDEQaroqDjsOkC5GftU",
+ "id": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"livemode": false,
"metadata": {},
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0002?t=1700300024",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0002?t=1701494121",
"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 01a363b7eb8..d69377526cd 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_1ODkuHDEQaroqDjsOK9izlqp_secret_P1oXIwopESgbGd5kCDpJAckrMODQ4PZ",
+ "client_secret": "seti_1OIlXtDEQaroqDjsgZwyhjiU_secret_P6zWKS52xWBvynYvmsJtxtyLfgPePhv",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODkuHDEQaroqDjsOK9izlqp",
+ "id": "seti_1OIlXtDEQaroqDjsgZwyhjiU",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODkuHDEQaroqDjsqIuiHGr1",
+ "latest_attempt": "setatt_1OIlXtDEQaroqDjsM8404dt1",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODkuHDEQaroqDjsOkC5GftU",
+ "payment_method": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"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 4b6837bbbbc..d100573002e 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_1ODkuFDEQaroqDjsSRvNjlQ9_secret_P1oXEVffOtfoUES7GlWnfjfLMZP5GE9",
- "created": 1010000006,
+ "client_secret": "seti_1OIlXtDEQaroqDjsDKuSZ1M8_secret_P6zWKTq7xYbOiJ6GJDWEVXKFN7GXBLr",
+ "created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODkuFDEQaroqDjsSRvNjlQ9",
+ "id": "seti_1OIlXtDEQaroqDjsDKuSZ1M8",
"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 01a363b7eb8..d69377526cd 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_1ODkuHDEQaroqDjsOK9izlqp_secret_P1oXIwopESgbGd5kCDpJAckrMODQ4PZ",
+ "client_secret": "seti_1OIlXtDEQaroqDjsgZwyhjiU_secret_P6zWKS52xWBvynYvmsJtxtyLfgPePhv",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODkuHDEQaroqDjsOK9izlqp",
+ "id": "seti_1OIlXtDEQaroqDjsgZwyhjiU",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODkuHDEQaroqDjsqIuiHGr1",
+ "latest_attempt": "setatt_1OIlXtDEQaroqDjsM8404dt1",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODkuHDEQaroqDjsOkC5GftU",
+ "payment_method": "pm_1OIlXtDEQaroqDjsW5IClxeu",
"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 162ff3e7496..65c489d465a 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000006,
+ "created": 1010000002,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01gBNk8qlvLnUF2wU2P23l2TVhtqIIKl0cHiUiQIMRIC7jgL",
+ "id": "cs_test_NORMALIZED01QKi3kfWTaa0Vmcpa0MZAkZw6V4dC3cwJuR48tRmTUrynWd",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODkuFDEQaroqDjsSRvNjlQ9",
+ "setup_intent": "seti_1OIlXtDEQaroqDjsDKuSZ1M8",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED01gBNk8qlvLnUF2wU2P23l2TVhtqIIKl0cHiUiQIMRIC7jgL#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01QKi3kfWTaa0Vmcpa0MZAkZw6V4dC3cwJuR48tRmTUrynWd#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 e39c4eed5f3..68a686095ba 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000006,
+ "created": 1010000002,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01gBNk8qlvLnUF2wU2P23l2TVhtqIIKl0cHiUiQIMRIC7jgL",
+ "id": "cs_test_NORMALIZED01QKi3kfWTaa0Vmcpa0MZAkZw6V4dC3cwJuR48tRmTUrynWd",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODkuFDEQaroqDjsSRvNjlQ9",
+ "setup_intent": "seti_1OIlXtDEQaroqDjsDKuSZ1M8",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED01gBNk8qlvLnUF2wU2P23l2TVhtqIIKl0cHiUiQIMRIC7jgL#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01QKi3kfWTaa0Vmcpa0MZAkZw6V4dC3cwJuR48tRmTUrynWd#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json
index 018781b959f..b62a73ebebf 100644
--- a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json
@@ -51,7 +51,7 @@
"amount": 14400,
"amount_excluding_tax": 14400,
"currency": "usd",
- "description": "Zulip Plus - renewal",
+ "description": "Zulip Cloud Plus - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -133,7 +133,7 @@
"shipping_cost": null,
"shipping_details": null,
"starting_balance": -7200,
- "statement_descriptor": "Zulip Plus",
+ "statement_descriptor": "Zulip Cloud Plus",
"status": "draft",
"status_transitions": {
"finalized_at": null,
diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json
index c496fa47809..098046cb5aa 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RWVEFzekZPQzhpS2pLRUUwdUtHZFdYSFR6elVuLDkxMjYxMDk50200glANUnat?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYRmRrRWpBczByNUYyVlFXM2FIdGx1Q1JKV21yLDkyMDM0OTI10200SOwO7QdE?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RWVEFzekZPQzhpS2pLRUUwdUtHZFdYSFR6elVuLDkxMjYxMDk50200glANUnat/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYRmRrRWpBczByNUYyVlFXM2FIdGx1Q1JKV21yLDkyMDM0OTI10200SOwO7QdE/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -51,7 +51,7 @@
"amount": 14400,
"amount_excluding_tax": 14400,
"currency": "usd",
- "description": "Zulip Plus - renewal",
+ "description": "Zulip Cloud Plus - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -133,7 +133,7 @@
"shipping_cost": null,
"shipping_details": null,
"starting_balance": -7200,
- "statement_descriptor": "Zulip Plus",
+ "statement_descriptor": "Zulip Cloud Plus",
"status": "open",
"status_transitions": {
"finalized_at": 1000000000,
diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json
index 9ffc0b76a90..9c155380dd8 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RWVEFzekZPQzhpS2pLRUUwdUtHZFdYSFR6elVuLDkxMjYxMTAw0200IAw0qFPB?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYRmRrRWpBczByNUYyVlFXM2FIdGx1Q1JKV21yLDkyMDM0OTI10200SOwO7QdE?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RWVEFzekZPQzhpS2pLRUUwdUtHZFdYSFR6elVuLDkxMjYxMTAw0200IAw0qFPB/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYRmRrRWpBczByNUYyVlFXM2FIdGx1Q1JKV21yLDkyMDM0OTI10200SOwO7QdE/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -53,7 +53,7 @@
"amount": 14400,
"amount_excluding_tax": 14400,
"currency": "usd",
- "description": "Zulip Plus - renewal",
+ "description": "Zulip Cloud Plus - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -135,7 +135,7 @@
"shipping_cost": null,
"shipping_details": null,
"starting_balance": -7200,
- "statement_descriptor": "Zulip Plus",
+ "statement_descriptor": "Zulip Cloud Plus",
"status": "open",
"status_transitions": {
"finalized_at": 1000000000,
diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--InvoiceItem.create.1.json
index 71d7befb71c..386176bf860 100644
--- a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--InvoiceItem.create.1.json
@@ -3,7 +3,7 @@
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"date": 1000000000,
- "description": "Zulip Plus - renewal",
+ "description": "Zulip Cloud Plus - renewal",
"discountable": false,
"discounts": [],
"id": "ii_NORMALIZED00000000000001",
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 fdd3b5ea4e6..ac855f1dcd3 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_1ODZY4DEQaroqDjst3BklA3q",
+ "default_payment_method": "pm_1OIlY3DEQaroqDjslFpuk1CA",
"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 1f6c85cc1f2..a46defe883b 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_1ODZY8DEQaroqDjs9CrZJasJ",
+ "default_payment_method": "pm_1OIlY7DEQaroqDjsWWd7JRsa",
"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 358f0955b82..7e64cfc1f02 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_1ODZYCDEQaroqDjsrpUcYFid",
+ "default_payment_method": "pm_1OIlYBDEQaroqDjsjD1cNbBj",
"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 65fff3c298e..a3e55548171 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_1ODZYGDEQaroqDjsm4ouIeUW",
+ "default_payment_method": "pm_1OIlYFDEQaroqDjso6F7pFrk",
"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 7b85d7ec12d..4b4e08ef34f 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_1ODZYKDEQaroqDjsker9EuiP",
+ "default_payment_method": "pm_1OIlYIDEQaroqDjsByOEWq10",
"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 226e87a03e7..8961fe57f01 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_1ODZYODEQaroqDjsqrgagvFr",
+ "default_payment_method": "pm_1OIlYMDEQaroqDjsgwTv4ukx",
"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 a4a3b41dc2b..45ab5346640 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_1ODZYSDEQaroqDjs0mTTiBeD",
+ "default_payment_method": "pm_1OIlYQDEQaroqDjs5Yt0Xtvd",
"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 44f6cd02fa1..5b699ad6bc6 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_1ODZYWDEQaroqDjslD4xcPaQ",
+ "default_payment_method": "pm_1OIlYUDEQaroqDjsYOMRzrid",
"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 11311644a42..c3da3baa93e 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_1ODZYZDEQaroqDjsVOcw9c5t",
+ "default_payment_method": "pm_1OIlYXDEQaroqDjssam6O1GA",
"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 724570b3624..f84b9e864ab 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZY4DEQaroqDjst3BklA3q",
+ "id": "pm_1OIlY3DEQaroqDjslFpuk1CA",
"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 2ab6be270cb..59dc04407d8 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYKDEQaroqDjsker9EuiP",
+ "id": "pm_1OIlYIDEQaroqDjsByOEWq10",
"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 312e3679eac..fbb3909ca32 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000004,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYODEQaroqDjsqrgagvFr",
+ "id": "pm_1OIlYMDEQaroqDjsgwTv4ukx",
"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 312e3679eac..fbb3909ca32 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000004,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYODEQaroqDjsqrgagvFr",
+ "id": "pm_1OIlYMDEQaroqDjsgwTv4ukx",
"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 89d71fb1718..fb8c5088b84 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000005,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYSDEQaroqDjs0mTTiBeD",
+ "id": "pm_1OIlYQDEQaroqDjs5Yt0Xtvd",
"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 89d71fb1718..fb8c5088b84 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000005,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYSDEQaroqDjs0mTTiBeD",
+ "id": "pm_1OIlYQDEQaroqDjs5Yt0Xtvd",
"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 eceb3eafd26..148830dde02 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000006,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYWDEQaroqDjslD4xcPaQ",
+ "id": "pm_1OIlYUDEQaroqDjsYOMRzrid",
"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 eceb3eafd26..148830dde02 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000006,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYWDEQaroqDjslD4xcPaQ",
+ "id": "pm_1OIlYUDEQaroqDjsYOMRzrid",
"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 c9dcb4b43ac..41c07ee5aa7 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000007,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYZDEQaroqDjsVOcw9c5t",
+ "id": "pm_1OIlYXDEQaroqDjssam6O1GA",
"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 c9dcb4b43ac..41c07ee5aa7 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000007,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYZDEQaroqDjsVOcw9c5t",
+ "id": "pm_1OIlYXDEQaroqDjssam6O1GA",
"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 724570b3624..f84b9e864ab 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZY4DEQaroqDjst3BklA3q",
+ "id": "pm_1OIlY3DEQaroqDjslFpuk1CA",
"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 cc5eb5b0dd2..a9eb2b3115e 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000008,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZY8DEQaroqDjs9CrZJasJ",
+ "id": "pm_1OIlY7DEQaroqDjsWWd7JRsa",
"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 cc5eb5b0dd2..a9eb2b3115e 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000008,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZY8DEQaroqDjs9CrZJasJ",
+ "id": "pm_1OIlY7DEQaroqDjsWWd7JRsa",
"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 ecac7681bf3..4337bc504f2 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000009,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYCDEQaroqDjsrpUcYFid",
+ "id": "pm_1OIlYBDEQaroqDjsjD1cNbBj",
"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 ecac7681bf3..4337bc504f2 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000009,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYCDEQaroqDjsrpUcYFid",
+ "id": "pm_1OIlYBDEQaroqDjsjD1cNbBj",
"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 c5ab03db21e..a818202faa2 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000010,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYGDEQaroqDjsm4ouIeUW",
+ "id": "pm_1OIlYFDEQaroqDjso6F7pFrk",
"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 c5ab03db21e..a818202faa2 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000010,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYGDEQaroqDjsm4ouIeUW",
+ "id": "pm_1OIlYFDEQaroqDjso6F7pFrk",
"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 2ab6be270cb..59dc04407d8 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYKDEQaroqDjsker9EuiP",
+ "id": "pm_1OIlYIDEQaroqDjsByOEWq10",
"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 20586b94448..a9bf455aac1 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_1ODZY4DEQaroqDjsXYmi1Qaj_secret_P1cn3z8wxg4dX4OELSWmMKqwQmAbqti",
+ "client_secret": "seti_1OIlY3DEQaroqDjsI1rkPxX8_secret_P6zXuzLHTOXH7F0pVbjB40tGz0kF3OO",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZY4DEQaroqDjsXYmi1Qaj",
+ "id": "seti_1OIlY3DEQaroqDjsI1rkPxX8",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZY4DEQaroqDjs9bTJ69Fw",
+ "latest_attempt": "setatt_1OIlY3DEQaroqDjsiAt8p9DK",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZY4DEQaroqDjst3BklA3q",
+ "payment_method": "pm_1OIlY3DEQaroqDjslFpuk1CA",
"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 6b056d0b3b1..84bedfe0ac9 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_1ODZY8DEQaroqDjszUtjYi7t_secret_P1cnsrJUa85dR45UVG4YczkGGU2jD84",
+ "client_secret": "seti_1OIlY7DEQaroqDjscXc0vihd_secret_P6zXbc9s4VmN0aVubBb5LJE6rO4yIbt",
"created": 1010000008,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZY8DEQaroqDjszUtjYi7t",
+ "id": "seti_1OIlY7DEQaroqDjscXc0vihd",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZY8DEQaroqDjs6nlaBds3",
+ "latest_attempt": "setatt_1OIlY7DEQaroqDjsver9zO4x",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZY8DEQaroqDjs9CrZJasJ",
+ "payment_method": "pm_1OIlY7DEQaroqDjsWWd7JRsa",
"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 4c06c1f52c9..31f749d0453 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_1ODZYCDEQaroqDjsyActamSC_secret_P1cnBE9OuP3zQA2dIlpnLyAvlgXKjnj",
+ "client_secret": "seti_1OIlYBDEQaroqDjsayuPb42L_secret_P6zXZ34sqGLNS8FsdWaoEJDDbV66gat",
"created": 1010000009,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYCDEQaroqDjsyActamSC",
+ "id": "seti_1OIlYBDEQaroqDjsayuPb42L",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYCDEQaroqDjsP7YDUY4y",
+ "latest_attempt": "setatt_1OIlYBDEQaroqDjsoThPCLkU",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYCDEQaroqDjsrpUcYFid",
+ "payment_method": "pm_1OIlYBDEQaroqDjsjD1cNbBj",
"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 8543cbfd3cd..4e3c375d391 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_1ODZYGDEQaroqDjsNNKZbOe1_secret_P1cnDV8ISpom4gTaKN6nHYm7NeC26mO",
+ "client_secret": "seti_1OIlYFDEQaroqDjsZMK1wCCS_secret_P6zXv6VufSZ7yJ0ftBPxPYebHBWXv45",
"created": 1010000010,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYGDEQaroqDjsNNKZbOe1",
+ "id": "seti_1OIlYFDEQaroqDjsZMK1wCCS",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYGDEQaroqDjsGtEsKAIx",
+ "latest_attempt": "setatt_1OIlYFDEQaroqDjsJIclKZkj",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYGDEQaroqDjsm4ouIeUW",
+ "payment_method": "pm_1OIlYFDEQaroqDjso6F7pFrk",
"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 6ea487f0774..f7a89218b9f 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_1ODZYKDEQaroqDjsrmWSqBvu_secret_P1cnVrRhlrryeRrOzG5V7AXf8cJNM2s",
+ "client_secret": "seti_1OIlYIDEQaroqDjsJ4F5xT2N_secret_P6zXCmce4JGx2y7gAazeOA6fFUL9qfT",
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYKDEQaroqDjsrmWSqBvu",
+ "id": "seti_1OIlYIDEQaroqDjsJ4F5xT2N",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYKDEQaroqDjstrL2e5ru",
+ "latest_attempt": "setatt_1OIlYIDEQaroqDjsswUrR6Ei",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYKDEQaroqDjsker9EuiP",
+ "payment_method": "pm_1OIlYIDEQaroqDjsByOEWq10",
"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 1b2ec91d69d..53a5b60cedf 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_1ODZYODEQaroqDjsqAYF1Jkt_secret_P1cowfDCI5yXF0AxRsYd5YlH58wTleP",
+ "client_secret": "seti_1OIlYMDEQaroqDjsuBdPc3Ot_secret_P6zXi4ZltYanzkBD6qgDWzBIOJcJIyo",
"created": 1010000004,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYODEQaroqDjsqAYF1Jkt",
+ "id": "seti_1OIlYMDEQaroqDjsuBdPc3Ot",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYODEQaroqDjs5611YA19",
+ "latest_attempt": "setatt_1OIlYMDEQaroqDjsNdZgMSup",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYODEQaroqDjsqrgagvFr",
+ "payment_method": "pm_1OIlYMDEQaroqDjsgwTv4ukx",
"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 da9a11c508a..dc89ae1cd1c 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_1ODZYSDEQaroqDjsA51Xnf3B_secret_P1coJgBpFuO0oa8xWyHNnK4ciy67v8v",
+ "client_secret": "seti_1OIlYQDEQaroqDjsFOXhvTmX_secret_P6zXNyadVaSI7Hc6CGsgwRzXmUC789Q",
"created": 1010000005,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYSDEQaroqDjsA51Xnf3B",
+ "id": "seti_1OIlYQDEQaroqDjsFOXhvTmX",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYSDEQaroqDjs8brayQcK",
+ "latest_attempt": "setatt_1OIlYQDEQaroqDjsT1Q7vuyA",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYSDEQaroqDjs0mTTiBeD",
+ "payment_method": "pm_1OIlYQDEQaroqDjs5Yt0Xtvd",
"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 c68ed0c8b33..07bea50a413 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_1ODZYWDEQaroqDjsVePXf39L_secret_P1coztaPJiCsCDBcfyHLllYTBGKsW2a",
+ "client_secret": "seti_1OIlYUDEQaroqDjsH9FUMQ37_secret_P6zXxGRENsfek7fMlA8GzHvkcw8c4LZ",
"created": 1010000006,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYWDEQaroqDjsVePXf39L",
+ "id": "seti_1OIlYUDEQaroqDjsH9FUMQ37",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYWDEQaroqDjst7Lleiwd",
+ "latest_attempt": "setatt_1OIlYUDEQaroqDjsLdvjgjQq",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYWDEQaroqDjslD4xcPaQ",
+ "payment_method": "pm_1OIlYUDEQaroqDjsYOMRzrid",
"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 22b5ac30be2..0fad11f0fd6 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_1ODZYZDEQaroqDjsyZJ5XVCY_secret_P1coKKXmg0cN0eN7I2QwjbC8m4kQ1tJ",
+ "client_secret": "seti_1OIlYXDEQaroqDjsVJrJdmDK_secret_P6zXTGHuBLTj55opifICfuLdJnvBh4W",
"created": 1010000007,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYZDEQaroqDjsyZJ5XVCY",
+ "id": "seti_1OIlYXDEQaroqDjsVJrJdmDK",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYZDEQaroqDjsGpyawhR4",
+ "latest_attempt": "setatt_1OIlYXDEQaroqDjsm1s6QNV7",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYZDEQaroqDjsVOcw9c5t",
+ "payment_method": "pm_1OIlYXDEQaroqDjssam6O1GA",
"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 99616feb1e5..5d5270e3c59 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_1ODZY4DEQaroqDjsljiXOaej_secret_P1cnK4wVOlnnUfmT9Pqx56DX4n0sevm",
+ "client_secret": "seti_1OIlY3DEQaroqDjs7JBrt0fk_secret_P6zXss8uRXvd8HKRiO5nNOd34MApWRT",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZY4DEQaroqDjsljiXOaej",
+ "id": "seti_1OIlY3DEQaroqDjs7JBrt0fk",
"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 25f982a226a..ab7943c1706 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_1ODZY8DEQaroqDjsjrWAY2dl_secret_P1cnLTCYC2s5AwQDmPh6fRRBCgj3Dlv",
- "created": 1010000008,
+ "client_secret": "seti_1OIlY6DEQaroqDjsXk7cflCF_secret_P6zXC6jwH0ToqsFDaqRFbgeZrnYORqD",
+ "created": 1010000011,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZY8DEQaroqDjsjrWAY2dl",
+ "id": "seti_1OIlY6DEQaroqDjsXk7cflCF",
"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 487172452b8..d962955faca 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_1ODZYCDEQaroqDjs9ByjohCj_secret_P1cnsla9oLoUNpKT1Xo22J024hNBz8z",
- "created": 1010000009,
+ "client_secret": "seti_1OIlYADEQaroqDjscphkqiJV_secret_P6zX8y451MEdIXlInodAppkGB5RdaY1",
+ "created": 1010000012,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYCDEQaroqDjs9ByjohCj",
+ "id": "seti_1OIlYADEQaroqDjscphkqiJV",
"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 be171bde256..3fae5bd04dd 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_1ODZYFDEQaroqDjscgjzVl2q_secret_P1cnCVxOVZVVlTqDDSdhiediPuPdn84",
- "created": 1010000011,
+ "client_secret": "seti_1OIlYEDEQaroqDjsNHhagenC_secret_P6zX1RHmYCRYZ6POVU2k0gdjthPSNTJ",
+ "created": 1010000013,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYFDEQaroqDjscgjzVl2q",
+ "id": "seti_1OIlYEDEQaroqDjsNHhagenC",
"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 5130e1bbb63..66aab9dba7c 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_1ODZYJDEQaroqDjsL8HomuFP_secret_P1cnT0vLMypYCeoioyi8Y6ZNTya78bI",
- "created": 1010000012,
+ "client_secret": "seti_1OIlYIDEQaroqDjs82kZhmm4_secret_P6zXkc0dDfyJ4q89p33sVRuRi33YkV3",
+ "created": 1010000003,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYJDEQaroqDjsL8HomuFP",
+ "id": "seti_1OIlYIDEQaroqDjs82kZhmm4",
"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 7a429b812d6..cfa775af471 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_1ODZYNDEQaroqDjsoKLPIVXp_secret_P1cnVbwRb4PVlTGilI5AFnhfpIgZJXD",
- "created": 1010000013,
+ "client_secret": "seti_1OIlYLDEQaroqDjsOEBobvSx_secret_P6zXEXkvNBBzTkSRogtwOWuGzQjF9cT",
+ "created": 1010000014,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYNDEQaroqDjsoKLPIVXp",
+ "id": "seti_1OIlYLDEQaroqDjsOEBobvSx",
"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 003a0cd348e..84b8f20d1d7 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_1ODZYRDEQaroqDjsA9oIrupK_secret_P1coUnyjSL9AhvM3BpPushZslsSJMnh",
- "created": 1010000014,
+ "client_secret": "seti_1OIlYPDEQaroqDjsT0XBMIAO_secret_P6zXRlwvZE1WYxnATVzBRKSmY6I4Btd",
+ "created": 1010000015,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYRDEQaroqDjsA9oIrupK",
+ "id": "seti_1OIlYPDEQaroqDjsT0XBMIAO",
"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 1767aa15288..940d1ec6ea9 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_1ODZYVDEQaroqDjsvzRTeAco_secret_P1coWZpzhPeiBcgHGP8mw2M35UA5Tkr",
- "created": 1010000015,
+ "client_secret": "seti_1OIlYTDEQaroqDjsxOeDKR0W_secret_P6zXz0KF8Xlhd3U12c6cr2eGhukO506",
+ "created": 1010000016,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYVDEQaroqDjsvzRTeAco",
+ "id": "seti_1OIlYTDEQaroqDjsxOeDKR0W",
"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 96fb486feae..138b4c8f349 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_1ODZYZDEQaroqDjsDxiuWKvW_secret_P1coEMoVYpSu05fnxxMTSOMDjS3nUC7",
+ "client_secret": "seti_1OIlYXDEQaroqDjsasyuVqSO_secret_P6zXu4pD6ZOlRrBnFA2UlVk0qk7AwsG",
"created": 1010000007,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYZDEQaroqDjsDxiuWKvW",
+ "id": "seti_1OIlYXDEQaroqDjsasyuVqSO",
"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 20586b94448..a9bf455aac1 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_1ODZY4DEQaroqDjsXYmi1Qaj_secret_P1cn3z8wxg4dX4OELSWmMKqwQmAbqti",
+ "client_secret": "seti_1OIlY3DEQaroqDjsI1rkPxX8_secret_P6zXuzLHTOXH7F0pVbjB40tGz0kF3OO",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZY4DEQaroqDjsXYmi1Qaj",
+ "id": "seti_1OIlY3DEQaroqDjsI1rkPxX8",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZY4DEQaroqDjs9bTJ69Fw",
+ "latest_attempt": "setatt_1OIlY3DEQaroqDjsiAt8p9DK",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZY4DEQaroqDjst3BklA3q",
+ "payment_method": "pm_1OIlY3DEQaroqDjslFpuk1CA",
"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 6b056d0b3b1..84bedfe0ac9 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_1ODZY8DEQaroqDjszUtjYi7t_secret_P1cnsrJUa85dR45UVG4YczkGGU2jD84",
+ "client_secret": "seti_1OIlY7DEQaroqDjscXc0vihd_secret_P6zXbc9s4VmN0aVubBb5LJE6rO4yIbt",
"created": 1010000008,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZY8DEQaroqDjszUtjYi7t",
+ "id": "seti_1OIlY7DEQaroqDjscXc0vihd",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZY8DEQaroqDjs6nlaBds3",
+ "latest_attempt": "setatt_1OIlY7DEQaroqDjsver9zO4x",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZY8DEQaroqDjs9CrZJasJ",
+ "payment_method": "pm_1OIlY7DEQaroqDjsWWd7JRsa",
"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 4c06c1f52c9..31f749d0453 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_1ODZYCDEQaroqDjsyActamSC_secret_P1cnBE9OuP3zQA2dIlpnLyAvlgXKjnj",
+ "client_secret": "seti_1OIlYBDEQaroqDjsayuPb42L_secret_P6zXZ34sqGLNS8FsdWaoEJDDbV66gat",
"created": 1010000009,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYCDEQaroqDjsyActamSC",
+ "id": "seti_1OIlYBDEQaroqDjsayuPb42L",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYCDEQaroqDjsP7YDUY4y",
+ "latest_attempt": "setatt_1OIlYBDEQaroqDjsoThPCLkU",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYCDEQaroqDjsrpUcYFid",
+ "payment_method": "pm_1OIlYBDEQaroqDjsjD1cNbBj",
"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 8543cbfd3cd..4e3c375d391 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_1ODZYGDEQaroqDjsNNKZbOe1_secret_P1cnDV8ISpom4gTaKN6nHYm7NeC26mO",
+ "client_secret": "seti_1OIlYFDEQaroqDjsZMK1wCCS_secret_P6zXv6VufSZ7yJ0ftBPxPYebHBWXv45",
"created": 1010000010,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYGDEQaroqDjsNNKZbOe1",
+ "id": "seti_1OIlYFDEQaroqDjsZMK1wCCS",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYGDEQaroqDjsGtEsKAIx",
+ "latest_attempt": "setatt_1OIlYFDEQaroqDjsJIclKZkj",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYGDEQaroqDjsm4ouIeUW",
+ "payment_method": "pm_1OIlYFDEQaroqDjso6F7pFrk",
"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 6ea487f0774..f7a89218b9f 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_1ODZYKDEQaroqDjsrmWSqBvu_secret_P1cnVrRhlrryeRrOzG5V7AXf8cJNM2s",
+ "client_secret": "seti_1OIlYIDEQaroqDjsJ4F5xT2N_secret_P6zXCmce4JGx2y7gAazeOA6fFUL9qfT",
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYKDEQaroqDjsrmWSqBvu",
+ "id": "seti_1OIlYIDEQaroqDjsJ4F5xT2N",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYKDEQaroqDjstrL2e5ru",
+ "latest_attempt": "setatt_1OIlYIDEQaroqDjsswUrR6Ei",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYKDEQaroqDjsker9EuiP",
+ "payment_method": "pm_1OIlYIDEQaroqDjsByOEWq10",
"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 1b2ec91d69d..53a5b60cedf 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_1ODZYODEQaroqDjsqAYF1Jkt_secret_P1cowfDCI5yXF0AxRsYd5YlH58wTleP",
+ "client_secret": "seti_1OIlYMDEQaroqDjsuBdPc3Ot_secret_P6zXi4ZltYanzkBD6qgDWzBIOJcJIyo",
"created": 1010000004,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYODEQaroqDjsqAYF1Jkt",
+ "id": "seti_1OIlYMDEQaroqDjsuBdPc3Ot",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYODEQaroqDjs5611YA19",
+ "latest_attempt": "setatt_1OIlYMDEQaroqDjsNdZgMSup",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYODEQaroqDjsqrgagvFr",
+ "payment_method": "pm_1OIlYMDEQaroqDjsgwTv4ukx",
"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 da9a11c508a..dc89ae1cd1c 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_1ODZYSDEQaroqDjsA51Xnf3B_secret_P1coJgBpFuO0oa8xWyHNnK4ciy67v8v",
+ "client_secret": "seti_1OIlYQDEQaroqDjsFOXhvTmX_secret_P6zXNyadVaSI7Hc6CGsgwRzXmUC789Q",
"created": 1010000005,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYSDEQaroqDjsA51Xnf3B",
+ "id": "seti_1OIlYQDEQaroqDjsFOXhvTmX",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYSDEQaroqDjs8brayQcK",
+ "latest_attempt": "setatt_1OIlYQDEQaroqDjsT1Q7vuyA",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYSDEQaroqDjs0mTTiBeD",
+ "payment_method": "pm_1OIlYQDEQaroqDjs5Yt0Xtvd",
"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 c68ed0c8b33..07bea50a413 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_1ODZYWDEQaroqDjsVePXf39L_secret_P1coztaPJiCsCDBcfyHLllYTBGKsW2a",
+ "client_secret": "seti_1OIlYUDEQaroqDjsH9FUMQ37_secret_P6zXxGRENsfek7fMlA8GzHvkcw8c4LZ",
"created": 1010000006,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYWDEQaroqDjsVePXf39L",
+ "id": "seti_1OIlYUDEQaroqDjsH9FUMQ37",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYWDEQaroqDjst7Lleiwd",
+ "latest_attempt": "setatt_1OIlYUDEQaroqDjsLdvjgjQq",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYWDEQaroqDjslD4xcPaQ",
+ "payment_method": "pm_1OIlYUDEQaroqDjsYOMRzrid",
"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 22b5ac30be2..0fad11f0fd6 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_1ODZYZDEQaroqDjsyZJ5XVCY_secret_P1coKKXmg0cN0eN7I2QwjbC8m4kQ1tJ",
+ "client_secret": "seti_1OIlYXDEQaroqDjsVJrJdmDK_secret_P6zXTGHuBLTj55opifICfuLdJnvBh4W",
"created": 1010000007,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYZDEQaroqDjsyZJ5XVCY",
+ "id": "seti_1OIlYXDEQaroqDjsVJrJdmDK",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYZDEQaroqDjsGpyawhR4",
+ "latest_attempt": "setatt_1OIlYXDEQaroqDjsm1s6QNV7",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYZDEQaroqDjsVOcw9c5t",
+ "payment_method": "pm_1OIlYXDEQaroqDjssam6O1GA",
"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 1c0abf32f85..80ccb8b3b99 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01SkQAe3x7Uak5FrYnunwdIKHCOx8YrVo5vbArfpfr2kzVPm",
+ "id": "cs_test_NORMALIZED01fC8toKjk6clcMqKpwDs8AlkAOdNWqunRv9DsWIFlBQ4WIF",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZY4DEQaroqDjsljiXOaej",
+ "setup_intent": "seti_1OIlY3DEQaroqDjs7JBrt0fk",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED01SkQAe3x7Uak5FrYnunwdIKHCOx8YrVo5vbArfpfr2kzVPm#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01fC8toKjk6clcMqKpwDs8AlkAOdNWqunRv9DsWIFlBQ4WIF#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 6889e1f6488..287fc9a067c 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000008,
+ "created": 1010000011,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02syFoTZ4XspUpQUHtErrZDLM4NpG73dSyWV1g09Z1fE3c6N",
+ "id": "cs_test_NORMALIZED027lpniKLAH9W3NLAvf6uTFGdkAVGAPu8EXEeXRDgJhyznJd",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZY8DEQaroqDjsjrWAY2dl",
+ "setup_intent": "seti_1OIlY6DEQaroqDjsXk7cflCF",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED02syFoTZ4XspUpQUHtErrZDLM4NpG73dSyWV1g09Z1fE3c6N#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED027lpniKLAH9W3NLAvf6uTFGdkAVGAPu8EXEeXRDgJhyznJd#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 c2c1a0edbf1..827e2b27f25 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000009,
+ "created": 1010000012,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED03rSuEwQYKSdh1jOlU7bxRD4nl97Oi9etvpLVNTaiksNm2XO",
+ "id": "cs_test_NORMALIZED03DdVOSmE9kB5ETkSlBTA35UIWeDeLP5AeKjQvfiDP70kwdP",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYCDEQaroqDjs9ByjohCj",
+ "setup_intent": "seti_1OIlYADEQaroqDjscphkqiJV",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED03rSuEwQYKSdh1jOlU7bxRD4nl97Oi9etvpLVNTaiksNm2XO#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03DdVOSmE9kB5ETkSlBTA35UIWeDeLP5AeKjQvfiDP70kwdP#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 3745d39f5f3..5c3e7ce82c9 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000011,
+ "created": 1010000013,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED04JZQ2ORZWSvnQ6gRZKUqYZpXHzmzlz4u9qOJrURjlpMIFBe",
+ "id": "cs_test_NORMALIZED04vslCKsQ5lso6yI9B37WAsx5mAuRVgnyJGVfDvOL1rsbful",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYFDEQaroqDjscgjzVl2q",
+ "setup_intent": "seti_1OIlYEDEQaroqDjsNHhagenC",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED04JZQ2ORZWSvnQ6gRZKUqYZpXHzmzlz4u9qOJrURjlpMIFBe#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED04vslCKsQ5lso6yI9B37WAsx5mAuRVgnyJGVfDvOL1rsbful#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 84112cdd60d..7ab72647b80 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED05LGzvl5NOH85UbOcoI1wmjvTUcDvGv67xoUaUMTk0mzLfFR",
+ "id": "cs_test_NORMALIZED05NfEK86zBzL4RwyN7GW7Dnp6Rdc4XHx7mS8XeRejnSOGPHb",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYJDEQaroqDjsL8HomuFP",
+ "setup_intent": "seti_1OIlYIDEQaroqDjs82kZhmm4",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED05LGzvl5NOH85UbOcoI1wmjvTUcDvGv67xoUaUMTk0mzLfFR#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED05NfEK86zBzL4RwyN7GW7Dnp6Rdc4XHx7mS8XeRejnSOGPHb#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 5d1bdde1624..8b8fad7be7f 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000013,
+ "created": 1010000014,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED06x7aMolOCEnVEbGosnYF8QylrlShlCmqdZssmacVQ0zu0cR",
+ "id": "cs_test_NORMALIZED06Eq22upxX3LWuGPmz2OoBkHeJMAeakxpSn0oidNBMiu9qwo",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYNDEQaroqDjsoKLPIVXp",
+ "setup_intent": "seti_1OIlYLDEQaroqDjsOEBobvSx",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED06x7aMolOCEnVEbGosnYF8QylrlShlCmqdZssmacVQ0zu0cR#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED06Eq22upxX3LWuGPmz2OoBkHeJMAeakxpSn0oidNBMiu9qwo#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 52d8e29171a..f3e931829ca 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000014,
+ "created": 1010000015,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED079hpoIG2yf8TI7HLg0cIyNA41BuizwP0tbZnIc2lCaKnEaC",
+ "id": "cs_test_NORMALIZED07F1Im0gs749qsjYiIQbgq7VdIrGdRw2ek8W1UlqjUSOJpMC",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYRDEQaroqDjsA9oIrupK",
+ "setup_intent": "seti_1OIlYPDEQaroqDjsT0XBMIAO",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED079hpoIG2yf8TI7HLg0cIyNA41BuizwP0tbZnIc2lCaKnEaC#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED07F1Im0gs749qsjYiIQbgq7VdIrGdRw2ek8W1UlqjUSOJpMC#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 948eaa35d67..7fa95ae1b55 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000015,
+ "created": 1010000016,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED08uHoWaY2xL0oCaKjEaQmNyNU5vU4EMaVnBRidNlv02wbmTH",
+ "id": "cs_test_NORMALIZED08cBbEqGvSWc9w6eMg6ktWrp5DXuyYagPTXmMGA7yClWPiqG",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYVDEQaroqDjsvzRTeAco",
+ "setup_intent": "seti_1OIlYTDEQaroqDjsxOeDKR0W",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED08uHoWaY2xL0oCaKjEaQmNyNU5vU4EMaVnBRidNlv02wbmTH#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED08cBbEqGvSWc9w6eMg6ktWrp5DXuyYagPTXmMGA7yClWPiqG#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 1ebd8b1efc0..a3158092cd4 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED09YQJYy5tnNgWeWU8Aun5OIkM4Th1WEAWYL8cKNsb1BCDaOr",
+ "id": "cs_test_NORMALIZED09EopEldaCDeSSApSal167Kadq5CUL2UBzdARmb2Ifc9052I",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYZDEQaroqDjsDxiuWKvW",
+ "setup_intent": "seti_1OIlYXDEQaroqDjsasyuVqSO",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED09YQJYy5tnNgWeWU8Aun5OIkM4Th1WEAWYL8cKNsb1BCDaOr#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED09EopEldaCDeSSApSal167Kadq5CUL2UBzdARmb2Ifc9052I#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 08ebedd2c8c..ca9d10a8a0f 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01SkQAe3x7Uak5FrYnunwdIKHCOx8YrVo5vbArfpfr2kzVPm",
+ "id": "cs_test_NORMALIZED01fC8toKjk6clcMqKpwDs8AlkAOdNWqunRv9DsWIFlBQ4WIF",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZY4DEQaroqDjsljiXOaej",
+ "setup_intent": "seti_1OIlY3DEQaroqDjs7JBrt0fk",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED01SkQAe3x7Uak5FrYnunwdIKHCOx8YrVo5vbArfpfr2kzVPm#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01fC8toKjk6clcMqKpwDs8AlkAOdNWqunRv9DsWIFlBQ4WIF#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 608eba889c3..e9c6a29197e 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000008,
+ "created": 1010000011,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02syFoTZ4XspUpQUHtErrZDLM4NpG73dSyWV1g09Z1fE3c6N",
+ "id": "cs_test_NORMALIZED027lpniKLAH9W3NLAvf6uTFGdkAVGAPu8EXEeXRDgJhyznJd",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZY8DEQaroqDjsjrWAY2dl",
+ "setup_intent": "seti_1OIlY6DEQaroqDjsXk7cflCF",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED02syFoTZ4XspUpQUHtErrZDLM4NpG73dSyWV1g09Z1fE3c6N#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED027lpniKLAH9W3NLAvf6uTFGdkAVGAPu8EXEeXRDgJhyznJd#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 dd484e93573..bd897dd933c 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000009,
+ "created": 1010000012,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED03rSuEwQYKSdh1jOlU7bxRD4nl97Oi9etvpLVNTaiksNm2XO",
+ "id": "cs_test_NORMALIZED03DdVOSmE9kB5ETkSlBTA35UIWeDeLP5AeKjQvfiDP70kwdP",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYCDEQaroqDjs9ByjohCj",
+ "setup_intent": "seti_1OIlYADEQaroqDjscphkqiJV",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED03rSuEwQYKSdh1jOlU7bxRD4nl97Oi9etvpLVNTaiksNm2XO#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03DdVOSmE9kB5ETkSlBTA35UIWeDeLP5AeKjQvfiDP70kwdP#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 b98ca749cdd..3e5064dca9f 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000011,
+ "created": 1010000013,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED04JZQ2ORZWSvnQ6gRZKUqYZpXHzmzlz4u9qOJrURjlpMIFBe",
+ "id": "cs_test_NORMALIZED04vslCKsQ5lso6yI9B37WAsx5mAuRVgnyJGVfDvOL1rsbful",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYFDEQaroqDjscgjzVl2q",
+ "setup_intent": "seti_1OIlYEDEQaroqDjsNHhagenC",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED04JZQ2ORZWSvnQ6gRZKUqYZpXHzmzlz4u9qOJrURjlpMIFBe#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED04vslCKsQ5lso6yI9B37WAsx5mAuRVgnyJGVfDvOL1rsbful#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 f9188f36c5a..4fcdd052ab4 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED05LGzvl5NOH85UbOcoI1wmjvTUcDvGv67xoUaUMTk0mzLfFR",
+ "id": "cs_test_NORMALIZED05NfEK86zBzL4RwyN7GW7Dnp6Rdc4XHx7mS8XeRejnSOGPHb",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYJDEQaroqDjsL8HomuFP",
+ "setup_intent": "seti_1OIlYIDEQaroqDjs82kZhmm4",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED05LGzvl5NOH85UbOcoI1wmjvTUcDvGv67xoUaUMTk0mzLfFR#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED05NfEK86zBzL4RwyN7GW7Dnp6Rdc4XHx7mS8XeRejnSOGPHb#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 20fd878ed15..89dfc82f3a3 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000013,
+ "created": 1010000014,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED06x7aMolOCEnVEbGosnYF8QylrlShlCmqdZssmacVQ0zu0cR",
+ "id": "cs_test_NORMALIZED06Eq22upxX3LWuGPmz2OoBkHeJMAeakxpSn0oidNBMiu9qwo",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYNDEQaroqDjsoKLPIVXp",
+ "setup_intent": "seti_1OIlYLDEQaroqDjsOEBobvSx",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED06x7aMolOCEnVEbGosnYF8QylrlShlCmqdZssmacVQ0zu0cR#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED06Eq22upxX3LWuGPmz2OoBkHeJMAeakxpSn0oidNBMiu9qwo#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 834d4906ccd..1ebbb32ae3c 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000014,
+ "created": 1010000015,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED079hpoIG2yf8TI7HLg0cIyNA41BuizwP0tbZnIc2lCaKnEaC",
+ "id": "cs_test_NORMALIZED07F1Im0gs749qsjYiIQbgq7VdIrGdRw2ek8W1UlqjUSOJpMC",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYRDEQaroqDjsA9oIrupK",
+ "setup_intent": "seti_1OIlYPDEQaroqDjsT0XBMIAO",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED079hpoIG2yf8TI7HLg0cIyNA41BuizwP0tbZnIc2lCaKnEaC#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED07F1Im0gs749qsjYiIQbgq7VdIrGdRw2ek8W1UlqjUSOJpMC#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 372f6abe1f2..226a6c3345a 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000015,
+ "created": 1010000016,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED08uHoWaY2xL0oCaKjEaQmNyNU5vU4EMaVnBRidNlv02wbmTH",
+ "id": "cs_test_NORMALIZED08cBbEqGvSWc9w6eMg6ktWrp5DXuyYagPTXmMGA7yClWPiqG",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYVDEQaroqDjsvzRTeAco",
+ "setup_intent": "seti_1OIlYTDEQaroqDjsxOeDKR0W",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED08uHoWaY2xL0oCaKjEaQmNyNU5vU4EMaVnBRidNlv02wbmTH#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED08cBbEqGvSWc9w6eMg6ktWrp5DXuyYagPTXmMGA7yClWPiqG#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 d2a71166286..960b6635b25 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED09YQJYy5tnNgWeWU8Aun5OIkM4Th1WEAWYL8cKNsb1BCDaOr",
+ "id": "cs_test_NORMALIZED09EopEldaCDeSSApSal167Kadq5CUL2UBzdARmb2Ifc9052I",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYZDEQaroqDjsDxiuWKvW",
+ "setup_intent": "seti_1OIlYXDEQaroqDjsasyuVqSO",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED09YQJYy5tnNgWeWU8Aun5OIkM4Th1WEAWYL8cKNsb1BCDaOr#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED09EopEldaCDeSSApSal167Kadq5CUL2UBzdARmb2Ifc9052I#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 39c35a15ad0..ae408bfb7a7 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_1ODZYeDEQaroqDjsiczVrzIf",
+ "default_payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"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 75c6c4af6ca..014bb2d2214 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "id": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"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 75c6c4af6ca..014bb2d2214 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "id": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"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 75c6c4af6ca..014bb2d2214 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "id": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"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 75c6c4af6ca..014bb2d2214 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "id": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"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 74bd0b9a57a..6ee77cb0e3d 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "id": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"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 4414bd295ad..36b5768d631 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_1ODZYeDEQaroqDjsiczVrzIf",
+ "default_payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1ODZYgDEQaroqDjsA4EZR0J7",
+ "id": "evt_1OIlYeDEQaroqDjsbovUrvAJ",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "0b6fc68e-0653-4561-a42f-0b56f9685d1d"
+ "idempotency_key": "16c4e76a-b42f-4a7a-b85e-909436f663ec"
},
"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 41ed2e0d36c..208f880bf42 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
@@ -61,6 +61,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJG136oGMgaO4NAcEAI6LBaWsqvhjMrgT0C-XSEhYeCqTjXco9BNDHpkcRt0jEBuM1NFGCS-3gV1Ds3m",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJf7qqsGMgbiQBc5a8U6LBYuVFCKupiJv3kQfNP-aWwcglskg3ZPMzXTfrd628_xUEmIbRxh6_5Z8Gkh",
"refunded": false,
"refunds": {
"data": [],
@@ -149,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_qvTQwFeUGFHioomGXmk4BEHJh",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_lPtBm9Fq4P50TTE425LSOE6t6",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -165,6 +167,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZYiDEQaroqDjs1olDaYOI",
+ "id": "evt_3OIlYgDEQaroqDjs0DDp03Lk",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "42824012-ed60-4267-8c54-8f1dd1b8a31a"
+ "idempotency_key": "47d13618-c555-4264-8b5f-a556378a59a7"
},
"type": "payment_intent.succeeded"
},
@@ -258,6 +261,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -279,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -290,7 +294,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -319,9 +323,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJG136oGMgZW6cpEcEg6LBYOccF_Is5ledDbNV3abm6wCVv99_YAdsx8u2tjYsUWTDVkN95m0baOq8q4",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJf7qqsGMgb-0s6WQHo6LBbrRoHgTdAGEIQhEJbfkXI_wY281fm3fr4PRUwgCfbq1gj8ihAXKHMfuH9Z",
"refunded": false,
"refunds": {
"data": [],
@@ -341,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZYiDEQaroqDjs1scjNopF",
+ "id": "evt_3OIlYgDEQaroqDjs03lav5iM",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "42824012-ed60-4267-8c54-8f1dd1b8a31a"
+ "idempotency_key": "47d13618-c555-4264-8b5f-a556378a59a7"
},
"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 8bff647b0e0..5488f305e71 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNvOFR5c1BsWVk5MGxEdGZLTXFnME1MMDJrcDYwLDkwNzk3MjAz0200f1hhZu0B?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTY50200OdKtGhF8?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNvOFR5c1BsWVk5MGxEdGZLTXFnME1MMDJrcDYwLDkwNzk3MjAz0200f1hhZu0B/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTY50200OdKtGhF8/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1ODZYlDEQaroqDjs3cdnpHHN",
+ "id": "evt_1OIlYjDEQaroqDjsWh7YgsgD",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "7b75fe12-4954-4686-9c14-b6cd98acdce3"
+ "idempotency_key": "b3b87a1a-a3f1-47d4-ab2c-c9fa3c7fc7ea"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZYlDEQaroqDjsYamIAqgE",
+ "id": "evt_1OIlYjDEQaroqDjs682MdV5W",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "6e6734ec-3e68-4273-863d-b4ba3078c496"
+ "idempotency_key": "3d37efdb-1b25-48d7-a3cd-753a5319afaf"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1ODZYkDEQaroqDjsZwF5mIIM",
+ "id": "evt_1OIlYiDEQaroqDjsLpmipImC",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "ea2a81da-9a89-479e-816b-4b4948d78208"
+ "idempotency_key": "1332a22f-e14c-4cb3-8c1a-de3348683c97"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1ODZYkDEQaroqDjsQ4KCj2jb",
+ "id": "evt_1OIlYiDEQaroqDjsf6YAJN3b",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "7c8cce5e-8213-4683-851d-94aede856383"
+ "idempotency_key": "47031612-0221-4fa1-888f-6463e556fe30"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "default_payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1ODZYkDEQaroqDjsootSbU1N",
+ "id": "evt_1OIlYiDEQaroqDjsqbJCOUbT",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "7c8cce5e-8213-4683-851d-94aede856383"
+ "idempotency_key": "47031612-0221-4fa1-888f-6463e556fe30"
},
"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 1b373caeb8e..f5a2ca6913d 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNvOFR5c1BsWVk5MGxEdGZLTXFnME1MMDJrcDYwLDkwNzk3MjA00200h0poKs6S?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTcw0200fJhsoiPH?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNvOFR5c1BsWVk5MGxEdGZLTXFnME1MMDJrcDYwLDkwNzk3MjA00200h0poKs6S/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTcw0200fJhsoiPH/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZYmDEQaroqDjsbbfpjK0M",
+ "id": "evt_1OIlYkDEQaroqDjskos3h0sR",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "7b75fe12-4954-4686-9c14-b6cd98acdce3"
+ "idempotency_key": "b3b87a1a-a3f1-47d4-ab2c-c9fa3c7fc7ea"
},
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNvOFR5c1BsWVk5MGxEdGZLTXFnME1MMDJrcDYwLDkwNzk3MjAz0200f1hhZu0B?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTcw0200fJhsoiPH?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNvOFR5c1BsWVk5MGxEdGZLTXFnME1MMDJrcDYwLDkwNzk3MjAz0200f1hhZu0B/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTcw0200fJhsoiPH/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -436,13 +436,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZYlDEQaroqDjs0dLa7QRL",
+ "id": "evt_1OIlYkDEQaroqDjsMhATYN7m",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "7b75fe12-4954-4686-9c14-b6cd98acdce3"
+ "idempotency_key": "b3b87a1a-a3f1-47d4-ab2c-c9fa3c7fc7ea"
},
"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 529b0e61917..e6f526cea82 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNvOFR5c1BsWVk5MGxEdGZLTXFnME1MMDJrcDYwLDkwNzk3MjA00200h0poKs6S?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTcw0200fJhsoiPH?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNvOFR5c1BsWVk5MGxEdGZLTXFnME1MMDJrcDYwLDkwNzk3MjA00200h0poKs6S/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTcw0200fJhsoiPH/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZYmDEQaroqDjsZCRgID9m",
+ "id": "evt_1OIlYkDEQaroqDjszXd8ZteW",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "7b75fe12-4954-4686-9c14-b6cd98acdce3"
+ "idempotency_key": "b3b87a1a-a3f1-47d4-ab2c-c9fa3c7fc7ea"
},
"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 138a31000a1..3630d80bf3c 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNvOFR5c1BsWVk5MGxEdGZLTXFnME1MMDJrcDYwLDkwNzk3MjAz0200f1hhZu0B?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTY50200OdKtGhF8?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNvOFR5c1BsWVk5MGxEdGZLTXFnME1MMDJrcDYwLDkwNzk3MjAz0200f1hhZu0B/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpYZWJycUNIRHVJSHg4ZmM1eWdpRzhDb1ozcmtJLDkyMDM0OTY50200OdKtGhF8/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 1f4c48d0691..3933fe0f772 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
@@ -55,6 +55,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJG136oGMgZ-opto9Z86LBYonnc9st7QkC36Znml7bGbAPKLy3yiXUA6AN4KAZdtUiyMBgG-q8XKZBiH",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJf7qqsGMgZon60y6Go6LBYP3psdkk3c3LqFeed3oQoe1slzgJ_34uLbPRQF3584QRPm0pWhUub4ZLOY",
"refunded": false,
"refunds": {
"data": [],
@@ -143,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_qvTQwFeUGFHioomGXmk4BEHJh",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_lPtBm9Fq4P50TTE425LSOE6t6",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -159,6 +161,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"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 82f66f8a437..9172056ad95 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_1ODZYeDEQaroqDjs9e6fjHc6_secret_P1colWNC35WzXSZLTA41nEeQNs6MKFe",
+ "client_secret": "seti_1OIlYcDEQaroqDjswKgMVMNg_secret_P6zX200dM0ToyOau16KiLRZIVTSzhhX",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYeDEQaroqDjs9e6fjHc6",
+ "id": "seti_1OIlYcDEQaroqDjswKgMVMNg",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYeDEQaroqDjsC4elXXo5",
+ "latest_attempt": "setatt_1OIlYcDEQaroqDjsly1RVq0m",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"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 5790c01dbb8..e7750432e9d 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_1ODZYdDEQaroqDjsAW84g6pW_secret_P1codVp6X3MPBW6PpP2WwvgVCPIikRY",
+ "client_secret": "seti_1OIlYcDEQaroqDjsD1mM0vsH_secret_P6zXgCBhxHQemG2cqgySOfsCnimYU4W",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYdDEQaroqDjsAW84g6pW",
+ "id": "seti_1OIlYcDEQaroqDjsD1mM0vsH",
"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 82f66f8a437..9172056ad95 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_1ODZYeDEQaroqDjs9e6fjHc6_secret_P1colWNC35WzXSZLTA41nEeQNs6MKFe",
+ "client_secret": "seti_1OIlYcDEQaroqDjswKgMVMNg_secret_P6zX200dM0ToyOau16KiLRZIVTSzhhX",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZYeDEQaroqDjs9e6fjHc6",
+ "id": "seti_1OIlYcDEQaroqDjswKgMVMNg",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZYeDEQaroqDjsC4elXXo5",
+ "latest_attempt": "setatt_1OIlYcDEQaroqDjsly1RVq0m",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZYeDEQaroqDjsiczVrzIf",
+ "payment_method": "pm_1OIlYcDEQaroqDjsaErHQmA2",
"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 08d024d43e8..1fdeed88cec 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02mHVWCRf2Qyqf6qvbyMZbNQsVKqhRHcv3nwbgLN94F7h0LK",
+ "id": "cs_test_NORMALIZED0252VTeqfSfhQEjGBWtpuvm0PdO0duTGzHMImHbzOECbRr8C",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYdDEQaroqDjsAW84g6pW",
+ "setup_intent": "seti_1OIlYcDEQaroqDjsD1mM0vsH",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED02mHVWCRf2Qyqf6qvbyMZbNQsVKqhRHcv3nwbgLN94F7h0LK#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED0252VTeqfSfhQEjGBWtpuvm0PdO0duTGzHMImHbzOECbRr8C#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 48b8e64f317..ccfc8970a8c 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02mHVWCRf2Qyqf6qvbyMZbNQsVKqhRHcv3nwbgLN94F7h0LK",
+ "id": "cs_test_NORMALIZED0252VTeqfSfhQEjGBWtpuvm0PdO0duTGzHMImHbzOECbRr8C",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZYdDEQaroqDjsAW84g6pW",
+ "setup_intent": "seti_1OIlYcDEQaroqDjsD1mM0vsH",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED02mHVWCRf2Qyqf6qvbyMZbNQsVKqhRHcv3nwbgLN94F7h0LK#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED0252VTeqfSfhQEjGBWtpuvm0PdO0duTGzHMImHbzOECbRr8C#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"has_more": true,
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 923bb85e6ed..19dace7f4c8 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": 7200,
+ "amount_due": 960000,
"amount_paid": 0,
- "amount_remaining": 7200,
+ "amount_remaining": 960000,
"amount_shipping": 0,
"application": null,
"application_fee_amount": null,
@@ -29,7 +29,7 @@
"custom_fields": null,
"customer": "cus_NORMALIZED0002",
"customer_address": null,
- "customer_email": "[email protected]",
+ "customer_email": "[email protected]",
"customer_name": null,
"customer_phone": null,
"customer_shipping": null,
@@ -46,18 +46,18 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNiamVvamNtMWo5Q3I4RVR0cDNxZmxlSjlYeFlULDkwNzk2NDYw02005SuvDQni?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpMSlFpamJ6ejdlcjJqM3BJRmNvcnloelVsaDVZLDkyMDM0ODcz0200jA0q3ZOP?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNiamVvamNtMWo5Q3I4RVR0cDNxZmxlSjlYeFlULDkwNzk2NDYw02005SuvDQni/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpMSlFpamJ6ejdlcjJqM3BJRmNvcnloelVsaDVZLDkyMDM0ODcz0200jA0q3ZOP/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
"data": [
{
- "amount": 14400,
- "amount_excluding_tax": 14400,
+ "amount": 960000,
+ "amount_excluding_tax": 960000,
"currency": "usd",
- "description": "Zulip Plus - renewal",
+ "description": "Zulip Cloud Standard - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
@@ -67,8 +67,8 @@
"metadata": {},
"object": "line_item",
"period": {
- "end": 1000000000,
- "start": 1000000000
+ "end": 1420167845,
+ "start": 1388631845
},
"plan": null,
"price": {
@@ -89,19 +89,19 @@
"tiers_mode": null,
"transform_quantity": null,
"type": "one_time",
- "unit_amount": 1600,
- "unit_amount_decimal": "1600"
+ "unit_amount": 8000,
+ "unit_amount_decimal": "8000"
},
"proration": false,
"proration_details": {
"credited_items": null
},
- "quantity": 9,
+ "quantity": 120,
"subscription": null,
"tax_amounts": [],
"tax_rates": [],
"type": "invoiceitem",
- "unit_amount_excluding_tax": "1600"
+ "unit_amount_excluding_tax": "8000"
}
],
"has_more": false,
@@ -138,8 +138,8 @@
"rendering_options": null,
"shipping_cost": null,
"shipping_details": null,
- "starting_balance": -7200,
- "statement_descriptor": "Zulip Plus",
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
"status": "open",
"status_transitions": {
"finalized_at": 1000000000,
@@ -151,19 +151,19 @@
"subscription_details": {
"metadata": null
},
- "subtotal": 14400,
- "subtotal_excluding_tax": 14400,
+ "subtotal": 960000,
+ "subtotal_excluding_tax": 960000,
"tax": null,
"test_clock": null,
- "total": 14400,
+ "total": 960000,
"total_discount_amounts": [],
- "total_excluding_tax": 14400,
+ "total_excluding_tax": 960000,
"total_tax_amounts": [],
"transfer_data": null,
"webhooks_delivered_at": 1000000000
}
},
- "id": "evt_1ODZMmDEQaroqDjsNuCDHeFl",
+ "id": "evt_1OIlXBDEQaroqDjsZj40mhUl",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
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 b1ce9383d78..93aabbe472a 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_NORMALIZED0003",
+ "product": "prod_NORMALIZED0001",
"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 49ee76cadd1..51f315c4a44 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNubnI5aW40RElsVndNQTdkV0htSnhQalo4ZU5lLDkwNzk3MTIy0200MkrYOhi9?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXdk1Fa2l6QlhHMnRYWEt4SUl0TVdmSXVXQWFJLDkyMDM0ODg102007TAYYszu?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNubnI5aW40RElsVndNQTdkV0htSnhQalo4ZU5lLDkwNzk3MTIy0200MkrYOhi9/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXdk1Fa2l6QlhHMnRYWEt4SUl0TVdmSXVXQWFJLDkyMDM0ODg102007TAYYszu/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 cfeb099ec36..34440d9e5d1 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuTU1vd2EwbUhvOXNCcHMwYWE5MWVrOXZVcXRCLDkwNzk3MTI00200Qs766B5s?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXSlZNMzlORzdKM082SGxxeHFEdlQyWmxidE9wLDkyMDM0ODg202001QHHgtkQ?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuTU1vd2EwbUhvOXNCcHMwYWE5MWVrOXZVcXRCLDkwNzk3MTI00200Qs766B5s/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXSlZNMzlORzdKM082SGxxeHFEdlQyWmxidE9wLDkyMDM0ODg202001QHHgtkQ/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -77,7 +77,7 @@
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0003",
+ "product": "prod_NORMALIZED0001",
"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 c3887e6f03f..40ad50b5b76 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuTU1vd2EwbUhvOXNCcHMwYWE5MWVrOXZVcXRCLDkwNzk3MTI10200kJYsOWcJ?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXSlZNMzlORzdKM082SGxxeHFEdlQyWmxidE9wLDkyMDM0ODg30200W4jEILR6?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuTU1vd2EwbUhvOXNCcHMwYWE5MWVrOXZVcXRCLDkwNzk3MTI10200kJYsOWcJ/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXSlZNMzlORzdKM082SGxxeHFEdlQyWmxidE9wLDkyMDM0ODg30200W4jEILR6/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -79,7 +79,7 @@
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_NORMALIZED0003",
+ "product": "prod_NORMALIZED0001",
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNubnI5aW40RElsVndNQTdkV0htSnhQalo4ZU5lLDkwNzk3MTI10200kvxUO7KR?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXdk1Fa2l6QlhHMnRYWEt4SUl0TVdmSXVXQWFJLDkyMDM0ODg30200cTdiVImm?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNubnI5aW40RElsVndNQTdkV0htSnhQalo4ZU5lLDkwNzk3MTI10200kvxUO7KR/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXdk1Fa2l6QlhHMnRYWEt4SUl0TVdmSXVXQWFJLDkyMDM0ODg30200cTdiVImm/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 1ae1623514e..50b93cb3014 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_NORMALIZED0003",
+ "product": "prod_NORMALIZED0001",
"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 201b5654d89..6fe329adf0a 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_1ODZZDDEQaroqDjsy9N9L24T",
+ "default_payment_method": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
"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 d8add9769b3..d0cc6f95e65 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZZDDEQaroqDjsy9N9L24T",
+ "id": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
"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 d8add9769b3..d0cc6f95e65 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZZDDEQaroqDjsy9N9L24T",
+ "id": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
"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 d8add9769b3..d0cc6f95e65 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZZDDEQaroqDjsy9N9L24T",
+ "id": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
"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 d8add9769b3..d0cc6f95e65 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZZDDEQaroqDjsy9N9L24T",
+ "id": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
"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 d8add9769b3..d0cc6f95e65 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZZDDEQaroqDjsy9N9L24T",
+ "id": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
"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 d8add9769b3..09228beb67b 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.7.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.7.json
@@ -2,8 +2,8 @@
"address": null,
"balance": 0,
"created": 1010000001,
- "currency": null,
- "default_currency": null,
+ "currency": "usd",
+ "default_currency": "usd",
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZZDDEQaroqDjsy9N9L24T",
+ "id": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -69,7 +69,7 @@
"realm_str": "zulip"
},
"name": null,
- "next_invoice_sequence": 1,
+ "next_invoice_sequence": 4,
"object": "customer",
"phone": null,
"preferred_locales": [],
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.8.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.8.json
deleted file mode 100644
index 1533b749e37..00000000000
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Customer.retrieve.8.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1010000001,
- "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": {
- "billing_details": {
- "address": {
- "city": null,
- "country": null,
- "line1": null,
- "line2": null,
- "postal_code": null,
- "state": null
- },
- "email": null,
- "name": null,
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": null,
- "address_postal_code_check": null,
- "cvc_check": "pass"
- },
- "country": "US",
- "exp_month": 11,
- "exp_year": 2024,
- "fingerprint": "NORMALIZED000001",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1010000002,
- "customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZZDDEQaroqDjsy9N9L24T",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
- },
- "name": null,
- "next_invoice_sequence": 4,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json
index 15d833029cd..f1fdca12499 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNvanlXeXBJNVVrUmN2UUxBeDJrUzdRVXNXNFI5LDkwNzk3MjI30200vRYyGUVn?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNvanlXeXBJNVVrUmN2UUxBeDJrUzdRVXNXNFI5LDkwNzk3MjI30200vRYyGUVn/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZTkpDcjdpWEVrTGdZUFFWZk42SUJKdllpUEk2LDkyMDM0OTky0200IaGGbUv3/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -160,16 +160,16 @@
"total_excluding_tax": 10000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1000000000
+ "webhooks_delivered_at": null
}
},
- "id": "evt_1ODZZ9DEQaroqDjsVhyXYGlH",
+ "id": "evt_1OIlZ7DEQaroqDjsPADdJtqu",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "0b8cc064-2230-4579-9344-6b5f6283f29e"
+ "idempotency_key": "b92622db-e8a6-4391-bef3-25311d9b3f2c"
},
"type": "invoice.finalized"
}
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 86ae83a39b0..4305b8b2ad6 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
@@ -19,7 +19,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODZZDDEQaroqDjsy9N9L24T",
+ "default_payment_method": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1ODZZFDEQaroqDjs9q7kqahP",
+ "id": "evt_1OIlZDDEQaroqDjsj03LszoQ",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "fee1ffe0-8f58-4217-9047-8d1073e34013"
+ "idempotency_key": "7774c77e-961e-422d-a91c-49f2cf4f9df1"
},
"type": "customer.updated"
}
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 4828b8e9dce..8af17d38e7b 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNveGhadzc4RHZzVnAyQXU5NUVGeUZiNVJwRlh0LDkwNzk3MjM40200Y1e9HcMc?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA00200new8HKrD?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNveGhadzc4RHZzVnAyQXU5NUVGeUZiNVJwRlh0LDkwNzk3MjM40200Y1e9HcMc/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA00200new8HKrD/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 9670d07f714..99a17e76ad3 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwRHJmVDlLS3ROclA3VGJRaUUySXlpY0UxQ0d2LDkwNzk3MjQw0200byW1n7IF?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZaHZuZHJyZmk1Vjg5dllMRjFKS0xxMXpHU1AxLDkyMDM1MDA20200WnXtFjic?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwRHJmVDlLS3ROclA3VGJRaUUySXlpY0UxQ0d2LDkwNzk3MjQw0200byW1n7IF/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZaHZuZHJyZmk1Vjg5dllMRjFKS0xxMXpHU1AxLDkyMDM1MDA20200WnXtFjic/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 be05bd59758..0cb5e2bdb1b 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
@@ -40,9 +40,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwZDNzc2xzWWl4clkwT3Q5cDBRMHNzTVdmVm1xLDkwNzk3MjQz0200l5bqxewU?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQkFMemo0ZG5LdkMwNTdERlRNQ0VTdXFDbEhaLDkyMDM1MDA40200EuxAU45Q?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwZDNzc2xzWWl4clkwT3Q5cDBRMHNzTVdmVm1xLDkwNzk3MjQz0200l5bqxewU/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQkFMemo0ZG5LdkMwNTdERlRNQ0VTdXFDbEhaLDkyMDM1MDA40200EuxAU45Q/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 3b531a004e0..8374bf0ba09 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNveGhadzc4RHZzVnAyQXU5NUVGeUZiNVJwRlh0LDkwNzk3MjM50200sOImbstn?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA00200new8HKrD?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNveGhadzc4RHZzVnAyQXU5NUVGeUZiNVJwRlh0LDkwNzk3MjM50200sOImbstn/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA00200new8HKrD/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 3b531a004e0..a6036de99e9 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNveGhadzc4RHZzVnAyQXU5NUVGeUZiNVJwRlh0LDkwNzk3MjM50200sOImbstn?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA00200new8HKrD?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNveGhadzc4RHZzVnAyQXU5NUVGeUZiNVJwRlh0LDkwNzk3MjM50200sOImbstn/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA00200new8HKrD/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -156,7 +156,7 @@
"total_excluding_tax": 120000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.6.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.6.json
index b02ea3a084e..744c5dd5372 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwRHJmVDlLS3ROclA3VGJRaUUySXlpY0UxQ0d2LDkwNzk3MjQx0200A6YQK1tB?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZaHZuZHJyZmk1Vjg5dllMRjFKS0xxMXpHU1AxLDkyMDM1MDA20200WnXtFjic?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwRHJmVDlLS3ROclA3VGJRaUUySXlpY0UxQ0d2LDkwNzk3MjQx0200A6YQK1tB/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZaHZuZHJyZmk1Vjg5dllMRjFKS0xxMXpHU1AxLDkyMDM1MDA20200WnXtFjic/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNveGhadzc4RHZzVnAyQXU5NUVGeUZiNVJwRlh0LDkwNzk3MjQx0200i6l60Ehk?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA20200qnnJXJgu?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNveGhadzc4RHZzVnAyQXU5NUVGeUZiNVJwRlh0LDkwNzk3MjQx0200i6l60Ehk/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA20200qnnJXJgu/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 51de7df7e0c..7613fa737ba 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
@@ -42,9 +42,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwZDNzc2xzWWl4clkwT3Q5cDBRMHNzTVdmVm1xLDkwNzk3MjQz0200l5bqxewU?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQkFMemo0ZG5LdkMwNTdERlRNQ0VTdXFDbEhaLDkyMDM1MDA40200EuxAU45Q?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwZDNzc2xzWWl4clkwT3Q5cDBRMHNzTVdmVm1xLDkwNzk3MjQz0200l5bqxewU/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQkFMemo0ZG5LdkMwNTdERlRNQ0VTdXFDbEhaLDkyMDM1MDA40200EuxAU45Q/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwRHJmVDlLS3ROclA3VGJRaUUySXlpY0UxQ0d2LDkwNzk3MjQz0200P8WRLPwd?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZaHZuZHJyZmk1Vjg5dllMRjFKS0xxMXpHU1AxLDkyMDM1MDA40200pIqSO0U7?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwRHJmVDlLS3ROclA3VGJRaUUySXlpY0UxQ0d2LDkwNzk3MjQz0200P8WRLPwd/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZaHZuZHJyZmk1Vjg5dllMRjFKS0xxMXpHU1AxLDkyMDM1MDA40200pIqSO0U7/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNveGhadzc4RHZzVnAyQXU5NUVGeUZiNVJwRlh0LDkwNzk3MjQz02006iIbCg1m?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA40200v138J2rF?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNveGhadzc4RHZzVnAyQXU5NUVGeUZiNVJwRlh0LDkwNzk3MjQz02006iIbCg1m/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQ0xOalU3MHBLS0hZYnBOa0h6TExEbXN5dmxMLDkyMDM1MDA40200v138J2rF/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 252871e3d1c..752be0b78a0 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_1ODZZDDEQaroqDjshPWiIDmB_secret_P1co7GOOMI1qMYC7UnFppZbYxPwDRcw",
+ "client_secret": "seti_1OIlZBDEQaroqDjsIVy8MdR4_secret_P6zYGFV8Apc49Nk5ujtFQmdFXUivAGZ",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZZDDEQaroqDjshPWiIDmB",
+ "id": "seti_1OIlZBDEQaroqDjsIVy8MdR4",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZZDDEQaroqDjsd73u0g05",
+ "latest_attempt": "setatt_1OIlZBDEQaroqDjsE9WoNdc8",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZZDDEQaroqDjsy9N9L24T",
+ "payment_method": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
"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 192f1e48137..587e6ee4c9c 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_1ODZZDDEQaroqDjs86NpDvsN_secret_P1coATg2bExfOZOVSok6GD5GXUxE7qZ",
- "created": 1010000002,
+ "client_secret": "seti_1OIlZADEQaroqDjsgS0itDYJ_secret_P6zYYlQ937zNt0xnff3IWCdXA0ocrxe",
+ "created": 1010000001,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZZDDEQaroqDjs86NpDvsN",
+ "id": "seti_1OIlZADEQaroqDjsgS0itDYJ",
"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 252871e3d1c..752be0b78a0 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_1ODZZDDEQaroqDjshPWiIDmB_secret_P1co7GOOMI1qMYC7UnFppZbYxPwDRcw",
+ "client_secret": "seti_1OIlZBDEQaroqDjsIVy8MdR4_secret_P6zYGFV8Apc49Nk5ujtFQmdFXUivAGZ",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZZDDEQaroqDjshPWiIDmB",
+ "id": "seti_1OIlZBDEQaroqDjsIVy8MdR4",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZZDDEQaroqDjsd73u0g05",
+ "latest_attempt": "setatt_1OIlZBDEQaroqDjsE9WoNdc8",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZZDDEQaroqDjsy9N9L24T",
+ "payment_method": "pm_1OIlZBDEQaroqDjsB8LIC1Gg",
"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 d3f7268e61b..d4a4dfbcfc7 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000002,
+ "created": 1010000001,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02l34FnA2jpyIRTkan1exA0CUZbDnrZCfTzRfPuxlVmqeJXA",
+ "id": "cs_test_NORMALIZED024olEYE61f3AtjwK0Yqph7wiof9QKhAkbbRaHn3iJuIxY3j",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZZDDEQaroqDjs86NpDvsN",
+ "setup_intent": "seti_1OIlZADEQaroqDjsgS0itDYJ",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED02l34FnA2jpyIRTkan1exA0CUZbDnrZCfTzRfPuxlVmqeJXA#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED024olEYE61f3AtjwK0Yqph7wiof9QKhAkbbRaHn3iJuIxY3j#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 fcab5caab4e..2179f0fa282 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000002,
+ "created": 1010000001,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02l34FnA2jpyIRTkan1exA0CUZbDnrZCfTzRfPuxlVmqeJXA",
+ "id": "cs_test_NORMALIZED024olEYE61f3AtjwK0Yqph7wiof9QKhAkbbRaHn3iJuIxY3j",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZZDDEQaroqDjs86NpDvsN",
+ "setup_intent": "seti_1OIlZADEQaroqDjsgS0itDYJ",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED02l34FnA2jpyIRTkan1exA0CUZbDnrZCfTzRfPuxlVmqeJXA#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED024olEYE61f3AtjwK0Yqph7wiof9QKhAkbbRaHn3iJuIxY3j#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 84cda8a96d0..065ca5ac235 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json
@@ -5,53 +5,173 @@
"created": 1010000002,
"data": {
"object": {
- "address": null,
- "balance": 0,
+ "account_country": "US",
+ "account_name": "Kandra Labs, Inc.",
+ "account_tax_ids": null,
+ "amount_due": 152000,
+ "amount_paid": 0,
+ "amount_remaining": 152000,
+ "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": 1010000003,
- "currency": null,
- "default_currency": null,
+ "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,
- "delinquent": false,
- "description": "zulip (Zulip Dev)",
+ "default_tax_rates": [],
+ "description": null,
"discount": null,
- "email": "[email protected]",
- "id": "cus_NORMALIZED0002",
- "invoice_prefix": "NORMA02",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_1ODZZRDEQaroqDjsrQSLSUaJ",
- "footer": null,
- "rendering_options": 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQkFMemo0ZG5LdkMwNTdERlRNQ0VTdXFDbEhaLDkyMDM1MDA40200EuxAU45Q?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQkFMemo0ZG5LdkMwNTdERlRNQ0VTdXFDbEhaLDkyMDM1MDA40200EuxAU45Q/pdf?s=ap",
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 152000,
+ "amount_excluding_tax": 152000,
+ "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": 1393729445,
+ "start": 1362193445
+ },
+ "plan": null,
+ "price": {
+ "active": false,
+ "billing_scheme": "per_unit",
+ "created": 1010000004,
+ "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": 19,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "8000"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
+ "metadata": {},
+ "next_payment_attempt": 1000000000,
+ "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
},
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
- },
- "previous_attributes": {
- "invoice_settings": {
- "default_payment_method": null
- }
+ "subtotal": 152000,
+ "subtotal_excluding_tax": 152000,
+ "tax": null,
+ "test_clock": null,
+ "total": 152000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 152000,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
}
},
- "id": "evt_1ODZZTDEQaroqDjsBshgdIJc",
+ "id": "evt_1OIlZMDEQaroqDjsBk3FnrxJ",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "5e353503-ef30-46b4-bfeb-f5428920ad7b"
+ "idempotency_key": "eb135c2f-8386-48ef-ba95-7c9a423c0921"
},
- "type": "customer.updated"
+ "type": "invoice.finalized"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json
index 80917be3234..98f29fc3b54 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1010000004,
+ "created": 1010000005,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -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_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,7 +68,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -101,7 +101,7 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.2.json
index 96923ae25ef..f1fb6398d83 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.2.json
@@ -41,7 +41,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "in_NORMALIZED00000000000002",
+ "id": "in_NORMALIZED00000000000003",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,7 +68,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -101,7 +101,7 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000003/lines"
},
"livemode": false,
"metadata": {},
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 6865f52430e..5e3e6fe7540 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
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1010000004,
+ "created": 1010000005,
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwQ2tsa2g4bGdNeVo4UjJlS0tPbEdtOHJnalhNLDkwNzk3MjUz0200je1KzTmF?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwQ2tsa2g4bGdNeVo4UjJlS0tPbEdtOHJnalhNLDkwNzk3MjUz0200je1KzTmF/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEy0200KdXnnCls?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEy0200KdXnnCls/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_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,7 +68,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -101,17 +101,17 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "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": false,
"paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
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 07e6e87765a..c9c12c94676 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwb3RmU2JBVkhwdVpmVzJ5QmNXeTVjZjhGQ1pHLDkwNzk3MjU20200An3wRXZr?s=ap",
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwb3RmU2JBVkhwdVpmVzJ5QmNXeTVjZjhGQ1pHLDkwNzk3MjU20200An3wRXZr/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZcXdFOVFrZzNITXlYT1hjQTgwa3JJN3B0RTg5LDkyMDM1MDE10200ZwfNK4Am?s=ap",
+ "id": "in_NORMALIZED00000000000003",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZcXdFOVFrZzNITXlYT1hjQTgwa3JJN3B0RTg5LDkyMDM1MDE10200ZwfNK4Am/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_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -68,7 +68,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -101,17 +101,17 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000003/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000002",
+ "payment_intent": "pi_NORMALIZED00000000000003",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
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 f1f3159c141..0e713576ada 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
@@ -20,7 +20,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1010000004,
+ "created": 1010000005,
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwQ2tsa2g4bGdNeVo4UjJlS0tPbEdtOHJnalhNLDkwNzk3MjUz0200je1KzTmF?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwQ2tsa2g4bGdNeVo4UjJlS0tPbEdtOHJnalhNLDkwNzk3MjUz0200je1KzTmF/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEz0200c01gnYPK?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEz0200c01gnYPK/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_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -70,7 +70,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -103,17 +103,17 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "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": false,
"paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
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 cae408c666e..fb8ac3b63b3 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
@@ -20,7 +20,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1010000004,
+ "created": 1010000005,
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwQ2tsa2g4bGdNeVo4UjJlS0tPbEdtOHJnalhNLDkwNzk3MjU00200se2MMqIB?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwQ2tsa2g4bGdNeVo4UjJlS0tPbEdtOHJnalhNLDkwNzk3MjU00200se2MMqIB/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEz0200c01gnYPK?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEz0200c01gnYPK/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_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -70,7 +70,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -103,17 +103,17 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "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": false,
"paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
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 cae408c666e..fb8ac3b63b3 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
@@ -20,7 +20,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1010000004,
+ "created": 1010000005,
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwQ2tsa2g4bGdNeVo4UjJlS0tPbEdtOHJnalhNLDkwNzk3MjU00200se2MMqIB?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwQ2tsa2g4bGdNeVo4UjJlS0tPbEdtOHJnalhNLDkwNzk3MjU00200se2MMqIB/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEz0200c01gnYPK?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDEz0200c01gnYPK/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_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -70,7 +70,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -103,17 +103,17 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "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": false,
"paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
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 45c557091eb..8110e4bea45 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwb3RmU2JBVkhwdVpmVzJ5QmNXeTVjZjhGQ1pHLDkwNzk3MjU20200An3wRXZr?s=ap",
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwb3RmU2JBVkhwdVpmVzJ5QmNXeTVjZjhGQ1pHLDkwNzk3MjU20200An3wRXZr/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZcXdFOVFrZzNITXlYT1hjQTgwa3JJN3B0RTg5LDkyMDM1MDE10200ZwfNK4Am?s=ap",
+ "id": "in_NORMALIZED00000000000003",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZcXdFOVFrZzNITXlYT1hjQTgwa3JJN3B0RTg5LDkyMDM1MDE10200ZwfNK4Am/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_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -70,7 +70,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -103,17 +103,17 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000003/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000002",
+ "payment_intent": "pi_NORMALIZED00000000000003",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
@@ -178,7 +178,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1010000004,
+ "created": 1010000005,
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwQ2tsa2g4bGdNeVo4UjJlS0tPbEdtOHJnalhNLDkwNzk3MjU20200ikZBJpT8?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNwQ2tsa2g4bGdNeVo4UjJlS0tPbEdtOHJnalhNLDkwNzk3MjU20200ikZBJpT8/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDE10200yfAvcUwq?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZUXhaTE1sZWNYNUs2SDJpckJjR0ZNQWQxcWZWLDkyMDM1MDE10200yfAvcUwq/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -215,8 +215,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -228,7 +228,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -261,17 +261,17 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "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": false,
"paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--InvoiceItem.create.1.json
index b4df18a3bde..c39e2caf13c 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--InvoiceItem.create.1.json
@@ -6,7 +6,7 @@
"description": "Zulip Cloud Standard - renewal",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000001",
+ "id": "ii_NORMALIZED00000000000002",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -19,7 +19,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--InvoiceItem.create.2.json
index 8fd4f18a505..bdc219dca6e 100644
--- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--InvoiceItem.create.2.json
@@ -6,7 +6,7 @@
"description": "Zulip Cloud Standard - renewal",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000002",
+ "id": "ii_NORMALIZED00000000000003",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -19,7 +19,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000005,
+ "created": 1010000004,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
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 aeacc8d2388..7d7a34e3c91 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_1ODZXWDEQaroqDjsWhE4ZDui",
+ "default_payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"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 cb31cbe2948..39f986787a3 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.1.json
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZXWDEQaroqDjsWhE4ZDui",
+ "id": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"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 cb31cbe2948..39f986787a3 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.2.json
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZXWDEQaroqDjsWhE4ZDui",
+ "id": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"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 cb31cbe2948..39f986787a3 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.3.json
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZXWDEQaroqDjsWhE4ZDui",
+ "id": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"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 cb31cbe2948..39f986787a3 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Customer.retrieve.4.json
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZXWDEQaroqDjsWhE4ZDui",
+ "id": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"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 786398e4021..f96e5bf0333 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_1ODZXWDEQaroqDjsWhE4ZDui",
+ "default_payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1ODZXYDEQaroqDjsI75z8CKm",
+ "id": "evt_1OIlXSDEQaroqDjshHLKlZ26",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "e4b554a8-90b7-496d-bd5f-e99c1db73e60"
+ "idempotency_key": "161d3320-42bc-487f-adc7-e0e8e586bee0"
},
"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 d32b1cb27e4..01f99171c70 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json
@@ -61,6 +61,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZXWDEQaroqDjsWhE4ZDui",
+ "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMu036oGMgZOnCOo97M6LBYsE6Em4wkgybij1Hq4ivBpV5IOdoa2cmB-E-ouGSzq2C75IK7Z1Awui46Y",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM36qqsGMgYhvtpHvAA6LBYam-AwlSxjEo0xfxBc6LyCTWHLk6U2nzMCMvRwoLkD8cILuyVlSJUKZhIp",
"refunded": false,
"refunds": {
"data": [],
@@ -149,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_Vkv9SJdH15S4MRRVrnuPXQuf7",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_WMtW3rPktaI7zAb1RSvfFlfgP",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -165,6 +167,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZXWDEQaroqDjsWhE4ZDui",
+ "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZXaDEQaroqDjs17DCYAmx",
+ "id": "evt_3OIlXUDEQaroqDjs16UbQkn3",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "75326cee-1a80-4bab-9717-f13a612cc411"
+ "idempotency_key": "b7e4530b-96bb-4f66-b93e-2a17b32044fe"
},
"type": "payment_intent.succeeded"
},
@@ -258,6 +261,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -279,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZXWDEQaroqDjsWhE4ZDui",
+ "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -290,7 +294,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -319,9 +323,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMu036oGMgbYx6ADINY6LBYcgkGyVb5p1X_BCaEsbiO5l0kruv8u97eb3gyDY6nGl1IAY7iL4FeB-ypp",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM36qqsGMgZrNDpnvvI6LBYId-MPM4FNxrj1mM_-mQ6DsT5mAYcc6TBaDRXL4vo42NeyRBmehF7AutEE",
"refunded": false,
"refunds": {
"data": [],
@@ -341,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZXaDEQaroqDjs1KNiFhVc",
+ "id": "evt_3OIlXUDEQaroqDjs1lHHSlTK",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "75326cee-1a80-4bab-9717-f13a612cc411"
+ "idempotency_key": "b7e4530b-96bb-4f66-b93e-2a17b32044fe"
},
"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 758bd71bf38..77cfb679f6a 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMmdEbW5VTzNWS0VISFZrcTZJdldpSVNxSVc0LDkwNzk3MTM002003wdRgodq?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMmdEbW5VTzNWS0VISFZrcTZJdldpSVNxSVc0LDkwNzk3MTM002003wdRgodq/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1ODZXeDEQaroqDjsAxatWyim",
+ "id": "evt_1OIlXYDEQaroqDjsAJzBLeOP",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "971b3357-e967-421f-a164-32365900a734"
+ "idempotency_key": "1f6fb8a9-2841-4c21-97db-4ea38deec92b"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZXdDEQaroqDjs6KoCwJZZ",
+ "id": "evt_1OIlXXDEQaroqDjsXgGXhFtj",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "6deee6c1-ba34-43e8-b743-5dec550c413c"
+ "idempotency_key": "7e43dad1-a60f-44e2-98d8-26d6ad965f03"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1ODZXcDEQaroqDjsn33U19WO",
+ "id": "evt_1OIlXWDEQaroqDjsUmzmHAKn",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "c73105b3-8a37-4434-b43f-e52e03e7b38d"
+ "idempotency_key": "de98e040-f59c-4626-91a8-cc739f610411"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1ODZXcDEQaroqDjsh1nRKIyR",
+ "id": "evt_1OIlXWDEQaroqDjsNDksews5",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "c588c09d-069f-42cc-a609-a3bc952022e3"
+ "idempotency_key": "5b94c636-b45d-4792-8635-54b2a34990d5"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODZXWDEQaroqDjsWhE4ZDui",
+ "default_payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1ODZXcDEQaroqDjsTY4Z4XTA",
+ "id": "evt_1OIlXWDEQaroqDjsi3pAMdm2",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "c588c09d-069f-42cc-a609-a3bc952022e3"
+ "idempotency_key": "5b94c636-b45d-4792-8635-54b2a34990d5"
},
"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 102095f1940..3459256743d 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMmdEbW5VTzNWS0VISFZrcTZJdldpSVNxSVc0LDkwNzk3MTM002003wdRgodq?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMmdEbW5VTzNWS0VISFZrcTZJdldpSVNxSVc0LDkwNzk3MTM002003wdRgodq/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZXeDEQaroqDjs6ETaKifv",
+ "id": "evt_1OIlXYDEQaroqDjsHGlGcS0X",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "971b3357-e967-421f-a164-32365900a734"
+ "idempotency_key": "1f6fb8a9-2841-4c21-97db-4ea38deec92b"
},
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMmdEbW5VTzNWS0VISFZrcTZJdldpSVNxSVc0LDkwNzk3MTM002003wdRgodq?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMmdEbW5VTzNWS0VISFZrcTZJdldpSVNxSVc0LDkwNzk3MTM002003wdRgodq/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -436,13 +436,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZXeDEQaroqDjsG70190la",
+ "id": "evt_1OIlXYDEQaroqDjsIqFRENYZ",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "971b3357-e967-421f-a164-32365900a734"
+ "idempotency_key": "1f6fb8a9-2841-4c21-97db-4ea38deec92b"
},
"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 04f35681d94..08a57192364 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMmdEbW5VTzNWS0VISFZrcTZJdldpSVNxSVc0LDkwNzk3MTM002003wdRgodq?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMmdEbW5VTzNWS0VISFZrcTZJdldpSVNxSVc0LDkwNzk3MTM002003wdRgodq/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZXeDEQaroqDjseuRy00To",
+ "id": "evt_1OIlXYDEQaroqDjsIX0r00xT",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "971b3357-e967-421f-a164-32365900a734"
+ "idempotency_key": "1f6fb8a9-2841-4c21-97db-4ea38deec92b"
},
"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 748b879b5f4..73d14124ea7 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMmdEbW5VTzNWS0VISFZrcTZJdldpSVNxSVc0LDkwNzk3MTMz0200fMzrNaoW?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMmdEbW5VTzNWS0VISFZrcTZJdldpSVNxSVc0LDkwNzk3MTMz0200fMzrNaoW/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0ODk202002POFu8Bh/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 c46cfaebea7..b410aa2b256 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMWVRbWxCZ3pWYXNyQ2V2Z2ZEd3pYUjg2NVViLDkwNzk3MTM30200HP12spaW?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXbFY3cnliMklCdzh1Q090dUlxYnNhSFZoTVVSLDkyMDM0ODk50200VEo2dwk0?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMWVRbWxCZ3pWYXNyQ2V2Z2ZEd3pYUjg2NVViLDkwNzk3MTM30200HP12spaW/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXbFY3cnliMklCdzh1Q090dUlxYnNhSFZoTVVSLDkyMDM0ODk50200VEo2dwk0/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 ed4a96db013..6799056111e 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMWVRbWxCZ3pWYXNyQ2V2Z2ZEd3pYUjg2NVViLDkwNzk3MTM40200tfWGtEQU?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXbFY3cnliMklCdzh1Q090dUlxYnNhSFZoTVVSLDkyMDM0OTAw020032NPD63q?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMWVRbWxCZ3pWYXNyQ2V2Z2ZEd3pYUjg2NVViLDkwNzk3MTM40200tfWGtEQU/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXbFY3cnliMklCdzh1Q090dUlxYnNhSFZoTVVSLDkyMDM0OTAw020032NPD63q/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": null
+ "webhooks_delivered_at": 1000000000
},
{
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMmdEbW5VTzNWS0VISFZrcTZJdldpSVNxSVc0LDkwNzk3MTM40200xaFajNsJ?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0OTAw0200kNn6inDz?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNuMmdEbW5VTzNWS0VISFZrcTZJdldpSVNxSVc0LDkwNzk3MTM40200xaFajNsJ/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpXR2tiQ0dvbmRtUXlxUUdJS0VlcERkQ0NzNko5LDkyMDM0OTAw0200kNn6inDz/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 81d872c0081..50eb22f9df0 100644
--- a/corporate/tests/stripe_fixtures/invoice_plan--PaymentIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_plan--PaymentIntent.create.1.json
@@ -55,6 +55,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZXWDEQaroqDjsWhE4ZDui",
+ "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMu036oGMgZLk11_RfE6LBZCRq3oLAvNdfJEsHOrJ5Ew_bjYwNX5JiPWwKqzZeLVdt3jVfvYIPZVWqK2",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM36qqsGMgYMrVxgl9k6LBZVom9jWVxk-2NC9oyli1L7IYaonkmwBrRCjIVYjcyuadMgz-dnvZFyX52g",
"refunded": false,
"refunds": {
"data": [],
@@ -143,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_Vkv9SJdH15S4MRRVrnuPXQuf7",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_WMtW3rPktaI7zAb1RSvfFlfgP",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -159,6 +161,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZXWDEQaroqDjsWhE4ZDui",
+ "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"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 ac4e6e13249..4fdc75659bf 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_1ODZXWDEQaroqDjsq1gjacsL_secret_P1cnpHd6ryRhyxXJOHOoyGPYYoilmPh",
+ "client_secret": "seti_1OIlXRDEQaroqDjsgaca2ufn_secret_P6zW3xDf621SPIVI6ZFwtlct1GNM8T0",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZXWDEQaroqDjsq1gjacsL",
+ "id": "seti_1OIlXRDEQaroqDjsgaca2ufn",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZXWDEQaroqDjsH6XTSSQa",
+ "latest_attempt": "setatt_1OIlXRDEQaroqDjsrmjabU81",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZXWDEQaroqDjsWhE4ZDui",
+ "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"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 c0cda144459..bbc296570f5 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_1ODZXWDEQaroqDjsBY6FJNzy_secret_P1cnbPwlIFXbKCB92bmcLo9NiQbNnjC",
+ "client_secret": "seti_1OIlXQDEQaroqDjs2mnxUGpO_secret_P6zWKipM0RZ1luo4HM0GseWIyhnk4PE",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZXWDEQaroqDjsBY6FJNzy",
+ "id": "seti_1OIlXQDEQaroqDjs2mnxUGpO",
"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 ac4e6e13249..4fdc75659bf 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_1ODZXWDEQaroqDjsq1gjacsL_secret_P1cnpHd6ryRhyxXJOHOoyGPYYoilmPh",
+ "client_secret": "seti_1OIlXRDEQaroqDjsgaca2ufn_secret_P6zW3xDf621SPIVI6ZFwtlct1GNM8T0",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZXWDEQaroqDjsq1gjacsL",
+ "id": "seti_1OIlXRDEQaroqDjsgaca2ufn",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZXWDEQaroqDjsH6XTSSQa",
+ "latest_attempt": "setatt_1OIlXRDEQaroqDjsrmjabU81",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZXWDEQaroqDjsWhE4ZDui",
+ "payment_method": "pm_1OIlXRDEQaroqDjsBqWvm4B5",
"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 e513e402533..cb37dda3dc4 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02POJ4DGuURx2lsNbEDWYIlehNBVT54bbQCQHEWKaPVm1P8Z",
+ "id": "cs_test_NORMALIZED02fVBUjRvdICAml4swpLBYXUSv20q3bHLI3xKsiEqebJkBIy",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZXWDEQaroqDjsBY6FJNzy",
+ "setup_intent": "seti_1OIlXQDEQaroqDjs2mnxUGpO",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED02POJ4DGuURx2lsNbEDWYIlehNBVT54bbQCQHEWKaPVm1P8Z#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02fVBUjRvdICAml4swpLBYXUSv20q3bHLI3xKsiEqebJkBIy#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 5f1362e1697..865c937cf68 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02POJ4DGuURx2lsNbEDWYIlehNBVT54bbQCQHEWKaPVm1P8Z",
+ "id": "cs_test_NORMALIZED02fVBUjRvdICAml4swpLBYXUSv20q3bHLI3xKsiEqebJkBIy",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZXWDEQaroqDjsBY6FJNzy",
+ "setup_intent": "seti_1OIlXQDEQaroqDjs2mnxUGpO",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED02POJ4DGuURx2lsNbEDWYIlehNBVT54bbQCQHEWKaPVm1P8Z#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02fVBUjRvdICAml4swpLBYXUSv20q3bHLI3xKsiEqebJkBIy#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 0b74b3df83a..0dd8ee0aebb 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_1ODZZeDEQaroqDjsJoaoeBMM",
+ "default_payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"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 854846f86cc..4117b4b0c67 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZZeDEQaroqDjsJoaoeBMM",
+ "id": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"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 854846f86cc..4117b4b0c67 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZZeDEQaroqDjsJoaoeBMM",
+ "id": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"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 854846f86cc..4117b4b0c67 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZZeDEQaroqDjsJoaoeBMM",
+ "id": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"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 3f436f6a5b0..07e23ff90d2 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_1ODZZeDEQaroqDjsJoaoeBMM",
+ "default_payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1ODZZgDEQaroqDjsFzJ8H9d7",
+ "id": "evt_1OIlZXDEQaroqDjszdu1PLGm",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "4d94520c-fa34-48a3-ae78-e1931bd94299"
+ "idempotency_key": "64abef9e-7de6-4592-94b3-20ad3c2f2690"
},
"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 636e1ba040b..ac38ce955b6 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": 1010000004,
+ "created": 1010000005,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -61,6 +61,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZZeDEQaroqDjsJoaoeBMM",
+ "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM-136oGMgZSLWswruA6LBaH0qW7328Vf8JcsmXmwwLdmtie2vjMnceW4m1fzIAc6w2KWB_lr4ATcScW",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM77qqsGMgbU9H0uERk6LBYpcla43eFWXBZbiPFzt6jDO9zdDF25nKHBdi2PDGuOUJrpDGzamU02f3VQ",
"refunded": false,
"refunds": {
"data": [],
@@ -149,9 +151,9 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_2a4Ddf3htE4dFNr7w88QF7Xdm",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_m9xMfWwQp3bHB1NRXpgW823vW",
"confirmation_method": "automatic",
- "created": 1010000004,
+ "created": 1010000005,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -165,6 +167,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZZeDEQaroqDjsJoaoeBMM",
+ "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZZiDEQaroqDjs0OBBL4AC",
+ "id": "evt_3OIlZZDEQaroqDjs11FM49Rf",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "4d0e5e72-0e17-42c7-9833-51051ec4c19b"
+ "idempotency_key": "148e66eb-e0af-493d-bd47-e18eaea5e7d0"
},
"type": "payment_intent.succeeded"
},
@@ -239,7 +242,7 @@
},
"calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
"captured": true,
- "created": 1010000004,
+ "created": 1010000005,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -258,6 +261,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -279,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZZeDEQaroqDjsJoaoeBMM",
+ "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -290,7 +294,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -319,9 +323,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM-136oGMgZ7tsD4XaA6LBbAyffIM8QksduYhSKQZHwNQNAiRv0m7aH2TIf5eQ5tywNCuEbS-GpM5n--",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM77qqsGMgYTbnwUXW86LBZ_U3W3vqlKcnyZhRgRir_yUhO2UusdSJIXX4iZQO-xghqsLx3NRV5NUnIe",
"refunded": false,
"refunds": {
"data": [],
@@ -341,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZZiDEQaroqDjs0VJa89kg",
+ "id": "evt_3OIlZZDEQaroqDjs1vwK4alC",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "4d0e5e72-0e17-42c7-9833-51051ec4c19b"
+ "idempotency_key": "148e66eb-e0af-493d-bd47-e18eaea5e7d0"
},
"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 20174820145..0f6a914e1c3 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": 1010000005,
+ "created": 1010000006,
"data": {
"object": {
"amount": -48000,
@@ -25,7 +25,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000006,
+ "created": 1010000007,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -52,19 +52,19 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1ODZZjDEQaroqDjsOzcnk4la",
+ "id": "evt_1OIlZbDEQaroqDjsKU68akKP",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "0d218a9b-9097-47c0-b6bd-a1984b14c826"
+ "idempotency_key": "3e78da3d-c9dd-4902-a7ae-ad39b7e8b97e"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1010000005,
+ "created": 1010000006,
"data": {
"object": {
"address": null,
@@ -81,7 +81,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODZZeDEQaroqDjsJoaoeBMM",
+ "default_payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"footer": null,
"rendering_options": null
},
@@ -104,13 +104,13 @@
"default_currency": null
}
},
- "id": "evt_1ODZZjDEQaroqDjs9Abzsig5",
+ "id": "evt_1OIlZbDEQaroqDjsclqQ2bIM",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "0d218a9b-9097-47c0-b6bd-a1984b14c826"
+ "idempotency_key": "3e78da3d-c9dd-4902-a7ae-ad39b7e8b97e"
},
"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 457258b2d7a..c940075b416 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": 1010000006,
+ "created": 1010000007,
"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 03efb6a1941..5a232ad332e 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": 1010000004,
+ "created": 1010000005,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -55,6 +55,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZZeDEQaroqDjsJoaoeBMM",
+ "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM-136oGMgaUhHtcDYI6LBb_IinUJbf9cHuNiZtuK7253jkEFmrRq5GprONJxB_BdvHF7AhE7-xL-6R2",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM77qqsGMgYrC1cOowA6LBb_QRj9liR65TWNRlXE5wMSoyqYmKzNCq7ORomQ0dJBJvtNE7S4TY7v32KV",
"refunded": false,
"refunds": {
"data": [],
@@ -143,9 +145,9 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_2a4Ddf3htE4dFNr7w88QF7Xdm",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_m9xMfWwQp3bHB1NRXpgW823vW",
"confirmation_method": "automatic",
- "created": 1010000004,
+ "created": 1010000005,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
@@ -159,6 +161,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZZeDEQaroqDjsJoaoeBMM",
+ "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"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 5ac68a5816a..b17507cd78c 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_1ODZZeDEQaroqDjsbYVC41jC_secret_P1cpmWT7Ygjhu60kuKKmFrskuexaZ3C",
+ "client_secret": "seti_1OIlZWDEQaroqDjswk4S6KQs_secret_P6zYeFfU6JaL8YowWTbghLdD14b5SA7",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZZeDEQaroqDjsbYVC41jC",
+ "id": "seti_1OIlZWDEQaroqDjswk4S6KQs",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZZeDEQaroqDjsCaSkfneh",
+ "latest_attempt": "setatt_1OIlZWDEQaroqDjsDyVT3HG5",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZZeDEQaroqDjsJoaoeBMM",
+ "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"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 ec19efeb6b6..dcb8e844eb9 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_1ODZZdDEQaroqDjs4qXCACvq_secret_P1cpashZNKifzLtQqyFYNZb0ew897CU",
- "created": 1010000001,
+ "client_secret": "seti_1OIlZVDEQaroqDjsc8iFVQPI_secret_P6zYNvIPhkc3ZwLlGD0ulqu6RqlNryp",
+ "created": 1010000008,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZZdDEQaroqDjs4qXCACvq",
+ "id": "seti_1OIlZVDEQaroqDjsc8iFVQPI",
"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 5ac68a5816a..b17507cd78c 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_1ODZZeDEQaroqDjsbYVC41jC_secret_P1cpmWT7Ygjhu60kuKKmFrskuexaZ3C",
+ "client_secret": "seti_1OIlZWDEQaroqDjswk4S6KQs_secret_P6zYeFfU6JaL8YowWTbghLdD14b5SA7",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZZeDEQaroqDjsbYVC41jC",
+ "id": "seti_1OIlZWDEQaroqDjswk4S6KQs",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZZeDEQaroqDjsCaSkfneh",
+ "latest_attempt": "setatt_1OIlZWDEQaroqDjsDyVT3HG5",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZZeDEQaroqDjsJoaoeBMM",
+ "payment_method": "pm_1OIlZWDEQaroqDjsIEStkUZh",
"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 01e32f0d20d..2db78496560 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000001,
+ "created": 1010000008,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01FdnT3elQsfRxiebEw7b4GmDTkGHFmyv3rEbzQFhcdalnCS",
+ "id": "cs_test_NORMALIZED016M1Aw24t88WLGaLBqgomj7XWd3PpuVXysM7wlLknWeJSfS",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZZdDEQaroqDjs4qXCACvq",
+ "setup_intent": "seti_1OIlZVDEQaroqDjsc8iFVQPI",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED01FdnT3elQsfRxiebEw7b4GmDTkGHFmyv3rEbzQFhcdalnCS#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED016M1Aw24t88WLGaLBqgomj7XWd3PpuVXysM7wlLknWeJSfS#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 9ba3700e4de..e921bae0c47 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000001,
+ "created": 1010000008,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01FdnT3elQsfRxiebEw7b4GmDTkGHFmyv3rEbzQFhcdalnCS",
+ "id": "cs_test_NORMALIZED016M1Aw24t88WLGaLBqgomj7XWd3PpuVXysM7wlLknWeJSfS",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZZdDEQaroqDjs4qXCACvq",
+ "setup_intent": "seti_1OIlZVDEQaroqDjsc8iFVQPI",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED01FdnT3elQsfRxiebEw7b4GmDTkGHFmyv3rEbzQFhcdalnCS#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED016M1Aw24t88WLGaLBqgomj7XWd3PpuVXysM7wlLknWeJSfS#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.create.1.json
index a6a0e57b1f7..593a07ed0c8 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.create.1.json
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700592386,
+ "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_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "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/replace_payment_method--Customer.modify.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.modify.1.json
index 46b295948f1..268c00bd100 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700592386,
+ "created": 1000000000,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -9,17 +9,17 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "default_payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": 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 9a129884622..972964c3991 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700592386,
+ "created": 1000000000,
"currency": "usd",
"default_currency": "usd",
"default_source": null,
@@ -9,17 +9,17 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OEyy6DEQaroqDjscAhZ1Tzb",
+ "default_payment_method": "pm_1OIlZrDEQaroqDjs906nPEKz",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": 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 ff38dcd93eb..aa5d461b7d9 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700592386,
+ "created": 1000000000,
"currency": "usd",
"default_currency": "usd",
"default_source": null,
@@ -9,17 +9,17 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OEyyDDEQaroqDjsoHRzbvSp",
+ "default_payment_method": "pm_1OIlZxDEQaroqDjsOkOpLsAE",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": 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 29e41a002f4..df51268c2c0 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700592386,
+ "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_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1700592389,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.2.json
index 29e41a002f4..df51268c2c0 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700592386,
+ "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_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1700592389,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.3.json
index 29e41a002f4..df51268c2c0 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700592386,
+ "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_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1700592389,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.4.json
index 29e41a002f4..df51268c2c0 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700592386,
+ "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_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1700592389,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.5.json
index 986141e2c53..54a4f29c20b 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700592386,
+ "created": 1000000000,
"currency": "usd",
"default_currency": "usd",
"default_source": null,
@@ -9,8 +9,8 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "ABa2sePBR7Lu711Z",
+ "fingerprint": "NORMALIZED000002",
"funding": "credit",
"generated_from": null,
"last4": "0341",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1700592402,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyy6DEQaroqDjscAhZ1Tzb",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.6.json
index 532f104bd74..0bbf5bf0b08 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.6.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.6.json
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700592386,
+ "created": 1000000000,
"currency": "usd",
"default_currency": "usd",
"default_source": null,
@@ -9,8 +9,8 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "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/replace_payment_method--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/replace_payment_method--Customer.retrieve.7.json
index 5ffe805ddc5..16c48357dda 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700592386,
+ "created": 1000000000,
"currency": "usd",
"default_currency": "usd",
"default_source": null,
@@ -9,8 +9,8 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "HIhaF5dAXctoIcSd",
+ "fingerprint": "NORMALIZED000003",
"funding": "credit",
"generated_from": null,
"last4": "4444",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1700592409,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyyDDEQaroqDjsoHRzbvSp",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZxDEQaroqDjsOkOpLsAE",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json
index fe1c00c6521..904ffb37ede 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
@@ -2,12 +2,12 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1700592390,
+ "created": 1000000000,
"data": {
"object": {
"address": null,
"balance": 0,
- "created": 1700592386,
+ "created": 1000000000,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -15,17 +15,17 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "default_payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OEyxvDEQaroqDjsoWhcKsPT",
+ "id": "evt_1OIlZgDEQaroqDjsDe0aPNNf",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_uJ7jRb0QgNkkeH",
- "idempotency_key": "cb3224ab-38fe-476f-8dd1-11a1e5840d20"
+ "id": "req_NORMALIZED0001",
+ "idempotency_key": "7e159d25-902f-44a2-8cae-60c745157c9f"
},
"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 19d701fa597..be9a9a1ee20 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
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1700592394,
+ "created": 1000000000,
"data": {
"object": {
"amount": 48000,
@@ -26,7 +26,7 @@
"application": null,
"application_fee": null,
"application_fee_amount": null,
- "balance_transaction": "txn_3OEyxxDEQaroqDjs0BgcA3dQ",
+ "balance_transaction": "txn_NORMALIZED00000000000001",
"billing_details": {
"address": {
"city": null,
@@ -42,9 +42,9 @@
},
"calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
"captured": true,
- "created": 1700592393,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
"destination": null,
"dispute": null,
@@ -53,7 +53,7 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "ch_3OEyxxDEQaroqDjs0Jpvm8ZV",
+ "id": "ch_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {
@@ -61,8 +61,9 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip",
"seat_count": "6",
"type": "upgrade",
@@ -76,13 +77,13 @@
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
- "risk_score": 11,
+ "risk_score": 0,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_3OEyxxDEQaroqDjs0PMlUA1C",
- "payment_method": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -93,12 +94,12 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
},
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
@@ -122,16 +123,17 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIr286oGMgahnL97SEg6LBZzJlCseePgSDjKIqsKdsIp4xsOxsxUjVKnKljSNM6ylddXOncAaVQCO9zd",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNf7qqsGMga4A0OHsqs6LBY5P23Y1ojNAnta69dy6Rz218UmmqycI9QqvUG1y2J7mL2iMvAZ2Whjnko7",
"refunded": false,
"refunds": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/ch_3OEyxxDEQaroqDjs0Jpvm8ZV/refunds"
+ "url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
},
"review": null,
"shipping": null,
@@ -147,26 +149,27 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=pi_3OEyxxDEQaroqDjs0PMlUA1C"
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_3OEyxxDEQaroqDjs0PMlUA1C_secret_tLFPeH51I31E0g48R3YR1224j",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_mA3WGOAKeG1RWpwwFeSFLWy8o",
"confirmation_method": "automatic",
- "created": 1700592393,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
- "id": "pi_3OEyxxDEQaroqDjs0PMlUA1C",
+ "id": "pi_NORMALIZED00000000000001",
"invoice": null,
"last_payment_error": null,
- "latest_charge": "ch_3OEyxxDEQaroqDjs0Jpvm8ZV",
+ "latest_charge": "ch_NORMALIZED00000000000001",
"livemode": false,
"metadata": {
"billing_modality": "charge_automatically",
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip",
"seat_count": "6",
"type": "upgrade",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,19 +205,19 @@
"transfer_group": null
}
},
- "id": "evt_3OEyxxDEQaroqDjs0ycajZLF",
+ "id": "evt_3OIlZiDEQaroqDjs1W9Vv3Oi",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_Jm4wNpb8PNuk5M",
- "idempotency_key": "f6ceb0ef-cbf2-4f8d-b545-64f49d5aa049"
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "7e8b57f4-1cc7-4413-84ff-73f6c06c59c0"
},
"type": "payment_intent.succeeded"
},
{
"api_version": "2020-08-27",
- "created": 1700592394,
+ "created": 1000000000,
"data": {
"object": {
"amount": 48000,
@@ -223,7 +226,7 @@
"application": null,
"application_fee": null,
"application_fee_amount": null,
- "balance_transaction": "txn_3OEyxxDEQaroqDjs0BgcA3dQ",
+ "balance_transaction": "txn_NORMALIZED00000000000001",
"billing_details": {
"address": {
"city": null,
@@ -239,9 +242,9 @@
},
"calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
"captured": true,
- "created": 1700592393,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
"destination": null,
"dispute": null,
@@ -250,7 +253,7 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "ch_3OEyxxDEQaroqDjs0Jpvm8ZV",
+ "id": "ch_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {
@@ -258,8 +261,9 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip",
"seat_count": "6",
"type": "upgrade",
@@ -273,13 +277,13 @@
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
- "risk_score": 11,
+ "risk_score": 0,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_3OEyxxDEQaroqDjs0PMlUA1C",
- "payment_method": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -290,12 +294,12 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
},
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
@@ -319,16 +323,17 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIr286oGMgZZucNL4KA6LBZfgistelvvWwFfuy-_WAgOOzAqMgSgRRHYnBRqLI4Eq0Uz2TF_643LkNOe",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNf7qqsGMgZpcznYnN46LBZChseUptRrFTc-S0KGA2931SHGv4LH33keZ51FdS0-Sqq1AANLVXwICb2o",
"refunded": false,
"refunds": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/ch_3OEyxxDEQaroqDjs0Jpvm8ZV/refunds"
+ "url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
},
"review": null,
"shipping": null,
@@ -341,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3OEyxxDEQaroqDjs0C2WyK3p",
+ "id": "evt_3OIlZiDEQaroqDjs1ro0vXQX",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_Jm4wNpb8PNuk5M",
- "idempotency_key": "f6ceb0ef-cbf2-4f8d-b545-64f49d5aa049"
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "7e8b57f4-1cc7-4413-84ff-73f6c06c59c0"
},
"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 44d1ce198cc..66804fc724f 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
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1700592396,
+ "created": 1000000000,
"data": {
"object": {
"account_country": "US",
@@ -24,10 +24,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700592395,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "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": 1700592396,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4R1VMUFVPaXhKTng0ZUpuZEVSQ0g4RzdHcDJtLDkxMTMzMTk20200HCWA2HsQ?s=ap",
- "id": "in_1OEyxzDEQaroqDjs8WQvU4Yx",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4R1VMUFVPaXhKTng0ZUpuZEVSQ0g4RzdHcDJtLDkxMTMzMTk20200HCWA2HsQ/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDMz0200dBtKIsxy?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDMz0200dBtKIsxy/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsAOwkMlcc",
- "invoice_item": "ii_1OEyxzDEQaroqDjsfKGNI9OG",
+ "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": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -111,29 +111,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsnpgOAqxP",
- "invoice_item": "ii_1OEyxyDEQaroqDjshhkuKTu6",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592394,
- "start": 1700592394
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "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_1OEyxzDEQaroqDjs8WQvU4Yx/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "69DA5EF9-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": 1700592395,
- "period_start": 1700592395,
+ "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 Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1700592396,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700592396,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -219,7 +219,7 @@
"ending_balance": null,
"hosted_invoice_url": null,
"invoice_pdf": null,
- "next_payment_attempt": 1700595995,
+ "next_payment_attempt": 1000000000,
"number": null,
"paid": false,
"rendering": {
@@ -234,19 +234,19 @@
}
}
},
- "id": "evt_1OEyy0DEQaroqDjsZGGMFdtA",
+ "id": "evt_1OIlZlDEQaroqDjs44kOYXpQ",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_XE7G6X9LMuefmb",
- "idempotency_key": "84fb4129-644a-4e2e-b906-f517d374a06f"
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "819a719f-6b81-4640-93c5-94ed69d67e4c"
},
"type": "invoice.updated"
},
{
"api_version": "2020-08-27",
- "created": 1700592395,
+ "created": 1000000000,
"data": {
"object": {
"account_country": "US",
@@ -268,10 +268,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700592395,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "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_1OEyxzDEQaroqDjs8WQvU4Yx",
+ "id": "in_NORMALIZED00000000000001",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -305,8 +305,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsAOwkMlcc",
- "invoice_item": "ii_1OEyxzDEQaroqDjsfKGNI9OG",
+ "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": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -355,29 +355,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsnpgOAqxP",
- "invoice_item": "ii_1OEyxyDEQaroqDjshhkuKTu6",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592394,
- "start": 1700592394
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "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_1OEyxzDEQaroqDjs8WQvU4Yx/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
- "next_payment_attempt": 1700595995,
+ "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": 1700592395,
- "period_start": 1700592395,
+ "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_1OEyy0DEQaroqDjsyIGDCqNn",
+ "id": "evt_1OIlZlDEQaroqDjsW6YphDWf",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_XdqWswrVDfmvvL",
- "idempotency_key": "747016d1-31af-4e95-95b0-da2fd7c1ccc9"
+ "id": "req_NORMALIZED0004",
+ "idempotency_key": "fa037254-70f0-481f-b8ac-afb3a645f471"
},
"type": "invoice.created"
},
{
"api_version": "2020-08-27",
- "created": 1700592395,
+ "created": 1000000000,
"data": {
"object": {
"amount": 48000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
- "date": 1700592395,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Zulip Cloud Standard",
"discountable": false,
"discounts": [],
- "id": "ii_1OEyxzDEQaroqDjsfKGNI9OG",
+ "id": "ii_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -492,16 +492,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -519,51 +519,51 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OEyxzDEQaroqDjsZxENPeBG",
+ "id": "evt_1OIlZkDEQaroqDjszDTpFRfw",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NshHwCxEbLHY8n",
- "idempotency_key": "d2751e2e-89df-416a-b517-2afa2ef13606"
+ "id": "req_NORMALIZED0005",
+ "idempotency_key": "dc2f8ef3-157a-4dc6-b4b5-ccf28b2ae122"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1700592394,
+ "created": 1000000000,
"data": {
"object": {
"amount": -48000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
- "date": 1700592394,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Payment (Card ending in 4242)",
"discountable": false,
"discounts": [],
- "id": "ii_1OEyxyDEQaroqDjshhkuKTu6",
+ "id": "ii_NORMALIZED00000000000002",
"invoice": null,
"livemode": false,
"metadata": {},
"object": "invoiceitem",
"period": {
- "end": 1700592394,
- "start": 1700592394
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "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,24 +581,24 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OEyxzDEQaroqDjsyo6Adi64",
+ "id": "evt_1OIlZkDEQaroqDjszfkmUW6j",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_Z0Vml3S8JTs8MF",
- "idempotency_key": "f4f3d7ab-52a0-4d2a-b508-075b18e627f6"
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "4ef6e5e7-244d-43b2-9ade-d5de4cd1e784"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1700592394,
+ "created": 1000000000,
"data": {
"object": {
"address": null,
"balance": 0,
- "created": 1700592386,
+ "created": 1000000000,
"currency": "usd",
"default_currency": "usd",
"default_source": null,
@@ -606,17 +606,17 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P358SWUcASaSWt",
- "invoice_prefix": "69DA5EF9",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "default_payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OEyxzDEQaroqDjs2PH94nIl",
+ "id": "evt_1OIlZkDEQaroqDjsYGezgWjf",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_Z0Vml3S8JTs8MF",
- "idempotency_key": "f4f3d7ab-52a0-4d2a-b508-075b18e627f6"
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "4ef6e5e7-244d-43b2-9ade-d5de4cd1e784"
},
"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 1938dc1d848..efdef60997e 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
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1700592396,
+ "created": 1000000000,
"data": {
"object": {
"account_country": "US",
@@ -24,10 +24,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700592395,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "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": 1700592396,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4R1VMUFVPaXhKTng0ZUpuZEVSQ0g4RzdHcDJtLDkxMTMzMTk30200dh8EhJJw?s=ap",
- "id": "in_1OEyxzDEQaroqDjs8WQvU4Yx",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4R1VMUFVPaXhKTng0ZUpuZEVSQ0g4RzdHcDJtLDkxMTMzMTk30200dh8EhJJw/pdf?s=ap",
+ "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": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsAOwkMlcc",
- "invoice_item": "ii_1OEyxzDEQaroqDjsfKGNI9OG",
+ "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": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -111,29 +111,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsnpgOAqxP",
- "invoice_item": "ii_1OEyxyDEQaroqDjshhkuKTu6",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592394,
- "start": 1700592394
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "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_1OEyxzDEQaroqDjs8WQvU4Yx/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "69DA5EF9-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": 1700592395,
- "period_start": 1700592395,
+ "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 Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1700592396,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700592396,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -213,19 +213,242 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OEyy1DEQaroqDjsQ6IET8RC",
+ "id": "evt_1OIlZmDEQaroqDjsVSsjRNKV",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_XE7G6X9LMuefmb",
- "idempotency_key": "84fb4129-644a-4e2e-b906-f517d374a06f"
+ "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"
},
"type": "invoice.paid"
},
{
"api_version": "2020-08-27",
- "created": 1700592396,
+ "created": 1000000000,
"data": {
"object": {
"account_country": "US",
@@ -247,10 +470,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700592395,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -265,13 +488,13 @@
"discount": null,
"discounts": [],
"due_date": null,
- "effective_at": 1700592396,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4R1VMUFVPaXhKTng0ZUpuZEVSQ0g4RzdHcDJtLDkxMTMzMTk20200HCWA2HsQ?s=ap",
- "id": "in_1OEyxzDEQaroqDjs8WQvU4Yx",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4R1VMUFVPaXhKTng0ZUpuZEVSQ0g4RzdHcDJtLDkxMTMzMTk20200HCWA2HsQ/pdf?s=ap",
+ "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": {
@@ -284,8 +507,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsAOwkMlcc",
- "invoice_item": "ii_1OEyxzDEQaroqDjsfKGNI9OG",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -297,16 +520,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -334,29 +557,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsnpgOAqxP",
- "invoice_item": "ii_1OEyxyDEQaroqDjshhkuKTu6",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592394,
- "start": 1700592394
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "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,
@@ -380,12 +603,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1OEyxzDEQaroqDjs8WQvU4Yx/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "69DA5EF9-0001",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -396,8 +619,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700592395,
- "period_start": 1700592395,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -415,9 +638,9 @@
"statement_descriptor": "Zulip Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1700592396,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700592396,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -436,13 +659,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OEyy1DEQaroqDjsjXQmVPw1",
+ "id": "evt_1OIlZmDEQaroqDjsKUacGBYo",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_XE7G6X9LMuefmb",
- "idempotency_key": "84fb4129-644a-4e2e-b906-f517d374a06f"
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "819a719f-6b81-4640-93c5-94ed69d67e4c"
},
"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 77d9b9c8822..6d922067afe 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,229 +1,5 @@
{
- "data": [
- {
- "api_version": "2020-08-27",
- "created": 1700592396,
- "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": 1700592395,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
- "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": 1700592396,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4R1VMUFVPaXhKTng0ZUpuZEVSQ0g4RzdHcDJtLDkxMTMzMTk30200dh8EhJJw?s=ap",
- "id": "in_1OEyxzDEQaroqDjs8WQvU4Yx",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4R1VMUFVPaXhKTng0ZUpuZEVSQ0g4RzdHcDJtLDkxMTMzMTk30200dh8EhJJw/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_1OEyxzDEQaroqDjsAOwkMlcc",
- "invoice_item": "ii_1OEyxzDEQaroqDjsfKGNI9OG",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1698927319,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
- "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_1OEyxzDEQaroqDjsnpgOAqxP",
- "invoice_item": "ii_1OEyxyDEQaroqDjshhkuKTu6",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1700592394,
- "start": 1700592394
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1699463487,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
- "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": -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_1OEyxzDEQaroqDjs8WQvU4Yx/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "69DA5EF9-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": 1700592395,
- "period_start": 1700592395,
- "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": 1700592396,
- "marked_uncollectible_at": null,
- "paid_at": 1700592396,
- "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_1OEyy1DEQaroqDjsrPbsOxso",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_XE7G6X9LMuefmb",
- "idempotency_key": "84fb4129-644a-4e2e-b906-f517d374a06f"
- },
- "type": "invoice.payment_succeeded"
- }
- ],
+ "data": [],
"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
deleted file mode 100644
index 6d922067afe..00000000000
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.6.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/events"
-}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json
index 4c3462bf10f..ee4c6393e41 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json
@@ -18,10 +18,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700592395,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "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_1OEyxzDEQaroqDjs8WQvU4Yx",
+ "id": "in_NORMALIZED00000000000001",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsAOwkMlcc",
- "invoice_item": "ii_1OEyxzDEQaroqDjsfKGNI9OG",
+ "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": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -105,29 +105,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsnpgOAqxP",
- "invoice_item": "ii_1OEyxyDEQaroqDjshhkuKTu6",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592394,
- "start": 1700592394
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "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_1OEyxzDEQaroqDjs8WQvU4Yx/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
- "next_payment_attempt": 1700595995,
+ "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": 1700592395,
- "period_start": 1700592395,
+ "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/replace_payment_method--Invoice.create.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json
index badfda7788e..e427e4982c5 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json
@@ -18,10 +18,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "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_1OEyy2DEQaroqDjsuRPt2KXA",
+ "id": "in_NORMALIZED00000000000002",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -55,29 +55,29 @@
"discount_amounts": [],
"discountable": true,
"discounts": [],
- "id": "il_1OEyy2DEQaroqDjscjyiZWKB",
- "invoice_item": "ii_1OEyy2DEQaroqDjsUHAJkp45",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592398,
- "start": 1700592398
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEyy2DEQaroqDjsClpqf6Qb",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P358e9e33CbWxt",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -101,7 +101,7 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_1OEyy2DEQaroqDjsuRPt2KXA/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
@@ -117,8 +117,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700592398,
- "period_start": 1700592398,
+ "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/replace_payment_method--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.1.json
index dc6a2d5bf33..b02df24f327 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
@@ -18,10 +18,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700592395,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "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": 1700592396,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4R1VMUFVPaXhKTng0ZUpuZEVSQ0g4RzdHcDJtLDkxMTMzMTk20200HCWA2HsQ?s=ap",
- "id": "in_1OEyxzDEQaroqDjs8WQvU4Yx",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4R1VMUFVPaXhKTng0ZUpuZEVSQ0g4RzdHcDJtLDkxMTMzMTk20200HCWA2HsQ/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDMz0200dBtKIsxy?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDMz0200dBtKIsxy/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsAOwkMlcc",
- "invoice_item": "ii_1OEyxzDEQaroqDjsfKGNI9OG",
+ "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": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -105,29 +105,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsnpgOAqxP",
- "invoice_item": "ii_1OEyxyDEQaroqDjshhkuKTu6",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592394,
- "start": 1700592394
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "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_1OEyxzDEQaroqDjs8WQvU4Yx/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "69DA5EF9-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": 1700592395,
- "period_start": 1700592395,
+ "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 Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1700592396,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700592396,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.finalize_invoice.2.json
index 4ff9e584db4..5f778686ed7 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
@@ -18,10 +18,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "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": 1700592399,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4RWRPU3dqOTdjZThINlpWTXpFSjNvOGdIWUlYLDkxMTMzMTk502008AAD9DfD?s=ap",
- "id": "in_1OEyy2DEQaroqDjsuRPt2KXA",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4RWRPU3dqOTdjZThINlpWTXpFSjNvOGdIWUlYLDkxMTMzMTk502008AAD9DfD/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDM20200VKKj6Btf?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDM20200VKKj6Btf/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,29 +55,29 @@
"discount_amounts": [],
"discountable": true,
"discounts": [],
- "id": "il_1OEyy2DEQaroqDjscjyiZWKB",
- "invoice_item": "ii_1OEyy2DEQaroqDjsUHAJkp45",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592398,
- "start": 1700592398
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEyy2DEQaroqDjsClpqf6Qb",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P358e9e33CbWxt",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -101,24 +101,24 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_1OEyy2DEQaroqDjsuRPt2KXA/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "69DA5EF9-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "pi_3OEyy3DEQaroqDjs14vaghr0",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700592398,
- "period_start": 1700592398,
+ "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": null,
"status": "open",
"status_transitions": {
- "finalized_at": 1700592399,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
"paid_at": null,
"voided_at": null
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.2.json
index 757a52e7fcc..1da7765fb5f 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
@@ -20,10 +20,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -38,13 +38,13 @@
"discount": null,
"discounts": [],
"due_date": null,
- "effective_at": 1700592399,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4RWRPU3dqOTdjZThINlpWTXpFSjNvOGdIWUlYLDkxMTMzMjA00200GqaFFDck?s=ap",
- "id": "in_1OEyy2DEQaroqDjsuRPt2KXA",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4RWRPU3dqOTdjZThINlpWTXpFSjNvOGdIWUlYLDkxMTMzMjA00200GqaFFDck/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDQx0200v32HRQCI?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDQx0200v32HRQCI/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -57,29 +57,29 @@
"discount_amounts": [],
"discountable": true,
"discounts": [],
- "id": "il_1OEyy2DEQaroqDjscjyiZWKB",
- "invoice_item": "ii_1OEyy2DEQaroqDjsUHAJkp45",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592398,
- "start": 1700592398
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEyy2DEQaroqDjsClpqf6Qb",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P358e9e33CbWxt",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -103,24 +103,24 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_1OEyy2DEQaroqDjsuRPt2KXA/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "69DA5EF9-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "pi_3OEyy3DEQaroqDjs14vaghr0",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700592398,
- "period_start": 1700592398,
+ "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": null,
"status": "open",
"status_transitions": {
- "finalized_at": 1700592399,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
"paid_at": null,
"voided_at": null
@@ -156,7 +156,7 @@
"total_excluding_tax": 5000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1700592399
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.3.json
index 09d8219af0f..6ba6260085c 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
@@ -18,12 +18,12 @@
"status": null
},
"billing_reason": "manual",
- "charge": "ch_3OEyy3DEQaroqDjs1gdehahC",
+ "charge": "ch_NORMALIZED00000000000002",
"collection_method": "charge_automatically",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -38,13 +38,13 @@
"discount": null,
"discounts": [],
"due_date": null,
- "effective_at": 1700592399,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4RWRPU3dqOTdjZThINlpWTXpFSjNvOGdIWUlYLDkxMTMzMjEx0200o6xVlgjn?s=ap",
- "id": "in_1OEyy2DEQaroqDjsuRPt2KXA",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4RWRPU3dqOTdjZThINlpWTXpFSjNvOGdIWUlYLDkxMTMzMjEx0200o6xVlgjn/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDQ302001mHDs75j?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDQ302001mHDs75j/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -57,29 +57,29 @@
"discount_amounts": [],
"discountable": true,
"discounts": [],
- "id": "il_1OEyy2DEQaroqDjscjyiZWKB",
- "invoice_item": "ii_1OEyy2DEQaroqDjsUHAJkp45",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592398,
- "start": 1700592398
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEyy2DEQaroqDjsClpqf6Qb",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P358e9e33CbWxt",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -103,24 +103,24 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_1OEyy2DEQaroqDjsuRPt2KXA/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "69DA5EF9-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "pi_3OEyy3DEQaroqDjs14vaghr0",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700592398,
- "period_start": 1700592398,
+ "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": null,
"status": "open",
"status_transitions": {
- "finalized_at": 1700592399,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
"paid_at": null,
"voided_at": null
@@ -156,7 +156,7 @@
"total_excluding_tax": 5000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1700592399
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.list.4.json
index cfb08d6f4c3..5436ae4b67c 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
@@ -18,12 +18,12 @@
"status": null
},
"billing_reason": "manual",
- "charge": "ch_3OEyy3DEQaroqDjs1TeJdg1S",
+ "charge": "ch_NORMALIZED00000000000003",
"collection_method": "charge_automatically",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -38,13 +38,13 @@
"discount": null,
"discounts": [],
"due_date": null,
- "effective_at": 1700592399,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4RWRPU3dqOTdjZThINlpWTXpFSjNvOGdIWUlYLDkxMTMzMjE002004IpMVErI?s=ap",
- "id": "in_1OEyy2DEQaroqDjsuRPt2KXA",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4RWRPU3dqOTdjZThINlpWTXpFSjNvOGdIWUlYLDkxMTMzMjE002004IpMVErI/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDUw0200AbiyJmyG?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDUw0200AbiyJmyG/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -57,29 +57,29 @@
"discount_amounts": [],
"discountable": true,
"discounts": [],
- "id": "il_1OEyy2DEQaroqDjscjyiZWKB",
- "invoice_item": "ii_1OEyy2DEQaroqDjsUHAJkp45",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592398,
- "start": 1700592398
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEyy2DEQaroqDjsClpqf6Qb",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P358e9e33CbWxt",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -103,24 +103,24 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_1OEyy2DEQaroqDjsuRPt2KXA/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "69DA5EF9-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
"paid_out_of_band": false,
- "payment_intent": "pi_3OEyy3DEQaroqDjs14vaghr0",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700592398,
- "period_start": 1700592398,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -138,9 +138,9 @@
"statement_descriptor": null,
"status": "paid",
"status_transitions": {
- "finalized_at": 1700592399,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700592411,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -156,7 +156,7 @@
"total_excluding_tax": 5000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1700592399
+ "webhooks_delivered_at": 1000000000
},
{
"account_country": "US",
@@ -178,10 +178,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700592395,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -196,13 +196,13 @@
"discount": null,
"discounts": [],
"due_date": null,
- "effective_at": 1700592396,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4R1VMUFVPaXhKTng0ZUpuZEVSQ0g4RzdHcDJtLDkxMTMzMjE00200jXB2M3Qt?s=ap",
- "id": "in_1OEyxzDEQaroqDjs8WQvU4Yx",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4R1VMUFVPaXhKTng0ZUpuZEVSQ0g4RzdHcDJtLDkxMTMzMjE00200jXB2M3Qt/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDUw0200L3jt5DAq?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZQmdsNFNBR29EU0hlY0dLMDJBeVhKNWM4aWtVLDkyMDM1MDUw0200L3jt5DAq/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -215,8 +215,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsAOwkMlcc",
- "invoice_item": "ii_1OEyxzDEQaroqDjsfKGNI9OG",
+ "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": 1698927319,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -265,29 +265,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1OEyxzDEQaroqDjsnpgOAqxP",
- "invoice_item": "ii_1OEyxyDEQaroqDjshhkuKTu6",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592394,
- "start": 1700592394
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "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,
@@ -311,12 +311,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1OEyxzDEQaroqDjs8WQvU4Yx/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "69DA5EF9-0001",
+ "number": "NORMALI-0002",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -327,8 +327,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700592395,
- "period_start": 1700592395,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -346,9 +346,9 @@
"statement_descriptor": "Zulip Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1700592396,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700592396,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -364,7 +364,7 @@
"total_excluding_tax": 0,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1700592396
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
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 2390771cda6..5209a494a2a 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
@@ -2,7 +2,7 @@
"_message": "Your card was declined.",
"code": "card_declined",
"error": {
- "charge": "ch_3OEyy3DEQaroqDjs1gdehahC",
+ "charge": "ch_NORMALIZED00000000000002",
"code": "card_declined",
"decline_code": "generic_decline",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
@@ -46,9 +46,9 @@
},
"calculated_statement_descriptor": "ZULIP",
"captured": false,
- "created": 1700592405,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"description": "Payment for Invoice",
"destination": null,
"dispute": null,
@@ -57,8 +57,8 @@
"failure_code": "card_declined",
"failure_message": "Your card was declined.",
"fraud_details": {},
- "id": "ch_3OEyy3DEQaroqDjs1gdehahC",
- "invoice": "in_1OEyy2DEQaroqDjsuRPt2KXA",
+ "id": "ch_NORMALIZED00000000000002",
+ "invoice": "in_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "charge",
@@ -68,13 +68,13 @@
"network_status": "declined_by_network",
"reason": "generic_decline",
"risk_level": "normal",
- "risk_score": 9,
+ "risk_score": 0,
"seller_message": "The bank did not return any further details with this decline.",
"type": "issuer_declined"
},
"paid": false,
- "payment_intent": "pi_3OEyy3DEQaroqDjs14vaghr0",
- "payment_method": "pm_1OEyy6DEQaroqDjscAhZ1Tzb",
+ "payment_intent": "pi_NORMALIZED00000000000002",
+ "payment_method": "pm_1OIlZrDEQaroqDjs906nPEKz",
"payment_method_details": {
"card": {
"amount_authorized": null,
@@ -85,12 +85,12 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
},
- "fingerprint": "ABa2sePBR7Lu711Z",
+ "fingerprint": "NORMALIZED000002",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
@@ -114,6 +114,7 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
"receipt_url": null,
@@ -133,18 +134,18 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=pi_3OEyy3DEQaroqDjs14vaghr0"
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_3OEyy3DEQaroqDjs14vaghr0_secret_Pe8Xs7XiZqwsv9PNa3CyQVazw",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_4vFgqVl7KOFAqcgGRpc5rWQaa",
"confirmation_method": "automatic",
- "created": 1700592399,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"description": "Payment for Invoice",
- "id": "pi_3OEyy3DEQaroqDjs14vaghr0",
- "invoice": "in_1OEyy2DEQaroqDjsuRPt2KXA",
+ "id": "pi_NORMALIZED00000000000002",
+ "invoice": "in_NORMALIZED00000000000002",
"last_payment_error": {
- "charge": "ch_3OEyy3DEQaroqDjs1gdehahC",
+ "charge": "ch_NORMALIZED00000000000002",
"code": "card_declined",
"decline_code": "generic_decline",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
@@ -171,9 +172,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "ABa2sePBR7Lu711Z",
+ "fingerprint": "NORMALIZED000002",
"funding": "credit",
"generated_from": null,
"last4": "0341",
@@ -188,9 +189,9 @@
},
"wallet": null
},
- "created": 1700592402,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyy6DEQaroqDjscAhZ1Tzb",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -198,7 +199,7 @@
},
"type": "card_error"
},
- "latest_charge": "ch_3OEyy3DEQaroqDjs1gdehahC",
+ "latest_charge": "ch_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"next_action": null,
@@ -253,9 +254,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "ABa2sePBR7Lu711Z",
+ "fingerprint": "NORMALIZED000002",
"funding": "credit",
"generated_from": null,
"last4": "0341",
@@ -270,15 +271,15 @@
},
"wallet": null
},
- "created": 1700592402,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyy6DEQaroqDjscAhZ1Tzb",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
"livemode": false,
"metadata": {},
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_AHmbF72gKDPvqs?t=1700592405",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0007?t=1701494241",
"setup_intent": null,
"source": null,
"type": "card_error"
@@ -291,13 +292,13 @@
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Connection": "keep-alive",
- "Content-Length": "9060",
+ "Content-Length": "9107",
"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": "Tue, 21 Nov 2023 18:46:46 GMT",
- "Idempotency-Key": "40057a0c-ec4f-4cad-b350-9dc96da50e9c",
- "Original-Request": "req_AHmbF72gKDPvqs",
- "Request-Id": "req_AHmbF72gKDPvqs",
+ "Date": "NORMALIZED DATETIME",
+ "Idempotency-Key": "f3105370-ecca-4e80-a1d2-60bf10a378a3",
+ "Original-Request": "req_NORMALIZED0007",
+ "Request-Id": "req_NORMALIZED0007",
"Server": "nginx",
"Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload",
"Stripe-Should-Retry": "false",
@@ -309,7 +310,7 @@
"http_status": 402,
"json_body": {
"error": {
- "charge": "ch_3OEyy3DEQaroqDjs1gdehahC",
+ "charge": "ch_NORMALIZED00000000000002",
"code": "card_declined",
"decline_code": "generic_decline",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
@@ -352,9 +353,9 @@
},
"calculated_statement_descriptor": "ZULIP",
"captured": false,
- "created": 1700592405,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"description": "Payment for Invoice",
"destination": null,
"dispute": null,
@@ -363,8 +364,8 @@
"failure_code": "card_declined",
"failure_message": "Your card was declined.",
"fraud_details": {},
- "id": "ch_3OEyy3DEQaroqDjs1gdehahC",
- "invoice": "in_1OEyy2DEQaroqDjsuRPt2KXA",
+ "id": "ch_NORMALIZED00000000000002",
+ "invoice": "in_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "charge",
@@ -374,13 +375,13 @@
"network_status": "declined_by_network",
"reason": "generic_decline",
"risk_level": "normal",
- "risk_score": 9,
+ "risk_score": 0,
"seller_message": "The bank did not return any further details with this decline.",
"type": "issuer_declined"
},
"paid": false,
- "payment_intent": "pi_3OEyy3DEQaroqDjs14vaghr0",
- "payment_method": "pm_1OEyy6DEQaroqDjscAhZ1Tzb",
+ "payment_intent": "pi_NORMALIZED00000000000002",
+ "payment_method": "pm_1OIlZrDEQaroqDjs906nPEKz",
"payment_method_details": {
"card": {
"amount_authorized": null,
@@ -391,12 +392,12 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
},
- "fingerprint": "ABa2sePBR7Lu711Z",
+ "fingerprint": "NORMALIZED000002",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
@@ -420,6 +421,7 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
"receipt_url": null,
@@ -429,7 +431,7 @@
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/ch_3OEyy3DEQaroqDjs1gdehahC/refunds"
+ "url": "/v1/charges/ch_NORMALIZED00000000000002/refunds"
},
"review": null,
"shipping": null,
@@ -445,18 +447,18 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=pi_3OEyy3DEQaroqDjs14vaghr0"
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_3OEyy3DEQaroqDjs14vaghr0_secret_Pe8Xs7XiZqwsv9PNa3CyQVazw",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_4vFgqVl7KOFAqcgGRpc5rWQaa",
"confirmation_method": "automatic",
- "created": 1700592399,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"description": "Payment for Invoice",
- "id": "pi_3OEyy3DEQaroqDjs14vaghr0",
- "invoice": "in_1OEyy2DEQaroqDjsuRPt2KXA",
+ "id": "pi_NORMALIZED00000000000002",
+ "invoice": "in_NORMALIZED00000000000002",
"last_payment_error": {
- "charge": "ch_3OEyy3DEQaroqDjs1gdehahC",
+ "charge": "ch_NORMALIZED00000000000002",
"code": "card_declined",
"decline_code": "generic_decline",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
@@ -483,9 +485,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "ABa2sePBR7Lu711Z",
+ "fingerprint": "NORMALIZED000002",
"funding": "credit",
"generated_from": null,
"last4": "0341",
@@ -500,9 +502,9 @@
},
"wallet": null
},
- "created": 1700592402,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyy6DEQaroqDjscAhZ1Tzb",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -510,7 +512,7 @@
},
"type": "card_error"
},
- "latest_charge": "ch_3OEyy3DEQaroqDjs1gdehahC",
+ "latest_charge": "ch_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"next_action": null,
@@ -565,9 +567,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "ABa2sePBR7Lu711Z",
+ "fingerprint": "NORMALIZED000002",
"funding": "credit",
"generated_from": null,
"last4": "0341",
@@ -582,18 +584,18 @@
},
"wallet": null
},
- "created": 1700592402,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyy6DEQaroqDjscAhZ1Tzb",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
"livemode": false,
"metadata": {},
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_AHmbF72gKDPvqs?t=1700592405",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0007?t=1701494241",
"type": "card_error"
}
},
"param": null,
- "request_id": "req_AHmbF72gKDPvqs"
+ "request_id": "req_NORMALIZED0007"
}
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 8c4ab38d50c..de4e951526c 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
@@ -16,12 +16,12 @@
"status": null
},
"billing_reason": "manual",
- "charge": "ch_3OEyy3DEQaroqDjs1TeJdg1S",
+ "charge": "ch_NORMALIZED00000000000003",
"collection_method": "charge_automatically",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P358SWUcASaSWt",
+ "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": 1700592399,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4RWRPU3dqOTdjZThINlpWTXpFSjNvOGdIWUlYLDkxMTMzMjEz0200CnhxmAHd?s=ap",
- "id": "in_1OEyy2DEQaroqDjsuRPt2KXA",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMzU4RWRPU3dqOTdjZThINlpWTXpFSjNvOGdIWUlYLDkxMTMzMjEz0200CnhxmAHd/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDQ40200g3PImNOU?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpZOU5TZ2NBTXd6ZFpmSVo1QWpGUHdVaGNtcEJQLDkyMDM1MDQ40200g3PImNOU/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -55,29 +55,29 @@
"discount_amounts": [],
"discountable": true,
"discounts": [],
- "id": "il_1OEyy2DEQaroqDjscjyiZWKB",
- "invoice_item": "ii_1OEyy2DEQaroqDjsUHAJkp45",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700592398,
- "start": 1700592398
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEyy2DEQaroqDjsClpqf6Qb",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P358e9e33CbWxt",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -101,24 +101,24 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_1OEyy2DEQaroqDjsuRPt2KXA/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "69DA5EF9-0002",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
"paid_out_of_band": false,
- "payment_intent": "pi_3OEyy3DEQaroqDjs14vaghr0",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700592398,
- "period_start": 1700592398,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -136,9 +136,9 @@
"statement_descriptor": null,
"status": "paid",
"status_transitions": {
- "finalized_at": 1700592399,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700592411,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -154,5 +154,5 @@
"total_excluding_tax": 5000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1700592399
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.1.json
index 4c723cd3b79..fcb1c3c2e9d 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.1.json
@@ -1,34 +1,34 @@
{
"amount": -48000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
- "date": 1700592394,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Payment (Card ending in 4242)",
"discountable": false,
"discounts": [],
- "id": "ii_1OEyxyDEQaroqDjshhkuKTu6",
+ "id": "ii_NORMALIZED00000000000002",
"invoice": null,
"livemode": false,
"metadata": {},
"object": "invoiceitem",
"period": {
- "end": 1700592394,
- "start": 1700592394
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "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/replace_payment_method--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.2.json
index dbadd563603..11622f30a73 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.2.json
@@ -1,12 +1,12 @@
{
"amount": 48000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
- "date": 1700592395,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Zulip Cloud Standard",
"discountable": false,
"discounts": [],
- "id": "ii_1OEyxzDEQaroqDjsfKGNI9OG",
+ "id": "ii_NORMALIZED00000000000001",
"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_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.3.json
index dc9cffe1d09..e749716c470 100644
--- a/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.3.json
+++ b/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.3.json
@@ -1,34 +1,34 @@
{
"amount": 5000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
- "date": 1700592398,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": null,
"discountable": true,
"discounts": [],
- "id": "ii_1OEyy2DEQaroqDjsUHAJkp45",
+ "id": "ii_NORMALIZED00000000000003",
"invoice": null,
"livemode": false,
"metadata": {},
"object": "invoiceitem",
"period": {
- "end": 1700592398,
- "start": 1700592398
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1700592398,
+ "created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OEyy2DEQaroqDjsClpqf6Qb",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_P358e9e33CbWxt",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
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 54a695efa47..65f3f1e6bbb 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
@@ -20,7 +20,7 @@
"application": null,
"application_fee": null,
"application_fee_amount": null,
- "balance_transaction": "txn_3OEyxxDEQaroqDjs0BgcA3dQ",
+ "balance_transaction": "txn_NORMALIZED00000000000001",
"billing_details": {
"address": {
"city": null,
@@ -36,9 +36,9 @@
},
"calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
"captured": true,
- "created": 1700592393,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
"destination": null,
"dispute": null,
@@ -47,7 +47,7 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "ch_3OEyxxDEQaroqDjs0Jpvm8ZV",
+ "id": "ch_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {
@@ -55,8 +55,9 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip",
"seat_count": "6",
"type": "upgrade",
@@ -70,13 +71,13 @@
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
- "risk_score": 11,
+ "risk_score": 0,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_3OEyxxDEQaroqDjs0PMlUA1C",
- "payment_method": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -87,12 +88,12 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
},
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
@@ -116,16 +117,17 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIr286oGMgZ7PBucbcQ6LBbFyCl1VaY41WGBkHEp1lbWKWhlJ-__LTlJw4R4rq8QN0I4GBx-zBNjXoRk",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNf7qqsGMgZkFEoQtcA6LBaKVg2Ll3XQOe0lAsfp-S4JSZQOe6CzDRrIlEJ69j-C_foOWlNMJ4hn6-uH",
"refunded": false,
"refunds": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/ch_3OEyxxDEQaroqDjs0Jpvm8ZV/refunds"
+ "url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
},
"review": null,
"shipping": null,
@@ -141,26 +143,27 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=pi_3OEyxxDEQaroqDjs0PMlUA1C"
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_3OEyxxDEQaroqDjs0PMlUA1C_secret_tLFPeH51I31E0g48R3YR1224j",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_mA3WGOAKeG1RWpwwFeSFLWy8o",
"confirmation_method": "automatic",
- "created": 1700592393,
+ "created": 1000000000,
"currency": "usd",
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
- "id": "pi_3OEyxxDEQaroqDjs0PMlUA1C",
+ "id": "pi_NORMALIZED00000000000001",
"invoice": null,
"last_payment_error": null,
- "latest_charge": "ch_3OEyxxDEQaroqDjs0Jpvm8ZV",
+ "latest_charge": "ch_NORMALIZED00000000000001",
"livemode": false,
"metadata": {
"billing_modality": "charge_automatically",
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip",
"seat_count": "6",
"type": "upgrade",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"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 84ef1693c93..1c8beb12994 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
@@ -20,9 +20,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "ABa2sePBR7Lu711Z",
+ "fingerprint": "NORMALIZED000002",
"funding": "credit",
"generated_from": null,
"last4": "0341",
@@ -37,9 +37,9 @@
},
"wallet": null
},
- "created": 1700592402,
+ "created": 1000000000,
"customer": null,
- "id": "pm_1OEyy6DEQaroqDjscAhZ1Tzb",
+ "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
"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 998924a41cd..9186f182d1a 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
@@ -20,9 +20,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -37,9 +37,9 @@
},
"wallet": null
},
- "created": 1700592389,
+ "created": 1000000000,
"customer": null,
- "id": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "id": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"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 d534287a185..c78d3b4944c 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
@@ -22,9 +22,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "ABa2sePBR7Lu711Z",
+ "fingerprint": "NORMALIZED000002",
"funding": "credit",
"generated_from": null,
"last4": "0341",
@@ -39,9 +39,9 @@
},
"wallet": null
},
- "created": 1700592402,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyy6DEQaroqDjscAhZ1Tzb",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZrDEQaroqDjs906nPEKz",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -69,9 +69,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -86,9 +86,9 @@
},
"wallet": null
},
- "created": 1700592389,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"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 0f0d4f6811c..41e3bc1b122 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
@@ -22,9 +22,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "HIhaF5dAXctoIcSd",
+ "fingerprint": "NORMALIZED000003",
"funding": "credit",
"generated_from": null,
"last4": "4444",
@@ -39,9 +39,9 @@
},
"wallet": null
},
- "created": 1700592409,
- "customer": "cus_P358SWUcASaSWt",
- "id": "pm_1OEyyDDEQaroqDjsoHRzbvSp",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlZxDEQaroqDjsOkOpLsAE",
"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 43727845482..d5898444b1d 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_1OEyxtDEQaroqDjswaWF7vc1_secret_P3585ea4m3b4LJkn2FSTXY29JQrnOH0",
- "created": 1700592389,
- "customer": "cus_P358SWUcASaSWt",
+ "client_secret": "seti_1OIlZeDEQaroqDjsJIOtsqD2_secret_P6zY6O3NthCNXjAJNDcEkbNUV0P5oVE",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEyxtDEQaroqDjswaWF7vc1",
+ "id": "seti_1OIlZeDEQaroqDjsJIOtsqD2",
"last_setup_error": null,
- "latest_attempt": "setatt_1OEyxtDEQaroqDjscBfabQTU",
+ "latest_attempt": "setatt_1OIlZeDEQaroqDjsF83qwMij",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"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 fa319ff7ddc..f646bea902a 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
@@ -31,9 +31,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "hrFDcQvsK80IBqEa",
+ "fingerprint": "NORMALIZED000004",
"funding": "credit",
"generated_from": null,
"last4": "0002",
@@ -48,25 +48,25 @@
},
"wallet": null
},
- "created": 1700592400,
+ "created": 1000000000,
"customer": null,
- "id": "pm_1OEyy4DEQaroqDjsE6DBrm3Y",
+ "id": "pm_1OIlZpDEQaroqDjsNC24Lz0m",
"livemode": false,
"metadata": {},
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_4VqbLXtIfjk3G1?t=1700592400",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0008?t=1701494237",
"setup_intent": {
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OEyy4DEQaroqDjsaNADuj5r_secret_P358KPXgMgJyl6ZA9QHGYXUY682jC4l",
- "created": 1700592400,
- "customer": "cus_P358SWUcASaSWt",
+ "client_secret": "seti_1OIlZpDEQaroqDjsLWVSyL38_secret_P6zYYgOUSiaNEq33DqjWgfya7LpqyYN",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEyy4DEQaroqDjsaNADuj5r",
+ "id": "seti_1OIlZpDEQaroqDjsLWVSyL38",
"last_setup_error": {
"code": "card_declined",
"decline_code": "generic_decline",
@@ -94,9 +94,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "hrFDcQvsK80IBqEa",
+ "fingerprint": "NORMALIZED000004",
"funding": "credit",
"generated_from": null,
"last4": "0002",
@@ -111,9 +111,9 @@
},
"wallet": null
},
- "created": 1700592400,
+ "created": 1000000000,
"customer": null,
- "id": "pm_1OEyy4DEQaroqDjsE6DBrm3Y",
+ "id": "pm_1OIlZpDEQaroqDjsNC24Lz0m",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -121,7 +121,7 @@
},
"type": "card_error"
},
- "latest_attempt": "setatt_1OEyy5DEQaroqDjscZZ6jYpw",
+ "latest_attempt": "setatt_1OIlZpDEQaroqDjsTUEM7spX",
"livemode": false,
"mandate": null,
"metadata": {},
@@ -158,10 +158,10 @@
"Content-Length": "4102",
"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": "Tue, 21 Nov 2023 18:46:41 GMT",
- "Idempotency-Key": "9e6c8bab-eadc-42c0-a55b-e0f512e46dbd",
- "Original-Request": "req_4VqbLXtIfjk3G1",
- "Request-Id": "req_4VqbLXtIfjk3G1",
+ "Date": "NORMALIZED DATETIME",
+ "Idempotency-Key": "47d63e51-c40b-4a6f-b458-cffb08525cf5",
+ "Original-Request": "req_NORMALIZED0008",
+ "Request-Id": "req_NORMALIZED0008",
"Server": "nginx",
"Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload",
"Stripe-Should-Retry": "false",
@@ -199,9 +199,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "hrFDcQvsK80IBqEa",
+ "fingerprint": "NORMALIZED000004",
"funding": "credit",
"generated_from": null,
"last4": "0002",
@@ -216,25 +216,25 @@
},
"wallet": null
},
- "created": 1700592400,
+ "created": 1000000000,
"customer": null,
- "id": "pm_1OEyy4DEQaroqDjsE6DBrm3Y",
+ "id": "pm_1OIlZpDEQaroqDjsNC24Lz0m",
"livemode": false,
"metadata": {},
"object": "payment_method",
"type": "card"
},
- "request_log_url": "https://dashboard.stripe.com/test/logs/req_4VqbLXtIfjk3G1?t=1700592400",
+ "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED0008?t=1701494237",
"setup_intent": {
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
- "client_secret": "seti_1OEyy4DEQaroqDjsaNADuj5r_secret_P358KPXgMgJyl6ZA9QHGYXUY682jC4l",
- "created": 1700592400,
- "customer": "cus_P358SWUcASaSWt",
+ "client_secret": "seti_1OIlZpDEQaroqDjsLWVSyL38_secret_P6zYYgOUSiaNEq33DqjWgfya7LpqyYN",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEyy4DEQaroqDjsaNADuj5r",
+ "id": "seti_1OIlZpDEQaroqDjsLWVSyL38",
"last_setup_error": {
"code": "card_declined",
"decline_code": "generic_decline",
@@ -262,9 +262,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "hrFDcQvsK80IBqEa",
+ "fingerprint": "NORMALIZED000004",
"funding": "credit",
"generated_from": null,
"last4": "0002",
@@ -279,9 +279,9 @@
},
"wallet": null
},
- "created": 1700592400,
+ "created": 1000000000,
"customer": null,
- "id": "pm_1OEyy4DEQaroqDjsE6DBrm3Y",
+ "id": "pm_1OIlZpDEQaroqDjsNC24Lz0m",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -289,7 +289,7 @@
},
"type": "card_error"
},
- "latest_attempt": "setatt_1OEyy5DEQaroqDjscZZ6jYpw",
+ "latest_attempt": "setatt_1OIlZpDEQaroqDjsTUEM7spX",
"livemode": false,
"mandate": null,
"metadata": {},
@@ -316,5 +316,5 @@
}
},
"param": null,
- "request_id": "req_4VqbLXtIfjk3G1"
+ "request_id": "req_NORMALIZED0008"
}
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 6df8e244307..1f9c5383f1e 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_1OEyy6DEQaroqDjsWKca5mi1_secret_P35857EUQ8ACmaDGJEdDOzXhnfTkB4X",
- "created": 1700592402,
- "customer": "cus_P358SWUcASaSWt",
+ "client_secret": "seti_1OIlZrDEQaroqDjsyre4tf9O_secret_P6zY7zcvqaVDdN0kSVDhl0Wha343Cnd",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEyy6DEQaroqDjsWKca5mi1",
+ "id": "seti_1OIlZrDEQaroqDjsyre4tf9O",
"last_setup_error": null,
- "latest_attempt": "setatt_1OEyy6DEQaroqDjsB8Rbw1q0",
+ "latest_attempt": "setatt_1OIlZrDEQaroqDjsvLyg1fAn",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OEyy6DEQaroqDjscAhZ1Tzb",
+ "payment_method": "pm_1OIlZrDEQaroqDjs906nPEKz",
"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 ebcaa1a81b2..be12ca8b988 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_1OEyyDDEQaroqDjsfiEXlrxq_secret_P358ShYOM6ct69ahuFTsYrXOYbte4Rh",
- "created": 1700592409,
- "customer": "cus_P358SWUcASaSWt",
+ "client_secret": "seti_1OIlZxDEQaroqDjsPzt3hBNY_secret_P6zZbDxpsvwhp4CS1HeM87iKybdqTJj",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEyyDDEQaroqDjsfiEXlrxq",
+ "id": "seti_1OIlZxDEQaroqDjsPzt3hBNY",
"last_setup_error": null,
- "latest_attempt": "setatt_1OEyyDDEQaroqDjs5bHq5840",
+ "latest_attempt": "setatt_1OIlZxDEQaroqDjs3OfhknKz",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OEyyDDEQaroqDjsoHRzbvSp",
+ "payment_method": "pm_1OIlZxDEQaroqDjsOkOpLsAE",
"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 277ab7dc64c..8ab0bbd11d6 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_1OEyxqDEQaroqDjsJxHHiD8D_secret_P358hsvKlThXU29WvWn50VVqhAfoZHk",
- "created": 1700592386,
- "customer": "cus_P358SWUcASaSWt",
+ "client_secret": "seti_1OIlZeDEQaroqDjs87mfD2SQ_secret_P6zY7cH1Skfi1WTapR7VubSRqHNRX91",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEyxqDEQaroqDjsJxHHiD8D",
+ "id": "seti_1OIlZeDEQaroqDjs87mfD2SQ",
"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 7b484f341b4..a5a10c9ea75 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_1OEyy4DEQaroqDjsqfvkOxQA_secret_P358rowO5fvK8BWfWSCTWj5IzMirSer",
- "created": 1700592400,
- "customer": "cus_P358SWUcASaSWt",
+ "client_secret": "seti_1OIlZpDEQaroqDjsXQbFIX56_secret_P6zY6ht7fOjMQXVfKSG9gi1d24pF6wM",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEyy4DEQaroqDjsqfvkOxQA",
+ "id": "seti_1OIlZpDEQaroqDjsXQbFIX56",
"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 6660a3090e8..d81fae69086 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_1OEyy6DEQaroqDjszotw82xO_secret_P358YnMokVFD2b3uh82S8KTlnMM50GK",
- "created": 1700592402,
- "customer": "cus_P358SWUcASaSWt",
+ "client_secret": "seti_1OIlZqDEQaroqDjsucpwOQo9_secret_P6zYY9AlN3kSppaNkZqGFfPeZZqqWzb",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEyy6DEQaroqDjszotw82xO",
+ "id": "seti_1OIlZqDEQaroqDjsucpwOQo9",
"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 2d829e0beb4..7327ef15c4d 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_1OEyyCDEQaroqDjsTjq1NBvt_secret_P358eMXKwYHZCtJoAy1KEl5lAWtTtML",
- "created": 1700592408,
- "customer": "cus_P358SWUcASaSWt",
+ "client_secret": "seti_1OIlZwDEQaroqDjsh2QFjVab_secret_P6zZIZHPqh8n82zFyxg2DxsIFSMRkHh",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEyyCDEQaroqDjsTjq1NBvt",
+ "id": "seti_1OIlZwDEQaroqDjsh2QFjVab",
"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 43727845482..d5898444b1d 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_1OEyxtDEQaroqDjswaWF7vc1_secret_P3585ea4m3b4LJkn2FSTXY29JQrnOH0",
- "created": 1700592389,
- "customer": "cus_P358SWUcASaSWt",
+ "client_secret": "seti_1OIlZeDEQaroqDjsJIOtsqD2_secret_P6zY6O3NthCNXjAJNDcEkbNUV0P5oVE",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEyxtDEQaroqDjswaWF7vc1",
+ "id": "seti_1OIlZeDEQaroqDjsJIOtsqD2",
"last_setup_error": null,
- "latest_attempt": "setatt_1OEyxtDEQaroqDjscBfabQTU",
+ "latest_attempt": "setatt_1OIlZeDEQaroqDjsF83qwMij",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OEyxsDEQaroqDjsklOoFXrh",
+ "payment_method": "pm_1OIlZeDEQaroqDjsfUfdHhhh",
"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 6df8e244307..1f9c5383f1e 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_1OEyy6DEQaroqDjsWKca5mi1_secret_P35857EUQ8ACmaDGJEdDOzXhnfTkB4X",
- "created": 1700592402,
- "customer": "cus_P358SWUcASaSWt",
+ "client_secret": "seti_1OIlZrDEQaroqDjsyre4tf9O_secret_P6zY7zcvqaVDdN0kSVDhl0Wha343Cnd",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEyy6DEQaroqDjsWKca5mi1",
+ "id": "seti_1OIlZrDEQaroqDjsyre4tf9O",
"last_setup_error": null,
- "latest_attempt": "setatt_1OEyy6DEQaroqDjsB8Rbw1q0",
+ "latest_attempt": "setatt_1OIlZrDEQaroqDjsvLyg1fAn",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OEyy6DEQaroqDjscAhZ1Tzb",
+ "payment_method": "pm_1OIlZrDEQaroqDjs906nPEKz",
"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 ebcaa1a81b2..be12ca8b988 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_1OEyyDDEQaroqDjsfiEXlrxq_secret_P358ShYOM6ct69ahuFTsYrXOYbte4Rh",
- "created": 1700592409,
- "customer": "cus_P358SWUcASaSWt",
+ "client_secret": "seti_1OIlZxDEQaroqDjsPzt3hBNY_secret_P6zZbDxpsvwhp4CS1HeM87iKybdqTJj",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEyyDDEQaroqDjsfiEXlrxq",
+ "id": "seti_1OIlZxDEQaroqDjsPzt3hBNY",
"last_setup_error": null,
- "latest_attempt": "setatt_1OEyyDDEQaroqDjs5bHq5840",
+ "latest_attempt": "setatt_1OIlZxDEQaroqDjs3OfhknKz",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OEyyDDEQaroqDjsoHRzbvSp",
+ "payment_method": "pm_1OIlZxDEQaroqDjsOkOpLsAE",
"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 a963c6f4cb8..0495f4f66fc 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1700592386,
+ "created": 1000000000,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -22,7 +22,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -33,8 +33,8 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1700678786,
- "id": "cs_test_c1ZvqQVYBUdOipkuVfkGzD6LdP9SNLn8YX9QbZGA0v51kSZ6yrFlsQrr3k",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED02SKaaUzxhZNkh3ToJNAOmlEnoA374QbvPe6tJ90YHXbAszc",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OEyxqDEQaroqDjsJxHHiD8D",
+ "setup_intent": "seti_1OIlZeDEQaroqDjs87mfD2SQ",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_c1ZvqQVYBUdOipkuVfkGzD6LdP9SNLn8YX9QbZGA0v51kSZ6yrFlsQrr3k#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02SKaaUzxhZNkh3ToJNAOmlEnoA374QbvPe6tJ90YHXbAszc#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 feac0a45f7b..7c944bc9d21 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1700592400,
+ "created": 1000000000,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -22,7 +22,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -33,8 +33,8 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1700678800,
- "id": "cs_test_c1ctUxkqGinFH346rPiY7R8TmFzB6F3e8T9L8MPPrTH0fEFo3sK685V0ur",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED0344J3gLMGcZFPoX13ysPhw4cikv7easr3hp7PUNWhN80D40",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OEyy4DEQaroqDjsqfvkOxQA",
+ "setup_intent": "seti_1OIlZpDEQaroqDjsXQbFIX56",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_c1ctUxkqGinFH346rPiY7R8TmFzB6F3e8T9L8MPPrTH0fEFo3sK685V0ur#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED0344J3gLMGcZFPoX13ysPhw4cikv7easr3hp7PUNWhN80D40#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 470865b5c9f..aaf389abb65 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1700592402,
+ "created": 1000000000,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -22,7 +22,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -33,8 +33,8 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1700678802,
- "id": "cs_test_c1mXJzikULLsWHwbsdSRiaXzNe2F7eSPAQcXCvnfVeInO7fIFRHsMorhGe",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED04EKM00XLa8FiQQdO2MizZ1Y6jSmJ00Vsn52z489MttJaKmi",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OEyy6DEQaroqDjszotw82xO",
+ "setup_intent": "seti_1OIlZqDEQaroqDjsucpwOQo9",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_c1mXJzikULLsWHwbsdSRiaXzNe2F7eSPAQcXCvnfVeInO7fIFRHsMorhGe#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED04EKM00XLa8FiQQdO2MizZ1Y6jSmJ00Vsn52z489MttJaKmi#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 3018572cc88..9abde5e5891 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1700592408,
+ "created": 1000000000,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -22,7 +22,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -33,8 +33,8 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1700678808,
- "id": "cs_test_c19zbL8kZgPUuNhYtMMYmVU8BhaRQiCjKIMUSS5J20LSf0WDIkAcHoioLK",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED05vYwRldaQtZFdoWUxXnWIpoybxGyq4gP8ZWt5oJnsIF3yZn",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OEyyCDEQaroqDjsTjq1NBvt",
+ "setup_intent": "seti_1OIlZwDEQaroqDjsh2QFjVab",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_c19zbL8kZgPUuNhYtMMYmVU8BhaRQiCjKIMUSS5J20LSf0WDIkAcHoioLK#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED05vYwRldaQtZFdoWUxXnWIpoybxGyq4gP8ZWt5oJnsIF3yZn#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 2e76f44bcd1..7b7f271349a 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1700592414,
+ "created": 1000000000,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -22,7 +22,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -33,8 +33,8 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1700678814,
- "id": "cs_test_c17gy6lBD0J1E6I5DfmhduDXNaEhFUlkCa3SsJqEzBVXpMhYjYIjCW6Iwm",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED06jNJ3WW3j1zRJyffaNKdVpQnJIE8FATMozOLlPYJx9V1snB",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OEyyIDEQaroqDjsDKCpImmm",
+ "setup_intent": "seti_1OIla2DEQaroqDjszldAemOH",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_c17gy6lBD0J1E6I5DfmhduDXNaEhFUlkCa3SsJqEzBVXpMhYjYIjCW6Iwm#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED06jNJ3WW3j1zRJyffaNKdVpQnJIE8FATMozOLlPYJx9V1snB#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 f6d29b6158c..dc19da282bf 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1700592386,
+ "created": 1000000000,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -24,7 +24,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -35,8 +35,8 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1700678786,
- "id": "cs_test_c1ZvqQVYBUdOipkuVfkGzD6LdP9SNLn8YX9QbZGA0v51kSZ6yrFlsQrr3k",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED02SKaaUzxhZNkh3ToJNAOmlEnoA374QbvPe6tJ90YHXbAszc",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OEyxqDEQaroqDjsJxHHiD8D",
+ "setup_intent": "seti_1OIlZeDEQaroqDjs87mfD2SQ",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_c1ZvqQVYBUdOipkuVfkGzD6LdP9SNLn8YX9QbZGA0v51kSZ6yrFlsQrr3k#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02SKaaUzxhZNkh3ToJNAOmlEnoA374QbvPe6tJ90YHXbAszc#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 b1dc0b80afe..9722f9e42d6 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1700592402,
+ "created": 1000000000,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -24,7 +24,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -35,8 +35,8 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1700678802,
- "id": "cs_test_c1mXJzikULLsWHwbsdSRiaXzNe2F7eSPAQcXCvnfVeInO7fIFRHsMorhGe",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED04EKM00XLa8FiQQdO2MizZ1Y6jSmJ00Vsn52z489MttJaKmi",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OEyy6DEQaroqDjszotw82xO",
+ "setup_intent": "seti_1OIlZqDEQaroqDjsucpwOQo9",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_c1mXJzikULLsWHwbsdSRiaXzNe2F7eSPAQcXCvnfVeInO7fIFRHsMorhGe#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED04EKM00XLa8FiQQdO2MizZ1Y6jSmJ00Vsn52z489MttJaKmi#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 b950c6f6c26..3f10bd93112 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1700592408,
+ "created": 1000000000,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -24,7 +24,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_P358SWUcASaSWt",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -35,8 +35,8 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1700678808,
- "id": "cs_test_c19zbL8kZgPUuNhYtMMYmVU8BhaRQiCjKIMUSS5J20LSf0WDIkAcHoioLK",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED05vYwRldaQtZFdoWUxXnWIpoybxGyq4gP8ZWt5oJnsIF3yZn",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OEyyCDEQaroqDjsTjq1NBvt",
+ "setup_intent": "seti_1OIlZwDEQaroqDjsh2QFjVab",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_c19zbL8kZgPUuNhYtMMYmVU8BhaRQiCjKIMUSS5J20LSf0WDIkAcHoioLK#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED05vYwRldaQtZFdoWUxXnWIpoybxGyq4gP8ZWt5oJnsIF3yZn#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 51a59d68c2d..f6c64322de6 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_1OFf15DEQaroqDjs1q9XiIYO",
+ "default_payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"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 da2cbf7d0dd..06eeafa2e83 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OFf15DEQaroqDjs1q9XiIYO",
+ "id": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"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 da2cbf7d0dd..06eeafa2e83 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OFf15DEQaroqDjs1q9XiIYO",
+ "id": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"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 da2cbf7d0dd..06eeafa2e83 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OFf15DEQaroqDjs1q9XiIYO",
+ "id": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"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 da2cbf7d0dd..06eeafa2e83 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OFf15DEQaroqDjs1q9XiIYO",
+ "id": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"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 0bb139259f7..3fcdd6ebbb3 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_1OFf15DEQaroqDjs1q9XiIYO",
+ "default_payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OFf17DEQaroqDjsU1s8LSFB",
+ "id": "evt_1OIla8DEQaroqDjs59M4D2Lm",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "94a6e570-9c1e-45bc-bfdf-e1990be34b10"
+ "idempotency_key": "05b461b6-47de-49c8-8687-e3bdbfd87362"
},
"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 00f5b517481..38d91e33dd2 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
@@ -61,6 +61,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OFf15DEQaroqDjs1q9XiIYO",
+ "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPjk_aoGMgYcZbjY3nY6LBanVRp3LdlPDRfe31_DM9Sx6RUhHlzPIQE47LWMcCfNYRm50P8LebxIg6cZ",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPP7qqsGMgaPQrLSu6w6LBaZABjQDDz3iaViazANp_FudqC1SxURFmNaKuUb2Qar3fWR6_lwaVEL0wtu",
"refunded": false,
"refunds": {
"data": [],
@@ -149,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_M6ApwY4vAGFmAi20dvhDBb0IR",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_L9an0tnDQUFOpjq1Jqx3MMjbo",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -165,6 +167,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OFf15DEQaroqDjs1q9XiIYO",
+ "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3OFf19DEQaroqDjs0qiviyEA",
+ "id": "evt_3OIlaADEQaroqDjs12ygc4Pz",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "a3574bba-9be7-4b32-a238-558b051dfb96"
+ "idempotency_key": "ce26d6f7-8cbd-49de-b509-a03735c59549"
},
"type": "payment_intent.succeeded"
},
@@ -258,6 +261,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -279,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OFf15DEQaroqDjs1q9XiIYO",
+ "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -290,7 +294,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -319,9 +323,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPjk_aoGMgZTMbwVPPA6LBYOFAnAQNWX3oHYRTeyBRUbEddYOzstDN76W_doC3tz9_453G4jbZAARiny",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPP7qqsGMgZbVo4HtN06LBbLprWE95XXLwzx0tAuLyF3s5E5vBAppt-CnMPff_Z-jwVY-sxzL26IMxWM",
"refunded": false,
"refunds": {
"data": [],
@@ -341,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3OFf19DEQaroqDjs0ugYOOnJ",
+ "id": "evt_3OIlaADEQaroqDjs1JXxaEP6",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "a3574bba-9be7-4b32-a238-558b051dfb96"
+ "idempotency_key": "ce26d6f7-8cbd-49de-b509-a03735c59549"
},
"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 2415bd302a3..6b8defb8b26 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM21hVDlsakpzWHpqaUk2ZkRncEx2cWlNektoczlCLDkxMjk0ODQz0200lVZQw1fc?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM21hVDlsakpzWHpqaUk2ZkRncEx2cWlNektoczlCLDkxMjk0ODQz0200lVZQw1fc/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYy0200inV4WiiL/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1OFf1DDEQaroqDjsNV7v85uL",
+ "id": "evt_1OIlaEDEQaroqDjs8FIl5jaS",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "04b05b83-138d-47f5-b93e-1c8868d16aeb"
+ "idempotency_key": "389a31e4-08c7-4bc5-9ac7-f7fd7bcf91da"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OFf1CDEQaroqDjsZg6gZ4uO",
+ "id": "evt_1OIlaDDEQaroqDjsvxzk9AfH",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "7993c516-09b3-4ce7-85d3-64435d27cdb3"
+ "idempotency_key": "8dba70d0-31f3-4ab5-84a4-186515ec3edc"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OFf1BDEQaroqDjsbR7QE22k",
+ "id": "evt_1OIlaCDEQaroqDjsYekhiHyu",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "765364b4-10a9-4f5a-b210-559f97cb9a7b"
+ "idempotency_key": "1626f435-14a5-4868-99e2-07773fa490db"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OFf1BDEQaroqDjsmNut4lRS",
+ "id": "evt_1OIlaCDEQaroqDjseTmT9455",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "82aa6384-75e9-450d-af66-a70db31b4e42"
+ "idempotency_key": "a0959ed5-b68e-4289-9603-931138a0cf57"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OFf15DEQaroqDjs1q9XiIYO",
+ "default_payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OFf1BDEQaroqDjs421MxAts",
+ "id": "evt_1OIlaCDEQaroqDjszVfZUoKw",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "82aa6384-75e9-450d-af66-a70db31b4e42"
+ "idempotency_key": "a0959ed5-b68e-4289-9603-931138a0cf57"
},
"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 54d0901f08e..913f43c8ec2 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM21hVDlsakpzWHpqaUk2ZkRncEx2cWlNektoczlCLDkxMjk0ODQz0200lVZQw1fc?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM21hVDlsakpzWHpqaUk2ZkRncEx2cWlNektoczlCLDkxMjk0ODQz0200lVZQw1fc/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYy0200inV4WiiL/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,236 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OFf1DDEQaroqDjsJWyQlBeS",
+ "id": "evt_1OIlaEDEQaroqDjsCHc2evoH",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "04b05b83-138d-47f5-b93e-1c8868d16aeb"
+ "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"
},
"type": "invoice.paid"
},
@@ -269,9 +492,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QM21hVDlsakpzWHpqaUk2ZkRncEx2cWlNektoczlCLDkxMjk0ODQz0200lVZQw1fc?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM21hVDlsakpzWHpqaUk2ZkRncEx2cWlNektoczlCLDkxMjk0ODQz0200lVZQw1fc/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYy0200inV4WiiL/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -436,13 +659,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OFf1DDEQaroqDjs4sPApaUM",
+ "id": "evt_1OIlaEDEQaroqDjs2rPtjbtE",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "04b05b83-138d-47f5-b93e-1c8868d16aeb"
+ "idempotency_key": "389a31e4-08c7-4bc5-9ac7-f7fd7bcf91da"
},
"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 8faea92f18f..6d922067afe 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,229 +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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM21hVDlsakpzWHpqaUk2ZkRncEx2cWlNektoczlCLDkxMjk0ODQz0200lVZQw1fc?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QM21hVDlsakpzWHpqaUk2ZkRncEx2cWlNektoczlCLDkxMjk0ODQz0200lVZQw1fc/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_1OFf1DDEQaroqDjs7ihhQ4sQ",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "04b05b83-138d-47f5-b93e-1c8868d16aeb"
- },
- "type": "invoice.payment_succeeded"
- }
- ],
+ "data": [],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.6.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.6.json
deleted file mode 100644
index 6d922067afe..00000000000
--- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.6.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/events"
-}
diff --git a/corporate/tests/stripe_fixtures/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 308f2806d64..9bd3eddb5b8 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM21hVDlsakpzWHpqaUk2ZkRncEx2cWlNektoczlCLDkxMjk0ODQy0200Or6SDpzt?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYx0200R70XCaho?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QM21hVDlsakpzWHpqaUk2ZkRncEx2cWlNektoczlCLDkxMjk0ODQy0200Or6SDpzt/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRG53SFdJc2dSeGJKY2RVRkFmc3lZSGQ5ejM2LDkyMDM1MDYx0200R70XCaho/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 7516002a94b..8deac67b2f4 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
@@ -55,6 +55,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OFf15DEQaroqDjs1q9XiIYO",
+ "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPjk_aoGMgZ2xhla3UQ6LBZ1xB9jef8E7cgmIXMzB-HUUA6ELeya1StU6zBxLj5-JYRe97hmmqZd3S-C",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPP7qqsGMgahBLsndjk6LBZoXgulf69rWsB4tnOoaJVzB3tp-E9iCpxTx_eialqqbYm8jjCKVbsM5KZI",
"refunded": false,
"refunds": {
"data": [],
@@ -143,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_M6ApwY4vAGFmAi20dvhDBb0IR",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_L9an0tnDQUFOpjq1Jqx3MMjbo",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -159,6 +161,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OFf15DEQaroqDjs1q9XiIYO",
+ "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"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 57bf26dc2ac..6c157a62573 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_1OFf15DEQaroqDjsmBBQn3qT_secret_P3maEbzXpQL4Xc7h5qZnIdFY4d5J69J",
+ "client_secret": "seti_1OIla7DEQaroqDjsQem9TBd8_secret_P6zZAXHh1EQj6SaVekZg8iPWUUXZtYn",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OFf15DEQaroqDjsmBBQn3qT",
+ "id": "seti_1OIla7DEQaroqDjsQem9TBd8",
"last_setup_error": null,
- "latest_attempt": "setatt_1OFf15DEQaroqDjsBypUu14v",
+ "latest_attempt": "setatt_1OIla7DEQaroqDjs7qGkcEzl",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OFf15DEQaroqDjs1q9XiIYO",
+ "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"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 3a065e77f4f..ffcadb98dfd 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_1OFf13DEQaroqDjsH1JB6YyD_secret_P3maeH1qbveHJgbfDxuzjKEgLmEstlk",
+ "client_secret": "seti_1OIla6DEQaroqDjsoY95LSwi_secret_P6zZwyEYoDkXjcQFKGKziJRo3ck3jwT",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OFf13DEQaroqDjsH1JB6YyD",
+ "id": "seti_1OIla6DEQaroqDjsoY95LSwi",
"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 57bf26dc2ac..6c157a62573 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_1OFf15DEQaroqDjsmBBQn3qT_secret_P3maEbzXpQL4Xc7h5qZnIdFY4d5J69J",
+ "client_secret": "seti_1OIla7DEQaroqDjsQem9TBd8_secret_P6zZAXHh1EQj6SaVekZg8iPWUUXZtYn",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OFf15DEQaroqDjsmBBQn3qT",
+ "id": "seti_1OIla7DEQaroqDjsQem9TBd8",
"last_setup_error": null,
- "latest_attempt": "setatt_1OFf15DEQaroqDjsBypUu14v",
+ "latest_attempt": "setatt_1OIla7DEQaroqDjs7qGkcEzl",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OFf15DEQaroqDjs1q9XiIYO",
+ "payment_method": "pm_1OIla7DEQaroqDjs1Clp2qPy",
"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 b739c0a6ac5..737d4fc2f76 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED029J746LIJLVM1nRf0gzX4s3NghkCEmbEfSuCLoCQvPuv1VR",
+ "id": "cs_test_NORMALIZED024HfiyBzSqgQiXKAuVF6IpI49pqQqSpRyNEwy9gfdLuG27j",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OFf13DEQaroqDjsH1JB6YyD",
+ "setup_intent": "seti_1OIla6DEQaroqDjsoY95LSwi",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED029J746LIJLVM1nRf0gzX4s3NghkCEmbEfSuCLoCQvPuv1VR#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED024HfiyBzSqgQiXKAuVF6IpI49pqQqSpRyNEwy9gfdLuG27j#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 48d27c1950f..05ae18a94f0 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED029J746LIJLVM1nRf0gzX4s3NghkCEmbEfSuCLoCQvPuv1VR",
+ "id": "cs_test_NORMALIZED024HfiyBzSqgQiXKAuVF6IpI49pqQqSpRyNEwy9gfdLuG27j",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OFf13DEQaroqDjsH1JB6YyD",
+ "setup_intent": "seti_1OIla6DEQaroqDjsoY95LSwi",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED029J746LIJLVM1nRf0gzX4s3NghkCEmbEfSuCLoCQvPuv1VR#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED024HfiyBzSqgQiXKAuVF6IpI49pqQqSpRyNEwy9gfdLuG27j#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 70e18e4dedc..bc0be9fbb5a 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_1OEq5XDEQaroqDjsE08QDOEc",
+ "default_payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"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 049143480bf..0f3d96442ed 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "id": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"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 049143480bf..0f3d96442ed 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "id": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"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 049143480bf..0f3d96442ed 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "id": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"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 049143480bf..0f3d96442ed 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "id": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"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 f4095e98b0f..5cbc1afb1e1 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "id": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"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 36d640d850b..f3902855a1d 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "id": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"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 76b84b37c1e..1e4b280b702 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_1OEq5XDEQaroqDjsE08QDOEc",
+ "default_payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OEq5ZDEQaroqDjsEJKsLs0r",
+ "id": "evt_1OIlaIDEQaroqDjsrCxGZtUx",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "f075917c-6107-4011-a7f1-3900567a0cf3"
+ "idempotency_key": "7d199a8a-c910-400b-a3db-c609a2e69b43"
},
"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 69fb066ade7..070383114aa 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
@@ -61,6 +61,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMHr8aoGMgaB7ndHIWY6LBbt4fIv9uULX3iAQ3ITUxBjEfR4v5vgsE2Dx8n__dQfhoovzSy-sMB17iU8",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKP77qqsGMgYv723Z7L46LBZ4t9uZuwmiBm9CF7Dvy6l8mndd5odRfIQUS4DDEEohgL--C09jw5fGSp7C",
"refunded": false,
"refunds": {
"data": [],
@@ -149,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_eYLA3D7ohAqPQ59UJVTA8WDnu",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_s3q50TcfcD1ojZQpTBlz2NPZG",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -165,6 +167,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3OEq5bDEQaroqDjs0GVlV7cm",
+ "id": "evt_3OIlaLDEQaroqDjs1Mc37zrr",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "74e177da-210b-4ba4-834e-9a9b6cd47a6d"
+ "idempotency_key": "94894db5-b53f-4291-8c60-0797cb9be938"
},
"type": "payment_intent.succeeded"
},
@@ -258,6 +261,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -279,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -290,7 +294,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -319,9 +323,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMDr8aoGMga861mxCk86LBb-QNhgLvRaBt4V1jAfen2hnXFCSVdIEg2sDvElTmeWr4uVfm7In6gyoFei",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKP37qqsGMgYlqUoD_7Y6LBZXaz5wmIQShE9GqfyxgHBiRukjj0rjL6zAXLPh3JRrQX7jEqdijefB60kS",
"refunded": false,
"refunds": {
"data": [],
@@ -341,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3OEq5bDEQaroqDjs0Apqej5g",
+ "id": "evt_3OIlaLDEQaroqDjs19h8hDXV",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "74e177da-210b-4ba4-834e-9a9b6cd47a6d"
+ "idempotency_key": "94894db5-b53f-4291-8c60-0797cb9be938"
},
"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 5ff0e56721f..df133f186c5 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDc102003eiBMKW1?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDc102003eiBMKW1/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1OEq5fDEQaroqDjsWArRk6q8",
+ "id": "evt_1OIlaODEQaroqDjsFhLOWNpz",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "998fe9a6-b299-42f9-81a0-012a1c081160"
+ "idempotency_key": "67b9c215-56e2-490a-ad5a-7864ea57659c"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OEq5eDEQaroqDjslKf0xsiV",
+ "id": "evt_1OIlaNDEQaroqDjs7dBiJvh6",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "819ad06a-6d2b-474b-8a0a-0645f9768b9d"
+ "idempotency_key": "91f45331-aa32-43d4-868b-68b5d8d79678"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OEq5eDEQaroqDjszB9DmLdY",
+ "id": "evt_1OIlaNDEQaroqDjs1ol2Sfua",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "43a03928-5872-41ed-bdd0-c4d99a8d449e"
+ "idempotency_key": "b89d03d0-8bb4-4544-b16f-03e58d8c0909"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OEq5dDEQaroqDjsuW06CT0j",
+ "id": "evt_1OIlaMDEQaroqDjspqGJ55Ox",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "06a87593-f2ae-4eb0-aa0e-83fbc9f15b07"
+ "idempotency_key": "b507461a-5688-4b9e-8ad4-fe9440b24b31"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "default_payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1OEq5dDEQaroqDjsIaYH1D59",
+ "id": "evt_1OIlaMDEQaroqDjstZzhiUU8",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "06a87593-f2ae-4eb0-aa0e-83fbc9f15b07"
+ "idempotency_key": "b507461a-5688-4b9e-8ad4-fe9440b24b31"
},
"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 d3131822f96..e44257520bf 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDc20200mD76fW0N?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDc20200mD76fW0N/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,236 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OEq5gDEQaroqDjsT5YnYD1e",
+ "id": "evt_1OIlaODEQaroqDjsa7EXSwio",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "998fe9a6-b299-42f9-81a0-012a1c081160"
+ "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"
},
"type": "invoice.paid"
},
@@ -269,9 +492,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDc102003eiBMKW1?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDc102003eiBMKW1/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -436,13 +659,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OEq5fDEQaroqDjsu38jvcsk",
+ "id": "evt_1OIlaODEQaroqDjsCOB6sDsD",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "998fe9a6-b299-42f9-81a0-012a1c081160"
+ "idempotency_key": "67b9c215-56e2-490a-ad5a-7864ea57659c"
},
"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 90c385a6042..6d922067afe 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,229 +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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDc20200mD76fW0N?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDc20200mD76fW0N/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_1OEq5gDEQaroqDjsPgWXbdfk",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "998fe9a6-b299-42f9-81a0-012a1c081160"
- },
- "type": "invoice.payment_succeeded"
- }
- ],
+ "data": [],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.6.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.6.json
deleted file mode 100644
index 6d922067afe..00000000000
--- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.6.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/events"
-}
diff --git a/corporate/tests/stripe_fixtures/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 dc4a8a0795c..1c590153d10 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDc102003eiBMKW1?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDc102003eiBMKW1/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDcy0200CDJlJAia/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 549b7eadc5d..4bc90800b47 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4TVRnMVNhSVpXMkhQaHcxTmxQZHB5Y2J1cmppLDkxMDk5MDc50200XJ3z7NiD?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaM1VYcmpzRzF6Z2R2VFFUanlCcXE2WmhxSER6LDkyMDM1MDc10200ZkKoZc1e?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4TVRnMVNhSVpXMkhQaHcxTmxQZHB5Y2J1cmppLDkxMDk5MDc50200XJ3z7NiD/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaM1VYcmpzRzF6Z2R2VFFUanlCcXE2WmhxSER6LDkyMDM1MDc10200ZkKoZc1e/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 64f45b12280..eaaa4ca2dc8 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4RzNVRW5JU0tjTzZlN3p3c01xamV2eUY1MEYwLDkxMDk5MDgx0200VEq1S4LP?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaSG5BZGp4REx4WE9RRjl5NzVWbE1VNDA0VTRoLDkyMDM1MDc30200mCXxiXId?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4RzNVRW5JU0tjTzZlN3p3c01xamV2eUY1MEYwLDkxMDk5MDgx0200VEq1S4LP/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaSG5BZGp4REx4WE9RRjl5NzVWbE1VNDA0VTRoLDkyMDM1MDc30200mCXxiXId/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 3809582ab0b..62ec228f520 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4TVRnMVNhSVpXMkhQaHcxTmxQZHB5Y2J1cmppLDkxMDk5MDc50200XJ3z7NiD?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaM1VYcmpzRzF6Z2R2VFFUanlCcXE2WmhxSER6LDkyMDM1MDc10200ZkKoZc1e?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4TVRnMVNhSVpXMkhQaHcxTmxQZHB5Y2J1cmppLDkxMDk5MDc50200XJ3z7NiD/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaM1VYcmpzRzF6Z2R2VFFUanlCcXE2WmhxSER6LDkyMDM1MDc10200ZkKoZc1e/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDc50200Qe49yv98?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDc10200UuKP3Kzt?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDc50200Qe49yv98/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDc10200UuKP3Kzt/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 5bfe08a9e08..c1613f41641 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4RzNVRW5JU0tjTzZlN3p3c01xamV2eUY1MEYwLDkxMDk5MDgx0200VEq1S4LP?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaSG5BZGp4REx4WE9RRjl5NzVWbE1VNDA0VTRoLDkyMDM1MDc30200mCXxiXId?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4RzNVRW5JU0tjTzZlN3p3c01xamV2eUY1MEYwLDkxMDk5MDgx0200VEq1S4LP/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaSG5BZGp4REx4WE9RRjl5NzVWbE1VNDA0VTRoLDkyMDM1MDc30200mCXxiXId/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4TVRnMVNhSVpXMkhQaHcxTmxQZHB5Y2J1cmppLDkxMDk5MDgx02006df2r3u7?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaM1VYcmpzRzF6Z2R2VFFUanlCcXE2WmhxSER6LDkyMDM1MDc30200hpSWi76T?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4TVRnMVNhSVpXMkhQaHcxTmxQZHB5Y2J1cmppLDkxMDk5MDgx02006df2r3u7/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaM1VYcmpzRzF6Z2R2VFFUanlCcXE2WmhxSER6LDkyMDM1MDc30200hpSWi76T/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDgx0200pWIilkBy?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDc30200daBVjtCx?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMnZ4UWJoMFB1eExidGNGWUQyNEtmR2h3dGU0MUNwLDkxMDk5MDgx0200pWIilkBy/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaY0hJOXVlOWU1QlVCOWt0b2tVRFVZVDVOdk5oLDkyMDM1MDc30200daBVjtCx/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 aadf902f017..56b0f5ffa3d 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
@@ -55,6 +55,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMDr8aoGMgZX-VtV8qk6LBbqZ2JFr-lHqLsmMn3R_0CVwuzI1a_3jAEMtfuRBPK0TnOp4pzU76tE-Ve9",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKP37qqsGMgZfMcV0TEI6LBYoqJQNM8IGieyjfa1Q25xdqTIHfS8HcknVlIFdBrMuS8VwHSBAddZyvsZB",
"refunded": false,
"refunds": {
"data": [],
@@ -143,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_eYLA3D7ohAqPQ59UJVTA8WDnu",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_s3q50TcfcD1ojZQpTBlz2NPZG",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -159,6 +161,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"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 04376403a93..22e695ff657 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_1OEq5XDEQaroqDjsUeY9FWcB_secret_P2vxdMaLDhloDAZ6R9CQYmf9Wn4rta9",
+ "client_secret": "seti_1OIlaHDEQaroqDjszgwxwBz2_secret_P6zZjeJQSnHnJHelDCPINnpsAIuJegP",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEq5XDEQaroqDjsUeY9FWcB",
+ "id": "seti_1OIlaHDEQaroqDjszgwxwBz2",
"last_setup_error": null,
- "latest_attempt": "setatt_1OEq5XDEQaroqDjsMkLMpQq4",
+ "latest_attempt": "setatt_1OIlaHDEQaroqDjswne8PFSD",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"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 9bb3dfa0ce1..eb799108b77 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_1OEq5VDEQaroqDjsoY8XRUGD_secret_P2vx6Ki0b4ZE2nqaPXVMyCIR0mjnbdD",
+ "client_secret": "seti_1OIlaGDEQaroqDjs9OqvG9Va_secret_P6zZ1Pp8G7mNTAUdsqiimXkKsRUOztP",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEq5VDEQaroqDjsoY8XRUGD",
+ "id": "seti_1OIlaGDEQaroqDjs9OqvG9Va",
"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 04376403a93..22e695ff657 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_1OEq5XDEQaroqDjsUeY9FWcB_secret_P2vxdMaLDhloDAZ6R9CQYmf9Wn4rta9",
+ "client_secret": "seti_1OIlaHDEQaroqDjszgwxwBz2_secret_P6zZjeJQSnHnJHelDCPINnpsAIuJegP",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OEq5XDEQaroqDjsUeY9FWcB",
+ "id": "seti_1OIlaHDEQaroqDjszgwxwBz2",
"last_setup_error": null,
- "latest_attempt": "setatt_1OEq5XDEQaroqDjsMkLMpQq4",
+ "latest_attempt": "setatt_1OIlaHDEQaroqDjswne8PFSD",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OEq5XDEQaroqDjsE08QDOEc",
+ "payment_method": "pm_1OIlaHDEQaroqDjsMgNmePnc",
"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 f9ff0972f7e..03b878e9182 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02uKgiSfXC8Ib0lLgV128tC4fA64VwFYaazOIyyZYKBtFwlI",
+ "id": "cs_test_NORMALIZED022NkW6EEVC4zehnZIphQL070TQoLzJYGmvrZVcKe5rgGMrM",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OEq5VDEQaroqDjsoY8XRUGD",
+ "setup_intent": "seti_1OIlaGDEQaroqDjs9OqvG9Va",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED02uKgiSfXC8Ib0lLgV128tC4fA64VwFYaazOIyyZYKBtFwlI#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED022NkW6EEVC4zehnZIphQL070TQoLzJYGmvrZVcKe5rgGMrM#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 49eef5d590d..9fba4cae6ce 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02uKgiSfXC8Ib0lLgV128tC4fA64VwFYaazOIyyZYKBtFwlI",
+ "id": "cs_test_NORMALIZED022NkW6EEVC4zehnZIphQL070TQoLzJYGmvrZVcKe5rgGMrM",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OEq5VDEQaroqDjsoY8XRUGD",
+ "setup_intent": "seti_1OIlaGDEQaroqDjs9OqvG9Va",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED02uKgiSfXC8Ib0lLgV128tC4fA64VwFYaazOIyyZYKBtFwlI#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED022NkW6EEVC4zehnZIphQL070TQoLzJYGmvrZVcKe5rgGMrM#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 51c976d53c4..fe487f13520 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_1ODZaFDEQaroqDjsUC0WtuQT",
+ "default_payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"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 c626eafd763..3de25ea30f0 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "id": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"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 c626eafd763..3de25ea30f0 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "id": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"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 c626eafd763..3de25ea30f0 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "id": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"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 c626eafd763..3de25ea30f0 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "id": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"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 be0b9e5a1b4..e334a069b6d 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "id": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"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 61e190daecf..8c9a749fce3 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_1ODZaFDEQaroqDjsUC0WtuQT",
+ "default_payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1ODZaHDEQaroqDjsljofjeF2",
+ "id": "evt_1OIlaXDEQaroqDjsjZczqFZK",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "abd6e334-3a4a-4bd8-a4b8-2afb8a7514e5"
+ "idempotency_key": "123b14cd-ac28-4ea8-97cb-2208fbc3fe59"
},
"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 25b317fc44f..abb79dcb15c 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
@@ -61,6 +61,7 @@
"billing_schedule": "2",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "800",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"payment_method_details": {
"card": {
"amount_authorized": 4800,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPS136oGMgabJYL3iBA6LBa-omfT3qew4OpIgW-_cnZNxGn9hTb0aIChPUpWCHcNrJ8ra-8WnDBwvexu",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKI38qqsGMgaOnFgsBnE6LBa53PpNVfS_T_K5HwXY95H77gL2V-3agp3J9ihPq6B0H1cD4Vbi9YdaSEPH",
"refunded": false,
"refunds": {
"data": [],
@@ -149,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_Ow0JCIbU8lZzeGCVp85NO4tYI",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_6TAC3XJGsIH6q2vaLDTlsGFe5",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -165,6 +167,7 @@
"billing_schedule": "2",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "800",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZaJDEQaroqDjs1pjOWa5X",
+ "id": "evt_3OIlaaDEQaroqDjs1foPbFnw",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "8c5c85a3-a80f-4b04-b725-8631aee7a5f9"
+ "idempotency_key": "7d307804-003c-439c-8561-2bf769d3d340"
},
"type": "payment_intent.succeeded"
},
@@ -258,6 +261,7 @@
"billing_schedule": "2",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "800",
"realm_id": "1",
"realm_str": "zulip",
@@ -279,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"payment_method_details": {
"card": {
"amount_authorized": 4800,
@@ -290,7 +294,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -319,9 +323,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPS136oGMgZIg828sew6LBYFngtgajsRnFMNaJrLmjdExNFIu75_DT5KxiPB_zmwyDdofkBM7WtBgP1X",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKI38qqsGMgZCzDHbxpo6LBYd-qvdpbClO5oslANqpWSCM7TpJrDJ--Mv7CrrhXvMbhYRe2EF7Yhd5oDR",
"refunded": false,
"refunds": {
"data": [],
@@ -341,102 +346,15 @@
"transfer_group": null
}
},
- "id": "evt_3ODZaJDEQaroqDjs1wvLLpgW",
+ "id": "evt_3OIlaaDEQaroqDjs1ofrKimC",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "8c5c85a3-a80f-4b04-b725-8631aee7a5f9"
+ "idempotency_key": "7d307804-003c-439c-8561-2bf769d3d340"
},
"type": "charge.succeeded"
- },
- {
- "api_version": "2020-08-27",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": 4800,
- "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_NORMALIZED00000000000001"
- },
- "client_secret": "pi_NORMALIZED00000000000001_secret_Ow0JCIbU8lZzeGCVp85NO4tYI",
- "confirmation_method": "automatic",
- "created": 1000000000,
- "currency": "usd",
- "customer": "cus_NORMALIZED0001",
- "description": "Upgrade to Zulip Cloud Standard, $8.0 x 6",
- "id": "pi_NORMALIZED00000000000001",
- "invoice": null,
- "last_payment_error": null,
- "latest_charge": null,
- "livemode": false,
- "metadata": {
- "billing_modality": "charge_automatically",
- "billing_schedule": "2",
- "license_management": "automatic",
- "licenses": "6",
- "price_per_license": "800",
- "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": 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_3ODZaJDEQaroqDjs1CtBX5q5",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0002",
- "idempotency_key": "8c5c85a3-a80f-4b04-b725-8631aee7a5f9"
- },
- "type": "payment_intent.created"
}
],
"has_more": false,
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 fb439a592e2..f7363247938 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzAy0200Mx2BQ3P8?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzAy0200Mx2BQ3P8/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg30200PUkDpVmp/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1ODZaMDEQaroqDjs9ZzwOHu3",
+ "id": "evt_1OIladDEQaroqDjsTaYcN0Gt",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "5f0791db-c6a8-4072-87ea-4488f7d470c8"
+ "idempotency_key": "c844c0c4-80be-4547-b157-55370a840599"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZaMDEQaroqDjsAYqEsF0o",
+ "id": "evt_1OIlacDEQaroqDjspXq6FeTf",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "398a7250-a391-4591-a579-fa5bf08daf00"
+ "idempotency_key": "d54329e7-1a3f-49f3-a641-45f3c159f23c"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "800"
}
},
- "id": "evt_1ODZaLDEQaroqDjsCMKB9eM1",
+ "id": "evt_1OIlacDEQaroqDjsVhmEUS3v",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "56a4508a-0b3f-49e7-b7b1-c9235b4b0ac5"
+ "idempotency_key": "a1b8488d-4841-43af-98f5-fbd7a97c3c37"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-4800"
}
},
- "id": "evt_1ODZaLDEQaroqDjsYmPpuUfd",
+ "id": "evt_1OIlabDEQaroqDjsh9paLakr",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "fee22671-40a4-47d4-9dd0-8c0d9104d17c"
+ "idempotency_key": "1936258a-b4e3-43e4-9687-3f2c29c7f795"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "default_payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1ODZaLDEQaroqDjsgoMifPVH",
+ "id": "evt_1OIlabDEQaroqDjss8liUUFL",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "fee22671-40a4-47d4-9dd0-8c0d9104d17c"
+ "idempotency_key": "1936258a-b4e3-43e4-9687-3f2c29c7f795"
},
"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 4c0c678ab81..33e94606650 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzAz0200ozPtTMLZ?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzAz0200ozPtTMLZ/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg40200ydYInMvn/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,236 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZaNDEQaroqDjsd84pO3hW",
+ "id": "evt_1OIlaeDEQaroqDjs3RwTH6ec",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "5f0791db-c6a8-4072-87ea-4488f7d470c8"
+ "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"
},
"type": "invoice.paid"
},
@@ -269,9 +492,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzAy0200Mx2BQ3P8?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzAy0200Mx2BQ3P8/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg30200PUkDpVmp/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -436,13 +659,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZaMDEQaroqDjsSXeRCCxg",
+ "id": "evt_1OIladDEQaroqDjs9Kojw2VN",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "5f0791db-c6a8-4072-87ea-4488f7d470c8"
+ "idempotency_key": "c844c0c4-80be-4547-b157-55370a840599"
},
"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 9de43cde457..6d922067afe 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,229 +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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzAz0200ozPtTMLZ?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzAz0200ozPtTMLZ/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_1ODZaNDEQaroqDjs2ltyzmTL",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "5f0791db-c6a8-4072-87ea-4488f7d470c8"
- },
- "type": "invoice.payment_succeeded"
- }
- ],
+ "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--Event.list.6.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.6.json
deleted file mode 100644
index 6d922067afe..00000000000
--- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.6.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/events"
-}
diff --git a/corporate/tests/stripe_fixtures/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 49469de5711..1af446f4f1a 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzAy0200Mx2BQ3P8?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzAy0200Mx2BQ3P8/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDg30200PUkDpVmp/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 c2481b01395..f9460505caa 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSU0wQXluM2I3T3hYUnJHcnVWWm1rdzlrTTZjLDkwNzk3MzA10200XEJpZu7S?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDkw0200NCGMqci8?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSU0wQXluM2I3T3hYUnJHcnVWWm1rdzlrTTZjLDkwNzk3MzA10200XEJpZu7S/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDkw0200NCGMqci8/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 7fd5a128813..b312239fd2b 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSGhLR0Z4QlZXUzF0S002RllvcE15ZGNoSnpvLDkwNzk3MzA30200GdRbmzLe?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDky0200Qz9PgaTA?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSGhLR0Z4QlZXUzF0S002RllvcE15ZGNoSnpvLDkwNzk3MzA30200GdRbmzLe/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDky0200Qz9PgaTA/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 eb657d3fdc4..77268d2c178 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxY2xlc0E5QzF4M0tQQjBxN2VrV0J1UU9yVTFxLDkwNzk3MzA50200yRt9qpnm?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaQW1pSTVLQmZveFEyTEZ0aVFGUkdrVFB3emdmLDkyMDM1MDk00200dA9bvP0c?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxY2xlc0E5QzF4M0tQQjBxN2VrV0J1UU9yVTFxLDkwNzk3MzA50200yRt9qpnm/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaQW1pSTVLQmZveFEyTEZ0aVFGUkdrVFB3emdmLDkyMDM1MDk00200dA9bvP0c/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 5e3110fc048..ad632374389 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxT1lZZWp3d3phQWxyNlVZZ1VBOVZMZVhUdVBjLDkwNzk3MzEy02000uHmRGTG?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaZGJYcmFiRW9RdFNXcW95UFlHdHBHMVpuV3BZLDkyMDM1MDk20200ic6HSaFw?s=ap",
"id": "in_NORMALIZED00000000000005",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxT1lZZWp3d3phQWxyNlVZZ1VBOVZMZVhUdVBjLDkwNzk3MzEy02000uHmRGTG/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaZGJYcmFiRW9RdFNXcW95UFlHdHBHMVpuV3BZLDkyMDM1MDk20200ic6HSaFw/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 3be98777aa7..a67f1f1cdf9 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSGhLR0Z4QlZXUzF0S002RllvcE15ZGNoSnpvLDkwNzk3MzA40200yRRIOQKk?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDky0200Qz9PgaTA?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSGhLR0Z4QlZXUzF0S002RllvcE15ZGNoSnpvLDkwNzk3MzA40200yRRIOQKk/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDky0200Qz9PgaTA/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSU0wQXluM2I3T3hYUnJHcnVWWm1rdzlrTTZjLDkwNzk3MzA402004coDIXQf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDky0200Z03sCUUr?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSU0wQXluM2I3T3hYUnJHcnVWWm1rdzlrTTZjLDkwNzk3MzA402004coDIXQf/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDky0200Z03sCUUr/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzA40200jh59spxy?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDky0200uxNqUohX?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzA40200jh59spxy/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDky0200uxNqUohX/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 8ab3c4cff7b..8020bbee062 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxY2xlc0E5QzF4M0tQQjBxN2VrV0J1UU9yVTFxLDkwNzk3MzEw02006xYZ9WbP?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaQW1pSTVLQmZveFEyTEZ0aVFGUkdrVFB3emdmLDkyMDM1MDk00200dA9bvP0c?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxY2xlc0E5QzF4M0tQQjBxN2VrV0J1UU9yVTFxLDkwNzk3MzEw02006xYZ9WbP/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaQW1pSTVLQmZveFEyTEZ0aVFGUkdrVFB3emdmLDkyMDM1MDk00200dA9bvP0c/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSGhLR0Z4QlZXUzF0S002RllvcE15ZGNoSnpvLDkwNzk3MzEw02007qVHRh06?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDk00200CPdPtRBo?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSGhLR0Z4QlZXUzF0S002RllvcE15ZGNoSnpvLDkwNzk3MzEw02007qVHRh06/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDk00200CPdPtRBo/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSU0wQXluM2I3T3hYUnJHcnVWWm1rdzlrTTZjLDkwNzk3MzEw0200XadudYaL?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDk00200XsXKb8jh?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSU0wQXluM2I3T3hYUnJHcnVWWm1rdzlrTTZjLDkwNzk3MzEw0200XadudYaL/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDk00200XsXKb8jh/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzEw0200lQ4dIjVe?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDk00200T7NIg8tC?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzEw0200lQ4dIjVe/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDk00200T7NIg8tC/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 7460d3d0efd..20cec2f3b54 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxT1lZZWp3d3phQWxyNlVZZ1VBOVZMZVhUdVBjLDkwNzk3MzEy02000uHmRGTG?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaZGJYcmFiRW9RdFNXcW95UFlHdHBHMVpuV3BZLDkyMDM1MDk20200ic6HSaFw?s=ap",
"id": "in_NORMALIZED00000000000005",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxT1lZZWp3d3phQWxyNlVZZ1VBOVZMZVhUdVBjLDkwNzk3MzEy02000uHmRGTG/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaZGJYcmFiRW9RdFNXcW95UFlHdHBHMVpuV3BZLDkyMDM1MDk20200ic6HSaFw/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxY2xlc0E5QzF4M0tQQjBxN2VrV0J1UU9yVTFxLDkwNzk3MzEy0200nb17Yk5w?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaQW1pSTVLQmZveFEyTEZ0aVFGUkdrVFB3emdmLDkyMDM1MDk20200C9VJZPNC?s=ap",
"id": "in_NORMALIZED00000000000004",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxY2xlc0E5QzF4M0tQQjBxN2VrV0J1UU9yVTFxLDkwNzk3MzEy0200nb17Yk5w/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaQW1pSTVLQmZveFEyTEZ0aVFGUkdrVFB3emdmLDkyMDM1MDk20200C9VJZPNC/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSGhLR0Z4QlZXUzF0S002RllvcE15ZGNoSnpvLDkwNzk3MzEy0200jXoBO8qZ?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDk20200k214TXVk?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSGhLR0Z4QlZXUzF0S002RllvcE15ZGNoSnpvLDkwNzk3MzEy0200jXoBO8qZ/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaa1Z6cHpFUjdSZWlvUzU1bWhZYjhxOVVIYk44LDkyMDM1MDk20200k214TXVk/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSU0wQXluM2I3T3hYUnJHcnVWWm1rdzlrTTZjLDkwNzk3MzEy0200HljQItiO?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDk20200vhaOkpkU?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxSU0wQXluM2I3T3hYUnJHcnVWWm1rdzlrTTZjLDkwNzk3MzEy0200HljQItiO/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaRGl1bVhnVFZtaTBFOFM3QndCa0w0OWZjd08zLDkyMDM1MDk20200vhaOkpkU/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzEy0200xsTcHbNo?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDk20200foLjFR1Q?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaUh0UFZrM3NBbFgwY2VNRG5YcjBPZGpPbGhMLDkwNzk3MzEy0200xsTcHbNo/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpaNUdjVGd5akZ3Z0tGelJ5VjRYT3RJUFBjem1hLDkyMDM1MDk20200foLjFR1Q/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 303a52b44dd..eac8424b613 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
@@ -55,6 +55,7 @@
"billing_schedule": "2",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "800",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"payment_method_details": {
"card": {
"amount_authorized": 4800,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPS136oGMgZmNfNLlMQ6LBbgW7dzyOOW6nuuZUeIapkO9GsyzybpG8rTS-TczUXe295IDIjeJjBY0q44",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIz8qqsGMgYlEvYsZEc6LBZ-ubZRgOf8Lafp4s7haswYrP9aBO2NEz7Yft6LJz3fpF9YlcoEZojY4pnG",
"refunded": false,
"refunds": {
"data": [],
@@ -143,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_Ow0JCIbU8lZzeGCVp85NO4tYI",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_6TAC3XJGsIH6q2vaLDTlsGFe5",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -159,6 +161,7 @@
"billing_schedule": "2",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "800",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"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 da82fa59f6c..c4eecc28f5d 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_1ODZaFDEQaroqDjs1EMXje3z_secret_P1cpOJ0Fg3QzF4c14DjFLYyJeo97J5R",
+ "client_secret": "seti_1OIlaWDEQaroqDjsfqkiF5vF_secret_P6zZmEqkygLGMry8yleSV2nxa0Ap3R5",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZaFDEQaroqDjs1EMXje3z",
+ "id": "seti_1OIlaWDEQaroqDjsfqkiF5vF",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZaFDEQaroqDjsSxVvtnoj",
+ "latest_attempt": "setatt_1OIlaWDEQaroqDjsN24g7wUu",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"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 39007be80fc..8adeed9871e 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_1ODZaEDEQaroqDjsAVN7197I_secret_P1cpm7v1id7dcvrnQhyVp6zFOSRf3zf",
+ "client_secret": "seti_1OIlaVDEQaroqDjsde1vtq0n_secret_P6zZlnlApjRAErKRYaD6I87lCiSI3bB",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZaEDEQaroqDjsAVN7197I",
+ "id": "seti_1OIlaVDEQaroqDjsde1vtq0n",
"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 da82fa59f6c..c4eecc28f5d 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_1ODZaFDEQaroqDjs1EMXje3z_secret_P1cpOJ0Fg3QzF4c14DjFLYyJeo97J5R",
+ "client_secret": "seti_1OIlaWDEQaroqDjsfqkiF5vF_secret_P6zZmEqkygLGMry8yleSV2nxa0Ap3R5",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZaFDEQaroqDjs1EMXje3z",
+ "id": "seti_1OIlaWDEQaroqDjsfqkiF5vF",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZaFDEQaroqDjsSxVvtnoj",
+ "latest_attempt": "setatt_1OIlaWDEQaroqDjsN24g7wUu",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZaFDEQaroqDjsUC0WtuQT",
+ "payment_method": "pm_1OIlaWDEQaroqDjsttdcRtiY",
"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 14f15ce774b..87955a048b2 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02nykTOsjPELSQyXm6ncqXVPCF7V0QDLPVbYTMxR90v0YrIT",
+ "id": "cs_test_NORMALIZED02HiefI6DLIvR89Xbp1Jtsd580hJv3ikGD4j6JqoBTsgYJue",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZaEDEQaroqDjsAVN7197I",
+ "setup_intent": "seti_1OIlaVDEQaroqDjsde1vtq0n",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED02nykTOsjPELSQyXm6ncqXVPCF7V0QDLPVbYTMxR90v0YrIT#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02HiefI6DLIvR89Xbp1Jtsd580hJv3ikGD4j6JqoBTsgYJue#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 e8425245f68..018cf100855 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02nykTOsjPELSQyXm6ncqXVPCF7V0QDLPVbYTMxR90v0YrIT",
+ "id": "cs_test_NORMALIZED02HiefI6DLIvR89Xbp1Jtsd580hJv3ikGD4j6JqoBTsgYJue",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZaEDEQaroqDjsAVN7197I",
+ "setup_intent": "seti_1OIlaVDEQaroqDjsde1vtq0n",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED02nykTOsjPELSQyXm6ncqXVPCF7V0QDLPVbYTMxR90v0YrIT#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02HiefI6DLIvR89Xbp1Jtsd580hJv3ikGD4j6JqoBTsgYJue#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 50232bf4220..569e9f6a20b 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_1ODZaYDEQaroqDjsycoc4W1M",
+ "default_payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"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 02afbbfed6a..8a045b0865a 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "id": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"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 02afbbfed6a..8a045b0865a 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "id": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"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 02afbbfed6a..8a045b0865a 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "id": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"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 02afbbfed6a..8a045b0865a 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "id": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"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 6841c024df6..c573628926f 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "id": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"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 9f626e49fcf..4d879c75e61 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_1ODZaYDEQaroqDjsycoc4W1M",
+ "default_payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1ODZaaDEQaroqDjslxYeL2lc",
+ "id": "evt_1OIlaqDEQaroqDjsZwaZ0zBy",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "97f57383-0d25-4361-a1da-ba27bfb272c0"
+ "idempotency_key": "6f3c7177-2034-4d78-9b1f-45a181ee73b0"
},
"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 b27747d4a00..a2e84c81e27 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
@@ -61,6 +61,7 @@
"billing_schedule": "2",
"license_management": "manual",
"licenses": "35",
+ "plan_tier": "1",
"price_per_license": "800",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"payment_method_details": {
"card": {
"amount_authorized": 28000,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIe236oGMgYxyc5rxuI6LBbXBpzDUiaRmdKQJkY-9Mg2AGR7XP_Fcn6bn2rZAEf_7bJGxJ9F6GAskIaR",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJ_8qqsGMgZrhwDQRyw6LBb9FE9Hy4kC_kftck-2BSRblvRhj6eZplrzgd6TkE53NjIQTGlc7F1i2qQD",
"refunded": false,
"refunds": {
"data": [],
@@ -149,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_Mj6Rx3XAUf2KFHtmFliTEIkb8",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_jD8RRYvzX8GmbB0YS3Zn797pE",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -165,6 +167,7 @@
"billing_schedule": "2",
"license_management": "manual",
"licenses": "35",
+ "plan_tier": "1",
"price_per_license": "800",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZacDEQaroqDjs0ZXyseJm",
+ "id": "evt_3OIlasDEQaroqDjs1kSuXumA",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "a0313505-0d0a-4c27-98e4-79d54954fa1e"
+ "idempotency_key": "34bf0066-3977-44d5-9669-a36fb22f7948"
},
"type": "payment_intent.succeeded"
},
@@ -258,6 +261,7 @@
"billing_schedule": "2",
"license_management": "manual",
"licenses": "35",
+ "plan_tier": "1",
"price_per_license": "800",
"realm_id": "1",
"realm_str": "zulip",
@@ -279,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"payment_method_details": {
"card": {
"amount_authorized": 28000,
@@ -290,7 +294,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -319,9 +323,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIe236oGMgZ4vmqbZ4Y6LBYtyrFEdMnSTgSUFNceEQa8Ndwxxb4TQfCspm5tWhBeMsrlcciALCJSrtdJ",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJ_8qqsGMgZ_m9YmO0E6LBZvrpEr9oSnwYKlyKO2SN5CBpRSGBSk_IR--SjUDde-R6Bn9rbgKUvdl4pi",
"refunded": false,
"refunds": {
"data": [],
@@ -341,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODZacDEQaroqDjs0DV7tr2j",
+ "id": "evt_3OIlasDEQaroqDjs1YFG3zAJ",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "a0313505-0d0a-4c27-98e4-79d54954fa1e"
+ "idempotency_key": "34bf0066-3977-44d5-9669-a36fb22f7948"
},
"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 43d233de902..db4aa041db9 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzIx0200iFHaE90L?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzIx0200iFHaE90L/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA10200eJBu1XmJ/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1ODZagDEQaroqDjs9fPEzth5",
+ "id": "evt_1OIlavDEQaroqDjsNwN1z60S",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "bdf93630-f160-49b9-aed8-0569464a4927"
+ "idempotency_key": "81e5e0fc-a9da-4381-b3fa-7f769272a0fe"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZafDEQaroqDjsbh34lH1q",
+ "id": "evt_1OIlavDEQaroqDjsSFnYh8lu",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "e92e43fb-0f22-40a7-b493-a8026eac7ec5"
+ "idempotency_key": "fc92364b-ef12-4066-aecb-b3f62efc5123"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "800"
}
},
- "id": "evt_1ODZaeDEQaroqDjsVZs0sAJ9",
+ "id": "evt_1OIlauDEQaroqDjsaiHelwyH",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "ce1030a7-c8da-4c39-8808-f5bb0f18dfd4"
+ "idempotency_key": "721d64c0-784e-4915-89c0-f9e822334126"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-28000"
}
},
- "id": "evt_1ODZaeDEQaroqDjs9ga4wWI2",
+ "id": "evt_1OIlauDEQaroqDjsjsy4L2LM",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "3329931a-4f1d-4322-a1a5-e14344eed8c8"
+ "idempotency_key": "6a44b0e1-e1b1-4ffb-9851-5e07e5b70fe9"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "default_payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1ODZaeDEQaroqDjs4NVqTtJ7",
+ "id": "evt_1OIlauDEQaroqDjsIxnw4q0O",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "3329931a-4f1d-4322-a1a5-e14344eed8c8"
+ "idempotency_key": "6a44b0e1-e1b1-4ffb-9851-5e07e5b70fe9"
},
"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 c659c09d1d7..802319966c1 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzIy0200J16zfrhk?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA20200IsPN2pun?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzIy0200J16zfrhk/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA20200IsPN2pun/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,236 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZagDEQaroqDjserlx3yWS",
+ "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",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "bdf93630-f160-49b9-aed8-0569464a4927"
+ "idempotency_key": "81e5e0fc-a9da-4381-b3fa-7f769272a0fe"
},
"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 6eb2a0d776e..eae398073a2 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzIy0200J16zfrhk?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA20200IsPN2pun?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzIy0200J16zfrhk/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA20200IsPN2pun/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,238 +213,15 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZagDEQaroqDjsd140shIo",
+ "id": "evt_1OIlawDEQaroqDjsQ2KAEnGp",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "bdf93630-f160-49b9-aed8-0569464a4927"
+ "idempotency_key": "81e5e0fc-a9da-4381-b3fa-7f769272a0fe"
},
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzIy0200J16zfrhk?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzIy0200J16zfrhk/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_1ODZagDEQaroqDjsGfd97rLG",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "bdf93630-f160-49b9-aed8-0569464a4927"
- },
- "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 d5c733bfed4..cde1031d9a8 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzIx0200iFHaE90L?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzIx0200iFHaE90L/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA10200eJBu1XmJ/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 c4a7b00002f..634888bbe88 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaVdPejczMzRqMzBibG93UVJVb1dHSDBnWWhNLDkwNzk3MzI10200wwADohqQ?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphRkhmV01QNFBhcldnUkpubTFENENUblI3QmRoLDkyMDM1MTA40200QeL7bljh?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaVdPejczMzRqMzBibG93UVJVb1dHSDBnWWhNLDkwNzk3MzI10200wwADohqQ/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphRkhmV01QNFBhcldnUkpubTFENENUblI3QmRoLDkyMDM1MTA40200QeL7bljh/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 65b6a5d20b4..fa96b8e19f0 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxb2VNUlNoWUxCcE9Pa3RINnp0RGhiY3BOMkpZLDkwNzk3MzI302000jXSPaOo?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTmJ5SmZ4TWdFeURYMURETHdLRDlmb0l5eFBjLDkyMDM1MTEw0200ph34eCZo?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxb2VNUlNoWUxCcE9Pa3RINnp0RGhiY3BOMkpZLDkwNzk3MzI302000jXSPaOo/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTmJ5SmZ4TWdFeURYMURETHdLRDlmb0l5eFBjLDkyMDM1MTEw0200ph34eCZo/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 b8e67baca08..c30bf66b730 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaVdPejczMzRqMzBibG93UVJVb1dHSDBnWWhNLDkwNzk3MzI10200wwADohqQ?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphRkhmV01QNFBhcldnUkpubTFENENUblI3QmRoLDkyMDM1MTA50200WOD4SGPE?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaVdPejczMzRqMzBibG93UVJVb1dHSDBnWWhNLDkwNzk3MzI10200wwADohqQ/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphRkhmV01QNFBhcldnUkpubTFENENUblI3QmRoLDkyMDM1MTA50200WOD4SGPE/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzI10200j3OgZEn0?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA50200rS7ZkXWv?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzI10200j3OgZEn0/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTA50200rS7ZkXWv/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 471b3b1ed91..139a8ec4244 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxb2VNUlNoWUxCcE9Pa3RINnp0RGhiY3BOMkpZLDkwNzk3MzI302000jXSPaOo?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTmJ5SmZ4TWdFeURYMURETHdLRDlmb0l5eFBjLDkyMDM1MTEx0200B4tGDnYn?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxb2VNUlNoWUxCcE9Pa3RINnp0RGhiY3BOMkpZLDkwNzk3MzI302000jXSPaOo/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTmJ5SmZ4TWdFeURYMURETHdLRDlmb0l5eFBjLDkyMDM1MTEx0200B4tGDnYn/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaVdPejczMzRqMzBibG93UVJVb1dHSDBnWWhNLDkwNzk3MzI30200cdtt00f8?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphRkhmV01QNFBhcldnUkpubTFENENUblI3QmRoLDkyMDM1MTEx0200FnNILgMH?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxaVdPejczMzRqMzBibG93UVJVb1dHSDBnWWhNLDkwNzk3MzI30200cdtt00f8/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphRkhmV01QNFBhcldnUkpubTFENENUblI3QmRoLDkyMDM1MTEx0200FnNILgMH/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzI30200EKC2Vmob?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTEx0200TKznTSa3?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNxVmhtaTFBY1M0MG51WE1rUXdaYlg4MFNJUGw3LDkwNzk3MzI30200EKC2Vmob/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphNkx4d0NIamxSSHBTNXo0b1JUaWZFeDZ4aVVVLDkyMDM1MTEx0200TKznTSa3/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 d80c6d9826f..78928d511e7 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
@@ -55,6 +55,7 @@
"billing_schedule": "2",
"license_management": "manual",
"licenses": "35",
+ "plan_tier": "1",
"price_per_license": "800",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"payment_method_details": {
"card": {
"amount_authorized": 28000,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIe236oGMgYgzKZ3PuA6LBYLd9omuQO1NEycxWjWrS-FUC2UkxSzcuFYhTCDkyyqUeerkVwyEVUOFMLp",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJ_8qqsGMgbftNrtQ9A6LBZtHhju_jF5nmvMrs2aZFvOhmBy73xNcwFbmatmw_Oco7UAbU1LaY61-Vg2",
"refunded": false,
"refunds": {
"data": [],
@@ -143,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_Mj6Rx3XAUf2KFHtmFliTEIkb8",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_jD8RRYvzX8GmbB0YS3Zn797pE",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -159,6 +161,7 @@
"billing_schedule": "2",
"license_management": "manual",
"licenses": "35",
+ "plan_tier": "1",
"price_per_license": "800",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"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 ac1da13b16a..b7aaafd4e40 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_1ODZaYDEQaroqDjs3L9wdybL_secret_P1cqUXEZw9itHok2vAIWLwGBuciIUOi",
+ "client_secret": "seti_1OIlaoDEQaroqDjsCfabkyLU_secret_P6zZUddqsIAhwQ3nmFDoxSfQ8qhfhf4",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZaYDEQaroqDjs3L9wdybL",
+ "id": "seti_1OIlaoDEQaroqDjsCfabkyLU",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZaYDEQaroqDjsAeTevr76",
+ "latest_attempt": "setatt_1OIlaoDEQaroqDjsxaWoCPNI",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"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 3d3ba2d48b0..3d76ceb4fab 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_1ODZaXDEQaroqDjswrqY6Puh_secret_P1cqh4ynTwm3xMOPEL42JPr2BQVnose",
+ "client_secret": "seti_1OIlaoDEQaroqDjscswmv5az_secret_P6zZqAzj4qGbHfsZDOrRHwTzIKgtpk1",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZaXDEQaroqDjswrqY6Puh",
+ "id": "seti_1OIlaoDEQaroqDjscswmv5az",
"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 ac1da13b16a..b7aaafd4e40 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_1ODZaYDEQaroqDjs3L9wdybL_secret_P1cqUXEZw9itHok2vAIWLwGBuciIUOi",
+ "client_secret": "seti_1OIlaoDEQaroqDjsCfabkyLU_secret_P6zZUddqsIAhwQ3nmFDoxSfQ8qhfhf4",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZaYDEQaroqDjs3L9wdybL",
+ "id": "seti_1OIlaoDEQaroqDjsCfabkyLU",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZaYDEQaroqDjsAeTevr76",
+ "latest_attempt": "setatt_1OIlaoDEQaroqDjsxaWoCPNI",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZaYDEQaroqDjsycoc4W1M",
+ "payment_method": "pm_1OIlaoDEQaroqDjss3b8TkWd",
"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 16184573277..68dcd4b22d9 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02PeIcxUwcMRihhF6yYR5Z5i08kJzZrB2RzFwgB2CgJpTa0O",
+ "id": "cs_test_NORMALIZED02iGnnSPsITMGc7NdVSVc1kP1Y1LaNV5s2RMPg3wR11gCxbf",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZaXDEQaroqDjswrqY6Puh",
+ "setup_intent": "seti_1OIlaoDEQaroqDjscswmv5az",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED02PeIcxUwcMRihhF6yYR5Z5i08kJzZrB2RzFwgB2CgJpTa0O#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02iGnnSPsITMGc7NdVSVc1kP1Y1LaNV5s2RMPg3wR11gCxbf#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 4c44b8c7981..3536da39de9 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02PeIcxUwcMRihhF6yYR5Z5i08kJzZrB2RzFwgB2CgJpTa0O",
+ "id": "cs_test_NORMALIZED02iGnnSPsITMGc7NdVSVc1kP1Y1LaNV5s2RMPg3wR11gCxbf",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZaXDEQaroqDjswrqY6Puh",
+ "setup_intent": "seti_1OIlaoDEQaroqDjscswmv5az",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED02PeIcxUwcMRihhF6yYR5Z5i08kJzZrB2RzFwgB2CgJpTa0O#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02iGnnSPsITMGc7NdVSVc1kP1Y1LaNV5s2RMPg3wR11gCxbf#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.create.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.create.1.json
index e6bfc068d28..593a07ed0c8 100644
--- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.create.1.json
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1701007131,
+ "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_P4scN21egyF63j",
- "invoice_prefix": "BFEDDCEB",
+ "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/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 f506b124962..8c1342d1f39 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1701007131,
+ "created": 1000000000,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -9,17 +9,17 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P4scN21egyF63j",
- "invoice_prefix": "BFEDDCEB",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OGirJDEQaroqDjs0fg5PtPl",
+ "default_payment_method": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": 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 da4fd36213a..d64856a92ff 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1701007131,
+ "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_P4scN21egyF63j",
- "invoice_prefix": "BFEDDCEB",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1701007133,
- "customer": "cus_P4scN21egyF63j",
- "id": "pm_1OGirJDEQaroqDjs0fg5PtPl",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.2.json
index da4fd36213a..d64856a92ff 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1701007131,
+ "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_P4scN21egyF63j",
- "invoice_prefix": "BFEDDCEB",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1701007133,
- "customer": "cus_P4scN21egyF63j",
- "id": "pm_1OGirJDEQaroqDjs0fg5PtPl",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.3.json
index da4fd36213a..d64856a92ff 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1701007131,
+ "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_P4scN21egyF63j",
- "invoice_prefix": "BFEDDCEB",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1701007133,
- "customer": "cus_P4scN21egyF63j",
- "id": "pm_1OGirJDEQaroqDjs0fg5PtPl",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Customer.retrieve.4.json
index da4fd36213a..d64856a92ff 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1701007131,
+ "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_P4scN21egyF63j",
- "invoice_prefix": "BFEDDCEB",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1701007133,
- "customer": "cus_P4scN21egyF63j",
- "id": "pm_1OGirJDEQaroqDjs0fg5PtPl",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json
index 2f0d7c7ef2c..7c095ec25a5 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
@@ -2,12 +2,12 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1701007135,
+ "created": 1000000000,
"data": {
"object": {
"address": null,
"balance": 0,
- "created": 1701007131,
+ "created": 1000000000,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -15,17 +15,17 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P4scN21egyF63j",
- "invoice_prefix": "BFEDDCEB",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OGirJDEQaroqDjs0fg5PtPl",
+ "default_payment_method": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OGirLDEQaroqDjsz8SKiaqo",
+ "id": "evt_1OIlb5DEQaroqDjsbRYPQIsV",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_AyeuVEyieC6onh",
- "idempotency_key": "89b1c0ff-4445-484e-a46d-edb738e19727"
+ "id": "req_NORMALIZED0001",
+ "idempotency_key": "4fc1dc7d-a095-40cc-a9a1-2d8e21575270"
},
"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 6caff42c115..51a9048d76e 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_1OGirJDEQaroqDjsYpipSEB0_secret_P4scaxG6yYSKO4CtptkXClW7kitH4Z5",
- "created": 1701007133,
- "customer": "cus_P4scN21egyF63j",
+ "client_secret": "seti_1OIlb3DEQaroqDjsEAHhddfz_secret_P6zaEBcdhkiacrBpqyQb5lyu1txPvTH",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OGirJDEQaroqDjsYpipSEB0",
+ "id": "seti_1OIlb3DEQaroqDjsEAHhddfz",
"last_setup_error": null,
- "latest_attempt": "setatt_1OGirJDEQaroqDjskmjNC3F7",
+ "latest_attempt": "setatt_1OIlb3DEQaroqDjs7JJpR5wb",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OGirJDEQaroqDjs0fg5PtPl",
+ "payment_method": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
"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 c8b8146b343..608a0801ade 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_1OGirHDEQaroqDjsWRgeKxys_secret_P4scp8ZoQF4uJncgCdd4XzNWWTw16yl",
- "created": 1701007131,
- "customer": "cus_P4scN21egyF63j",
+ "client_secret": "seti_1OIlb2DEQaroqDjsO5x2EXc7_secret_P6zaB3aWtnlnJfCvjwF31Y19FrleDA0",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OGirHDEQaroqDjsWRgeKxys",
+ "id": "seti_1OIlb2DEQaroqDjsO5x2EXc7",
"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 6caff42c115..51a9048d76e 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_1OGirJDEQaroqDjsYpipSEB0_secret_P4scaxG6yYSKO4CtptkXClW7kitH4Z5",
- "created": 1701007133,
- "customer": "cus_P4scN21egyF63j",
+ "client_secret": "seti_1OIlb3DEQaroqDjsEAHhddfz_secret_P6zaEBcdhkiacrBpqyQb5lyu1txPvTH",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OGirJDEQaroqDjsYpipSEB0",
+ "id": "seti_1OIlb3DEQaroqDjsEAHhddfz",
"last_setup_error": null,
- "latest_attempt": "setatt_1OGirJDEQaroqDjskmjNC3F7",
+ "latest_attempt": "setatt_1OIlb3DEQaroqDjs7JJpR5wb",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OGirJDEQaroqDjs0fg5PtPl",
+ "payment_method": "pm_1OIlb3DEQaroqDjs8RTKu3k5",
"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 d977a670ffd..71e84d239b6 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1701007131,
+ "created": 1000000000,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -22,7 +22,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_P4scN21egyF63j",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -33,8 +33,8 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1701093531,
- "id": "cs_test_c1fBDZcNaDnv5cqg1WNBXNCDmlUwwLBP59mIYRwRB1OUAEYocADHCi5EOH",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED01tjtGe4sgxYl79o89mpIdXfihE4K8kUPRIDWAe8Jou3XVQS",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OGirHDEQaroqDjsWRgeKxys",
+ "setup_intent": "seti_1OIlb2DEQaroqDjsO5x2EXc7",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_c1fBDZcNaDnv5cqg1WNBXNCDmlUwwLBP59mIYRwRB1OUAEYocADHCi5EOH#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01tjtGe4sgxYl79o89mpIdXfihE4K8kUPRIDWAe8Jou3XVQS#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 80924c51f9f..0dfee7fd168 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1701007131,
+ "created": 1000000000,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -24,7 +24,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_P4scN21egyF63j",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -35,8 +35,8 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1701093531,
- "id": "cs_test_c1fBDZcNaDnv5cqg1WNBXNCDmlUwwLBP59mIYRwRB1OUAEYocADHCi5EOH",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED01tjtGe4sgxYl79o89mpIdXfihE4K8kUPRIDWAe8Jou3XVQS",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OGirHDEQaroqDjsWRgeKxys",
+ "setup_intent": "seti_1OIlb2DEQaroqDjsO5x2EXc7",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_c1fBDZcNaDnv5cqg1WNBXNCDmlUwwLBP59mIYRwRB1OUAEYocADHCi5EOH#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01tjtGe4sgxYl79o89mpIdXfihE4K8kUPRIDWAe8Jou3XVQS#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 ed6c986db10..e25e2a8db80 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_1OGjOiDEQaroqDjs1saPoOzz",
+ "default_payment_method": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
"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 dd3c0633861..c8788ff1dd5 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OGjOiDEQaroqDjs1saPoOzz",
+ "id": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
"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 dd3c0633861..c8788ff1dd5 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OGjOiDEQaroqDjs1saPoOzz",
+ "id": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
"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 dd3c0633861..c8788ff1dd5 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OGjOiDEQaroqDjs1saPoOzz",
+ "id": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
"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 dd3c0633861..c8788ff1dd5 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OGjOiDEQaroqDjs1saPoOzz",
+ "id": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
"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 ea63ba1bb62..e14d86bcb70 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_1OGjOiDEQaroqDjs1saPoOzz",
+ "default_payment_method": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OGjOjDEQaroqDjsgh56akwA",
+ "id": "evt_1OIlbADEQaroqDjskjEl4q0u",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "82ec0759-4649-4aa5-ab13-f80c5b6300cc"
+ "idempotency_key": "b098255c-7826-4ae5-8855-f4a856a2b2dc"
},
"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 9df6d27ac01..e6d8420cfb8 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_1OGjOiDEQaroqDjs0mczPK5Q_secret_P4tBceetMSlLfbfrbp4RXKdBjnNp4In",
+ "client_secret": "seti_1OIlb8DEQaroqDjsfTh9Efq6_secret_P6zamRCBh4a8GmZYGDyuaEKCUEBGu4z",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OGjOiDEQaroqDjs0mczPK5Q",
+ "id": "seti_1OIlb8DEQaroqDjsfTh9Efq6",
"last_setup_error": null,
- "latest_attempt": "setatt_1OGjOiDEQaroqDjsZve6lwXi",
+ "latest_attempt": "setatt_1OIlb8DEQaroqDjsIvgMoGby",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OGjOiDEQaroqDjs1saPoOzz",
+ "payment_method": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
"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 1dd7684452e..723e6b20a87 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_1OGjOgDEQaroqDjsnqXN4MEe_secret_P4tBu0OljOeHnxDc1xFcHJLxe3YbMFs",
+ "client_secret": "seti_1OIlb8DEQaroqDjsvXacX4Pc_secret_P6zaIR9mPjlTH6aFFZqh6xE24J4d5Sp",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OGjOgDEQaroqDjsnqXN4MEe",
+ "id": "seti_1OIlb8DEQaroqDjsvXacX4Pc",
"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 9df6d27ac01..e6d8420cfb8 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_1OGjOiDEQaroqDjs0mczPK5Q_secret_P4tBceetMSlLfbfrbp4RXKdBjnNp4In",
+ "client_secret": "seti_1OIlb8DEQaroqDjsfTh9Efq6_secret_P6zamRCBh4a8GmZYGDyuaEKCUEBGu4z",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OGjOiDEQaroqDjs0mczPK5Q",
+ "id": "seti_1OIlb8DEQaroqDjsfTh9Efq6",
"last_setup_error": null,
- "latest_attempt": "setatt_1OGjOiDEQaroqDjsZve6lwXi",
+ "latest_attempt": "setatt_1OIlb8DEQaroqDjsIvgMoGby",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OGjOiDEQaroqDjs1saPoOzz",
+ "payment_method": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
"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 edfd3178ae0..19b51ecceb9 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01X2pCpFwoBMHMedIXu5mI7Xubvoh8wc4oenhkdkooMUfP5a",
+ "id": "cs_test_NORMALIZED01v7w2AADuM90XJuiqu2dKIGFrGFzPVIGoGCXpV82CBvzBuD",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OGjOgDEQaroqDjsnqXN4MEe",
+ "setup_intent": "seti_1OIlb8DEQaroqDjsvXacX4Pc",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED01X2pCpFwoBMHMedIXu5mI7Xubvoh8wc4oenhkdkooMUfP5a#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01v7w2AADuM90XJuiqu2dKIGFrGFzPVIGoGCXpV82CBvzBuD#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 2be3f3f1e56..cf4eec5c785 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01X2pCpFwoBMHMedIXu5mI7Xubvoh8wc4oenhkdkooMUfP5a",
+ "id": "cs_test_NORMALIZED01v7w2AADuM90XJuiqu2dKIGFrGFzPVIGoGCXpV82CBvzBuD",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OGjOgDEQaroqDjsnqXN4MEe",
+ "setup_intent": "seti_1OIlb8DEQaroqDjsvXacX4Pc",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED01X2pCpFwoBMHMedIXu5mI7Xubvoh8wc4oenhkdkooMUfP5a#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01v7w2AADuM90XJuiqu2dKIGFrGFzPVIGoGCXpV82CBvzBuD#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 3e518b33762..a1707566394 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": -437,
+ "amount": -339,
"created": 1000000000,
"credit_note": null,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Credit from early termination of active plan",
- "ending_balance": -437,
+ "ending_balance": -339,
"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 5f99feb7719..cca74450851 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_1OFWD8DEQaroqDjsbeQean1W",
+ "default_payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
"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 f436712fbdd..5172ba263e1 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OFWD8DEQaroqDjsbeQean1W",
+ "id": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
"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 f436712fbdd..5172ba263e1 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OFWD8DEQaroqDjsbeQean1W",
+ "id": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
"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 f436712fbdd..5172ba263e1 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OFWD8DEQaroqDjsbeQean1W",
+ "id": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
"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 f436712fbdd..5172ba263e1 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1OFWD8DEQaroqDjsbeQean1W",
+ "id": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
"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 d1459afec50..d76731c4643 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,53 +5,173 @@
"created": 1000000000,
"data": {
"object": {
- "address": null,
- "balance": 0,
+ "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": null,
- "default_currency": null,
+ "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,
- "delinquent": false,
- "description": "zulip (Zulip Dev)",
+ "default_tax_rates": [],
+ "description": null,
"discount": null,
- "email": "[email protected]",
- "id": "cus_NORMALIZED0001",
- "invoice_prefix": "NORMA01",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_1OFWD8DEQaroqDjsbeQean1W",
- "footer": null,
- "rendering_options": 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"
},
"livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
+ "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
},
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
- },
- "previous_attributes": {
- "invoice_settings": {
- "default_payment_method": null
- }
+ "subtotal": 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_1OFWD9DEQaroqDjsPiDL0AYg",
+ "id": "evt_1OIlcuDEQaroqDjsX54mmZtB",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
- "id": "req_NORMALIZED0001",
- "idempotency_key": "e61003eb-2742-4e21-bded-f552701754aa"
+ "id": null,
+ "idempotency_key": null
},
- "type": "customer.updated"
+ "type": "invoice.sent"
}
],
"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 690c69811a6..11787be4724 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json
@@ -1,5 +1,220 @@
{
"data": [
+ {
+ "api_version": "2020-08-27",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 48000,
+ "amount_capturable": 0,
+ "amount_details": {
+ "tip": {}
+ },
+ "amount_received": 48000,
+ "application": null,
+ "application_fee_amount": null,
+ "automatic_payment_methods": null,
+ "canceled_at": null,
+ "cancellation_reason": null,
+ "capture_method": "automatic",
+ "charges": {
+ "data": [
+ {
+ "amount": 48000,
+ "amount_captured": 48000,
+ "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, $80.0 x 6",
+ "destination": null,
+ "dispute": null,
+ "disputed": false,
+ "failure_balance_transaction": null,
+ "failure_code": null,
+ "failure_message": null,
+ "fraud_details": {},
+ "id": "ch_NORMALIZED00000000000001",
+ "invoice": 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": "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_1OIlcrDEQaroqDjsDVLo4rIx",
+ "payment_method_details": {
+ "card": {
+ "amount_authorized": 48000,
+ "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": 48000,
+ "status": "unavailable"
+ },
+ "three_d_secure": null,
+ "wallet": null
+ },
+ "type": "card"
+ },
+ "radar_options": {},
+ "receipt_email": "[email protected]",
+ "receipt_number": null,
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJ39qqsGMgZh5d5XODE6LBZiUrlxEtrh-a4P5wbgjbFHJPFaFabZ47GoS833o7lgYwmHoJsHkPx4rcvz",
+ "refunded": false,
+ "refunds": {
+ "data": [],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/charges/ch_NORMALIZED00000000000001/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_Zh46dccATrE3g8qiqxlrm2qC4",
+ "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": "ch_NORMALIZED00000000000001",
+ "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": "10"
+ },
+ "next_action": null,
+ "object": "payment_intent",
+ "on_behalf_of": null,
+ "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
+ "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_3OIlcuDEQaroqDjs15WQG3pl",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 2,
+ "request": {
+ "id": "req_NORMALIZED0001",
+ "idempotency_key": "3f32e67e-4000-4cfb-b29b-862145bb4394"
+ },
+ "type": "payment_intent.succeeded"
+ },
{
"api_version": "2020-08-27",
"created": 1000000000,
@@ -46,6 +261,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -66,8 +282,8 @@
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OFWD8DEQaroqDjsbeQean1W",
+ "payment_intent": "pi_NORMALIZED00000000000002",
+ "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -78,7 +294,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -107,9 +323,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKL7c-6oGMgaz9Tos8P86LBZda7Ck6q7bxLFnyx0j-_4qTLgbSiIZSdGlLELq1aTRX1AJTgPBN5Omy_hU",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJ39qqsGMgbdjvNMRLg6LBarAsHlmAdFlIDSHd2Wzr3pqRq9P1p8CGjbv6SFjfku7jSBXsMNZCoYUWGW",
"refunded": false,
"refunds": {
"data": [],
@@ -129,15 +346,361 @@
"transfer_group": null
}
},
- "id": "evt_3OFWDBDEQaroqDjs0XubEkJk",
+ "id": "evt_3OIlcuDEQaroqDjs1bFxeo1s",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0002",
- "idempotency_key": "79a21870-d329-42b9-a7dd-816c7227626e"
+ "id": "req_NORMALIZED0001",
+ "idempotency_key": "3f32e67e-4000-4cfb-b29b-862145bb4394"
},
"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 64207362b2b..fc9ea800b9b 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
@@ -5,212 +5,643 @@
"created": 1000000000,
"data": {
"object": {
- "amount": 48000,
- "amount_capturable": 0,
- "amount_details": {
- "tip": {}
- },
- "amount_received": 48000,
+ "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,
- "automatic_payment_methods": null,
- "canceled_at": null,
- "cancellation_reason": null,
- "capture_method": "automatic",
- "charges": {
+ "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_captured": 48000,
- "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,
+ "amount_excluding_tax": 48000,
"currency": "usd",
- "customer": "cus_NORMALIZED0001",
- "description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
- "destination": null,
- "dispute": null,
- "disputed": false,
- "failure_balance_transaction": null,
- "failure_code": null,
- "failure_message": null,
- "fraud_details": {},
- "id": "ch_NORMALIZED00000000000001",
- "invoice": null,
+ "description": "Zulip Cloud Standard",
+ "discount_amounts": [],
+ "discountable": false,
+ "discounts": [],
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
- "metadata": {
- "billing_modality": "charge_automatically",
- "billing_schedule": "1",
- "license_management": "automatic",
- "licenses": "6",
- "price_per_license": "8000",
- "realm_id": "1",
- "realm_str": "zulip",
- "seat_count": "6",
- "type": "upgrade",
- "user_email": "[email protected]",
- "user_id": "10"
+ "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_NORMALIZED00000000000002",
+ "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"
},
- "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_NORMALIZED00000000000001",
- "payment_method": "pm_1OFWD8DEQaroqDjsbeQean1W",
- "payment_method_details": {
- "card": {
- "amount_authorized": 48000,
- "brand": "visa",
- "checks": {
- "address_line1_check": null,
- "address_postal_code_check": null,
- "cvc_check": "pass"
- },
- "country": "US",
- "exp_month": 11,
- "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": 48000,
- "status": "unavailable"
- },
- "three_d_secure": null,
- "wallet": null
- },
- "type": "card"
+ "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",
+ "tiers_mode": null,
+ "transform_quantity": null,
+ "type": "one_time",
+ "unit_amount": -48000,
+ "unit_amount_decimal": "-48000"
},
- "receipt_email": "[email protected]",
- "receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKL7c-6oGMgb-QbX6aKA6LBYvTD5qCJyj_oSzU9nmowj0xxKoo9gSyPhS1Az-XVSPbh2EaRTuTUSFhSOd",
- "refunded": false,
- "refunds": {
- "data": [],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
+ "proration": false,
+ "proration_details": {
+ "credited_items": null
},
- "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
+ "quantity": 1,
+ "subscription": null,
+ "tax_amounts": [],
+ "tax_rates": [],
+ "type": "invoiceitem",
+ "unit_amount_excluding_tax": "-48000"
}
],
"has_more": false,
"object": "list",
- "total_count": 1,
- "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
+ "total_count": 2,
+ "url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_8LrrfmEMVbU1QNd1Y1e4LW91d",
- "confirmation_method": "automatic",
+ "livemode": false,
+ "metadata": {},
+ "next_payment_attempt": null,
+ "number": "NORMALI-0004",
+ "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_1OIlcyDEQaroqDjsXypfht0c",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 2,
+ "request": {
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "38f5d6e3-e5ec-4046-98d3-979b8b6f737e"
+ },
+ "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",
- "description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
- "id": "pi_NORMALIZED00000000000001",
- "invoice": null,
- "last_payment_error": null,
- "latest_charge": "ch_NORMALIZED00000000000001",
+ "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_NORMALIZED00000000000004",
+ "invoice_pdf": null,
+ "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",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_unit_amount": null,
+ "id": "price_NORMALIZED00000000000002",
+ "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_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",
+ "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": {
- "billing_modality": "charge_automatically",
- "billing_schedule": "1",
- "license_management": "automatic",
- "licenses": "6",
- "price_per_license": "8000",
- "realm_id": "1",
- "realm_str": "zulip",
- "seat_count": "6",
- "type": "upgrade",
- "user_email": "[email protected]",
- "user_id": "10"
- },
- "next_action": null,
- "object": "payment_intent",
+ "metadata": {},
+ "next_payment_attempt": 1000000000,
+ "number": null,
+ "object": "invoice",
"on_behalf_of": null,
- "payment_method": "pm_1OFWD8DEQaroqDjsbeQean1W",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "installments": null,
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
+ "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"
}
},
- "payment_method_types": [
- "card"
- ],
- "processing": null,
- "receipt_email": "[email protected]",
- "review": null,
- "setup_future_usage": null,
- "shipping": null,
- "source": null,
+ "rendering_options": null,
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
"statement_descriptor": "Zulip Cloud Standard",
- "statement_descriptor_suffix": null,
- "status": "succeeded",
+ "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,
- "transfer_group": null
+ "webhooks_delivered_at": null
}
},
- "id": "evt_3OFWDBDEQaroqDjs0cRcGUju",
+ "id": "evt_1OIlcxDEQaroqDjsrxXjS9c6",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0002",
- "idempotency_key": "79a21870-d329-42b9-a7dd-816c7227626e"
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "f5e39471-f435-4423-bd55-31d7501a7f45"
+ },
+ "type": "invoice.created"
+ },
+ {
+ "api_version": "2020-08-27",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": 48000,
+ "currency": "usd",
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
+ "description": "Zulip Cloud Standard",
+ "discountable": false,
+ "discounts": [],
+ "id": "ii_NORMALIZED00000000000004",
+ "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_NORMALIZED00000000000002",
+ "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,
+ "quantity": 6,
+ "subscription": null,
+ "tax_rates": [],
+ "test_clock": null,
+ "unit_amount": 8000,
+ "unit_amount_decimal": "8000"
+ }
+ },
+ "id": "evt_1OIlcxDEQaroqDjsjhFzia7R",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0004",
+ "idempotency_key": "1349928b-a706-4ea6-ac76-01bbce908090"
+ },
+ "type": "invoiceitem.created"
+ },
+ {
+ "api_version": "2020-08-27",
+ "created": 1000000000,
+ "data": {
+ "object": {
+ "amount": -48000,
+ "currency": "usd",
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
+ "description": "Payment (Card ending in 4242)",
+ "discountable": false,
+ "discounts": [],
+ "id": "ii_NORMALIZED00000000000005",
+ "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_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,
+ "quantity": 1,
+ "subscription": null,
+ "tax_rates": [],
+ "test_clock": null,
+ "unit_amount": -48000,
+ "unit_amount_decimal": "-48000"
+ }
+ },
+ "id": "evt_1OIlcwDEQaroqDjsSOpiV5q1",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0005",
+ "idempotency_key": "b72f35f0-dc22-475e-b995-822f033dcf70"
+ },
+ "type": "invoiceitem.created"
+ },
+ {
+ "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_1OIlcrDEQaroqDjsDVLo4rIx",
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+ },
+ "previous_attributes": {
+ "currency": null,
+ "default_currency": null
+ }
+ },
+ "id": "evt_1OIlcwDEQaroqDjsyKIzW0oz",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0005",
+ "idempotency_key": "b72f35f0-dc22-475e-b995-822f033dcf70"
},
- "type": "payment_intent.succeeded"
+ "type": "customer.updated"
}
],
"has_more": false,
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 10674cdf3b4..1654ee10788 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
@@ -15,8 +15,8 @@
"application": null,
"application_fee_amount": null,
"attempt_count": 0,
- "attempted": false,
- "auto_advance": true,
+ "attempted": true,
+ "auto_advance": false,
"automatic_tax": {
"enabled": false,
"status": null
@@ -42,13 +42,13 @@
"discount": null,
"discounts": [],
"due_date": null,
- "effective_at": null,
- "ending_balance": null,
+ "effective_at": 1000000000,
+ "ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": null,
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": 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": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -77,7 +77,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +111,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000005",
+ "invoice_item": "ii_NORMALIZED00000000000005",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -127,7 +127,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -157,15 +157,15 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
},
"livemode": false,
"metadata": {},
- "next_payment_attempt": 1000000000,
- "number": null,
+ "next_payment_attempt": null,
+ "number": "NORMALI-0005",
"object": "invoice",
"on_behalf_of": null,
- "paid": false,
+ "paid": true,
"paid_out_of_band": false,
"payment_intent": null,
"payment_settings": {
@@ -182,7 +182,7 @@
"rendering": {
"amount_tax_display": null,
"pdf": {
- "page_size": "auto"
+ "page_size": "letter"
}
},
"rendering_options": null,
@@ -190,11 +190,11 @@
"shipping_details": null,
"starting_balance": 0,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "draft",
+ "status": "paid",
"status_transitions": {
- "finalized_at": null,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": null,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -213,191 +213,238 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OFWDDDEQaroqDjsyi5CLur2",
+ "id": "evt_1OIlcyDEQaroqDjsm70WiGqI",
"livemode": false,
"object": "event",
- "pending_webhooks": 0,
+ "pending_webhooks": 2,
"request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "c0e24090-817c-4cf1-9a64-f49233a13da5"
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "38f5d6e3-e5ec-4046-98d3-979b8b6f737e"
},
- "type": "invoice.created"
+ "type": "invoice.paid"
},
{
"api_version": "2020-08-27",
"created": 1000000000,
"data": {
"object": {
- "amount": 48000,
- "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": 8000,
- "unit_amount_decimal": "8000"
+ "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
},
- "proration": false,
- "quantity": 6,
- "subscription": null,
- "tax_rates": [],
- "test_clock": null,
- "unit_amount": 8000,
- "unit_amount_decimal": "8000"
- }
- },
- "id": "evt_1OFWDDDEQaroqDjs8IeJM6Pb",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0004",
- "idempotency_key": "80161211-807b-49a8-a243-9a970f71f0e8"
- },
- "type": "invoiceitem.created"
- },
- {
- "api_version": "2020-08-27",
- "created": 1000000000,
- "data": {
- "object": {
- "amount": -48000,
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1000000000,
"currency": "usd",
+ "custom_fields": null,
"customer": "cus_NORMALIZED0001",
- "date": 1000000000,
- "description": "Payment (Card ending in 4242)",
- "discountable": false,
+ "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": [],
- "id": "ii_NORMALIZED00000000000002",
- "invoice": null,
+ "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",
+ "created": 1000000000,
+ "currency": "usd",
+ "custom_unit_amount": null,
+ "id": "price_NORMALIZED00000000000002",
+ "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_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",
+ "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": {},
- "object": "invoiceitem",
- "period": {
- "end": 1000000000,
- "start": 1000000000
+ "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
},
- "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"
+ "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"
+ }
},
- "proration": false,
- "quantity": 1,
- "subscription": null,
- "tax_rates": [],
- "test_clock": null,
- "unit_amount": -48000,
- "unit_amount_decimal": "-48000"
- }
- },
- "id": "evt_1OFWDDDEQaroqDjst4NM9zRA",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_NORMALIZED0005",
- "idempotency_key": "c8fbf319-f723-48d1-9c38-5d8e68fd74ca"
- },
- "type": "invoiceitem.created"
- },
- {
- "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_1OFWD8DEQaroqDjsbeQean1W",
- "footer": null,
- "rendering_options": null
+ "rendering_options": null,
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "paid",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": 1000000000,
+ "voided_at": null
},
- "livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
+ "subscription": null,
+ "subscription_details": {
+ "metadata": null
},
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
- },
- "previous_attributes": {
- "currency": null,
- "default_currency": 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_1OFWDDDEQaroqDjsa6HU7in0",
+ "id": "evt_1OIlcyDEQaroqDjslhosohOc",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0005",
- "idempotency_key": "c8fbf319-f723-48d1-9c38-5d8e68fd74ca"
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "38f5d6e3-e5ec-4046-98d3-979b8b6f737e"
},
- "type": "customer.updated"
+ "type": "invoice.finalized"
}
],
"has_more": false,
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 92bafcfaa11..a8f1db24c53 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RVSjJZbEx3bGZ5TnV6ZGQ2MEd1aTYwQjRuUElRLDkxMjYwOTky02007zWYSruV?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RVSjJZbEx3bGZ5TnV6ZGQ2MEd1aTYwQjRuUElRLDkxMjYwOTky02007zWYSruV/pdf?s=ap",
+ "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": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,56 +71,6 @@
"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",
@@ -133,179 +83,6 @@
"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_1OFWDEDEQaroqDjsaUeU2jsL",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0006",
- "idempotency_key": "e461b87c-d52e-4af6-a76e-c7717b66e633"
- },
- "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
- },
- "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RVSjJZbEx3bGZ5TnV6ZGQ2MEd1aTYwQjRuUElRLDkxMjYwOTky02007zWYSruV?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RVSjJZbEx3bGZ5TnV6ZGQ2MEd1aTYwQjRuUElRLDkxMjYwOTky02007zWYSruV/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",
@@ -334,8 +111,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000005",
+ "invoice_item": "ii_NORMALIZED00000000000005",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -350,7 +127,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -380,12 +157,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0001",
+ "number": "NORMALI-0005",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -434,38 +211,17 @@
"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_1OFWDEDEQaroqDjsKMHv3Jvl",
+ "id": "evt_1OIlcyDEQaroqDjsBdO41XHJ",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_NORMALIZED0006",
- "idempotency_key": "e461b87c-d52e-4af6-a76e-c7717b66e633"
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "38f5d6e3-e5ec-4046-98d3-979b8b6f737e"
},
- "type": "invoice.updated"
+ "type": "invoice.payment_succeeded"
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.6.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.6.json
index 353abe9b857..6d922067afe 100644
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.6.json
+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.6.json
@@ -1,229 +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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RVSjJZbEx3bGZ5TnV6ZGQ2MEd1aTYwQjRuUElRLDkxMjYwOTky02007zWYSruV?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RVSjJZbEx3bGZ5TnV6ZGQ2MEd1aTYwQjRuUElRLDkxMjYwOTky02007zWYSruV/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-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_1OFWDEDEQaroqDjs66EoHBLc",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0006",
- "idempotency_key": "e461b87c-d52e-4af6-a76e-c7717b66e633"
- },
- "type": "invoice.paid"
- }
- ],
+ "data": [],
"has_more": false,
"object": "list",
"url": "/v1/events"
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.7.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.7.json
deleted file mode 100644
index adc35e9a419..00000000000
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.7.json
+++ /dev/null
@@ -1,230 +0,0 @@
-{
- "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RVSjJZbEx3bGZ5TnV6ZGQ2MEd1aTYwQjRuUElRLDkxMjYwOTky02007zWYSruV?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RVSjJZbEx3bGZ5TnV6ZGQ2MEd1aTYwQjRuUElRLDkxMjYwOTky02007zWYSruV/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-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_1OFWDEDEQaroqDjsXU4t3ECE",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 1,
- "request": {
- "id": "req_NORMALIZED0006",
- "idempotency_key": "e461b87c-d52e-4af6-a76e-c7717b66e633"
- },
- "type": "invoice.payment_succeeded"
- }
- ],
- "has_more": false,
- "object": "list",
- "url": "/v1/events"
-}
diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.8.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.8.json
deleted file mode 100644
index 6d922067afe..00000000000
--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.8.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/events"
-}
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 ee4c6393e41..1bf16d47d4b 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_NORMALIZED00000000000001",
+ "id": "in_NORMALIZED00000000000004",
"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_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,7 +71,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -105,8 +105,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000005",
+ "invoice_item": "ii_NORMALIZED00000000000005",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -121,7 +121,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000003",
"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_NORMALIZED00000000000004/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 a8b483910d8..d22e7363ed8 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": 95563,
+ "amount_due": 95661,
"amount_paid": 0,
- "amount_remaining": 95563,
+ "amount_remaining": 95661,
"amount_shipping": 0,
"application": null,
"application_fee_amount": null,
@@ -41,7 +41,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "in_NORMALIZED00000000000002",
+ "id": "in_NORMALIZED00000000000005",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -51,12 +51,12 @@
"amount": 96000,
"amount_excluding_tax": 96000,
"currency": "usd",
- "description": "Zulip Plus - renewal",
+ "description": "Zulip Cloud Plus - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
+ "id": "il_NORMALIZED00000000000006",
+ "invoice_item": "ii_NORMALIZED00000000000006",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,7 +71,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -101,7 +101,7 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000005/lines"
},
"livemode": false,
"metadata": {},
@@ -132,8 +132,8 @@
"rendering_options": null,
"shipping_cost": null,
"shipping_details": null,
- "starting_balance": -437,
- "statement_descriptor": "Zulip Plus",
+ "starting_balance": -339,
+ "statement_descriptor": "Zulip Cloud Plus",
"status": "draft",
"status_transitions": {
"finalized_at": null,
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 1fef87cfc04..e1b1458d7e6 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RVSjJZbEx3bGZ5TnV6ZGQ2MEd1aTYwQjRuUElRLDkxMjYwOTky02007zWYSruV?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RVSjJZbEx3bGZ5TnV6ZGQ2MEd1aTYwQjRuUElRLDkxMjYwOTky02007zWYSruV/pdf?s=ap",
+ "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": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000001",
- "invoice_item": "ii_NORMALIZED00000000000001",
+ "id": "il_NORMALIZED00000000000004",
+ "invoice_item": "ii_NORMALIZED00000000000004",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,7 +71,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "id": "price_NORMALIZED00000000000002",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -105,8 +105,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000002",
- "invoice_item": "ii_NORMALIZED00000000000002",
+ "id": "il_NORMALIZED00000000000005",
+ "invoice_item": "ii_NORMALIZED00000000000005",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -121,7 +121,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000003",
"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_NORMALIZED00000000000004/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "NORMALI-0001",
+ "number": "NORMALI-0005",
"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 45e66658985..e4b3d81163f 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": 95563,
+ "amount_due": 95661,
"amount_paid": 0,
- "amount_remaining": 95563,
+ "amount_remaining": 95661,
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RVWjh6dWt1bmR6dGpDeGZob3ZJRFVFTDc0NFJlLDkxMjYwOTk00200hq2OrGJy?s=ap",
- "id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QM2RVWjh6dWt1bmR6dGpDeGZob3ZJRFVFTDc0NFJlLDkxMjYwOTk00200hq2OrGJy/pdf?s=ap",
+ "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",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -51,12 +51,12 @@
"amount": 96000,
"amount_excluding_tax": 96000,
"currency": "usd",
- "description": "Zulip Plus - renewal",
+ "description": "Zulip Cloud Plus - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_NORMALIZED00000000000003",
- "invoice_item": "ii_NORMALIZED00000000000003",
+ "id": "il_NORMALIZED00000000000006",
+ "invoice_item": "ii_NORMALIZED00000000000006",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -71,7 +71,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000004",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -101,17 +101,17 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000005/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0006",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000002",
+ "payment_intent": "pi_NORMALIZED00000000000005",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
@@ -132,8 +132,8 @@
"rendering_options": null,
"shipping_cost": null,
"shipping_details": null,
- "starting_balance": -437,
- "statement_descriptor": "Zulip Plus",
+ "starting_balance": -339,
+ "statement_descriptor": "Zulip Cloud Plus",
"status": "open",
"status_transitions": {
"finalized_at": 1000000000,
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 fcb1c3c2e9d..03abf6a85e4 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_NORMALIZED00000000000002",
+ "id": "ii_NORMALIZED00000000000005",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000002",
+ "id": "price_NORMALIZED00000000000003",
"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 11622f30a73..7be7e3518c4 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_NORMALIZED00000000000001",
+ "id": "ii_NORMALIZED00000000000004",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000001",
+ "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.3.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.3.json
index 5b9f96e06e6..2c2ab690acc 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
@@ -3,10 +3,10 @@
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"date": 1000000000,
- "description": "Zulip Plus - renewal",
+ "description": "Zulip Cloud Plus - renewal",
"discountable": false,
"discounts": [],
- "id": "ii_NORMALIZED00000000000003",
+ "id": "ii_NORMALIZED00000000000006",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_NORMALIZED00000000000003",
+ "id": "price_NORMALIZED00000000000004",
"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 06083e646b0..ac3df874853 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
@@ -55,6 +55,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -75,8 +76,8 @@
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OFWD8DEQaroqDjsbeQean1W",
+ "payment_intent": "pi_NORMALIZED00000000000002",
+ "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKL7c-6oGMgaYBsyBLkU6LBY06AqW4sG6Nuedb6GO0h-2XftyTbkGsSZgOqR7dVByEEd6Kg45YU78TWSi",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKJ39qqsGMgY9Bd24WPU6LBayGjeDORdYaZDCpYVDyoC7qiuGQA4PmdMPiHXNnwxL7MCf0rwNPDcSvjIE",
"refunded": false,
"refunds": {
"data": [],
@@ -141,15 +143,15 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_8LrrfmEMVbU1QNd1Y1e4LW91d",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_Zh46dccATrE3g8qiqxlrm2qC4",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
- "id": "pi_NORMALIZED00000000000001",
+ "id": "pi_NORMALIZED00000000000002",
"invoice": null,
"last_payment_error": null,
"latest_charge": "ch_NORMALIZED00000000000001",
@@ -159,6 +161,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OFWD8DEQaroqDjsbeQean1W",
+ "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
"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 fe85b57a67f..d7fe9bd9498 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_1OFWD8DEQaroqDjsu3EeopFr_secret_P3dUrWNNNJDJda9CTGTiu6kWd7e78Hc",
+ "client_secret": "seti_1OIlcrDEQaroqDjsFeKbN7DV_secret_P6zceCgRAzbcMU85ccfYGMSXjGoPgt7",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OFWD8DEQaroqDjsu3EeopFr",
+ "id": "seti_1OIlcrDEQaroqDjsFeKbN7DV",
"last_setup_error": null,
- "latest_attempt": "setatt_1OFWD8DEQaroqDjs0k9wJgDn",
+ "latest_attempt": "setatt_1OIlcrDEQaroqDjsMWfIXM66",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OFWD8DEQaroqDjsbeQean1W",
+ "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
"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 1e562bacfa0..3e77475be70 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_1OFWD6DEQaroqDjs3zCoSlTZ_secret_P3dUwq68OPuVM1iVvU4GAg9oUOC6CxQ",
+ "client_secret": "seti_1OIlcqDEQaroqDjsZO0yJl5U_secret_P6zcdR2k4Sjz0PRF0R6rN1ntzo9MkGa",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OFWD6DEQaroqDjs3zCoSlTZ",
+ "id": "seti_1OIlcqDEQaroqDjsZO0yJl5U",
"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 fe85b57a67f..d7fe9bd9498 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_1OFWD8DEQaroqDjsu3EeopFr_secret_P3dUrWNNNJDJda9CTGTiu6kWd7e78Hc",
+ "client_secret": "seti_1OIlcrDEQaroqDjsFeKbN7DV_secret_P6zceCgRAzbcMU85ccfYGMSXjGoPgt7",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OFWD8DEQaroqDjsu3EeopFr",
+ "id": "seti_1OIlcrDEQaroqDjsFeKbN7DV",
"last_setup_error": null,
- "latest_attempt": "setatt_1OFWD8DEQaroqDjs0k9wJgDn",
+ "latest_attempt": "setatt_1OIlcrDEQaroqDjsMWfIXM66",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OFWD8DEQaroqDjsbeQean1W",
+ "payment_method": "pm_1OIlcrDEQaroqDjsDVLo4rIx",
"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 91331fe43d6..028b98f0a2e 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02G79EQYyYv79XCeVMX78daZGkrG0fTQA9XJtnRTLvJd6WzC",
+ "id": "cs_test_NORMALIZED026p1Cgp0oP8OiGJV70uDm2efZ9itMBngIj8DfZz4P4gNDmv",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OFWD6DEQaroqDjs3zCoSlTZ",
+ "setup_intent": "seti_1OIlcqDEQaroqDjsZO0yJl5U",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED02G79EQYyYv79XCeVMX78daZGkrG0fTQA9XJtnRTLvJd6WzC#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED026p1Cgp0oP8OiGJV70uDm2efZ9itMBngIj8DfZz4P4gNDmv#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 58057b3884b..23eb0cdef8f 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02G79EQYyYv79XCeVMX78daZGkrG0fTQA9XJtnRTLvJd6WzC",
+ "id": "cs_test_NORMALIZED026p1Cgp0oP8OiGJV70uDm2efZ9itMBngIj8DfZz4P4gNDmv",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OFWD6DEQaroqDjs3zCoSlTZ",
+ "setup_intent": "seti_1OIlcqDEQaroqDjsZO0yJl5U",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED02G79EQYyYv79XCeVMX78daZGkrG0fTQA9XJtnRTLvJd6WzC#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED026p1Cgp0oP8OiGJV70uDm2efZ9itMBngIj8DfZz4P4gNDmv#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 36b87a61dd5..395854cc1bb 100644
--- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json
@@ -5,59 +5,53 @@
"created": 1000000000,
"data": {
"object": {
- "ach_credit_transfer": {
- "account_number": "test_NORMALIZED01",
- "bank_name": "TEST BANK",
- "fingerprint": "NORMALIZED000001",
- "refund_account_holder_name": null,
- "refund_account_holder_type": null,
- "refund_routing_number": null,
- "routing_number": "110000000",
- "swift_code": "TSTEZ122"
- },
- "amount": null,
- "client_secret": "src_client_secret_NORMALIZED00000000000001",
+ "address": null,
+ "balance": 0,
"created": 1000000000,
- "currency": "usd",
- "customer": "cus_NORMALIZED0002",
- "flow": "receiver",
- "id": "src_NORMALIZED00000000000002",
- "livemode": false,
- "metadata": {},
- "object": "source",
- "owner": {
- "address": null,
- "email": "[email protected]",
- "name": null,
- "phone": null,
- "verified_address": null,
- "verified_email": null,
- "verified_name": null,
- "verified_phone": null
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip (Zulip Dev)",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "cus_NORMALIZED0002",
+ "invoice_prefix": "NORMA02",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": "pm_1OIlb8DEQaroqDjsTU8zFvP8",
+ "footer": null,
+ "rendering_options": null
},
- "receiver": {
- "address": "000000000-test_NORMALIZED01",
- "amount_charged": 0,
- "amount_received": 0,
- "amount_returned": 0,
- "refund_attributes_method": "email",
- "refund_attributes_status": "missing"
+ "livemode": false,
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
},
- "statement_descriptor": null,
- "status": "pending",
- "type": "ach_credit_transfer",
- "usage": "reusable"
+ "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_1ODZapDEQaroqDjsGqeB2quB",
+ "id": "evt_1OIlbADEQaroqDjskjEl4q0u",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": "1758e57d-f21b-47ff-8157-77c3da2c3fe3"
+ "id": "req_NORMALIZED0001",
+ "idempotency_key": "b098255c-7826-4ae5-8855-f4a856a2b2dc"
},
- "type": "customer.source.created"
+ "type": "customer.updated"
}
],
"has_more": true,
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 3182346c3b9..9ffb7430cf2 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_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxVE5SbHNpSkxMRERKaVV5M3ZOZ1lQaUpneDR0LDkwNzk3MzMz0200awfuSaMC?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphUGhUN3pDTk8xYjdMa2MzNU5oSExtM0x6Um96LDkyMDM1MTI10200CM7FWQql?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxVE5SbHNpSkxMRERKaVV5M3ZOZ1lQaUpneDR0LDkwNzk3MzMz0200awfuSaMC/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphUGhUN3pDTk8xYjdMa2MzNU5oSExtM0x6Um96LDkyMDM1MTI10200CM7FWQql/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 5ff6edff1d2..e74001a2656 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_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxMjlMYXFQd0ZYR3JYWEZCbFZhbWNycEdUemRRLDkwNzk3MzM20200RqZdanwA?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphSHBuZXhIeXI5Y2V0dTdCc2dsQWlDMmoyeGN3LDkyMDM1MTI30200EBO3LQlU?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxMjlMYXFQd0ZYR3JYWEZCbFZhbWNycEdUemRRLDkwNzk3MzM20200RqZdanwA/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphSHBuZXhIeXI5Y2V0dTdCc2dsQWlDMmoyeGN3LDkyMDM1MTI30200EBO3LQlU/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.3.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.finalize_invoice.3.json
index 36c406e8375..234bf78d926 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_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxTjFHNmRON0FyTFBVQXhHNHplTUhNZHpoRkRwLDkwNzk3MzM40200uxuseW5D?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphQzFZSkc2U1VXbGI4TzBraGhOZWlSQ0poTmNjLDkyMDM1MTMw0200q451JXZh?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxTjFHNmRON0FyTFBVQXhHNHplTUhNZHpoRkRwLDkwNzk3MzM40200uxuseW5D/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphQzFZSkc2U1VXbGI4TzBraGhOZWlSQ0poTmNjLDkyMDM1MTMw0200q451JXZh/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": null
+ "webhooks_delivered_at": 1000000000
}
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 bd81274ffd0..1d90608ff53 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_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxMjlMYXFQd0ZYR3JYWEZCbFZhbWNycEdUemRRLDkwNzk3MzM30200S3ASLlAl?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphSHBuZXhIeXI5Y2V0dTdCc2dsQWlDMmoyeGN3LDkyMDM1MTI40200rb2CxPjO?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxMjlMYXFQd0ZYR3JYWEZCbFZhbWNycEdUemRRLDkwNzk3MzM30200S3ASLlAl/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphSHBuZXhIeXI5Y2V0dTdCc2dsQWlDMmoyeGN3LDkyMDM1MTI40200rb2CxPjO/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_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxVE5SbHNpSkxMRERKaVV5M3ZOZ1lQaUpneDR0LDkwNzk3MzM302004S4Tjb5A?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphUGhUN3pDTk8xYjdMa2MzNU5oSExtM0x6Um96LDkyMDM1MTI40200bh8vN16z?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxVE5SbHNpSkxMRERKaVV5M3ZOZ1lQaUpneDR0LDkwNzk3MzM302004S4Tjb5A/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphUGhUN3pDTk8xYjdMa2MzNU5oSExtM0x6Um96LDkyMDM1MTI40200bh8vN16z/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 bd683cc6105..ccc9c4639b5 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_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxTjFHNmRON0FyTFBVQXhHNHplTUhNZHpoRkRwLDkwNzk3MzM502009cCvVkVS?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphQzFZSkc2U1VXbGI4TzBraGhOZWlSQ0poTmNjLDkyMDM1MTMx0200s8zVnzg9?s=ap",
"id": "in_NORMALIZED00000000000003",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxTjFHNmRON0FyTFBVQXhHNHplTUhNZHpoRkRwLDkwNzk3MzM502009cCvVkVS/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphQzFZSkc2U1VXbGI4TzBraGhOZWlSQ0poTmNjLDkyMDM1MTMx0200s8zVnzg9/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_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxMjlMYXFQd0ZYR3JYWEZCbFZhbWNycEdUemRRLDkwNzk3MzM50200sjE7PRIJ?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphSHBuZXhIeXI5Y2V0dTdCc2dsQWlDMmoyeGN3LDkyMDM1MTMx0200TMJ3qDaA?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxMjlMYXFQd0ZYR3JYWEZCbFZhbWNycEdUemRRLDkwNzk3MzM50200sjE7PRIJ/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphSHBuZXhIeXI5Y2V0dTdCc2dsQWlDMmoyeGN3LDkyMDM1MTMx0200TMJ3qDaA/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_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxVE5SbHNpSkxMRERKaVV5M3ZOZ1lQaUpneDR0LDkwNzk3MzM50200ValioOeu?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphUGhUN3pDTk8xYjdMa2MzNU5oSExtM0x6Um96LDkyMDM1MTMx0200LaaZsZah?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QMWNxVE5SbHNpSkxMRERKaVV5M3ZOZ1lQaUpneDR0LDkwNzk3MzM50200ValioOeu/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphUGhUN3pDTk8xYjdMa2MzNU5oSExtM0x6Um96LDkyMDM1MTMx0200LaaZsZah/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 82c7ec03c67..e3168bf7734 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
@@ -7,7 +7,7 @@
"application": null,
"application_fee": null,
"application_fee_amount": null,
- "balance_transaction": "txn_3ODaZQDEQaroqDjs09NyLwix",
+ "balance_transaction": "txn_NORMALIZED00000000000001",
"billing_details": {
"address": {
"city": null,
@@ -23,9 +23,9 @@
},
"calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
"captured": true,
- "created": 1700260288,
+ "created": 1010000001,
"currency": "usd",
- "customer": "cus_P1drIpeDVBfuR5",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
"destination": null,
"dispute": null,
@@ -34,7 +34,7 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "ch_3ODaZQDEQaroqDjs0sPAH1SG",
+ "id": "ch_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {
@@ -42,8 +42,9 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip",
"seat_count": "6",
"type": "upgrade",
@@ -57,13 +58,13 @@
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
- "risk_score": 56,
+ "risk_score": 0,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_3ODaZQDEQaroqDjs0PP6Agqe",
- "payment_method": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -74,12 +75,12 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
},
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
@@ -103,16 +104,17 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMXT36oGMgaWsQERPxI6LBbUTzukeCPRkxo_oNdMDmpjqBFbnMF68YGA0mRGxFcmJ9lwodROkIt9zsnF",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMf8qqsGMgZB-nguyFE6LBbtAN24Q8qaaDtBrRxhJm5eyQdmP04_6KSpy09azOp35Uo9wJ0rE_xLpIgj",
"refunded": false,
"refunds": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/ch_3ODaZQDEQaroqDjs0sPAH1SG/refunds"
+ "url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
},
"review": null,
"shipping": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.create.1.json
index eeda7c3359e..58419ce2b68 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.create.1.json
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700260281,
+ "created": 1010000002,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -9,8 +9,8 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P1drIpeDVBfuR5",
- "invoice_prefix": "E0739F8A",
+ "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/upgrade_by_card--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.modify.1.json
index 73ee53fcb92..3098de81085 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700260281,
+ "created": 1010000002,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -9,17 +9,17 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P1drIpeDVBfuR5",
- "invoice_prefix": "E0739F8A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "default_payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.1.json
index eeda7c3359e..58419ce2b68 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.1.json
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700260281,
+ "created": 1010000002,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -9,8 +9,8 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P1drIpeDVBfuR5",
- "invoice_prefix": "E0739F8A",
+ "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/upgrade_by_card--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.2.json
index abb1939a79e..1252292d604 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700260281,
+ "created": 1010000002,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -9,8 +9,8 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P1drIpeDVBfuR5",
- "invoice_prefix": "E0739F8A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1700260284,
- "customer": "cus_P1drIpeDVBfuR5",
- "id": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "created": 1010000003,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.3.json
index abb1939a79e..1252292d604 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700260281,
+ "created": 1010000002,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -9,8 +9,8 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P1drIpeDVBfuR5",
- "invoice_prefix": "E0739F8A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1700260284,
- "customer": "cus_P1drIpeDVBfuR5",
- "id": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "created": 1010000003,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.4.json
index abb1939a79e..1252292d604 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700260281,
+ "created": 1010000002,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -9,8 +9,8 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P1drIpeDVBfuR5",
- "invoice_prefix": "E0739F8A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1700260284,
- "customer": "cus_P1drIpeDVBfuR5",
- "id": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "created": 1010000003,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.5.json
index abb1939a79e..1252292d604 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700260281,
+ "created": 1010000002,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -9,8 +9,8 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P1drIpeDVBfuR5",
- "invoice_prefix": "E0739F8A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1700260284,
- "customer": "cus_P1drIpeDVBfuR5",
- "id": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "created": 1010000003,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Customer.retrieve.6.json
index a2ac8bd3018..7464bc70a09 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
@@ -1,7 +1,7 @@
{
"address": null,
"balance": 0,
- "created": 1700260281,
+ "created": 1010000002,
"currency": "usd",
"default_currency": "usd",
"default_source": null,
@@ -9,8 +9,8 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P1drIpeDVBfuR5",
- "invoice_prefix": "E0739F8A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": {
@@ -35,9 +35,9 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"generated_from": null,
"last4": "4242",
@@ -52,9 +52,9 @@
},
"wallet": null
},
- "created": 1700260284,
- "customer": "cus_P1drIpeDVBfuR5",
- "id": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "created": 1010000003,
+ "customer": "cus_NORMALIZED0001",
+ "id": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -65,7 +65,7 @@
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json
index 32b216808f5..e8a7873c24c 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
@@ -2,32 +2,32 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1700260045,
+ "created": 1010000004,
"data": {
"object": {
"account_country": "US",
"account_name": "Kandra Labs, Inc.",
"account_tax_ids": null,
- "amount_due": 120000,
- "amount_paid": 120000,
- "amount_remaining": 0,
+ "amount_due": 960000,
+ "amount_paid": 0,
+ "amount_remaining": 960000,
"amount_shipping": 0,
"application": null,
"application_fee_amount": null,
- "attempt_count": 1,
- "attempted": true,
- "auto_advance": false,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": true,
"automatic_tax": {
"enabled": false,
"status": null
},
"billing_reason": "manual",
- "charge": "ch_3ODZZKDEQaroqDjs12Q2iaOi",
- "collection_method": "charge_automatically",
- "created": 1700256437,
+ "charge": null,
+ "collection_method": "send_invoice",
+ "created": 1010000005,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P1cox2VffiORvk",
+ "customer": "cus_NORMALIZED0002",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -41,49 +41,49 @@
"description": null,
"discount": null,
"discounts": [],
- "due_date": null,
- "effective_at": 1700256438,
+ "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_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWNveGhadzc4RHZzVnAyQXU5NUVGeUZiNVJwRlh0LDkwODAwODQ10200QNKbnE5B?s=ap",
- "id": "in_1ODZZJDEQaroqDjsfHgxHyPp",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWNveGhadzc4RHZzVnAyQXU5NUVGeUZiNVJwRlh0LDkwODAwODQ10200QNKbnE5B/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphQzFZSkc2U1VXbGI4TzBraGhOZWlSQ0poTmNjLDkyMDM1MTMw0200q451JXZh?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphQzFZSkc2U1VXbGI4TzBraGhOZWlSQ0poTmNjLDkyMDM1MTMw0200q451JXZh/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
"data": [
{
- "amount": 120000,
- "amount_excluding_tax": 120000,
+ "amount": 960000,
+ "amount_excluding_tax": 960000,
"currency": "usd",
"description": "Zulip Cloud Standard - renewal",
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODZZJDEQaroqDjs7WdrOqVk",
- "invoice_item": "ii_1ODZZJDEQaroqDjsOtjSf76m",
+ "id": "il_NORMALIZED00000000000001",
+ "invoice_item": "ii_NORMALIZED00000000000001",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1362193445,
- "start": 1330657445
+ "end": 1420167845,
+ "start": 1388631845
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463494,
+ "created": 1010000006,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHuDEQaroqDjshvGhI6pA",
+ "id": "price_NORMALIZED00000000000001",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OyBTVqZSCbtYS4",
+ "product": "prod_NORMALIZED0001",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -96,7 +96,7 @@
"proration_details": {
"credited_items": null
},
- "quantity": 15,
+ "quantity": 120,
"subscription": null,
"tax_amounts": [],
"tax_rates": [],
@@ -107,24 +107,24 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/in_1ODZZJDEQaroqDjsfHgxHyPp/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "4399AF2C-0001",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
- "paid": true,
+ "paid": false,
"paid_out_of_band": false,
- "payment_intent": "pi_3ODZZKDEQaroqDjs1rNokdk7",
+ "payment_intent": "pi_NORMALIZED00000000000002",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700256437,
- "period_start": 1700256437,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -140,38 +140,38 @@
"shipping_details": null,
"starting_balance": 0,
"statement_descriptor": "Zulip Cloud Standard",
- "status": "paid",
+ "status": "open",
"status_transitions": {
- "finalized_at": 1700256438,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700260043,
+ "paid_at": null,
"voided_at": null
},
"subscription": null,
"subscription_details": {
"metadata": null
},
- "subtotal": 120000,
- "subtotal_excluding_tax": 120000,
+ "subtotal": 960000,
+ "subtotal_excluding_tax": 960000,
"tax": null,
"test_clock": null,
- "total": 120000,
+ "total": 960000,
"total_discount_amounts": [],
- "total_excluding_tax": 120000,
+ "total_excluding_tax": 960000,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1700256438
+ "webhooks_delivered_at": 1000000000
}
},
- "id": "evt_1ODaVVDEQaroqDjsH821nzxz",
+ "id": "evt_1OIlbKDEQaroqDjs7g4qJCBS",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": null,
- "idempotency_key": null
+ "id": "req_NORMALIZED0001",
+ "idempotency_key": "5a40ccb9-eced-41b3-904d-c62cc2935e8c"
},
- "type": "invoice.payment_succeeded"
+ "type": "invoice.finalized"
}
],
"has_more": true,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json
index 1068a32d5fd..a4c04f311f2 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
@@ -2,12 +2,12 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1700260286,
+ "created": 1010000007,
"data": {
"object": {
"address": null,
"balance": 0,
- "created": 1700260281,
+ "created": 1010000002,
"currency": null,
"default_currency": null,
"default_source": null,
@@ -15,17 +15,17 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P1drIpeDVBfuR5",
- "invoice_prefix": "E0739F8A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "default_payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1ODaZODEQaroqDjsb4z7FEPA",
+ "id": "evt_1OIlbRDEQaroqDjsjzsPGBDe",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_1zwwy99qmt4q93",
- "idempotency_key": "b8c4b84d-4d6d-40d1-b178-1f96f1a64938"
+ "id": "req_NORMALIZED0002",
+ "idempotency_key": "e4757e5a-40c1-4321-9327-a63c37a5a4c7"
},
"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 41649fec5b9..254009fca3e 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
@@ -2,7 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1700260288,
+ "created": 1010000001,
"data": {
"object": {
"amount": 48000,
@@ -26,7 +26,7 @@
"application": null,
"application_fee": null,
"application_fee_amount": null,
- "balance_transaction": "txn_3ODaZQDEQaroqDjs09NyLwix",
+ "balance_transaction": "txn_NORMALIZED00000000000001",
"billing_details": {
"address": {
"city": null,
@@ -42,9 +42,9 @@
},
"calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
"captured": true,
- "created": 1700260288,
+ "created": 1010000001,
"currency": "usd",
- "customer": "cus_P1drIpeDVBfuR5",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
"destination": null,
"dispute": null,
@@ -53,7 +53,7 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "ch_3ODaZQDEQaroqDjs0sPAH1SG",
+ "id": "ch_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {
@@ -61,8 +61,9 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip",
"seat_count": "6",
"type": "upgrade",
@@ -76,13 +77,13 @@
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
- "risk_score": 56,
+ "risk_score": 0,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_3ODaZQDEQaroqDjs0PP6Agqe",
- "payment_method": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -93,12 +94,12 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
},
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
@@ -122,16 +123,17 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMHT36oGMgbLfwcI7aw6LBbO8kcZn5YrBReU49FwgyPKKTd6LukaYuRANE56q9JN97LIYZPgQ-lgXBOs",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMT8qqsGMgbwjpwE-AY6LBag83iGOoJLvu7xVTcf3kVm5rcU9gzIr9k1DP5vtKKxhl3FPE0Waqed1qOv",
"refunded": false,
"refunds": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/ch_3ODaZQDEQaroqDjs0sPAH1SG/refunds"
+ "url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
},
"review": null,
"shipping": null,
@@ -147,26 +149,27 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=pi_3ODaZQDEQaroqDjs0PP6Agqe"
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_3ODaZQDEQaroqDjs0PP6Agqe_secret_yvIvKKrHX4Df1JcJAm7HGIJoh",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_BpzDxt6tZwG1IiGZ1GMQC3yeq",
"confirmation_method": "automatic",
- "created": 1700260288,
+ "created": 1010000001,
"currency": "usd",
- "customer": "cus_P1drIpeDVBfuR5",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
- "id": "pi_3ODaZQDEQaroqDjs0PP6Agqe",
+ "id": "pi_NORMALIZED00000000000001",
"invoice": null,
"last_payment_error": null,
- "latest_charge": "ch_3ODaZQDEQaroqDjs0sPAH1SG",
+ "latest_charge": "ch_NORMALIZED00000000000001",
"livemode": false,
"metadata": {
"billing_modality": "charge_automatically",
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip",
"seat_count": "6",
"type": "upgrade",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,19 +205,19 @@
"transfer_group": null
}
},
- "id": "evt_3ODaZQDEQaroqDjs0qg0C9bT",
+ "id": "evt_3OIlbTDEQaroqDjs0I5XalLq",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_j3UdyTMdXpi8w3",
- "idempotency_key": "31636d8f-f98e-45c1-b2e6-af24e70e9a38"
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "618c150d-f632-47f4-9319-6d98b1678c74"
},
"type": "payment_intent.succeeded"
},
{
"api_version": "2020-08-27",
- "created": 1700260288,
+ "created": 1010000001,
"data": {
"object": {
"amount": 48000,
@@ -223,7 +226,7 @@
"application": null,
"application_fee": null,
"application_fee_amount": null,
- "balance_transaction": "txn_3ODaZQDEQaroqDjs09NyLwix",
+ "balance_transaction": "txn_NORMALIZED00000000000001",
"billing_details": {
"address": {
"city": null,
@@ -239,9 +242,9 @@
},
"calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
"captured": true,
- "created": 1700260288,
+ "created": 1010000001,
"currency": "usd",
- "customer": "cus_P1drIpeDVBfuR5",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
"destination": null,
"dispute": null,
@@ -250,7 +253,7 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "ch_3ODaZQDEQaroqDjs0sPAH1SG",
+ "id": "ch_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {
@@ -258,8 +261,9 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip",
"seat_count": "6",
"type": "upgrade",
@@ -273,13 +277,13 @@
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
- "risk_score": 56,
+ "risk_score": 0,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_3ODaZQDEQaroqDjs0PP6Agqe",
- "payment_method": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -290,12 +294,12 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
},
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
@@ -319,16 +323,17 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMHT36oGMganofZ_B-86LBazbOvnZUMUYSPQ8lT4JbE7XmmqbjcE3Foh2-_HLpR3kM_R-ukTAXw7MWAu",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMT8qqsGMgbNfLWDLqA6LBZtHYxjVexwIyAuBOfCC0D1eFpJ1suOD_RITNYrywYvY_drJ5cYz4-HWSI2",
"refunded": false,
"refunds": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/ch_3ODaZQDEQaroqDjs0sPAH1SG/refunds"
+ "url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
},
"review": null,
"shipping": null,
@@ -341,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODaZQDEQaroqDjs0bvFKgxF",
+ "id": "evt_3OIlbTDEQaroqDjs0qPWNLnt",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_j3UdyTMdXpi8w3",
- "idempotency_key": "31636d8f-f98e-45c1-b2e6-af24e70e9a38"
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "618c150d-f632-47f4-9319-6d98b1678c74"
},
"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 5cc887ad9e5..4f82146c0bf 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": 1700260291,
+ "created": 1010000008,
"data": {
"object": {
"account_country": "US",
@@ -24,10 +24,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700260290,
+ "created": 1010000009,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P1drIpeDVBfuR5",
+ "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": 1700260291,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDkx0200U0NAZrYt?s=ap",
- "id": "in_1ODaZSDEQaroqDjsAIQjRmQ3",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDkx0200U0NAZrYt/pdf?s=ap",
+ "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": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsSIdbCJ8C",
- "invoice_item": "ii_1ODaZSDEQaroqDjsRqO6EssA",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -74,16 +74,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1010000010,
"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,
@@ -111,29 +111,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsFv3jRpf4",
- "invoice_item": "ii_1ODaZRDEQaroqDjsT8L2MVut",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700260289,
- "start": 1700260289
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -157,12 +157,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ODaZSDEQaroqDjsAIQjRmQ3/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "E0739F8A-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": 1700260290,
- "period_start": 1700260290,
+ "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 Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1700260291,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700260291,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -219,7 +219,7 @@
"ending_balance": null,
"hosted_invoice_url": null,
"invoice_pdf": null,
- "next_payment_attempt": 1700263890,
+ "next_payment_attempt": 1000000000,
"number": null,
"paid": false,
"rendering": {
@@ -234,19 +234,19 @@
}
}
},
- "id": "evt_1ODaZUDEQaroqDjs5f9Pz6BI",
+ "id": "evt_1OIlbWDEQaroqDjsvMV8dGMu",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_0DoD4jECcpDwAX",
- "idempotency_key": "e342127e-bc3d-4dc2-b58f-fa07034d245c"
+ "id": "req_NORMALIZED0004",
+ "idempotency_key": "9a30befa-40f4-4427-b73a-476364d6a121"
},
"type": "invoice.updated"
},
{
"api_version": "2020-08-27",
- "created": 1700260290,
+ "created": 1010000009,
"data": {
"object": {
"account_country": "US",
@@ -268,10 +268,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700260290,
+ "created": 1010000009,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P1drIpeDVBfuR5",
+ "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_1ODaZSDEQaroqDjsAIQjRmQ3",
+ "id": "in_NORMALIZED00000000000002",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -305,8 +305,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsSIdbCJ8C",
- "invoice_item": "ii_1ODaZSDEQaroqDjsRqO6EssA",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -318,16 +318,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1010000010,
"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,
@@ -355,29 +355,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsFv3jRpf4",
- "invoice_item": "ii_1ODaZRDEQaroqDjsT8L2MVut",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700260289,
- "start": 1700260289
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -401,11 +401,11 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ODaZSDEQaroqDjsAIQjRmQ3/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
- "next_payment_attempt": 1700263890,
+ "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": 1700260290,
- "period_start": 1700260290,
+ "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_1ODaZTDEQaroqDjsUIp1Hu9S",
+ "id": "evt_1OIlbVDEQaroqDjsinaCPb9k",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_AoqqLtgTEVJyNR",
- "idempotency_key": "96f5191d-6004-43a0-896e-cfc115f14ec8"
+ "id": "req_NORMALIZED0005",
+ "idempotency_key": "0aa04d54-c413-4959-a7cd-7d15f8b17128"
},
"type": "invoice.created"
},
{
"api_version": "2020-08-27",
- "created": 1700260290,
+ "created": 1010000009,
"data": {
"object": {
"amount": 48000,
"currency": "usd",
- "customer": "cus_P1drIpeDVBfuR5",
- "date": 1700260290,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Zulip Cloud Standard",
"discountable": false,
"discounts": [],
- "id": "ii_1ODaZSDEQaroqDjsRqO6EssA",
+ "id": "ii_NORMALIZED00000000000002",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -492,16 +492,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1010000010,
"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,
@@ -519,51 +519,51 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1ODaZSDEQaroqDjsprUwxOk8",
+ "id": "evt_1OIlbVDEQaroqDjs11VfDDhE",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_iPHG8KebzAo871",
- "idempotency_key": "1824fc57-3e52-44d8-89e7-4a9459c613bd"
+ "id": "req_NORMALIZED0006",
+ "idempotency_key": "79d3b768-20ce-4519-8288-eb9b0cd52a2c"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1700260289,
+ "created": 1010000012,
"data": {
"object": {
"amount": -48000,
"currency": "usd",
- "customer": "cus_P1drIpeDVBfuR5",
- "date": 1700260289,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Payment (Card ending in 4242)",
"discountable": false,
"discounts": [],
- "id": "ii_1ODaZRDEQaroqDjsT8L2MVut",
+ "id": "ii_NORMALIZED00000000000003",
"invoice": null,
"livemode": false,
"metadata": {},
"object": "invoiceitem",
"period": {
- "end": 1700260289,
- "start": 1700260289
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -581,24 +581,24 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1ODaZRDEQaroqDjsKaQ8N9ki",
+ "id": "evt_1OIlbUDEQaroqDjsteW2jC2Q",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_sObTWslx5q33KG",
- "idempotency_key": "6fa706d2-a44c-448d-a22c-c36b94d1e9c7"
+ "id": "req_NORMALIZED0007",
+ "idempotency_key": "a8e6362b-e33b-4142-a927-a564bfbf1549"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1700260289,
+ "created": 1010000012,
"data": {
"object": {
"address": null,
"balance": 0,
- "created": 1700260281,
+ "created": 1010000002,
"currency": "usd",
"default_currency": "usd",
"default_source": null,
@@ -606,17 +606,17 @@
"description": "zulip (Zulip Dev)",
"discount": null,
"email": "[email protected]",
- "id": "cus_P1drIpeDVBfuR5",
- "invoice_prefix": "E0739F8A",
+ "id": "cus_NORMALIZED0001",
+ "invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "default_payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip"
},
"name": null,
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1ODaZRDEQaroqDjscM2WD17O",
+ "id": "evt_1OIlbUDEQaroqDjszOKmp4Fz",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_sObTWslx5q33KG",
- "idempotency_key": "6fa706d2-a44c-448d-a22c-c36b94d1e9c7"
+ "id": "req_NORMALIZED0007",
+ "idempotency_key": "a8e6362b-e33b-4142-a927-a564bfbf1549"
},
"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 ded973e1476..9576994f28f 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": 1700260291,
+ "created": 1010000008,
"data": {
"object": {
"account_country": "US",
@@ -24,10 +24,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700260290,
+ "created": 1010000009,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P1drIpeDVBfuR5",
+ "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": 1700260291,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDky0200FRmkA8SI?s=ap",
- "id": "in_1ODaZSDEQaroqDjsAIQjRmQ3",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDky0200FRmkA8SI/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQz0200kMAhEqS4?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQz0200kMAhEqS4/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -61,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsSIdbCJ8C",
- "invoice_item": "ii_1ODaZSDEQaroqDjsRqO6EssA",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -74,16 +74,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1010000010,
"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,
@@ -111,29 +111,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsFv3jRpf4",
- "invoice_item": "ii_1ODaZRDEQaroqDjsT8L2MVut",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700260289,
- "start": 1700260289
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -157,12 +157,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ODaZSDEQaroqDjsAIQjRmQ3/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "E0739F8A-0001",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -173,8 +173,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700260290,
- "period_start": 1700260290,
+ "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 Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1700260291,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700260291,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -213,19 +213,242 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODaZUDEQaroqDjs8XdDwbHs",
+ "id": "evt_1OIlbXDEQaroqDjsxxqBwnJJ",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
- "id": "req_0DoD4jECcpDwAX",
- "idempotency_key": "e342127e-bc3d-4dc2-b58f-fa07034d245c"
+ "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,
+ "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_1OIlbWDEQaroqDjssGNqqDUN",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0004",
+ "idempotency_key": "9a30befa-40f4-4427-b73a-476364d6a121"
},
"type": "invoice.paid"
},
{
"api_version": "2020-08-27",
- "created": 1700260291,
+ "created": 1010000008,
"data": {
"object": {
"account_country": "US",
@@ -247,10 +470,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700260290,
+ "created": 1010000009,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P1drIpeDVBfuR5",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -265,13 +488,13 @@
"discount": null,
"discounts": [],
"due_date": null,
- "effective_at": 1700260291,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDky0200FRmkA8SI?s=ap",
- "id": "in_1ODaZSDEQaroqDjsAIQjRmQ3",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDky0200FRmkA8SI/pdf?s=ap",
+ "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": {
@@ -284,8 +507,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsSIdbCJ8C",
- "invoice_item": "ii_1ODaZSDEQaroqDjsRqO6EssA",
+ "id": "il_NORMALIZED00000000000002",
+ "invoice_item": "ii_NORMALIZED00000000000002",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -297,16 +520,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1010000010,
"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,
@@ -334,29 +557,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsFv3jRpf4",
- "invoice_item": "ii_1ODaZRDEQaroqDjsT8L2MVut",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700260289,
- "start": 1700260289
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -380,12 +603,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ODaZSDEQaroqDjsAIQjRmQ3/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "E0739F8A-0001",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -396,8 +619,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700260290,
- "period_start": 1700260290,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -415,9 +638,9 @@
"statement_descriptor": "Zulip Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1700260291,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700260291,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -436,13 +659,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODaZUDEQaroqDjseEn37pd2",
+ "id": "evt_1OIlbWDEQaroqDjst9NDjTAo",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "req_0DoD4jECcpDwAX",
- "idempotency_key": "e342127e-bc3d-4dc2-b58f-fa07034d245c"
+ "id": "req_NORMALIZED0004",
+ "idempotency_key": "9a30befa-40f4-4427-b73a-476364d6a121"
},
"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 6bab819dba0..6d922067afe 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,229 +1,5 @@
{
- "data": [
- {
- "api_version": "2020-08-27",
- "created": 1700260291,
- "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": 1700260290,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_P1drIpeDVBfuR5",
- "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": 1700260291,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDky0200FRmkA8SI?s=ap",
- "id": "in_1ODaZSDEQaroqDjsAIQjRmQ3",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDky0200FRmkA8SI/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_1ODaZSDEQaroqDjsSIdbCJ8C",
- "invoice_item": "ii_1ODaZSDEQaroqDjsRqO6EssA",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1698927319,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
- "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_1ODaZSDEQaroqDjsFv3jRpf4",
- "invoice_item": "ii_1ODaZRDEQaroqDjsT8L2MVut",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1700260289,
- "start": 1700260289
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1699463487,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
- "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": -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_1ODaZSDEQaroqDjsAIQjRmQ3/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "E0739F8A-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": 1700260290,
- "period_start": 1700260290,
- "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": 1700260291,
- "marked_uncollectible_at": null,
- "paid_at": 1700260291,
- "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_1ODaZUDEQaroqDjsQUzPKPVq",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_0DoD4jECcpDwAX",
- "idempotency_key": "e342127e-bc3d-4dc2-b58f-fa07034d245c"
- },
- "type": "invoice.payment_succeeded"
- }
- ],
+ "data": [],
"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
deleted file mode 100644
index 6d922067afe..00000000000
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.7.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/events"
-}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.8.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.8.json
deleted file mode 100644
index fc6ffcf358f..00000000000
--- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.8.json
+++ /dev/null
@@ -1,230 +0,0 @@
-{
- "data": [
- {
- "api_version": "2020-08-27",
- "created": 1700260291,
- "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": 1700260290,
- "currency": "usd",
- "custom_fields": null,
- "customer": "cus_P1drIpeDVBfuR5",
- "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": 1700260291,
- "ending_balance": 0,
- "footer": null,
- "from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDky0200FRmkA8SI?s=ap",
- "id": "in_1ODaZSDEQaroqDjsAIQjRmQ3",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDky0200FRmkA8SI/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_1ODaZSDEQaroqDjsSIdbCJ8C",
- "invoice_item": "ii_1ODaZSDEQaroqDjsRqO6EssA",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1357095845,
- "start": 1325473445
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1698927319,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_1O7znvDEQaroqDjsLJjqNJy0",
- "livemode": false,
- "lookup_key": null,
- "metadata": {},
- "nickname": null,
- "object": "price",
- "product": "prod_OvY3rmiwsD4vFL",
- "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_1ODaZSDEQaroqDjsFv3jRpf4",
- "invoice_item": "ii_1ODaZRDEQaroqDjsT8L2MVut",
- "livemode": false,
- "metadata": {},
- "object": "line_item",
- "period": {
- "end": 1700260289,
- "start": 1700260289
- },
- "plan": null,
- "price": {
- "active": false,
- "billing_scheme": "per_unit",
- "created": 1699463487,
- "currency": "usd",
- "custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
- "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": -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_1ODaZSDEQaroqDjsAIQjRmQ3/lines"
- },
- "livemode": false,
- "metadata": {},
- "next_payment_attempt": null,
- "number": "E0739F8A-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": 1700260290,
- "period_start": 1700260290,
- "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": 1700260291,
- "marked_uncollectible_at": null,
- "paid_at": 1700260291,
- "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_1ODaZUDEQaroqDjsQUzPKPVq",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "request": {
- "id": "req_0DoD4jECcpDwAX",
- "idempotency_key": "e342127e-bc3d-4dc2-b58f-fa07034d245c"
- },
- "type": "invoice.payment_succeeded"
- }
- ],
- "has_more": true,
- "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 5da09df62b9..c961813fc4c 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,10 +18,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700260290,
+ "created": 1010000009,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P1drIpeDVBfuR5",
+ "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_1ODaZSDEQaroqDjsAIQjRmQ3",
+ "id": "in_NORMALIZED00000000000002",
"invoice_pdf": null,
"last_finalization_error": null,
"latest_revision": null,
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsSIdbCJ8C",
- "invoice_item": "ii_1ODaZSDEQaroqDjsRqO6EssA",
+ "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": 1010000010,
"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,
@@ -105,29 +105,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsFv3jRpf4",
- "invoice_item": "ii_1ODaZRDEQaroqDjsT8L2MVut",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700260289,
- "start": 1700260289
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -151,11 +151,11 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ODaZSDEQaroqDjsAIQjRmQ3/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
- "next_payment_attempt": 1700263890,
+ "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": 1700260290,
- "period_start": 1700260290,
+ "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/upgrade_by_card--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.finalize_invoice.1.json
index b5ce54f84ce..f176d6ad5c6 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,10 +18,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700260290,
+ "created": 1010000009,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P1drIpeDVBfuR5",
+ "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": 1700260291,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDkx0200U0NAZrYt?s=ap",
- "id": "in_1ODaZSDEQaroqDjsAIQjRmQ3",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDkx0200U0NAZrYt/pdf?s=ap",
+ "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": {
@@ -55,8 +55,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsSIdbCJ8C",
- "invoice_item": "ii_1ODaZSDEQaroqDjsRqO6EssA",
+ "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": 1010000010,
"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,
@@ -105,29 +105,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsFv3jRpf4",
- "invoice_item": "ii_1ODaZRDEQaroqDjsT8L2MVut",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700260289,
- "start": 1700260289
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -151,12 +151,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ODaZSDEQaroqDjsAIQjRmQ3/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "E0739F8A-0001",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -167,8 +167,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700260290,
- "period_start": 1700260290,
+ "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 Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1700260291,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700260291,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.list.2.json
index 7099e78fab9..73a66726917 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,10 +20,10 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1700260290,
+ "created": 1010000009,
"currency": "usd",
"custom_fields": null,
- "customer": "cus_P1drIpeDVBfuR5",
+ "customer": "cus_NORMALIZED0001",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -38,13 +38,13 @@
"discount": null,
"discounts": [],
"due_date": null,
- "effective_at": 1700260291,
+ "effective_at": 1000000000,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDkz0200dgtMezl7?s=ap",
- "id": "in_1ODaZSDEQaroqDjsAIQjRmQ3",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_17vTkwDEQaroqDjs/test_YWNjdF8xN3ZUa3dERVFhcm9xRGpzLF9QMWRyVE1YUWJqMzJNc0k5dm1QRThRVGFCYXh1ZW9zLDkwODAxMDkz0200dgtMezl7/pdf?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQ00200yqwsZAQh?s=ap",
+ "id": "in_NORMALIZED00000000000002",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphWmRMbTJqWUU4RUNWc2U5d1M1SkJKclc5TjBhLDkyMDM1MTQ00200yqwsZAQh/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -57,8 +57,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsSIdbCJ8C",
- "invoice_item": "ii_1ODaZSDEQaroqDjsRqO6EssA",
+ "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": 1010000010,
"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,
@@ -107,29 +107,29 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "il_1ODaZSDEQaroqDjsFv3jRpf4",
- "invoice_item": "ii_1ODaZRDEQaroqDjsT8L2MVut",
+ "id": "il_NORMALIZED00000000000003",
+ "invoice_item": "ii_NORMALIZED00000000000003",
"livemode": false,
"metadata": {},
"object": "line_item",
"period": {
- "end": 1700260289,
- "start": 1700260289
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
@@ -153,12 +153,12 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/in_1ODaZSDEQaroqDjsAIQjRmQ3/lines"
+ "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
- "number": "E0739F8A-0001",
+ "number": "NORMALI-0003",
"object": "invoice",
"on_behalf_of": null,
"paid": true,
@@ -169,8 +169,8 @@
"payment_method_options": null,
"payment_method_types": null
},
- "period_end": 1700260290,
- "period_start": 1700260290,
+ "period_end": 1000000000,
+ "period_start": 1000000000,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
@@ -188,9 +188,9 @@
"statement_descriptor": "Zulip Cloud Standard",
"status": "paid",
"status_transitions": {
- "finalized_at": 1700260291,
+ "finalized_at": 1000000000,
"marked_uncollectible_at": null,
- "paid_at": 1700260291,
+ "paid_at": 1000000000,
"voided_at": null
},
"subscription": null,
@@ -206,7 +206,7 @@
"total_excluding_tax": 0,
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": 1700260291
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
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 d318c439b25..00d5ac23bfc 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
@@ -1,34 +1,34 @@
{
"amount": -48000,
"currency": "usd",
- "customer": "cus_P1drIpeDVBfuR5",
- "date": 1700260289,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Payment (Card ending in 4242)",
"discountable": false,
"discounts": [],
- "id": "ii_1ODaZRDEQaroqDjsT8L2MVut",
+ "id": "ii_NORMALIZED00000000000003",
"invoice": null,
"livemode": false,
"metadata": {},
"object": "invoiceitem",
"period": {
- "end": 1700260289,
- "start": 1700260289
+ "end": 1000000000,
+ "start": 1000000000
},
"plan": null,
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1699463487,
+ "created": 1010000011,
"currency": "usd",
"custom_unit_amount": null,
- "id": "price_1OAFHnDEQaroqDjsGPnkI1Z2",
+ "id": "price_NORMALIZED00000000000003",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
- "product": "prod_OvY3hKgN66WIeP",
+ "product": "prod_NORMALIZED0003",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
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 3520269a0f1..4cb5093d5e8 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
@@ -1,12 +1,12 @@
{
"amount": 48000,
"currency": "usd",
- "customer": "cus_P1drIpeDVBfuR5",
- "date": 1700260290,
+ "customer": "cus_NORMALIZED0001",
+ "date": 1000000000,
"description": "Zulip Cloud Standard",
"discountable": false,
"discounts": [],
- "id": "ii_1ODaZSDEQaroqDjsRqO6EssA",
+ "id": "ii_NORMALIZED00000000000002",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -19,16 +19,16 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1698927319,
+ "created": 1010000010,
"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/upgrade_by_card--PaymentIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--PaymentIntent.create.1.json
index 7c0c415a780..ef20dea2845 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
@@ -20,7 +20,7 @@
"application": null,
"application_fee": null,
"application_fee_amount": null,
- "balance_transaction": "txn_3ODaZQDEQaroqDjs09NyLwix",
+ "balance_transaction": "txn_NORMALIZED00000000000001",
"billing_details": {
"address": {
"city": null,
@@ -36,9 +36,9 @@
},
"calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
"captured": true,
- "created": 1700260288,
+ "created": 1010000001,
"currency": "usd",
- "customer": "cus_P1drIpeDVBfuR5",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
"destination": null,
"dispute": null,
@@ -47,7 +47,7 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "ch_3ODaZQDEQaroqDjs0sPAH1SG",
+ "id": "ch_NORMALIZED00000000000001",
"invoice": null,
"livemode": false,
"metadata": {
@@ -55,8 +55,9 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip",
"seat_count": "6",
"type": "upgrade",
@@ -70,13 +71,13 @@
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
- "risk_score": 56,
+ "risk_score": 0,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
- "payment_intent": "pi_3ODaZQDEQaroqDjs0PP6Agqe",
- "payment_method": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "payment_intent": "pi_NORMALIZED00000000000001",
+ "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -87,12 +88,12 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
},
- "fingerprint": "9XKsMixKBi6kIIzd",
+ "fingerprint": "NORMALIZED000001",
"funding": "credit",
"incremental_authorization": {
"status": "unavailable"
@@ -116,16 +117,17 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMHT36oGMgamTpsIk9k6LBaAAVG2gWUBwtSg0tby2-iv2PrVuZD_pARUNxjcTiOiLQj9uEDKQUNmBreP",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMT8qqsGMgYj870G6Uc6LBZuXAYcjw1HakFXRIDlwToQctj69T3PJmgALucGYWTTwPqVC-vlwdTOUhPm",
"refunded": false,
"refunds": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/ch_3ODaZQDEQaroqDjs0sPAH1SG/refunds"
+ "url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
},
"review": null,
"shipping": null,
@@ -141,26 +143,27 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=pi_3ODaZQDEQaroqDjs0PP6Agqe"
+ "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_3ODaZQDEQaroqDjs0PP6Agqe_secret_yvIvKKrHX4Df1JcJAm7HGIJoh",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_BpzDxt6tZwG1IiGZ1GMQC3yeq",
"confirmation_method": "automatic",
- "created": 1700260288,
+ "created": 1010000001,
"currency": "usd",
- "customer": "cus_P1drIpeDVBfuR5",
+ "customer": "cus_NORMALIZED0001",
"description": "Upgrade to Zulip Cloud Standard, $80.0 x 6",
- "id": "pi_3ODaZQDEQaroqDjs0PP6Agqe",
+ "id": "pi_NORMALIZED00000000000001",
"invoice": null,
"last_payment_error": null,
- "latest_charge": "ch_3ODaZQDEQaroqDjs0sPAH1SG",
+ "latest_charge": "ch_NORMALIZED00000000000001",
"livemode": false,
"metadata": {
"billing_modality": "charge_automatically",
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
- "realm_id": "2",
+ "realm_id": "1",
"realm_str": "zulip",
"seat_count": "6",
"type": "upgrade",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"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 dfed1bdf668..4d375b5bb49 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_1ODaZMDEQaroqDjsE818DzIm_secret_P1drsEDvtpcLW1T6OYFPK1EnOJh5XXY",
- "created": 1700260284,
- "customer": "cus_P1drIpeDVBfuR5",
+ "client_secret": "seti_1OIlbPDEQaroqDjs3zUvU5ib_secret_P6zavg9RM25W6UWhG9b8Tquwafx85L3",
+ "created": 1010000003,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODaZMDEQaroqDjsE818DzIm",
+ "id": "seti_1OIlbPDEQaroqDjs3zUvU5ib",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODaZMDEQaroqDjsv6LAKeCL",
+ "latest_attempt": "setatt_1OIlbPDEQaroqDjsSn84QmVy",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"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 556c67c6f7d..28753d4fff6 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_1ODaZLDEQaroqDjs1M3Q8MK8_secret_P1drPIH6JfWYGzmCAkzaefdroy0FvP9",
- "created": 1700260283,
- "customer": "cus_P1drIpeDVBfuR5",
+ "client_secret": "seti_1OIlbODEQaroqDjs9Rj89GnD_secret_P6zaYoTgMKx9R6hd446gn36V7Y3s4Ky",
+ "created": 1010000002,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODaZLDEQaroqDjs1M3Q8MK8",
+ "id": "seti_1OIlbODEQaroqDjs9Rj89GnD",
"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 dfed1bdf668..4d375b5bb49 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_1ODaZMDEQaroqDjsE818DzIm_secret_P1drsEDvtpcLW1T6OYFPK1EnOJh5XXY",
- "created": 1700260284,
- "customer": "cus_P1drIpeDVBfuR5",
+ "client_secret": "seti_1OIlbPDEQaroqDjs3zUvU5ib_secret_P6zavg9RM25W6UWhG9b8Tquwafx85L3",
+ "created": 1010000003,
+ "customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODaZMDEQaroqDjsE818DzIm",
+ "id": "seti_1OIlbPDEQaroqDjs3zUvU5ib",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODaZMDEQaroqDjsv6LAKeCL",
+ "latest_attempt": "setatt_1OIlbPDEQaroqDjsSn84QmVy",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODaZMDEQaroqDjsvpFOJgKh",
+ "payment_method": "pm_1OIlbPDEQaroqDjsAXC3K8Ee",
"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 4c3621eb2ec..8c8add9a08d 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1700260283,
+ "created": 1010000002,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -22,7 +22,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_P1drIpeDVBfuR5",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -33,8 +33,8 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1700346683,
- "id": "cs_test_c186WP3qHmm8bPDCIZP7VFxY5oUmZASuaDiHQ0xpp2IEtSM1MX9zt7IiRY",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED02f84xD2ReksRC6q9gOpjmzbAahzxU7U0SlNMsVjpQRoem5P",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODaZLDEQaroqDjs1M3Q8MK8",
+ "setup_intent": "seti_1OIlbODEQaroqDjs9Rj89GnD",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_c186WP3qHmm8bPDCIZP7VFxY5oUmZASuaDiHQ0xpp2IEtSM1MX9zt7IiRY#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02f84xD2ReksRC6q9gOpjmzbAahzxU7U0SlNMsVjpQRoem5P#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 7a40abdc753..90668edf2f4 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1700260283,
+ "created": 1010000002,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -24,7 +24,7 @@
"submit": null,
"terms_of_service_acceptance": null
},
- "customer": "cus_P1drIpeDVBfuR5",
+ "customer": "cus_NORMALIZED0001",
"customer_creation": null,
"customer_details": {
"address": null,
@@ -35,8 +35,8 @@
"tax_ids": null
},
"customer_email": null,
- "expires_at": 1700346683,
- "id": "cs_test_c186WP3qHmm8bPDCIZP7VFxY5oUmZASuaDiHQ0xpp2IEtSM1MX9zt7IiRY",
+ "expires_at": 1000000000,
+ "id": "cs_test_NORMALIZED02f84xD2ReksRC6q9gOpjmzbAahzxU7U0SlNMsVjpQRoem5P",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODaZLDEQaroqDjs1M3Q8MK8",
+ "setup_intent": "seti_1OIlbODEQaroqDjs9Rj89GnD",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_c186WP3qHmm8bPDCIZP7VFxY5oUmZASuaDiHQ0xpp2IEtSM1MX9zt7IiRY#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02f84xD2ReksRC6q9gOpjmzbAahzxU7U0SlNMsVjpQRoem5P#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 c86c0db624b..2dcc08683a0 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
@@ -42,6 +42,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -63,7 +64,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlUmDEQaroqDjs0AAGeLzU",
+ "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -106,7 +107,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKKz5qqsGMgb8-UHvIgE6LBajVdfWr3DYOczQ_jsO35xRctFF-6jUPMEDknz3AYQSR06bUDx0i_dOwtFJ",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNL8qqsGMgbtKEzRc3Q6LBaDmOfuUFjBhUIgkVijwOKlm6XkIZ7Roy_8k9aI9Mzoja40-jKL0t4iLvtt",
"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 666a80341f3..1221a3ce519 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_1OIlUmDEQaroqDjs0AAGeLzU",
+ "default_payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"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 7d7fa15689d..544b4189723 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_1OIlUmDEQaroqDjs0AAGeLzU",
+ "id": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"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 7d7fa15689d..544b4189723 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_1OIlUmDEQaroqDjs0AAGeLzU",
+ "id": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"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 fa0a0ccca83..5d0a295b35b 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_1OIlUmDEQaroqDjs0AAGeLzU",
+ "default_payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"footer": null,
"rendering_options": null
},
@@ -43,13 +43,13 @@
}
}
},
- "id": "evt_1OIlUoDEQaroqDjsqB7cTzR1",
+ "id": "evt_1OIlbcDEQaroqDjsk1Qq4JGv",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "52083a9a-7541-4e8e-87ab-b7a110f8632c"
+ "idempotency_key": "0b500705-85ce-4d4c-b00c-6722b36702d1"
},
"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 edddeb4a74e..0379ff7efb9 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": 1010000001,
+ "created": 1010000005,
"data": {
"object": {
"amount": 48000,
@@ -61,6 +61,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlUmDEQaroqDjs0AAGeLzU",
+ "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -125,7 +126,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKKn5qqsGMgbtG76MuyU6LBbWG2Cil-ttJD9I0VwXsUF2mWfgpbbDgudsVQczK9avX1NvF5oowAc-WMjv",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM78qqsGMgY6XD1URXY6LBYP_hvOSrG1cQTB3eo8vXx3iMXaKZwMGPhptP7aOiHySKKuA6PlUL0Mgqk-",
"refunded": false,
"refunds": {
"data": [],
@@ -150,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_PINrM33YM9KIsKSnhNma2VvhN",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_eh7Ko8cC8BHv74uDG0yDcWGzR",
"confirmation_method": "automatic",
"created": 1010000001,
"currency": "usd",
@@ -166,6 +167,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -177,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlUmDEQaroqDjs0AAGeLzU",
+ "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -203,19 +205,19 @@
"transfer_group": null
}
},
- "id": "evt_3OIlUqDEQaroqDjs0upmJyM1",
+ "id": "evt_3OIlbdDEQaroqDjs0FtkW56g",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "bfb77588-e054-4ed6-ac5f-69baec76cc21"
+ "idempotency_key": "2bb45568-102e-4214-9138-d3a4884600aa"
},
"type": "payment_intent.succeeded"
},
{
"api_version": "2020-08-27",
- "created": 1010000001,
+ "created": 1010000005,
"data": {
"object": {
"amount": 48000,
@@ -259,6 +261,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -280,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlUmDEQaroqDjs0AAGeLzU",
+ "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -323,7 +326,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKKn5qqsGMgYVvbCJZL06LBZiR-oBknR-ehsjyI8jTZN2_fCUnNA-GTu7dACzoJFZRbtX_clDdkh7wESK",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM78qqsGMgYHIeXP1UY6LBacLJShpwiwAlNFnT9sRF69KOU9M0cDiyIpbCKLr43m_HTrB10SPQ7vtXEj",
"refunded": false,
"refunds": {
"data": [],
@@ -343,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlUqDEQaroqDjs0XXmcx64",
+ "id": "evt_3OIlbdDEQaroqDjs0oEMF8yo",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "bfb77588-e054-4ed6-ac5f-69baec76cc21"
+ "idempotency_key": "2bb45568-102e-4214-9138-d3a4884600aa"
},
"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 c9f96b0eb43..08f3933c796 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
@@ -2,247 +2,7 @@
"data": [
{
"api_version": "2020-08-27",
- "created": 1010000005,
- "data": {
- "object": {
- "account_country": "US",
- "account_name": "Kandra Labs, Inc.",
- "account_tax_ids": null,
- "amount_due": 136000,
- "amount_paid": 0,
- "amount_remaining": 136000,
- "amount_shipping": 0,
- "application": null,
- "application_fee_amount": null,
- "attempt_count": 0,
- "attempted": false,
- "auto_advance": true,
- "automatic_tax": {
- "enabled": false,
- "status": null
- },
- "billing_reason": "manual",
- "charge": null,
- "collection_method": "charge_automatically",
- "created": 1010000006,
- "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpUM3F0VG1SREFmNEVJRnVBN3RoeDNvQ1F0TW10LDkyMDM0NzMx02000tnpwyOP?s=ap",
- "id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpUM3F0VG1SREFmNEVJRnVBN3RoeDNvQ1F0TW10LDkyMDM0NzMx02000tnpwyOP/pdf?s=ap",
- "last_finalization_error": null,
- "latest_revision": null,
- "lines": {
- "data": [
- {
- "amount": 184000,
- "amount_excluding_tax": 184000,
- "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": 1010000007,
- "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": 23,
- "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": 1010000008,
- "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": 1000000000,
- "number": "NORMALI-0001",
- "object": "invoice",
- "on_behalf_of": null,
- "paid": false,
- "paid_out_of_band": false,
- "payment_intent": "pi_NORMALIZED00000000000002",
- "payment_settings": {
- "default_mandate": null,
- "payment_method_options": null,
- "payment_method_types": null
- },
- "period_end": 1000000000,
- "period_start": 1000000000,
- "post_payment_credit_notes_amount": 0,
- "pre_payment_credit_notes_amount": 0,
- "quote": null,
- "receipt_number": null,
- "rendering": {
- "amount_tax_display": null,
- "pdf": {
- "page_size": "letter"
- }
- },
- "rendering_options": null,
- "shipping_cost": null,
- "shipping_details": null,
- "starting_balance": 0,
- "statement_descriptor": "Zulip Cloud Standard",
- "status": "open",
- "status_transitions": {
- "finalized_at": 1000000000,
- "marked_uncollectible_at": null,
- "paid_at": null,
- "voided_at": null
- },
- "subscription": null,
- "subscription_details": {
- "metadata": null
- },
- "subtotal": 136000,
- "subtotal_excluding_tax": 136000,
- "tax": null,
- "test_clock": null,
- "total": 136000,
- "total_discount_amounts": [],
- "total_excluding_tax": 136000,
- "total_tax_amounts": [],
- "transfer_data": null,
- "webhooks_delivered_at": null
- },
- "previous_attributes": {
- "effective_at": null,
- "ending_balance": null,
- "hosted_invoice_url": null,
- "invoice_pdf": null,
- "number": null,
- "payment_intent": null,
- "rendering": {
- "pdf": {
- "page_size": "auto"
- }
- },
- "status": "draft",
- "status_transitions": {
- "finalized_at": null
- }
- }
- },
- "id": "evt_1OIlUtDEQaroqDjsGR7ETgDB",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 2,
- "request": {
- "id": "req_NORMALIZED0003",
- "idempotency_key": "56577100-e860-46d1-8ac7-89a10ddcb98d"
- },
- "type": "invoice.updated"
- },
- {
- "api_version": "2020-08-27",
- "created": 1010000005,
+ "created": 1010000006,
"data": {
"object": {
"amount": 136000,
@@ -264,9 +24,9 @@
"total_count": 0,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_nJoduLGo5ELqAIE2PLizc7sGp",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_oUxgpMslXVFjvkqbQzPTKRqx0",
"confirmation_method": "automatic",
- "created": 1010000005,
+ "created": 1010000006,
"currency": "usd",
"customer": "cus_NORMALIZED0001",
"description": "Payment for Invoice",
@@ -307,13 +67,13 @@
"transfer_group": null
}
},
- "id": "evt_3OIlUtDEQaroqDjs1zytLIyz",
+ "id": "evt_3OIlbgDEQaroqDjs00sxMikz",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "56577100-e860-46d1-8ac7-89a10ddcb98d"
+ "idempotency_key": "8a0e0274-488f-4769-bfe1-0d7f7b2bec5b"
},
"type": "payment_intent.created"
},
@@ -341,7 +101,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000006,
+ "created": 1010000007,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -391,7 +151,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000007,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -441,7 +201,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000009,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -530,19 +290,19 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlUsDEQaroqDjs4z1UvVAJ",
+ "id": "evt_1OIlbgDEQaroqDjsm6vBYfmK",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "7c28c59b-c67d-4541-916a-27fe3138baf7"
+ "idempotency_key": "ee626e0b-447f-42bf-9ae6-a44f7fba0c68"
},
"type": "invoice.created"
},
{
"api_version": "2020-08-27",
- "created": 1010000006,
+ "created": 1010000007,
"data": {
"object": {
"amount": 184000,
@@ -565,7 +325,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000007,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -592,19 +352,19 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1OIlUsDEQaroqDjsAje5tJTQ",
+ "id": "evt_1OIlbfDEQaroqDjsNs1WEJlG",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "4dde50be-d41e-4864-8ff3-3c7c3351f83a"
+ "idempotency_key": "bcd3d554-294f-45db-b3b7-4574b9f9dd31"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1010000009,
+ "created": 1010000007,
"data": {
"object": {
"amount": -48000,
@@ -627,7 +387,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000009,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -654,19 +414,19 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1OIlUrDEQaroqDjsJ2WxhrYV",
+ "id": "evt_1OIlbfDEQaroqDjsl3s0Q631",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "89fc76f4-cb36-4b18-8eab-7b6b25389fca"
+ "idempotency_key": "fc82cb1f-1406-4d18-b71d-9e03683f0e87"
},
"type": "invoiceitem.created"
},
{
"api_version": "2020-08-27",
- "created": 1010000009,
+ "created": 1010000007,
"data": {
"object": {
"address": null,
@@ -683,7 +443,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1OIlUmDEQaroqDjs0AAGeLzU",
+ "default_payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"footer": null,
"rendering_options": null
},
@@ -706,13 +466,13 @@
"default_currency": null
}
},
- "id": "evt_1OIlUrDEQaroqDjsKx8mYFdN",
+ "id": "evt_1OIlbfDEQaroqDjsZObOqCoq",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "89fc76f4-cb36-4b18-8eab-7b6b25389fca"
+ "idempotency_key": "fc82cb1f-1406-4d18-b71d-9e03683f0e87"
},
"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 a8d0f05f074..358c363af93 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": 1010000005,
+ "created": 1010000006,
"data": {
"object": {
"account_country": "US",
@@ -24,7 +24,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "charge_automatically",
- "created": 1010000006,
+ "created": 1010000007,
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpUM3F0VG1SREFmNEVJRnVBN3RoeDNvQ1F0TW10LDkyMDM0NzMx02000tnpwyOP?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUz02001P1Xq2Fl?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpUM3F0VG1SREFmNEVJRnVBN3RoeDNvQ1F0TW10LDkyMDM0NzMx02000tnpwyOP/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUz02001P1Xq2Fl/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -74,7 +74,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000007,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -124,7 +124,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000009,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -162,7 +162,7 @@
"livemode": false,
"metadata": {},
"next_payment_attempt": 1000000000,
- "number": "NORMALI-0002",
+ "number": "NORMALI-0001",
"object": "invoice",
"on_behalf_of": null,
"paid": false,
@@ -213,15 +213,255 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1OIlUtDEQaroqDjsF2qVgEos",
+ "id": "evt_1OIlbhDEQaroqDjslKSnh8QR",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "56577100-e860-46d1-8ac7-89a10ddcb98d"
+ "idempotency_key": "8a0e0274-488f-4769-bfe1-0d7f7b2bec5b"
},
"type": "invoice.finalized"
+ },
+ {
+ "api_version": "2020-08-27",
+ "created": 1010000006,
+ "data": {
+ "object": {
+ "account_country": "US",
+ "account_name": "Kandra Labs, Inc.",
+ "account_tax_ids": null,
+ "amount_due": 136000,
+ "amount_paid": 0,
+ "amount_remaining": 136000,
+ "amount_shipping": 0,
+ "application": null,
+ "application_fee_amount": null,
+ "attempt_count": 0,
+ "attempted": false,
+ "auto_advance": true,
+ "automatic_tax": {
+ "enabled": false,
+ "status": null
+ },
+ "billing_reason": "manual",
+ "charge": null,
+ "collection_method": "charge_automatically",
+ "created": 1010000007,
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUz02001P1Xq2Fl?s=ap",
+ "id": "in_NORMALIZED00000000000001",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUz02001P1Xq2Fl/pdf?s=ap",
+ "last_finalization_error": null,
+ "latest_revision": null,
+ "lines": {
+ "data": [
+ {
+ "amount": 184000,
+ "amount_excluding_tax": 184000,
+ "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": 1010000008,
+ "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": 23,
+ "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": 1010000009,
+ "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": 1000000000,
+ "number": "NORMALI-0001",
+ "object": "invoice",
+ "on_behalf_of": null,
+ "paid": false,
+ "paid_out_of_band": false,
+ "payment_intent": "pi_NORMALIZED00000000000002",
+ "payment_settings": {
+ "default_mandate": null,
+ "payment_method_options": null,
+ "payment_method_types": null
+ },
+ "period_end": 1000000000,
+ "period_start": 1000000000,
+ "post_payment_credit_notes_amount": 0,
+ "pre_payment_credit_notes_amount": 0,
+ "quote": null,
+ "receipt_number": null,
+ "rendering": {
+ "amount_tax_display": null,
+ "pdf": {
+ "page_size": "letter"
+ }
+ },
+ "rendering_options": null,
+ "shipping_cost": null,
+ "shipping_details": null,
+ "starting_balance": 0,
+ "statement_descriptor": "Zulip Cloud Standard",
+ "status": "open",
+ "status_transitions": {
+ "finalized_at": 1000000000,
+ "marked_uncollectible_at": null,
+ "paid_at": null,
+ "voided_at": null
+ },
+ "subscription": null,
+ "subscription_details": {
+ "metadata": null
+ },
+ "subtotal": 136000,
+ "subtotal_excluding_tax": 136000,
+ "tax": null,
+ "test_clock": null,
+ "total": 136000,
+ "total_discount_amounts": [],
+ "total_excluding_tax": 136000,
+ "total_tax_amounts": [],
+ "transfer_data": null,
+ "webhooks_delivered_at": null
+ },
+ "previous_attributes": {
+ "effective_at": null,
+ "ending_balance": null,
+ "hosted_invoice_url": null,
+ "invoice_pdf": null,
+ "number": null,
+ "payment_intent": null,
+ "rendering": {
+ "pdf": {
+ "page_size": "auto"
+ }
+ },
+ "status": "draft",
+ "status_transitions": {
+ "finalized_at": null
+ }
+ }
+ },
+ "id": "evt_1OIlbhDEQaroqDjskitZgXzv",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "request": {
+ "id": "req_NORMALIZED0003",
+ "idempotency_key": "8a0e0274-488f-4769-bfe1-0d7f7b2bec5b"
+ },
+ "type": "invoice.updated"
}
],
"has_more": false,
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 8cc023a4963..7c81472b6ae 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": 1010000006,
+ "created": 1010000007,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
@@ -68,7 +68,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000007,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -118,7 +118,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000009,
"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 29fd551e4b4..a29d7f0b7e5 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": 1010000006,
+ "created": 1010000007,
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpUM3F0VG1SREFmNEVJRnVBN3RoeDNvQ1F0TW10LDkyMDM0NzMx02000tnpwyOP?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUy02009Hng419i?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpUM3F0VG1SREFmNEVJRnVBN3RoeDNvQ1F0TW10LDkyMDM0NzMx02000tnpwyOP/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUy02009Hng419i/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -68,7 +68,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000007,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -118,7 +118,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000009,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -156,7 +156,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/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 19608f311fc..3a738a16584 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": 1010000006,
+ "created": 1010000007,
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpUM3F0VG1SREFmNEVJRnVBN3RoeDNvQ1F0TW10LDkyMDM0NzMz02004FnCxFrq?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTU00200dlx5eGfU?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpUM3F0VG1SREFmNEVJRnVBN3RoeDNvQ1F0TW10LDkyMDM0NzMz02004FnCxFrq/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTU00200dlx5eGfU/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -70,7 +70,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000007,
+ "created": 1010000008,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000001",
@@ -120,7 +120,7 @@
"price": {
"active": false,
"billing_scheme": "per_unit",
- "created": 1010000008,
+ "created": 1010000009,
"currency": "usd",
"custom_unit_amount": null,
"id": "price_NORMALIZED00000000000002",
@@ -158,7 +158,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/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 ce279a5b2e6..5bcd160b6e1 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": 1010000008,
+ "created": 1010000009,
"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 a35ac2e3687..1cc7e357e24 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": 1010000007,
+ "created": 1010000008,
"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 385c6c0596d..a70b5293be5 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
@@ -55,6 +55,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1OIlUmDEQaroqDjs0AAGeLzU",
+ "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -119,7 +120,7 @@
"radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKKj5qqsGMgabYrMy7qY6LBbxILhQWV5O1SayjyKwv--4CWfCdYX-glFcOh9y-Y5PeEAvfpEOpsmMtmwm",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKM78qqsGMgbly0H8pnM6LBbJFC9LCw2Or-nrEgUlEKTY9QfvAE3T02_zBgU6946fnRcVTcDXuTcZT2-V",
"refunded": false,
"refunds": {
"data": [],
@@ -144,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_PINrM33YM9KIsKSnhNma2VvhN",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_eh7Ko8cC8BHv74uDG0yDcWGzR",
"confirmation_method": "automatic",
"created": 1010000001,
"currency": "usd",
@@ -160,6 +161,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -171,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlUmDEQaroqDjs0AAGeLzU",
+ "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"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 9b429269d1c..b79615658d9 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_1OIlUmDEQaroqDjsdQg0j4LE_secret_P6zTb2zrPz8uA31ZJgmfP6aaqmy5BsU",
+ "client_secret": "seti_1OIlbaDEQaroqDjsQ7igXhzD_secret_P6za4YkUyobRRfR3sB0FIkqIDAekXDm",
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlUmDEQaroqDjsdQg0j4LE",
+ "id": "seti_1OIlbaDEQaroqDjsQ7igXhzD",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlUmDEQaroqDjsfKkUtoC5",
+ "latest_attempt": "setatt_1OIlbaDEQaroqDjsMloAaHDc",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlUmDEQaroqDjs0AAGeLzU",
+ "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"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 1d36f30c6d3..49da401ad95 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_1OIlUkDEQaroqDjsV01nm9wQ_secret_P6zTBRnyll9DNh6H4t3U6x7gYPD7eiV",
- "created": 1010000010,
+ "client_secret": "seti_1OIlbZDEQaroqDjsTMFD9GZF_secret_P6za1VcD3i11C9a3L9O1kcN2vre0CMc",
+ "created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlUkDEQaroqDjsV01nm9wQ",
+ "id": "seti_1OIlbZDEQaroqDjsTMFD9GZF",
"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 9b429269d1c..b79615658d9 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_1OIlUmDEQaroqDjsdQg0j4LE_secret_P6zTb2zrPz8uA31ZJgmfP6aaqmy5BsU",
+ "client_secret": "seti_1OIlbaDEQaroqDjsQ7igXhzD_secret_P6za4YkUyobRRfR3sB0FIkqIDAekXDm",
"created": 1010000003,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1OIlUmDEQaroqDjsdQg0j4LE",
+ "id": "seti_1OIlbaDEQaroqDjsQ7igXhzD",
"last_setup_error": null,
- "latest_attempt": "setatt_1OIlUmDEQaroqDjsfKkUtoC5",
+ "latest_attempt": "setatt_1OIlbaDEQaroqDjsMloAaHDc",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1OIlUmDEQaroqDjs0AAGeLzU",
+ "payment_method": "pm_1OIlbaDEQaroqDjstEC8FO1C",
"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 6561cd0bd27..60fc4069004 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000010,
+ "created": 1010000002,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02LcQ7FboRfL6CvIJmITiEPinKLXZK5gNAAfOR4SpVVJ03mh",
+ "id": "cs_test_NORMALIZED02gDLnoI1IkBtki9mtsks8g0GfcbKwgZMFr2vmB3FmHkaxzP",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlUkDEQaroqDjsV01nm9wQ",
+ "setup_intent": "seti_1OIlbZDEQaroqDjsTMFD9GZF",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED02LcQ7FboRfL6CvIJmITiEPinKLXZK5gNAAfOR4SpVVJ03mh#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02gDLnoI1IkBtki9mtsks8g0GfcbKwgZMFr2vmB3FmHkaxzP#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 e3e56b6a593..1f158274037 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000010,
+ "created": 1010000002,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED02LcQ7FboRfL6CvIJmITiEPinKLXZK5gNAAfOR4SpVVJ03mh",
+ "id": "cs_test_NORMALIZED02gDLnoI1IkBtki9mtsks8g0GfcbKwgZMFr2vmB3FmHkaxzP",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1OIlUkDEQaroqDjsV01nm9wQ",
+ "setup_intent": "seti_1OIlbZDEQaroqDjsTMFD9GZF",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED02LcQ7FboRfL6CvIJmITiEPinKLXZK5gNAAfOR4SpVVJ03mh#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02gDLnoI1IkBtki9mtsks8g0GfcbKwgZMFr2vmB3FmHkaxzP#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 cfc8347665d..4bd8d49629b 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": "src_NORMALIZED00000000000001",
+ "default_source": null,
"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 671a950ee83..00b99336704 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyU1RJOXNJdEJ4cjVwYVlwa1B5R1NCbnQwSnU4LDkwNzk3MzYx0200c4RVEEUg?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUz02001P1Xq2Fl?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyU1RJOXNJdEJ4cjVwYVlwa1B5R1NCbnQwSnU4LDkwNzk3MzYx0200c4RVEEUg/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpheDcyZkVsU0t5WFFSa1BtcmlyV3pqS214d0JPLDkyMDM1MTUz02001P1Xq2Fl/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODZbKDEQaroqDjsbfz78a0D",
+ "id": "evt_1OIlbhDEQaroqDjslKSnh8QR",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "8221c3a6-7b68-430b-aae7-ece9442b415b"
+ "idempotency_key": "8a0e0274-488f-4769-bfe1-0d7f7b2bec5b"
},
"type": "invoice.finalized"
}
diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json
index 0dda043ce97..e9a11ac5011 100644
--- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1010000001,
+ "created": 1010000006,
"currency": "usd",
"custom_fields": null,
"customer": "cus_NORMALIZED0001",
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 cddfff9d1ce..45452fb60e5 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
@@ -18,7 +18,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1010000001,
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNydjVGc3BQU3JxQnZlZ3VWTTlIYlREVGJRSWFKLDkwNzk3MzY10200ZwtduSWW?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTk1UTk16T09QZmxJVWpqdjE5MDBPMU53TFpVLDkyMDM1MTU30200kzbsKCoM?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNydjVGc3BQU3JxQnZlZ3VWTTlIYlREVGJRSWFKLDkwNzk3MzY10200ZwtduSWW/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTk1UTk16T09QZmxJVWpqdjE5MDBPMU53TFpVLDkyMDM1MTU30200kzbsKCoM/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 59fd565192e..4256c194192 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
@@ -20,7 +20,7 @@
"billing_reason": "manual",
"charge": null,
"collection_method": "send_invoice",
- "created": 1010000001,
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNydjVGc3BQU3JxQnZlZ3VWTTlIYlREVGJRSWFKLDkwNzk3MzY20200NDAUk84c?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTk1UTk16T09QZmxJVWpqdjE5MDBPMU53TFpVLDkyMDM1MTU40200jg3Bl7k9?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNydjVGc3BQU3JxQnZlZ3VWTTlIYlREVGJRSWFKLDkwNzk3MzY20200NDAUk84c/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnphTk1UTk16T09QZmxJVWpqdjE5MDBPMU53TFpVLDkyMDM1MTU40200jg3Bl7k9/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 d430a3566a8..46d44c9c781 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_1ODZbRDEQaroqDjsccBrqC2l",
+ "default_payment_method": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 f70d019dc9f..6505696f6d6 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "id": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 cb51a4a200b..75387361a65 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_1ODZbRDEQaroqDjsL47HgG3s_secret_P1cr1ByFKZm8N9qBR9t8J0Vn1p3aZJR",
+ "client_secret": "seti_1OIlboDEQaroqDjsCr28wSTk_secret_P6zbQVB6mkNvgS2TWMnp2vq5v3N1HuH",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZbRDEQaroqDjsL47HgG3s",
+ "id": "seti_1OIlboDEQaroqDjsCr28wSTk",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZbRDEQaroqDjs3Q7vHzGe",
+ "latest_attempt": "setatt_1OIlboDEQaroqDjses7MXuWl",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "payment_method": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 36a004a44b7..2edbbc331ba 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_1ODZbQDEQaroqDjsAH1MC6my_secret_P1crnuSPvAHtH5b6Gil8gJpOliQ10HB",
- "created": 1010000001,
+ "client_secret": "seti_1OIlboDEQaroqDjsGuhNyB8b_secret_P6zbshpoj0hYSjDfCGnvmvUySXPcrCM",
+ "created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZbQDEQaroqDjsAH1MC6my",
+ "id": "seti_1OIlboDEQaroqDjsGuhNyB8b",
"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 cb51a4a200b..75387361a65 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_1ODZbRDEQaroqDjsL47HgG3s_secret_P1cr1ByFKZm8N9qBR9t8J0Vn1p3aZJR",
+ "client_secret": "seti_1OIlboDEQaroqDjsCr28wSTk_secret_P6zbQVB6mkNvgS2TWMnp2vq5v3N1HuH",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZbRDEQaroqDjsL47HgG3s",
+ "id": "seti_1OIlboDEQaroqDjsCr28wSTk",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZbRDEQaroqDjs3Q7vHzGe",
+ "latest_attempt": "setatt_1OIlboDEQaroqDjses7MXuWl",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZbRDEQaroqDjsccBrqC2l",
+ "payment_method": "pm_1OIlboDEQaroqDjswKgYEqo6",
"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 880511c18ea..244fdbf7a91 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000001,
+ "created": 1010000002,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01rfo9Sx0hrojMefUb4gRqBjHatuYXo1tCSmeAh7BC7SHHrk",
+ "id": "cs_test_NORMALIZED01BjTu1W8ZHqKNl5cwdJOOe4F5StUwdhSdzkrJzOPUwWQuj3",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZbQDEQaroqDjsAH1MC6my",
+ "setup_intent": "seti_1OIlboDEQaroqDjsGuhNyB8b",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED01rfo9Sx0hrojMefUb4gRqBjHatuYXo1tCSmeAh7BC7SHHrk#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01BjTu1W8ZHqKNl5cwdJOOe4F5StUwdhSdzkrJzOPUwWQuj3#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 738235a5090..1582ac4335a 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000001,
+ "created": 1010000002,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01rfo9Sx0hrojMefUb4gRqBjHatuYXo1tCSmeAh7BC7SHHrk",
+ "id": "cs_test_NORMALIZED01BjTu1W8ZHqKNl5cwdJOOe4F5StUwdhSdzkrJzOPUwWQuj3",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZbQDEQaroqDjsAH1MC6my",
+ "setup_intent": "seti_1OIlboDEQaroqDjsGuhNyB8b",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED01rfo9Sx0hrojMefUb4gRqBjHatuYXo1tCSmeAh7BC7SHHrk#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01BjTu1W8ZHqKNl5cwdJOOe4F5StUwdhSdzkrJzOPUwWQuj3#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 384cf83ba17..0d726a959bc 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_1ODh2sDEQaroqDjsmfEsctj6",
+ "default_payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"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 9ca46544114..37cadfb1b67 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "id": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"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 9ca46544114..37cadfb1b67 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "id": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"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 9ca46544114..37cadfb1b67 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "id": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"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 9ca46544114..37cadfb1b67 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "id": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"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 f10061bf837..17524008fca 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_1ODh2sDEQaroqDjsmfEsctj6",
+ "default_payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"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 48c312ec280..49111c4784b 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
@@ -61,6 +61,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKP6V4aoGMgYR8qeHf-g6LBaSC8kosJAzxFmpm1P_TXtsQLsn_iq0DklAM6NSkL2WMGtrBMqLVmDOdUH_",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOn8qqsGMgY7MyOA_s06LBZ_labKK4xiZWECMaYSFJw-_GPVK46R98x2qkiuPUZgX7zYwSioWQWyjGod",
"refunded": false,
"refunds": {
"data": [],
@@ -149,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_n2PA9bGK10UW1r3fUdXEln5Zl",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_Awp9pKTlpnSRnN4R7HAujr9vg",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -165,6 +167,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODh2vDEQaroqDjs0vU1zo7r",
+ "id": "evt_3OIlc4DEQaroqDjs0rCeAMne",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "aa721bee-9fd2-430a-bbaa-19b03c87c827"
+ "idempotency_key": "1e3aa969-1bb3-42a0-b995-19d5aeeaccf4"
},
"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 36ffaccdb58..7fad6982500 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
@@ -61,6 +61,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKP6V4aoGMgYR8qeHf-g6LBaSC8kosJAzxFmpm1P_TXtsQLsn_iq0DklAM6NSkL2WMGtrBMqLVmDOdUH_",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOn8qqsGMgY7MyOA_s06LBZ_labKK4xiZWECMaYSFJw-_GPVK46R98x2qkiuPUZgX7zYwSioWQWyjGod",
"refunded": false,
"refunds": {
"data": [],
@@ -149,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_n2PA9bGK10UW1r3fUdXEln5Zl",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_Awp9pKTlpnSRnN4R7HAujr9vg",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -165,6 +167,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODh2vDEQaroqDjs0vU1zo7r",
+ "id": "evt_3OIlc4DEQaroqDjs0rCeAMne",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0001",
- "idempotency_key": "aa721bee-9fd2-430a-bbaa-19b03c87c827"
+ "idempotency_key": "1e3aa969-1bb3-42a0-b995-19d5aeeaccf4"
},
"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 6fbde2f7d92..a4a5ced53d3 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
@@ -61,6 +61,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -82,7 +83,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -93,7 +94,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -122,9 +123,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIGW4aoGMgZK3rQAybw6LBaEsNHTyVXHhTHWkr32GJU9oEyaBJm4kH_mrYF1NGqecd025NvQY68Qr-L2",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKO38qqsGMgb8K-cPXSo6LBbKTsYtem3W7xucCoPe2z1a2_wKnLkUdphMO5PAi2ZA6b22rRZfaIVT3QGm",
"refunded": false,
"refunds": {
"data": [],
@@ -149,7 +151,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_pkLrHEAn79G8lerTkf3F1jkUs",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_IomgZyn1RNAyJvfhQISSFEFfD",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -165,6 +167,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -176,7 +179,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -202,13 +205,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODh2yDEQaroqDjs0RVNUHIE",
+ "id": "evt_3OIlc8DEQaroqDjs17LDVY1L",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "976e4d5c-7124-42ec-83d7-3ca88d592e7a"
+ "idempotency_key": "d2090367-6d6d-47e0-aea2-0a8e7d269dd6"
},
"type": "payment_intent.succeeded"
},
@@ -258,6 +261,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -279,7 +283,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -290,7 +294,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -319,9 +323,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIGW4aoGMgYrIl3ibdM6LBYdLnQkYn0EJu_cEnkl7_oofOmww9ahe2rofW7fwvrhi8LK4Rt7FZjgv-EJ",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOz8qqsGMgZh29ub_fA6LBZ61hhPPyIa0w4-Pcs2rjtU4YaLbUOfNN_T1FFccLYHywQRixzZBZDoCD4U",
"refunded": false,
"refunds": {
"data": [],
@@ -341,13 +346,13 @@
"transfer_group": null
}
},
- "id": "evt_3ODh2yDEQaroqDjs0N0jsSSZ",
+ "id": "evt_3OIlc8DEQaroqDjs1oEZqYzP",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0002",
- "idempotency_key": "976e4d5c-7124-42ec-83d7-3ca88d592e7a"
+ "idempotency_key": "d2090367-6d6d-47e0-aea2-0a8e7d269dd6"
},
"type": "charge.succeeded"
}
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 fac4ce6917f..aade1a83ff7 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
@@ -46,9 +46,9 @@
"ending_balance": 0,
"footer": null,
"from_invoice": null,
- "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZbFlIRGJDTXJLVE91OUFpbDB3T3VqQzBWYnhlLDkwODI1OTg3020041u6mHFy?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZbFlIRGJDTXJLVE91OUFpbDB3T3VqQzBWYnhlLDkwODI1OTg3020041u6mHFy/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -234,13 +234,13 @@
}
}
},
- "id": "evt_1ODh31DEQaroqDjsPv3N6iA1",
+ "id": "evt_1OIlcBDEQaroqDjsUyT8bv2E",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "868ce8b6-8d77-4d3b-8c11-aba184457ea0"
+ "idempotency_key": "53c5a32c-32e3-4962-8d55-ca97146ec82b"
},
"type": "invoice.updated"
},
@@ -457,13 +457,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODh30DEQaroqDjssT2hfGif",
+ "id": "evt_1OIlcADEQaroqDjsBKbXBMSd",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0004",
- "idempotency_key": "d73d054f-a2f7-4dee-ad49-9d202a6b0b99"
+ "idempotency_key": "c55d687a-89e1-458c-986c-b88c992d736d"
},
"type": "invoice.created"
},
@@ -519,13 +519,13 @@
"unit_amount_decimal": "8000"
}
},
- "id": "evt_1ODh30DEQaroqDjsa98M06yf",
+ "id": "evt_1OIlcADEQaroqDjsgygXr1KK",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0005",
- "idempotency_key": "22323a04-c14f-4a78-998d-5579aaf46bae"
+ "idempotency_key": "058b619d-c831-4c80-a716-9782c31ecad8"
},
"type": "invoiceitem.created"
},
@@ -581,13 +581,13 @@
"unit_amount_decimal": "-48000"
}
},
- "id": "evt_1ODh30DEQaroqDjs0AYeO1ed",
+ "id": "evt_1OIlc9DEQaroqDjseEc3YLKL",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "88f3a899-2ea3-4f6d-8df9-3991d659bc09"
+ "idempotency_key": "8a6a969a-1fbf-4d1a-9273-c991a749949f"
},
"type": "invoiceitem.created"
},
@@ -610,7 +610,7 @@
"invoice_prefix": "NORMA01",
"invoice_settings": {
"custom_fields": null,
- "default_payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "default_payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"footer": null,
"rendering_options": null
},
@@ -633,13 +633,13 @@
"default_currency": null
}
},
- "id": "evt_1ODh2zDEQaroqDjscfPsjcYM",
+ "id": "evt_1OIlc9DEQaroqDjse67gRB7s",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0006",
- "idempotency_key": "88f3a899-2ea3-4f6d-8df9-3991d659bc09"
+ "idempotency_key": "8a6a969a-1fbf-4d1a-9273-c991a749949f"
},
"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 4df711f1567..9e2764e680d 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZbFlIRGJDTXJLVE91OUFpbDB3T3VqQzBWYnhlLDkwODI1OTg3020041u6mHFy?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZbFlIRGJDTXJLVE91OUFpbDB3T3VqQzBWYnhlLDkwODI1OTg3020041u6mHFy/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODh31DEQaroqDjsVsCAUcKT",
+ "id": "evt_1OIlcBDEQaroqDjsUGTOk3x8",
"livemode": false,
"object": "event",
"pending_webhooks": 2,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "868ce8b6-8d77-4d3b-8c11-aba184457ea0"
+ "idempotency_key": "53c5a32c-32e3-4962-8d55-ca97146ec82b"
},
"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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZbFlIRGJDTXJLVE91OUFpbDB3T3VqQzBWYnhlLDkwODI1OTg3020041u6mHFy?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZbFlIRGJDTXJLVE91OUFpbDB3T3VqQzBWYnhlLDkwODI1OTg3020041u6mHFy/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -436,13 +436,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODh31DEQaroqDjs6V1ATwTG",
+ "id": "evt_1OIlcBDEQaroqDjsGFKR0LKA",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "868ce8b6-8d77-4d3b-8c11-aba184457ea0"
+ "idempotency_key": "53c5a32c-32e3-4962-8d55-ca97146ec82b"
},
"type": "invoice.finalized"
}
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 906a397ae10..205f46c7392 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZbFlIRGJDTXJLVE91OUFpbDB3T3VqQzBWYnhlLDkwODI1OTg40200Lgjn6VKK?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZbFlIRGJDTXJLVE91OUFpbDB3T3VqQzBWYnhlLDkwODI1OTg40200Lgjn6VKK/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
@@ -213,13 +213,13 @@
"webhooks_delivered_at": null
}
},
- "id": "evt_1ODh32DEQaroqDjsqrKtFVjb",
+ "id": "evt_1OIlcBDEQaroqDjsbBMnblUE",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
"id": "req_NORMALIZED0003",
- "idempotency_key": "868ce8b6-8d77-4d3b-8c11-aba184457ea0"
+ "idempotency_key": "53c5a32c-32e3-4962-8d55-ca97146ec82b"
},
"type": "invoice.payment_succeeded"
}
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 245ace018ae..229e1b1c5ee 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZbFlIRGJDTXJLVE91OUFpbDB3T3VqQzBWYnhlLDkwODI1OTg3020041u6mHFy?s=ap",
+ "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZbFlIRGJDTXJLVE91OUFpbDB3T3VqQzBWYnhlLDkwODI1OTg3020041u6mHFy/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTgz0200gmkwvCzo/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 55bbc341810..cb11f2bed00 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZMGZsSnliMnlhT2JTc1QxS2JOdHZETlVSbkpwLDkwODI1OTkw0200LrehJSPn?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpieUE5Tldic1E4RHgwejU1bnRkR2w5SnZRN1pXLDkyMDM1MTg10200G06j5DXj?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZMGZsSnliMnlhT2JTc1QxS2JOdHZETlVSbkpwLDkwODI1OTkw0200LrehJSPn/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpieUE5Tldic1E4RHgwejU1bnRkR2w5SnZRN1pXLDkyMDM1MTg10200G06j5DXj/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 91dcb08df80..7925c413a9c 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZMGZsSnliMnlhT2JTc1QxS2JOdHZETlVSbkpwLDkwODI1OTkw0200LrehJSPn?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpieUE5Tldic1E4RHgwejU1bnRkR2w5SnZRN1pXLDkyMDM1MTg20200x6zHJRYm?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZMGZsSnliMnlhT2JTc1QxS2JOdHZETlVSbkpwLDkwODI1OTkw0200LrehJSPn/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpieUE5Tldic1E4RHgwejU1bnRkR2w5SnZRN1pXLDkyMDM1MTg20200x6zHJRYm/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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZbFlIRGJDTXJLVE91OUFpbDB3T3VqQzBWYnhlLDkwODI1OTkw0200U0LsomuQ?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTg20200Z6WfZzsh?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWtZbFlIRGJDTXJLVE91OUFpbDB3T3VqQzBWYnhlLDkwODI1OTkw0200U0LsomuQ/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiSWhCU25qMFlweUF2WEZPUVYyWHE3SEJZSnZuLDkyMDM1MTg20200Z6WfZzsh/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
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 1965a61070d..4f08cd9f7b8 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
@@ -55,6 +55,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKP6V4aoGMgaG8IZZD946LBZjrmjioiTUmyLLCNxT5Zz9u52IR9pZpu_VSuTcGfEBjm7N5EzWxFvjYY-D",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOn8qqsGMgYR2d1Mx086LBa4AVD69dyQGtZIaRO4Fsbm_rPPoSei_P7byB9n21Wh9hlubt5cFU1_MP4I",
"refunded": false,
"refunds": {
"data": [],
@@ -143,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_n2PA9bGK10UW1r3fUdXEln5Zl",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_Awp9pKTlpnSRnN4R7HAujr9vg",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -159,6 +161,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"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 6743e970728..ca24ab19539 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
@@ -55,6 +55,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -76,7 +77,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000002",
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -87,7 +88,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -116,9 +117,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKIGW4aoGMgZZ7rAvr0k6LBaigc4TLNkMBhuVCpHKPI47PdrUKbw4NN77pAJiSz7q3kEEfAcpaRR2rQox",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOz8qqsGMgbAB4XJ17Y6LBbBDlxFOwMbTPce3dBPFlR31KOgJO37WwkEVG0TCnajOaZV9a1VtiTcb5-3",
"refunded": false,
"refunds": {
"data": [],
@@ -143,7 +145,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
},
- "client_secret": "pi_NORMALIZED00000000000002_secret_pkLrHEAn79G8lerTkf3F1jkUs",
+ "client_secret": "pi_NORMALIZED00000000000002_secret_IomgZyn1RNAyJvfhQISSFEFfD",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -159,6 +161,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -170,7 +173,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"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 29015bda6ae..2cdeaf4ac4b 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
@@ -57,6 +57,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -78,7 +79,7 @@
},
"paid": true,
"payment_intent": "pi_NORMALIZED00000000000001",
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"payment_method_details": {
"card": {
"amount_authorized": 48000,
@@ -89,7 +90,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"extended_authorization": {
"status": "disabled"
@@ -118,9 +119,10 @@
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
- "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKP6V4aoGMgZ81fLzrtg6LBbZmWJlrP_Ec_caqksN3jvIogaSZe2GoOvR69FJ2uu2XX0RCOS7Sjxau5Sm",
+ "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOr8qqsGMgZGBr6O5l86LBYFrDFoFjRpynpm6Gj_IHOR7_ZOsQFTkzHpRvGXTiUqFOKL9V2oJJymgKM7",
"refunded": false,
"refunds": {
"data": [],
@@ -145,7 +147,7 @@
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
},
- "client_secret": "pi_NORMALIZED00000000000001_secret_n2PA9bGK10UW1r3fUdXEln5Zl",
+ "client_secret": "pi_NORMALIZED00000000000001_secret_Awp9pKTlpnSRnN4R7HAujr9vg",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
@@ -161,6 +163,7 @@
"billing_schedule": "1",
"license_management": "automatic",
"licenses": "6",
+ "plan_tier": "1",
"price_per_license": "8000",
"realm_id": "1",
"realm_str": "zulip",
@@ -172,7 +175,7 @@
"next_action": null,
"object": "payment_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"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 20e841d0de3..bca48c641bf 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_1ODh2sDEQaroqDjstpH3jLtE_secret_P1kXrubXJMQWkYhUmQzB5Fs4lTY6jvw",
+ "client_secret": "seti_1OIlc2DEQaroqDjsIbKDI9s6_secret_P6zbdxjkNCqqnroego53dJUL6KTomxO",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODh2sDEQaroqDjstpH3jLtE",
+ "id": "seti_1OIlc2DEQaroqDjsIbKDI9s6",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODh2sDEQaroqDjsFRO6SBwx",
+ "latest_attempt": "setatt_1OIlc2DEQaroqDjsJJVIfYCf",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"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 71656412c44..c2e58cd3491 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_1ODh2qDEQaroqDjsqaQ7wTz2_secret_P1kXSWXueZCEQQwWc7kZMhjqusBNUtR",
+ "client_secret": "seti_1OIlc1DEQaroqDjsYJCcCHiM_secret_P6zbHmse7UCleK4vr4NknpHTSMlXEi0",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODh2qDEQaroqDjsqaQ7wTz2",
+ "id": "seti_1OIlc1DEQaroqDjsYJCcCHiM",
"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 20e841d0de3..bca48c641bf 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_1ODh2sDEQaroqDjstpH3jLtE_secret_P1kXrubXJMQWkYhUmQzB5Fs4lTY6jvw",
+ "client_secret": "seti_1OIlc2DEQaroqDjsIbKDI9s6_secret_P6zbdxjkNCqqnroego53dJUL6KTomxO",
"created": 1000000000,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODh2sDEQaroqDjstpH3jLtE",
+ "id": "seti_1OIlc2DEQaroqDjsIbKDI9s6",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODh2sDEQaroqDjsFRO6SBwx",
+ "latest_attempt": "setatt_1OIlc2DEQaroqDjsJJVIfYCf",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODh2sDEQaroqDjsmfEsctj6",
+ "payment_method": "pm_1OIlc2DEQaroqDjsvrjhetiI",
"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 44d4ccc3d27..fd40af28527 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
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED021NkMCPp6UzQNRA61Gd81ENOU3WTsuOlnVLZqDnwZrdmAAm",
+ "id": "cs_test_NORMALIZED02nuc79j2ZD5uEiM7oSWD2XCfpwEBre2lYaUJc0KrvEO5aK1",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODh2qDEQaroqDjsqaQ7wTz2",
+ "setup_intent": "seti_1OIlc1DEQaroqDjsYJCcCHiM",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED021NkMCPp6UzQNRA61Gd81ENOU3WTsuOlnVLZqDnwZrdmAAm#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02nuc79j2ZD5uEiM7oSWD2XCfpwEBre2lYaUJc0KrvEO5aK1#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 b71bf157966..e77b0b34fcb 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
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED021NkMCPp6UzQNRA61Gd81ENOU3WTsuOlnVLZqDnwZrdmAAm",
+ "id": "cs_test_NORMALIZED02nuc79j2ZD5uEiM7oSWD2XCfpwEBre2lYaUJc0KrvEO5aK1",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODh2qDEQaroqDjsqaQ7wTz2",
+ "setup_intent": "seti_1OIlc1DEQaroqDjsYJCcCHiM",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED021NkMCPp6UzQNRA61Gd81ENOU3WTsuOlnVLZqDnwZrdmAAm#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02nuc79j2ZD5uEiM7oSWD2XCfpwEBre2lYaUJc0KrvEO5aK1#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 a3713782d28..e7c19698554 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_1ODZbfDEQaroqDjstc11crae",
+ "default_payment_method": "pm_1OIlcGDEQaroqDjsDO00GI2B",
"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 05b62296b91..0e4adf231db 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbfDEQaroqDjstc11crae",
+ "id": "pm_1OIlcGDEQaroqDjsDO00GI2B",
"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 05b62296b91..0e4adf231db 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
@@ -35,7 +35,7 @@
"cvc_check": "pass"
},
"country": "US",
- "exp_month": 11,
+ "exp_month": 12,
"exp_year": 2024,
"fingerprint": "NORMALIZED000001",
"funding": "credit",
@@ -54,7 +54,7 @@
},
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
- "id": "pm_1ODZbfDEQaroqDjstc11crae",
+ "id": "pm_1OIlcGDEQaroqDjsDO00GI2B",
"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 fd5d244c9d5..35661b65b5f 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_1ODZbfDEQaroqDjslmuU7X3U_secret_P1crT3ndzPAc49qMJcMsQBChNpwKKeV",
+ "client_secret": "seti_1OIlcGDEQaroqDjsgbmHeLd2_secret_P6zbA4b9uZjhEA0UsqVQLXYfDdqFCjX",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZbfDEQaroqDjslmuU7X3U",
+ "id": "seti_1OIlcGDEQaroqDjsgbmHeLd2",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZbfDEQaroqDjsQXqtVE5L",
+ "latest_attempt": "setatt_1OIlcHDEQaroqDjsJA75lVLY",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZbfDEQaroqDjstc11crae",
+ "payment_method": "pm_1OIlcGDEQaroqDjsDO00GI2B",
"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 8943bd9049e..eb9123cfe6e 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_1ODZbeDEQaroqDjsZZmjuZPx_secret_P1crSUT0AepAUhAJUTrQ6yeYydfWO3w",
- "created": 1010000003,
+ "client_secret": "seti_1OIlcGDEQaroqDjslNYkiSF6_secret_P6zb3dxLpdFen33HzZSoEPN140b7TCt",
+ "created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZbeDEQaroqDjsZZmjuZPx",
+ "id": "seti_1OIlcGDEQaroqDjslNYkiSF6",
"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 fd5d244c9d5..35661b65b5f 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_1ODZbfDEQaroqDjslmuU7X3U_secret_P1crT3ndzPAc49qMJcMsQBChNpwKKeV",
+ "client_secret": "seti_1OIlcGDEQaroqDjsgbmHeLd2_secret_P6zbA4b9uZjhEA0UsqVQLXYfDdqFCjX",
"created": 1010000002,
"customer": "cus_NORMALIZED0001",
"description": null,
"flow_directions": null,
- "id": "seti_1ODZbfDEQaroqDjslmuU7X3U",
+ "id": "seti_1OIlcGDEQaroqDjsgbmHeLd2",
"last_setup_error": null,
- "latest_attempt": "setatt_1ODZbfDEQaroqDjsQXqtVE5L",
+ "latest_attempt": "setatt_1OIlcHDEQaroqDjsJA75lVLY",
"livemode": false,
"mandate": null,
"metadata": {},
"next_action": null,
"object": "setup_intent",
"on_behalf_of": null,
- "payment_method": "pm_1ODZbfDEQaroqDjstc11crae",
+ "payment_method": "pm_1OIlcGDEQaroqDjsDO00GI2B",
"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 85b51f79435..6227f706f1d 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
@@ -13,7 +13,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000003,
+ "created": 1010000002,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -34,7 +34,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01EqabbIXzt7dEgjcej0rN6L6bEsqv8MdTKbJKAhFc31P4v3",
+ "id": "cs_test_NORMALIZED01pPD8CONGVQsw6O7xxB6FW6sCoSPNUQ6wQs3gi7hGFMJ3b8",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -58,7 +58,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZbeDEQaroqDjsZZmjuZPx",
+ "setup_intent": "seti_1OIlcGDEQaroqDjslNYkiSF6",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -69,5 +69,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_NORMALIZED01EqabbIXzt7dEgjcej0rN6L6bEsqv8MdTKbJKAhFc31P4v3#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01pPD8CONGVQsw6O7xxB6FW6sCoSPNUQ6wQs3gi7hGFMJ3b8#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
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 6ac139acd9b..ef928af0667 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
@@ -15,7 +15,7 @@
"client_secret": null,
"consent": null,
"consent_collection": null,
- "created": 1010000003,
+ "created": 1010000002,
"currency": null,
"currency_conversion": null,
"custom_fields": [],
@@ -36,7 +36,7 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "cs_test_NORMALIZED01EqabbIXzt7dEgjcej0rN6L6bEsqv8MdTKbJKAhFc31P4v3",
+ "id": "cs_test_NORMALIZED01pPD8CONGVQsw6O7xxB6FW6sCoSPNUQ6wQs3gi7hGFMJ3b8",
"invoice": null,
"invoice_creation": null,
"livemode": false,
@@ -60,7 +60,7 @@
"enabled": false
},
"recovered_from": null,
- "setup_intent": "seti_1ODZbeDEQaroqDjsZZmjuZPx",
+ "setup_intent": "seti_1OIlcGDEQaroqDjslNYkiSF6",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
@@ -71,7 +71,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_NORMALIZED01EqabbIXzt7dEgjcej0rN6L6bEsqv8MdTKbJKAhFc31P4v3#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED01pPD8CONGVQsw6O7xxB6FW6sCoSPNUQ6wQs3gi7hGFMJ3b8#fidkdWxOYHwnPyd1blpxYHZxWl1UZjFOczZJXUE2PUpzUWNPV2ZpdlFzUCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
}
],
"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 ab79c9d2478..9838aab6eb3 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyY3AzdlRpaElCOTB6QXVZRkh2RFAyYWhzWlhPLDkwNzk3Mzg40200ky8xybFL?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk00200SznqB2C8?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyY3AzdlRpaElCOTB6QXVZRkh2RFAyYWhzWlhPLDkwNzk3Mzg40200ky8xybFL/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk00200SznqB2C8/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 fb2b8e50e35..077fe41436b 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyRVhEdW9NQUpJUm5Pb3JhcTBxOU1Kc2Y0RTBjLDkwNzk3Mzkw0200MPHsqzW1?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk102005c8Y0uin?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyRVhEdW9NQUpJUm5Pb3JhcTBxOU1Kc2Y0RTBjLDkwNzk3Mzkw0200MPHsqzW1/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk102005c8Y0uin/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 a0a44a8486e..e099c9e2289 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyY3AzdlRpaElCOTB6QXVZRkh2RFAyYWhzWlhPLDkwNzk3Mzkw0200ct8hFQNp?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk20200lh4vF65m?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyY3AzdlRpaElCOTB6QXVZRkh2RFAyYWhzWlhPLDkwNzk3Mzkw0200ct8hFQNp/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk20200lh4vF65m/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 2c7cc7e3406..a74ff0d4525 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyY3AzdlRpaElCOTB6QXVZRkh2RFAyYWhzWlhPLDkwNzk3Mzkx0200NZcxvDdE?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk30200smrvvHF0?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyY3AzdlRpaElCOTB6QXVZRkh2RFAyYWhzWlhPLDkwNzk3Mzkx0200NZcxvDdE/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk30200smrvvHF0/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 2be6bb29903..ae61c64d9d4 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyRVhEdW9NQUpJUm5Pb3JhcTBxOU1Kc2Y0RTBjLDkwNzk3Mzky0200NluE0p8S?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk40200AmZDWcNV?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyRVhEdW9NQUpJUm5Pb3JhcTBxOU1Kc2Y0RTBjLDkwNzk3Mzky0200NluE0p8S/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk40200AmZDWcNV/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 1ddb2834ad7..e0f255bc469 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyRVhEdW9NQUpJUm5Pb3JhcTBxOU1Kc2Y0RTBjLDkwNzk3Mzkz020060PkUu6Z?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk502003KqSxmFa?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyRVhEdW9NQUpJUm5Pb3JhcTBxOU1Kc2Y0RTBjLDkwNzk3Mzkz020060PkUu6Z/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk502003KqSxmFa/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 701e62d6ebf..68a0d6bc7b9 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyY3AzdlRpaElCOTB6QXVZRkh2RFAyYWhzWlhPLDkwNzk3Mzkx0200NZcxvDdE?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk30200smrvvHF0?s=ap",
"id": "in_NORMALIZED00000000000001",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyY3AzdlRpaElCOTB6QXVZRkh2RFAyYWhzWlhPLDkwNzk3Mzkx0200NZcxvDdE/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiZ1YzenBUdnNLZTV4WEg0SE1XTHNkMnRSR0FJLDkyMDM1MTk30200smrvvHF0/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 b2a9f767285..d81722e50a0 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_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyRVhEdW9NQUpJUm5Pb3JhcTBxOU1Kc2Y0RTBjLDkwNzk3Mzky0200NluE0p8S?s=ap",
+ "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk40200AmZDWcNV?s=ap",
"id": "in_NORMALIZED00000000000002",
- "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QMWNyRVhEdW9NQUpJUm5Pb3JhcTBxOU1Kc2Y0RTBjLDkwNzk3Mzky0200NluE0p8S/pdf?s=ap",
+ "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QNnpiN05KUFJHS0Nyd2QzUmhIWGdsTTNsR0VneFpjLDkyMDM1MTk40200AmZDWcNV/pdf?s=ap",
"last_finalization_error": null,
"latest_revision": null,
"lines": {
diff --git a/corporate/views/upgrade.py b/corporate/views/upgrade.py
index 1c5ec12507c..917f96724e9 100644
--- a/corporate/views/upgrade.py
+++ b/corporate/views/upgrade.py
@@ -54,6 +54,8 @@ def upgrade(
salt=salt,
license_management=license_management,
licenses=licenses,
+ # TODO: tier should be a passed parameter.
+ tier=CustomerPlan.TIER_CLOUD_STANDARD,
)
billing_session = RealmBillingSession(user)
data = billing_session.do_upgrade(upgrade_request)
@@ -101,6 +103,8 @@ 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,
)
data = billing_session.do_upgrade(upgrade_request)
return json_success(request, data)
@@ -146,6 +150,8 @@ 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,
)
data = billing_session.do_upgrade(upgrade_request)
return json_success(request, data)
diff --git a/templates/corporate/billing.html b/templates/corporate/billing.html
index 67a44093b52..8a3c9465b39 100644
--- a/templates/corporate/billing.html
+++ b/templates/corporate/billing.html
@@ -11,14 +11,23 @@
{% if admin_access and has_active_plan %}
{% if is_sponsorship_pending %}
<div class="alert alert-success billing-page-success" id="billing-sponsorship-pending-message-top">
- This organization has requested sponsorship for a <a href="/plans/">Zulip Cloud Standard</a> plan. <a href="mailto:[email protected]">Contact Zulip support</a> with any questions or updates.
+ This organization has requested sponsorship for a <a href="/plans/">{{ plan_name }}</a> plan. <a href="mailto:[email protected]">Contact Zulip support</a> with any questions or updates.
</div>
{% endif %}
{% if success_message %}
- <div class="alert alert-success billing-page-success" id="billing-success-message-top">{{ success_message }}</div>
+ <div class="alert alert-success billing-page-success" id="billing-success-message-top">
+ {{ success_message.replace("PLAN_NAME", plan_name) }}
+ </div>
{% endif %}
<div class="pitch">
- <h1>Zulip Cloud billing for {{ org_name }}</h1>
+ <h1>
+ Zulip
+ {% if is_self_hosted_billing %}
+ {% else %}
+ Cloud
+ {% endif %}
+ billing for {{ org_name }}
+ </h1>
</div>
<div class="alert alert-danger" id="error-message-box"></div>
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" />
diff --git a/web/src/billing/helpers.ts b/web/src/billing/helpers.ts
index ab336c7fdba..5b6c3206ffd 100644
--- a/web/src/billing/helpers.ts
+++ b/web/src/billing/helpers.ts
@@ -157,7 +157,7 @@ export function redirect_to_billing_with_successful_upgrade(billing_base_url: st
window.location.replace(
billing_base_url +
"/billing/?success_message=" +
- encodeURIComponent("Your organization has been upgraded to Zulip Cloud Standard."),
+ encodeURIComponent("Your organization has been upgraded to PLAN_NAME."),
);
}