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.

corporate: Call validate_licenses directly in do_upgrade.

Lauryn Menardf31253c53d2c
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index cc53c19c011..bb13cf17358 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -229,26 +229,6 @@ def validate_licenses(
raise BillingError("too many licenses", message)
-def check_upgrade_parameters(
- billing_modality: BillingModality,
- schedule: BillingSchedule,
- license_management: LicenseManagement | None,
- licenses: int | None,
- seat_count: int,
- exempt_from_license_number_check: bool,
- min_licenses_for_plan: int,
-) -> None:
- if license_management is None: # nocoverage
- raise BillingError("unknown license_management")
- validate_licenses(
- billing_modality == "charge_automatically",
- licenses,
- seat_count,
- exempt_from_license_number_check,
- min_licenses_for_plan,
- )
-
-
# Be extremely careful changing this function. Historical billing periods
# are not stored anywhere, and are just computed on the fly using this
# function. Any change you make here should return the same value (or be
@@ -2112,11 +2092,18 @@ class BillingSession(ABC):
self.ensure_current_plan_is_upgradable(customer, upgrade_request.tier)
billing_modality = upgrade_request.billing_modality
schedule = upgrade_request.schedule
-
license_management = upgrade_request.license_management
+
if billing_modality == "send_invoice":
+ # Automated license management is not supported when paying
+ # by invoice.
license_management = "manual"
+ if license_management is None:
+ raise BillingError("unknown license_management")
+
+ automanage_licenses = license_management == "automatic"
+
licenses = upgrade_request.licenses
request_seat_count = unsign_seat_count(
upgrade_request.signed_seat_count, upgrade_request.salt
@@ -2130,18 +2117,15 @@ class BillingSession(ABC):
exempt_from_license_number_check = (
customer is not None and customer.exempt_from_license_number_check
)
- check_upgrade_parameters(
- billing_modality,
- schedule,
- license_management,
+ charge_automatically = billing_modality == "charge_automatically"
+ validate_licenses(
+ charge_automatically,
licenses,
seat_count,
exempt_from_license_number_check,
self.min_licenses_for_plan(upgrade_request.tier),
)
- assert licenses is not None and license_management is not None
- automanage_licenses = license_management == "automatic"
- charge_automatically = billing_modality == "charge_automatically"
+ assert licenses is not None
billing_schedule = {
"annual": CustomerPlan.BILLING_SCHEDULE_ANNUAL,
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.create.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.create.1.json
index 635b220d7f8..9d6e29da227 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.create.1.json
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
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 4c7fcc0db81..194231d6f1c 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
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
deleted file mode 100644
index 4c7fcc0db81..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.2.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip (Zulip Dev)",
- "discount": null,
- "email": "[email protected]",
- "id": "check_upgrade_parameters--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.3.json
deleted file mode 100644
index 4c7fcc0db81..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.3.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip (Zulip Dev)",
- "discount": null,
- "email": "[email protected]",
- "id": "check_upgrade_parameters--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.4.json
deleted file mode 100644
index 4c7fcc0db81..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.4.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip (Zulip Dev)",
- "discount": null,
- "email": "[email protected]",
- "id": "check_upgrade_parameters--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.5.json
deleted file mode 100644
index 4c7fcc0db81..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.5.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip (Zulip Dev)",
- "discount": null,
- "email": "[email protected]",
- "id": "check_upgrade_parameters--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.6.json
deleted file mode 100644
index 4c7fcc0db81..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.6.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip (Zulip Dev)",
- "discount": null,
- "email": "[email protected]",
- "id": "check_upgrade_parameters--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.7.json
deleted file mode 100644
index 4c7fcc0db81..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.7.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip (Zulip Dev)",
- "discount": null,
- "email": "[email protected]",
- "id": "check_upgrade_parameters--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.8.json
deleted file mode 100644
index 4c7fcc0db81..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.8.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip (Zulip Dev)",
- "discount": null,
- "email": "[email protected]",
- "id": "check_upgrade_parameters--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.9.json
deleted file mode 100644
index 4c7fcc0db81..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.modify.9.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip (Zulip Dev)",
- "discount": null,
- "email": "[email protected]",
- "id": "check_upgrade_parameters--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": "pm_NORMALIZED",
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "realm_id": "1",
- "realm_str": "zulip"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.1.json
index def115ddcf2..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,6 +58,7 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
+ "customer_account": null,
"id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.10.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.10.json
index b2b5da5c899..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.10.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.11.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.11.json
index b2b5da5c899..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.10.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.12.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.12.json
index b2b5da5c899..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.10.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.13.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.13.json
index 6861cd17815..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.13.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.14.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.14.json
index 6861cd17815..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.13.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.15.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.15.json
index 6861cd17815..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.13.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.16.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.16.json
index 1204c7bb7c5..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.16.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.17.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.17.json
index 1204c7bb7c5..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.16.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.18.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.18.json
index 1204c7bb7c5..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.16.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.19.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.19.json
index 29f3b168a22..6835a4cb179 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.19.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.19.json
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.19.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.2.json
index def115ddcf2..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,6 +58,7 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
+ "customer_account": null,
"id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.20.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.20.json
index 29f3b168a22..6835a4cb179 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.20.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.20.json
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.19.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.21.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.21.json
index 29f3b168a22..6835a4cb179 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.21.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.21.json
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.19.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.22.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.22.json
index c4e3e165add..6835a4cb179 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.22.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.22.json
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.22.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.23.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.23.json
index c4e3e165add..6835a4cb179 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.23.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.23.json
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.22.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.24.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.24.json
index c4e3e165add..6835a4cb179 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.24.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.24.json
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.22.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.25.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.25.json
index d6d1badbfff..6835a4cb179 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.25.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.25.json
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.25.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.26.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.26.json
index d6d1badbfff..6835a4cb179 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.26.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.26.json
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.25.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.27.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.27.json
index d6d1badbfff..6835a4cb179 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.27.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.27.json
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.25.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.28.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.28.json
new file mode 100644
index 00000000000..6835a4cb179
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.28.json
@@ -0,0 +1,84 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "customer_account": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip (Zulip Dev)",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "check_upgrade_parameters--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null,
+ "tax_id": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "check_upgrade_parameters--Customer.create.1.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.29.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.29.json
new file mode 100644
index 00000000000..6835a4cb179
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.29.json
@@ -0,0 +1,84 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "customer_account": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip (Zulip Dev)",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "check_upgrade_parameters--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null,
+ "tax_id": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "check_upgrade_parameters--Customer.create.1.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.3.json
index def115ddcf2..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,6 +58,7 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
+ "customer_account": null,
"id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.30.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.30.json
new file mode 100644
index 00000000000..6835a4cb179
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.30.json
@@ -0,0 +1,84 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "customer_account": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip (Zulip Dev)",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "check_upgrade_parameters--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null,
+ "tax_id": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "check_upgrade_parameters--Customer.create.1.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "realm_id": "1",
+ "realm_str": "zulip"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.4.json
index 264057850ac..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.4.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.5.json
index 264057850ac..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.4.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.6.json
index 264057850ac..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.4.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.7.json
index b35f78a1cf5..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.7.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.8.json
index b35f78a1cf5..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.7.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Customer.retrieve.9.json
index b35f78a1cf5..6835a4cb179 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
@@ -3,6 +3,7 @@
"balance": 0,
"created": 1000000000,
"currency": null,
+ "customer_account": null,
"default_source": null,
"delinquent": false,
"description": "zulip (Zulip Dev)",
@@ -57,7 +58,8 @@
},
"created": 1000000000,
"customer": "check_upgrade_parameters--Customer.create.1.json",
- "id": "check_upgrade_parameters--Customer.retrieve.7.json",
+ "customer_account": null,
+ "id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.2.json
deleted file mode 100644
index e39960ab725..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.2.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/invoices"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.3.json
deleted file mode 100644
index e39960ab725..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.3.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/invoices"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.4.json
deleted file mode 100644
index e39960ab725..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.4.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/invoices"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.5.json
deleted file mode 100644
index e39960ab725..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.5.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/invoices"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.6.json
deleted file mode 100644
index e39960ab725..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.6.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/invoices"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.7.json
deleted file mode 100644
index e39960ab725..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.7.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/invoices"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.8.json
deleted file mode 100644
index e39960ab725..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.8.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/invoices"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.9.json
deleted file mode 100644
index e39960ab725..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--Invoice.list.9.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "data": [],
- "has_more": false,
- "object": "list",
- "url": "/v1/invoices"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.1.json
index 13f47d1e7b3..b36ec2cc17c 100644
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.1.json
+++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.1.json
@@ -43,6 +43,7 @@
},
"created": 1000000000,
"customer": null,
+ "customer_account": null,
"id": "check_upgrade_parameters--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.2.json
deleted file mode 100644
index 47845448b9d..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.2.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null,
- "tax_id": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "unchecked",
- "address_postal_code_check": "unchecked",
- "cvc_check": "unchecked"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "regulated_status": "unregulated",
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": null,
- "id": "check_upgrade_parameters--Customer.retrieve.4.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.3.json
deleted file mode 100644
index 31c108b82be..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.3.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null,
- "tax_id": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "unchecked",
- "address_postal_code_check": "unchecked",
- "cvc_check": "unchecked"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "regulated_status": "unregulated",
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": null,
- "id": "check_upgrade_parameters--Customer.retrieve.7.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.4.json
deleted file mode 100644
index 771c3f02909..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.4.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null,
- "tax_id": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "unchecked",
- "address_postal_code_check": "unchecked",
- "cvc_check": "unchecked"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "regulated_status": "unregulated",
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": null,
- "id": "check_upgrade_parameters--Customer.retrieve.10.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.5.json
deleted file mode 100644
index d64e32ad309..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.5.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null,
- "tax_id": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "unchecked",
- "address_postal_code_check": "unchecked",
- "cvc_check": "unchecked"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "regulated_status": "unregulated",
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": null,
- "id": "check_upgrade_parameters--Customer.retrieve.13.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.6.json
deleted file mode 100644
index dce8b180827..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.6.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null,
- "tax_id": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "unchecked",
- "address_postal_code_check": "unchecked",
- "cvc_check": "unchecked"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "regulated_status": "unregulated",
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": null,
- "id": "check_upgrade_parameters--Customer.retrieve.16.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.7.json
deleted file mode 100644
index 4f2bc22094c..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.7.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null,
- "tax_id": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "unchecked",
- "address_postal_code_check": "unchecked",
- "cvc_check": "unchecked"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "regulated_status": "unregulated",
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": null,
- "id": "check_upgrade_parameters--Customer.retrieve.19.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.8.json
deleted file mode 100644
index 6bb981b15a3..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.8.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null,
- "tax_id": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "unchecked",
- "address_postal_code_check": "unchecked",
- "cvc_check": "unchecked"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "regulated_status": "unregulated",
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": null,
- "id": "check_upgrade_parameters--Customer.retrieve.22.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
-}
diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.9.json
deleted file mode 100644
index 4b45f2f1131..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--PaymentMethod.create.9.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null,
- "tax_id": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "unchecked",
- "address_postal_code_check": "unchecked",
- "cvc_check": "unchecked"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "regulated_status": "unregulated",
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": null,
- "id": "check_upgrade_parameters--Customer.retrieve.25.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
-}
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 e72138e67d2..27b870d82f5 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
@@ -5,6 +5,7 @@
"client_secret": "NORMALIZED",
"created": 1000000000,
"customer": "cus_NORMALIZED",
+ "customer_account": null,
"description": null,
"excluded_payment_method_types": null,
"flow_directions": null,
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
deleted file mode 100644
index 5f8a3e47717..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.2.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.2.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index 53f735e3142..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.3.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.3.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index 8409aa85bbe..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.4.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.4.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index d42fa99456d..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.5.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.5.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index 0a7261071eb..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.6.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.6.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index 763996a509c..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.7.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.7.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index dc004a199cb..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.8.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.8.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index 7ec81a44702..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.create.9.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.9.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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 4d6da29b904..20d834e7bbc 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
@@ -7,6 +7,7 @@
"client_secret": "NORMALIZED",
"created": 1000000000,
"customer": "cus_NORMALIZED",
+ "customer_account": null,
"description": null,
"excluded_payment_method_types": null,
"flow_directions": null,
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
deleted file mode 100644
index 52f4862d70b..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.2.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "data": [
- {
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.list.2.json",
- "last_setup_error": null,
- "latest_attempt": null,
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "requires_payment_method",
- "usage": "off_session"
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/setup_intents"
-}
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
deleted file mode 100644
index 7419eb0e71f..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.3.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "data": [
- {
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.list.3.json",
- "last_setup_error": null,
- "latest_attempt": null,
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "requires_payment_method",
- "usage": "off_session"
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/setup_intents"
-}
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
deleted file mode 100644
index c2b680c9b03..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.4.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "data": [
- {
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.list.4.json",
- "last_setup_error": null,
- "latest_attempt": null,
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "requires_payment_method",
- "usage": "off_session"
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/setup_intents"
-}
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
deleted file mode 100644
index 4c80831dba7..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.5.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "data": [
- {
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.list.5.json",
- "last_setup_error": null,
- "latest_attempt": null,
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "requires_payment_method",
- "usage": "off_session"
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/setup_intents"
-}
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
deleted file mode 100644
index c9244263578..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.6.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "data": [
- {
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.list.6.json",
- "last_setup_error": null,
- "latest_attempt": null,
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "requires_payment_method",
- "usage": "off_session"
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/setup_intents"
-}
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
deleted file mode 100644
index 622d22351aa..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.7.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "data": [
- {
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.list.7.json",
- "last_setup_error": null,
- "latest_attempt": null,
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "requires_payment_method",
- "usage": "off_session"
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/setup_intents"
-}
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
deleted file mode 100644
index a8c38b77799..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.8.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "data": [
- {
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.list.8.json",
- "last_setup_error": null,
- "latest_attempt": null,
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "requires_payment_method",
- "usage": "off_session"
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/setup_intents"
-}
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
deleted file mode 100644
index 18abdfd26d6..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.list.9.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "data": [
- {
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.list.9.json",
- "last_setup_error": null,
- "latest_attempt": null,
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": null,
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "requires_payment_method",
- "usage": "off_session"
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/setup_intents"
-}
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 e72138e67d2..27b870d82f5 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
@@ -5,6 +5,7 @@
"client_secret": "NORMALIZED",
"created": 1000000000,
"customer": "cus_NORMALIZED",
+ "customer_account": null,
"description": null,
"excluded_payment_method_types": null,
"flow_directions": null,
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
deleted file mode 100644
index 5f8a3e47717..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.2.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.2.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index 53f735e3142..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.3.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.3.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index 8409aa85bbe..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.4.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.4.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index d42fa99456d..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.5.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.5.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index 0a7261071eb..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.6.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.6.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index 763996a509c..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.7.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.7.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index dc004a199cb..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.8.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.8.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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
deleted file mode 100644
index 7ec81a44702..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--SetupIntent.retrieve.9.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "excluded_payment_method_types": null,
- "flow_directions": null,
- "id": "check_upgrade_parameters--SetupIntent.create.9.json",
- "last_setup_error": null,
- "latest_attempt": "setatt_NORMALIZED",
- "livemode": false,
- "mandate": null,
- "metadata": {},
- "next_action": null,
- "object": "setup_intent",
- "on_behalf_of": null,
- "payment_method": "pm_NORMALIZED",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "mandate_options": null,
- "network": null,
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "single_use_mandate": null,
- "status": "succeeded",
- "usage": "off_session"
-}
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 2ba06dd4b5a..e0cb0883b0d 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
@@ -49,6 +49,7 @@
"terms_of_service_acceptance": null
},
"customer": "cus_NORMALIZED",
+ "customer_account": null,
"customer_creation": null,
"customer_details": {
"address": null,
@@ -64,6 +65,7 @@
"discounts": null,
"expires_at": 1000000000,
"id": "check_upgrade_parameters--checkout.Session.create.1.json",
+ "integration_identifier": null,
"invoice": null,
"invoice_creation": null,
"livemode": false,
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
deleted file mode 100644
index 216a029aa9e..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.2.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.2.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
-}
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
deleted file mode 100644
index f1cde88fab2..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.3.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.3.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
-}
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
deleted file mode 100644
index 91339b0520c..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.4.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.4.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
-}
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
deleted file mode 100644
index 9a4ed2b4b0f..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.5.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.5.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
-}
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
deleted file mode 100644
index 48e2e34833c..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.6.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.6.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
-}
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
deleted file mode 100644
index d70577608b3..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.7.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.7.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
-}
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
deleted file mode 100644
index 7575d9cabb4..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.8.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.8.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
-}
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
deleted file mode 100644
index 5563b90c409..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.9.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.9.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
-}
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 f9b409c3914..7fbb1c27782 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
@@ -51,6 +51,7 @@
"terms_of_service_acceptance": null
},
"customer": "cus_NORMALIZED",
+ "customer_account": null,
"customer_creation": null,
"customer_details": {
"address": null,
@@ -66,6 +67,7 @@
"discounts": null,
"expires_at": 1000000000,
"id": "check_upgrade_parameters--checkout.Session.create.1.json",
+ "integration_identifier": null,
"invoice": null,
"invoice_creation": null,
"livemode": false,
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
deleted file mode 100644
index be88794338c..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.2.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "data": [
- {
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.2.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/checkout/sessions"
-}
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
deleted file mode 100644
index 02f2e7495c1..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.3.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "data": [
- {
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.3.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/checkout/sessions"
-}
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
deleted file mode 100644
index b15a54e36e8..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.4.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "data": [
- {
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.4.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/checkout/sessions"
-}
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
deleted file mode 100644
index 2ec0ffcac21..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.5.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "data": [
- {
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.5.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/checkout/sessions"
-}
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
deleted file mode 100644
index a9a9453d308..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.6.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "data": [
- {
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.6.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/checkout/sessions"
-}
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
deleted file mode 100644
index 18e460e2fe8..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.7.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "data": [
- {
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.7.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/checkout/sessions"
-}
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
deleted file mode 100644
index e52fe3ed6a7..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.8.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "data": [
- {
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.8.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/checkout/sessions"
-}
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
deleted file mode 100644
index c6953840c7e..00000000000
--- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.9.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "data": [
- {
- "adaptive_pricing": {
- "enabled": false
- },
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "provider": null,
- "status": null
- },
- "billing_address_collection": "required",
- "branding_settings": {
- "background_color": "#dbedff",
- "border_style": "rounded",
- "button_color": "#3e6bfe",
- "display_name": "Violet Beam",
- "font_family": "source_sans_pro",
- "icon": {
- "file": "file_1RxpnoDwzgQ85STgf3bBl5KY",
- "type": "file"
- },
- "logo": {
- "file": "file_1RxpnoDwzgQ85STgvEm4ntJu",
- "type": "file"
- }
- },
- "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": null,
- "collected_information": {
- "business_name": null,
- "individual_name": null,
- "shipping_details": null
- },
- "consent": null,
- "consent_collection": null,
- "created": 1000000000,
- "currency": null,
- "currency_conversion": null,
- "custom_fields": [],
- "custom_text": {
- "after_submit": null,
- "shipping_address": null,
- "submit": null,
- "terms_of_service_acceptance": null
- },
- "customer": "cus_NORMALIZED",
- "customer_creation": null,
- "customer_details": {
- "address": null,
- "business_name": null,
- "email": "[email protected]",
- "individual_name": null,
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "discounts": null,
- "expires_at": 1000000000,
- "id": "check_upgrade_parameters--checkout.Session.create.9.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "type": "card_update",
- "user_id": "10"
- },
- "mode": "setup",
- "object": "checkout.session",
- "origin_context": null,
- "payment_intent": null,
- "payment_link": null,
- "payment_method_collection": "always",
- "payment_method_configuration_details": null,
- "payment_method_options": {
- "card": {
- "request_three_d_secure": "automatic"
- }
- },
- "payment_method_types": [
- "card"
- ],
- "payment_status": "no_payment_required",
- "permissions": null,
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping_address_collection": null,
- "shipping_cost": null,
- "shipping_options": [],
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "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_NORMALIZED",
- "wallet_options": null
- }
- ],
- "has_more": true,
- "object": "list",
- "url": "/v1/checkout/sessions"
-}
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py
index c6e666d6bef..27511c2f9a6 100644
--- a/corporate/tests/test_stripe.py
+++ b/corporate/tests/test_stripe.py
@@ -2536,16 +2536,14 @@ class StripeTest(StripeTestCase):
)
self.assert_length(m.output, 1)
- @mock_stripe(tested_timestamp_fields=["created"])
+ @mock_stripe()
def test_check_upgrade_parameters(self, *mocks: Mock) -> None:
- # Tests all the error paths except 'not enough licenses'
def check_error(
error_message: str,
error_description: str,
upgrade_params: Mapping[str, Any],
del_args: Sequence[str] = [],
) -> None:
- self.add_card_to_customer_for_upgrade()
if error_description:
with self.assertLogs("corporate.stripe", "WARNING"):
response = self.upgrade(
@@ -2560,10 +2558,18 @@ class StripeTest(StripeTestCase):
hamlet = self.example_user("hamlet")
self.login_user(hamlet)
+ self.add_card_to_customer_for_upgrade()
check_error("Invalid billing_modality", "", {"billing_modality": "invalid"})
check_error("Invalid schedule", "", {"schedule": "invalid"})
check_error("Invalid license_management", "", {"license_management": "invalid"})
+ check_error(
+ "Something went wrong. Please contact",
+ "unknown license_management",
+ {},
+ del_args=["license_management"],
+ )
+
check_error(
"You must purchase licenses for all active users in your organization (minimum 30).",
"not enough licenses",