Skip to content

armgit / zulip

Public Imported from GitHub
0

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

stripe-tests: Update uses of "legacy" to "complimentary access".

Lauryn Menard12975410597a
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.5.json
deleted file mode 100644
index cbf73f0957e..00000000000
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.5.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json
similarity index 89%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.create.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json
index 537a90b1ca0..a74fe9c5629 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.modify.1.json
similarity index 89%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.modify.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.modify.1.json
index 56f4b39fc5c..ea570e8d5f9 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.modify.1.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.1.json
similarity index 82%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.3.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.1.json
index cbf73f0957e..654c0196fc5 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.1.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.2.json
similarity index 82%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.4.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.2.json
index cbf73f0957e..654c0196fc5 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.2.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.3.json
similarity index 82%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.3.json
index cbf73f0957e..654c0196fc5 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.3.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.4.json
similarity index 82%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.2.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.4.json
index cbf73f0957e..654c0196fc5 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.4.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.5.json
new file mode 100644
index 00000000000..654c0196fc5
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.5.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "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/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.6.json
similarity index 82%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.6.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.6.json
index 8048d6cd5d4..539d6052a1b 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.retrieve.6.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.6.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
"name": null,
"next_invoice_sequence": 2,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.1.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.1.json
index eb1eab45a65..f7f2279508f 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.1.json
@@ -15,7 +15,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -43,12 +43,12 @@
}
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.1.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.1.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "customer.updated"
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json
similarity index 81%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json
index a12780047b0..a6bb1842c77 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json
@@ -44,7 +44,7 @@
"captured": true,
"created": 1000000000,
"currency": "usd",
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"description": "Payment for Invoice",
"destination": null,
"dispute": null,
@@ -53,14 +53,17 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "charge",
"on_behalf_of": null,
"order": null,
"outcome": {
+ "advice_code": null,
+ "network_advice_code": null,
+ "network_decline_code": null,
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
@@ -69,7 +72,7 @@
"type": "authorized"
},
"paid": true,
- "payment_intent": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "payment_intent": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"payment_method": "pm_NORMALIZED",
"payment_method_details": {
"card": {
@@ -102,15 +105,18 @@
"network_token": {
"used": false
},
+ "network_transaction_id": "578875115771051",
"overcapture": {
"maximum_amount_capturable": 4300,
"status": "unavailable"
},
+ "regulated_status": "unregulated",
"three_d_secure": null,
"wallet": null
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",
@@ -120,7 +126,7 @@
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json/refunds"
+ "url": "/v1/charges/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/refunds"
},
"review": null,
"shipping": null,
@@ -136,18 +142,18 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=free_trial_not_available_for_ended_legacy_customer--Event.list.2.json"
+ "url": "/v1/charges?payment_intent=free_trial_not_available_for_complimentary_access_customer--Event.list.2.json"
},
"client_secret": "NORMALIZED",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"description": "Payment for Invoice",
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"last_payment_error": null,
- "latest_charge": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "latest_charge": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"next_action": null,
@@ -181,12 +187,12 @@
"transfer_group": null
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "payment_intent.succeeded"
@@ -220,7 +226,7 @@
"captured": true,
"created": 1000000000,
"currency": "usd",
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"description": "Payment for Invoice",
"destination": null,
"dispute": null,
@@ -229,14 +235,17 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "charge",
"on_behalf_of": null,
"order": null,
"outcome": {
+ "advice_code": null,
+ "network_advice_code": null,
+ "network_decline_code": null,
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
@@ -245,7 +254,7 @@
"type": "authorized"
},
"paid": true,
- "payment_intent": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "payment_intent": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"payment_method": "pm_NORMALIZED",
"payment_method_details": {
"card": {
@@ -278,15 +287,18 @@
"network_token": {
"used": false
},
+ "network_transaction_id": "578875115771051",
"overcapture": {
"maximum_amount_capturable": 4300,
"status": "unavailable"
},
+ "regulated_status": "unregulated",
"three_d_secure": null,
"wallet": null
},
"type": "card"
},
+ "radar_options": {},
"receipt_email": "[email protected]",
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap",
@@ -296,7 +308,7 @@
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json/refunds"
+ "url": "/v1/charges/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/refunds"
},
"review": null,
"shipping": null,
@@ -309,12 +321,12 @@
"transfer_group": null
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "charge.succeeded"
@@ -337,6 +349,7 @@
"attempted": false,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -348,7 +361,7 @@
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -368,7 +381,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -385,9 +398,9 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice_item": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice_item": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -396,13 +409,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -436,9 +450,9 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice_item": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice_item": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -447,13 +461,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -483,7 +498,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -500,7 +515,7 @@
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "payment_intent": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
@@ -543,17 +558,18 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.finalized"
@@ -576,6 +592,7 @@
"attempted": false,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -587,7 +604,7 @@
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -607,7 +624,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -624,9 +641,9 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice_item": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice_item": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -635,13 +652,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -675,9 +693,9 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice_item": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice_item": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -686,13 +704,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -722,7 +741,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -739,7 +758,7 @@
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "payment_intent": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
@@ -782,9 +801,10 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -804,12 +824,12 @@
}
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
@@ -836,16 +856,16 @@
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges?payment_intent=free_trial_not_available_for_ended_legacy_customer--Event.list.2.json"
+ "url": "/v1/charges?payment_intent=free_trial_not_available_for_complimentary_access_customer--Event.list.2.json"
},
"client_secret": "NORMALIZED",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"description": "Payment for Invoice",
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"last_payment_error": null,
"latest_charge": null,
"livemode": false,
@@ -881,12 +901,12 @@
"transfer_group": null
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "payment_intent.created"
@@ -909,6 +929,7 @@
"attempted": false,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -920,7 +941,7 @@
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -940,7 +961,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": null,
"issuer": {
"type": "self"
@@ -957,9 +978,9 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice_item": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice_item": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -968,13 +989,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -1008,9 +1030,9 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice_item": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice_item": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -1019,13 +1041,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -1055,7 +1078,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -1115,17 +1138,18 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.created"
@@ -1137,12 +1161,12 @@
"object": {
"amount": -2000,
"currency": "usd",
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"date": 1000000000,
"description": "$20.00/month new customer discount",
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -1158,7 +1182,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -1182,12 +1206,12 @@
"unit_amount_decimal": "-2000"
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoiceitem.created"
@@ -1199,12 +1223,12 @@
"object": {
"amount": 6300,
"currency": "usd",
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"date": 1000000000,
"description": "Zulip Basic",
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -1220,7 +1244,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -1244,12 +1268,12 @@
"unit_amount_decimal": "350"
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoiceitem.created"
@@ -1269,7 +1293,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -1280,7 +1304,7 @@
"livemode": false,
"metadata": {
"remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
"name": null,
"next_invoice_sequence": 1,
@@ -1296,12 +1320,12 @@
"default_currency": null
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "customer.updated"
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.3.json
similarity index 87%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.3.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.3.json
index 980c5fd85ea..278ede3fb46 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.3.json
@@ -18,6 +18,7 @@
"attempted": true,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -49,7 +50,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -66,8 +67,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -77,13 +78,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -117,8 +119,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -128,13 +130,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -164,7 +167,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -224,17 +227,18 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
"webhooks_delivered_at": 1000000000
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.payment_succeeded"
@@ -257,6 +261,7 @@
"attempted": true,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -288,7 +293,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -305,8 +310,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -316,13 +321,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -356,8 +362,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -367,13 +373,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -403,7 +410,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -463,17 +470,18 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
"webhooks_delivered_at": 1000000000
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
@@ -496,6 +504,7 @@
"attempted": true,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -527,7 +536,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -544,8 +553,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -555,13 +564,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -595,8 +605,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -606,13 +616,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -642,7 +653,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -702,6 +713,7 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
"webhooks_delivered_at": 1000000000
@@ -719,12 +731,12 @@
}
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.4.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.4.json
similarity index 100%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.4.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.4.json
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.create.1.json
similarity index 85%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.create.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.create.1.json
index a06ad96fccd..758d4bdaa9e 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.create.1.json
@@ -12,6 +12,7 @@
"attempted": false,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": null,
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +113,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -122,13 +124,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -158,7 +161,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -218,7 +221,8 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.finalize_invoice.1.json
similarity index 86%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.finalize_invoice.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.finalize_invoice.1.json
index 6282c26c6e6..ede06e86963 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.finalize_invoice.1.json
@@ -12,6 +12,7 @@
"attempted": false,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +113,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -122,13 +124,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -158,7 +161,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -218,7 +221,8 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.list.1.json
similarity index 100%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.list.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.list.1.json
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.pay.1.json
similarity index 86%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.pay.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.pay.1.json
index 6845dc71456..75635f4063b 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.pay.1.json
@@ -12,6 +12,7 @@
"attempted": true,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +113,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.3.json",
- "invoice": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -122,13 +124,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -158,7 +161,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_ended_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -218,6 +221,7 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
"webhooks_delivered_at": 1000000000
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.1.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--InvoiceItem.create.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.1.json
index 62431e6a6a6..25449db2071 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.1.json
@@ -6,7 +6,7 @@
"description": "Zulip Basic",
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.2.json
similarity index 85%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--InvoiceItem.create.2.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.2.json
index 9b14289aa3f..69c63987c7a 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.2.json
@@ -6,7 +6,7 @@
"description": "$20.00/month new customer discount",
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--PaymentMethod.create.1.json
similarity index 88%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--PaymentMethod.create.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--PaymentMethod.create.1.json
index 918fa2dd2a3..168cff709e4 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--PaymentMethod.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--PaymentMethod.create.1.json
@@ -34,6 +34,7 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
@@ -41,7 +42,7 @@
},
"created": 1000000000,
"customer": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.create.1.json
similarity index 89%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--SetupIntent.create.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.create.1.json
index b56e57fd77f..5763987f096 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.create.1.json
@@ -7,7 +7,7 @@
"customer": "cus_NORMALIZED",
"description": null,
"flow_directions": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--SetupIntent.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--SetupIntent.create.1.json",
"last_setup_error": null,
"latest_attempt": "setatt_NORMALIZED",
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.list.1.json
similarity index 91%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--SetupIntent.list.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.list.1.json
index 53811b05a2e..c982b0c5955 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.list.1.json
@@ -9,7 +9,7 @@
"customer": "cus_NORMALIZED",
"description": null,
"flow_directions": null,
- "id": "free_trial_not_available_for_active_legacy_customer--SetupIntent.list.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--SetupIntent.list.1.json",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.retrieve.1.json
similarity index 89%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--SetupIntent.retrieve.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.retrieve.1.json
index 089b0cdad24..5763987f096 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--SetupIntent.retrieve.1.json
@@ -7,7 +7,7 @@
"customer": "cus_NORMALIZED",
"description": null,
"flow_directions": null,
- "id": "free_trial_not_available_for_active_legacy_customer--SetupIntent.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--SetupIntent.create.1.json",
"last_setup_error": null,
"latest_attempt": "setatt_NORMALIZED",
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--checkout.Session.create.1.json
similarity index 92%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--checkout.Session.create.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--checkout.Session.create.1.json
index 445ec7be118..67251886946 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--checkout.Session.create.1.json
@@ -1,4 +1,5 @@
{
+ "adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": null,
@@ -36,13 +37,13 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "free_trial_not_available_for_ended_legacy_customer--checkout.Session.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--checkout.Session.create.1.json",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_server_user_id": "4",
+ "remote_server_user_id": "1",
"type": "card_update"
},
"mode": "setup",
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--checkout.Session.list.1.json
similarity index 93%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--checkout.Session.list.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--checkout.Session.list.1.json
index ba1c58de249..920b10c98bc 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--checkout.Session.list.1.json
@@ -1,6 +1,7 @@
{
"data": [
{
+ "adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": null,
@@ -38,13 +39,13 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "free_trial_not_available_for_active_legacy_customer--checkout.Session.create.1.json",
+ "id": "free_trial_not_available_for_complimentary_access_customer--checkout.Session.create.1.json",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_server_user_id": "3",
+ "remote_server_user_id": "1",
"type": "card_update"
},
"mode": "setup",
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json
deleted file mode 100644
index 7a8a0e99253..00000000000
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.2.json
deleted file mode 100644
index 7a8a0e99253..00000000000
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.2.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.3.json
deleted file mode 100644
index 7a8a0e99253..00000000000
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.3.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.4.json
deleted file mode 100644
index 7a8a0e99253..00000000000
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.4.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.5.json
deleted file mode 100644
index 7a8a0e99253..00000000000
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.5.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json
similarity index 88%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json
index 6ccb6083656..64f32877a01 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.modify.1.json
similarity index 88%
rename from corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.modify.1.json
index c52a8c19aff..de6cbf0327f 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.modify.1.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.1.json
new file mode 100644
index 00000000000..438b8227683
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.1.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "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/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.2.json
new file mode 100644
index 00000000000..438b8227683
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.2.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "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/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.3.json
new file mode 100644
index 00000000000..438b8227683
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.3.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "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/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.4.json
new file mode 100644
index 00000000000..438b8227683
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.4.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "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/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.5.json
new file mode 100644
index 00000000000..438b8227683
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.5.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "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/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.6.json
similarity index 81%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.6.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.6.json
index 7b39c48644d..327e216751d 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.6.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.6.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json",
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
"name": null,
"next_invoice_sequence": 2,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json
similarity index 83%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json
index 0e4beadeafe..7c1ceb7e524 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json
@@ -15,7 +15,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -43,12 +43,12 @@
}
}
},
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_ended_legacy_customer--Event.list.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "customer.updated"
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json
similarity index 80%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.2.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json
index 3651863e77a..3051c685ee1 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json
@@ -44,7 +44,7 @@
"captured": true,
"created": 1000000000,
"currency": "usd",
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"description": "Payment for Invoice",
"destination": null,
"dispute": null,
@@ -53,14 +53,17 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "charge",
"on_behalf_of": null,
"order": null,
"outcome": {
+ "advice_code": null,
+ "network_advice_code": null,
+ "network_decline_code": null,
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
@@ -69,7 +72,7 @@
"type": "authorized"
},
"paid": true,
- "payment_intent": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "payment_intent": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"payment_method": "pm_NORMALIZED",
"payment_method_details": {
"card": {
@@ -102,10 +105,12 @@
"network_token": {
"used": false
},
+ "network_transaction_id": "578875115771051",
"overcapture": {
"maximum_amount_capturable": 4300,
"status": "unavailable"
},
+ "regulated_status": "unregulated",
"three_d_secure": null,
"wallet": null
},
@@ -121,7 +126,7 @@
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/free_trial_not_available_for_active_legacy_customer--Event.list.2.json/refunds"
+ "url": "/v1/charges/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/refunds"
},
"review": null,
"shipping": null,
@@ -137,18 +142,18 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/charges?payment_intent=free_trial_not_available_for_active_legacy_customer--Event.list.2.json"
+ "url": "/v1/charges?payment_intent=free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json"
},
"client_secret": "NORMALIZED",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"description": "Payment for Invoice",
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"last_payment_error": null,
- "latest_charge": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "latest_charge": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"next_action": null,
@@ -182,12 +187,12 @@
"transfer_group": null
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "payment_intent.succeeded"
@@ -221,7 +226,7 @@
"captured": true,
"created": 1000000000,
"currency": "usd",
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"description": "Payment for Invoice",
"destination": null,
"dispute": null,
@@ -230,14 +235,17 @@
"failure_code": null,
"failure_message": null,
"fraud_details": {},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "charge",
"on_behalf_of": null,
"order": null,
"outcome": {
+ "advice_code": null,
+ "network_advice_code": null,
+ "network_decline_code": null,
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
@@ -246,7 +254,7 @@
"type": "authorized"
},
"paid": true,
- "payment_intent": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "payment_intent": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"payment_method": "pm_NORMALIZED",
"payment_method_details": {
"card": {
@@ -279,10 +287,12 @@
"network_token": {
"used": false
},
+ "network_transaction_id": "578875115771051",
"overcapture": {
"maximum_amount_capturable": 4300,
"status": "unavailable"
},
+ "regulated_status": "unregulated",
"three_d_secure": null,
"wallet": null
},
@@ -298,7 +308,7 @@
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges/free_trial_not_available_for_active_legacy_customer--Event.list.2.json/refunds"
+ "url": "/v1/charges/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/refunds"
},
"review": null,
"shipping": null,
@@ -311,12 +321,12 @@
"transfer_group": null
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 2,
+ "pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "charge.succeeded"
@@ -339,6 +349,7 @@
"attempted": false,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -350,7 +361,7 @@
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -370,7 +381,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -387,9 +398,9 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice_item": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice_item": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -398,13 +409,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -438,9 +450,9 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice_item": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice_item": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -449,13 +461,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -485,7 +498,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_active_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -502,7 +515,7 @@
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "payment_intent": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
@@ -545,17 +558,18 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.finalized"
@@ -578,6 +592,7 @@
"attempted": false,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -589,7 +604,7 @@
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -609,7 +624,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -626,9 +641,9 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice_item": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice_item": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -637,13 +652,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -677,9 +693,9 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice_item": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice_item": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -688,13 +704,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -724,7 +741,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_active_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -741,7 +758,7 @@
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
- "payment_intent": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "payment_intent": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
@@ -784,9 +801,10 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
},
"previous_attributes": {
"effective_at": null,
@@ -806,12 +824,12 @@
}
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
@@ -838,16 +856,16 @@
"has_more": false,
"object": "list",
"total_count": 0,
- "url": "/v1/charges?payment_intent=free_trial_not_available_for_active_legacy_customer--Event.list.2.json"
+ "url": "/v1/charges?payment_intent=free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json"
},
"client_secret": "NORMALIZED",
"confirmation_method": "automatic",
"created": 1000000000,
"currency": "usd",
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"description": "Payment for Invoice",
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"last_payment_error": null,
"latest_charge": null,
"livemode": false,
@@ -883,12 +901,12 @@
"transfer_group": null
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "payment_intent.created"
@@ -911,6 +929,7 @@
"attempted": false,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -922,7 +941,7 @@
"created": 1000000000,
"currency": "usd",
"custom_fields": null,
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"customer_address": null,
"customer_email": "[email protected]",
"customer_name": null,
@@ -942,7 +961,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": null,
"issuer": {
"type": "self"
@@ -959,9 +978,9 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice_item": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice_item": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -970,13 +989,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -1010,9 +1030,9 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice_item": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice_item": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"metadata": {},
"object": "line_item",
@@ -1021,13 +1041,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -1057,7 +1078,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_active_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -1117,17 +1138,18 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.created"
@@ -1139,12 +1161,12 @@
"object": {
"amount": -2000,
"currency": "usd",
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"date": 1000000000,
"description": "$20.00/month new customer discount",
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -1160,7 +1182,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -1184,12 +1206,12 @@
"unit_amount_decimal": "-2000"
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoiceitem.created"
@@ -1201,12 +1223,12 @@
"object": {
"amount": 6300,
"currency": "usd",
- "customer": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"date": 1000000000,
"description": "Zulip Basic",
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -1222,7 +1244,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -1246,12 +1268,12 @@
"unit_amount_decimal": "350"
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoiceitem.created"
@@ -1271,7 +1293,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -1282,7 +1304,7 @@
"livemode": false,
"metadata": {
"remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
"name": null,
"next_invoice_sequence": 1,
@@ -1298,12 +1320,12 @@
"default_currency": null
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "customer.updated"
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json
similarity index 85%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.3.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json
index 8753184b8ea..45f3e4d62e7 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Event.list.3.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json
@@ -18,6 +18,7 @@
"attempted": true,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -49,7 +50,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -66,8 +67,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -77,13 +78,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -117,8 +119,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -128,13 +130,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -164,7 +167,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_active_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -224,17 +227,18 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
"webhooks_delivered_at": 1000000000
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.3.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json",
"livemode": false,
"object": "event",
- "pending_webhooks": 1,
+ "pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.payment_succeeded"
@@ -257,6 +261,7 @@
"attempted": true,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -288,7 +293,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -305,8 +310,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -316,13 +321,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -356,8 +362,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -367,13 +373,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -403,7 +410,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_active_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -463,17 +470,18 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
"webhooks_delivered_at": 1000000000
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.3.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.paid"
@@ -496,6 +504,7 @@
"attempted": true,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -527,7 +536,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -544,8 +553,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -555,13 +564,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -595,8 +605,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -606,13 +616,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -642,7 +653,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_active_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -702,6 +713,7 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
"webhooks_delivered_at": 1000000000
@@ -719,12 +731,12 @@
}
}
},
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.3.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json",
"livemode": false,
"object": "event",
"pending_webhooks": 0,
"request": {
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"idempotency_key": "00000000-0000-0000-0000-000000000000"
},
"type": "invoice.updated"
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.4.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.4.json
similarity index 100%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Event.list.4.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.4.json
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.create.1.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.create.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.create.1.json
index f58a5b160dc..47b8b1e2c7d 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.create.1.json
@@ -12,6 +12,7 @@
"attempted": false,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": null,
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +113,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -122,13 +124,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -158,7 +161,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_active_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -218,7 +221,8 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.finalize_invoice.1.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.finalize_invoice.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.finalize_invoice.1.json
index c0002479bfc..b6869b8a984 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.finalize_invoice.1.json
@@ -12,6 +12,7 @@
"attempted": false,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +113,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -122,13 +124,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -158,7 +161,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_active_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -218,7 +221,8 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.list.1.json
similarity index 100%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Invoice.list.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.list.1.json
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.pay.1.json
similarity index 85%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.pay.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.pay.1.json
index 3ba28ce81a0..8eb2f5951ff 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Invoice.pay.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.pay.1.json
@@ -12,6 +12,7 @@
"attempted": true,
"auto_advance": false,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +113,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
- "invoice": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
+ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -122,13 +124,14 @@
"start": 1325473445
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -158,7 +161,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/free_trial_not_available_for_active_legacy_customer--Event.list.2.json/lines"
+ "url": "/v1/invoices/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json/lines"
},
"livemode": false,
"metadata": {
@@ -218,6 +221,7 @@
"total": 4300,
"total_discount_amounts": [],
"total_excluding_tax": 4300,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
"webhooks_delivered_at": 1000000000
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.1.json
similarity index 83%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--InvoiceItem.create.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.1.json
index 3c381069733..0ff8ebaf2c6 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.1.json
@@ -6,7 +6,7 @@
"description": "Zulip Basic",
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.2.json
similarity index 83%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--InvoiceItem.create.2.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.2.json
index 34d6b55ee3c..9e005fbf538 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.2.json
@@ -6,7 +6,7 @@
"description": "$20.00/month new customer discount",
"discountable": false,
"discounts": [],
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Event.list.2.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--PaymentMethod.create.1.json
new file mode 100644
index 00000000000..f6aee93dde2
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--PaymentMethod.create.1.json
@@ -0,0 +1,50 @@
+{
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "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": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.create.1.json
new file mode 100644
index 00000000000..4466b6148a6
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.create.1.json
@@ -0,0 +1,34 @@
+{
+ "application": null,
+ "automatic_payment_methods": null,
+ "cancellation_reason": null,
+ "client_secret": "NORMALIZED",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED",
+ "description": null,
+ "flow_directions": null,
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.create.1.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/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.list.1.json
new file mode 100644
index 00000000000..892e0287b8f
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.list.1.json
@@ -0,0 +1,41 @@
+{
+ "data": [
+ {
+ "application": null,
+ "automatic_payment_methods": null,
+ "cancellation_reason": null,
+ "client_secret": "NORMALIZED",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED",
+ "description": null,
+ "flow_directions": null,
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.list.1.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": false,
+ "object": "list",
+ "url": "/v1/setup_intents"
+}
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.retrieve.1.json
new file mode 100644
index 00000000000..4466b6148a6
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.retrieve.1.json
@@ -0,0 +1,34 @@
+{
+ "application": null,
+ "automatic_payment_methods": null,
+ "cancellation_reason": null,
+ "client_secret": "NORMALIZED",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED",
+ "description": null,
+ "flow_directions": null,
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--SetupIntent.create.1.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/invoice_scheduled_upgrade_server_legacy_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--checkout.Session.create.1.json
similarity index 92%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--checkout.Session.create.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--checkout.Session.create.1.json
index e37f1876b3e..cddf006071f 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--checkout.Session.create.1.json
@@ -1,4 +1,5 @@
{
+ "adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": null,
@@ -36,13 +37,13 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--checkout.Session.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--checkout.Session.create.1.json",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_server_user_id": "7",
+ "remote_server_user_id": "1",
"type": "card_update"
},
"mode": "setup",
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--checkout.Session.list.1.json
similarity index 93%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--checkout.Session.list.1.json
rename to corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--checkout.Session.list.1.json
index 31128d234fc..29b93b0aa29 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--checkout.Session.list.1.json
@@ -1,6 +1,7 @@
{
"data": [
{
+ "adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": null,
@@ -38,13 +39,13 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "free_trial_not_available_for_ended_legacy_customer--checkout.Session.create.1.json",
+ "id": "free_trial_not_available_for_previous_complimentary_access_customer--checkout.Session.create.1.json",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_server_user_id": "4",
+ "remote_server_user_id": "1",
"type": "card_update"
},
"mode": "setup",
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json
similarity index 75%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json
index ecc96417280..94d512c678e 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json
@@ -6,10 +6,10 @@
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 3383e261-95a",
+ "description": "zulip.testserver 02be9d36-17a",
"discount": null,
"email": "[email protected]",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -20,7 +20,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.modify.1.json
similarity index 76%
rename from corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.modify.1.json
index 00831564f36..6aff5f91846 100644
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.modify.1.json
@@ -6,10 +6,10 @@
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 3383e261-95a",
+ "description": "zulip.testserver 02be9d36-17a",
"discount": null,
"email": "[email protected]",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -20,7 +20,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json
similarity index 79%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json
index 492260167be..d89820caa41 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json
@@ -6,10 +6,10 @@
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 3383e261-15a",
+ "description": "zulip.testserver 02be9d36-17a",
"discount": null,
"email": "[email protected]",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json",
+ "customer": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.2.json
similarity index 79%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.2.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.2.json
index 492260167be..d89820caa41 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.2.json
@@ -6,10 +6,10 @@
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 3383e261-15a",
+ "description": "zulip.testserver 02be9d36-17a",
"discount": null,
"email": "[email protected]",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json",
+ "customer": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.3.json
similarity index 79%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.3.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.3.json
index 492260167be..d89820caa41 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.3.json
@@ -6,10 +6,10 @@
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 3383e261-15a",
+ "description": "zulip.testserver 02be9d36-17a",
"discount": null,
"email": "[email protected]",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json",
+ "customer": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.4.json
similarity index 79%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.4.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.4.json
index 492260167be..d89820caa41 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.4.json
@@ -6,10 +6,10 @@
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 3383e261-15a",
+ "description": "zulip.testserver 02be9d36-17a",
"discount": null,
"email": "[email protected]",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json",
+ "customer": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.5.json
new file mode 100644
index 00000000000..d89820caa41
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.5.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip.testserver 02be9d36-17a",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_realm_host": "zulip.testserver",
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json
index 88c12937c9e..3820addf747 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json
@@ -12,6 +12,7 @@
"attempted": false,
"auto_advance": true,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"invoice_pdf": null,
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
- "invoice": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
+ "invoice": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +113,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
- "invoice": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
+ "invoice": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -122,13 +124,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -158,7 +161,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json/lines"
+ "url": "/v1/invoices/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json/lines"
},
"livemode": false,
"metadata": {},
@@ -211,7 +214,8 @@
"total": 176000,
"total_discount_amounts": [],
"total_excluding_tax": 176000,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.finalize_invoice.1.json
similarity index 85%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.finalize_invoice.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.finalize_invoice.1.json
index 9a0714b3718..086e86a2725 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.finalize_invoice.1.json
@@ -12,6 +12,7 @@
"attempted": false,
"auto_advance": true,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
- "invoice": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
+ "invoice": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +113,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
- "invoice": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
+ "invoice": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -122,13 +124,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -158,7 +161,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json/lines"
+ "url": "/v1/invoices/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json/lines"
},
"livemode": false,
"metadata": {},
@@ -211,7 +214,8 @@
"total": 176000,
"total_discount_amounts": [],
"total_excluding_tax": 176000,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.list.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.list.1.json
similarity index 100%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.list.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.list.1.json
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.list.2.json
similarity index 86%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.list.2.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.list.2.json
index cbac1e35169..9ccfd34f72f 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.list.2.json
@@ -14,6 +14,7 @@
"attempted": false,
"auto_advance": true,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -45,7 +46,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -62,8 +63,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
- "invoice": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
+ "invoice": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -73,13 +74,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -113,8 +115,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
- "invoice": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
+ "invoice": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -124,13 +126,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -160,7 +163,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json/lines"
+ "url": "/v1/invoices/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json/lines"
},
"livemode": false,
"metadata": {},
@@ -213,9 +216,10 @@
"total": 176000,
"total_discount_amounts": [],
"total_excluding_tax": 176000,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.1.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--InvoiceItem.create.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.1.json
index 8714d689219..4c6da4b90da 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.1.json
@@ -6,7 +6,7 @@
"description": "Zulip Business - renewal",
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--InvoiceItem.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.1.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.2.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--InvoiceItem.create.2.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.2.json
index d728133de26..53e33076e87 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.2.json
@@ -6,7 +6,7 @@
"description": "$20.00/month new customer discount",
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_server_legacy_plan--InvoiceItem.create.2.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.2.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--PaymentMethod.create.1.json
similarity index 88%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--PaymentMethod.create.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--PaymentMethod.create.1.json
index 212936f29c5..598d372ff7e 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--PaymentMethod.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--PaymentMethod.create.1.json
@@ -34,6 +34,7 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
@@ -41,7 +42,7 @@
},
"created": 1000000000,
"customer": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.retrieve.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.create.1.json
similarity index 89%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--SetupIntent.retrieve.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.create.1.json
index b56e57fd77f..0158730631d 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.create.1.json
@@ -7,7 +7,7 @@
"customer": "cus_NORMALIZED",
"description": null,
"flow_directions": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--SetupIntent.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.create.1.json",
"last_setup_error": null,
"latest_attempt": "setatt_NORMALIZED",
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.list.1.json
similarity index 91%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--SetupIntent.list.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.list.1.json
index 126e192005a..70979c9b7f7 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.list.1.json
@@ -9,7 +9,7 @@
"customer": "cus_NORMALIZED",
"description": null,
"flow_directions": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--SetupIntent.list.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.list.1.json",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.retrieve.1.json
similarity index 89%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--SetupIntent.create.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.retrieve.1.json
index 089b0cdad24..0158730631d 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.retrieve.1.json
@@ -7,7 +7,7 @@
"customer": "cus_NORMALIZED",
"description": null,
"flow_directions": null,
- "id": "free_trial_not_available_for_active_legacy_customer--SetupIntent.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--SetupIntent.create.1.json",
"last_setup_error": null,
"latest_attempt": "setatt_NORMALIZED",
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json
similarity index 81%
rename from corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json
index 1094efd7bb5..9fc980e7126 100644
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json
@@ -1,4 +1,5 @@
{
+ "adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": null,
@@ -9,7 +10,7 @@
"status": null
},
"billing_address_collection": "required",
- "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/02be9d36-17a9-4ae3-af50-773b5f93c245/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -36,13 +37,13 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_realm_user_id": "9",
+ "remote_realm_user_id": "1",
"type": "card_update"
},
"mode": "setup",
@@ -73,7 +74,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/02be9d36-17a9-4ae3-af50-773b5f93c245/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.list.1.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.list.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.list.1.json
index d87ff8bf169..ffee767d8b1 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.list.1.json
@@ -1,6 +1,7 @@
{
"data": [
{
+ "adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": null,
@@ -11,7 +12,7 @@
"status": null
},
"billing_address_collection": "required",
- "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/02be9d36-17a9-4ae3-af50-773b5f93c245/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -38,13 +39,13 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.create.1.json",
+ "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_realm_user_id": "4",
+ "remote_realm_user_id": "1",
"type": "card_update"
},
"mode": "setup",
@@ -75,7 +76,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/02be9d36-17a9-4ae3-af50-773b5f93c245/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.5.json
deleted file mode 100644
index 492260167be..00000000000
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.5.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip.testserver 3383e261-15a",
- "discount": null,
- "email": "[email protected]",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--SetupIntent.create.1.json
deleted file mode 100644
index 0a0659ed874..00000000000
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--SetupIntent.create.1.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "flow_directions": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--SetupIntent.create.1.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/invoice_scheduled_upgrade_realm_legacy_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--SetupIntent.retrieve.1.json
deleted file mode 100644
index 0a0659ed874..00000000000
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--SetupIntent.retrieve.1.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "flow_directions": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--SetupIntent.create.1.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/invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json
similarity index 89%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json
index ef55875cc3e..dbc70c8be99 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.modify.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.modify.1.json
similarity index 89%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.modify.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.modify.1.json
index bbb2b0da6fe..90874e43111 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.modify.1.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.1.json
new file mode 100644
index 00000000000..a2c56451032
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.1.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.2.json
new file mode 100644
index 00000000000..a2c56451032
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.2.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.3.json
new file mode 100644
index 00000000000..a2c56451032
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.3.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.4.json
new file mode 100644
index 00000000000..a2c56451032
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.4.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.5.json
new file mode 100644
index 00000000000..a2c56451032
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.5.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json
index dce46aa6895..67cfd6aa648 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json
@@ -12,6 +12,7 @@
"attempted": false,
"auto_advance": true,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"invoice_pdf": null,
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
- "invoice": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
+ "invoice": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +113,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
- "invoice": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
+ "invoice": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -122,13 +124,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -158,7 +161,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json/lines"
+ "url": "/v1/invoices/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json/lines"
},
"livemode": false,
"metadata": {},
@@ -211,7 +214,8 @@
"total": 176000,
"total_discount_amounts": [],
"total_excluding_tax": 176000,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.finalize_invoice.1.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.finalize_invoice.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.finalize_invoice.1.json
index 7d81545c602..aa7c4709c78 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.finalize_invoice.1.json
@@ -12,6 +12,7 @@
"attempted": false,
"auto_advance": true,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
- "invoice": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
+ "invoice": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -111,8 +113,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
- "invoice": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
+ "invoice": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -122,13 +124,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -158,7 +161,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json/lines"
+ "url": "/v1/invoices/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json/lines"
},
"livemode": false,
"metadata": {},
@@ -211,7 +214,8 @@
"total": 176000,
"total_discount_amounts": [],
"total_excluding_tax": 176000,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.list.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.1.json
similarity index 100%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Invoice.list.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.1.json
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.2.json
similarity index 86%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.list.2.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.2.json
index b9dd294e796..eeee262467a 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.list.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.2.json
@@ -14,6 +14,7 @@
"attempted": false,
"auto_advance": true,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -45,7 +46,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -62,8 +63,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
- "invoice": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
+ "invoice": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -73,13 +74,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -113,8 +115,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
- "invoice": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
+ "invoice": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -124,13 +126,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -160,7 +163,7 @@
"has_more": false,
"object": "list",
"total_count": 2,
- "url": "/v1/invoices/invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json/lines"
+ "url": "/v1/invoices/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json/lines"
},
"livemode": false,
"metadata": {},
@@ -213,9 +216,10 @@
"total": 176000,
"total_discount_amounts": [],
"total_excluding_tax": 176000,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
],
"has_more": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.1.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--InvoiceItem.create.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.1.json
index c821ab35a32..46669317b8d 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.1.json
@@ -6,7 +6,7 @@
"description": "Zulip Business - renewal",
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_server_legacy_plan--InvoiceItem.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.1.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.2.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--InvoiceItem.create.2.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.2.json
index 852b9eca289..54fd853f9a1 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--InvoiceItem.create.2.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.2.json
@@ -6,7 +6,7 @@
"description": "$20.00/month new customer discount",
"discountable": false,
"discounts": [],
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--InvoiceItem.create.2.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.2.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Invoice.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--PaymentMethod.create.1.json
similarity index 88%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--PaymentMethod.create.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--PaymentMethod.create.1.json
index 9a19d36742a..f1aaa370915 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--PaymentMethod.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--PaymentMethod.create.1.json
@@ -34,6 +34,7 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
@@ -41,7 +42,7 @@
},
"created": 1000000000,
"customer": null,
- "id": "free_trial_not_available_for_active_legacy_customer--Customer.retrieve.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.create.1.json
new file mode 100644
index 00000000000..2a3d4e7cfb0
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.create.1.json
@@ -0,0 +1,34 @@
+{
+ "application": null,
+ "automatic_payment_methods": null,
+ "cancellation_reason": null,
+ "client_secret": "NORMALIZED",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED",
+ "description": null,
+ "flow_directions": null,
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.create.1.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/invoice_scheduled_upgrade_server_legacy_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.list.1.json
similarity index 91%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--SetupIntent.list.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.list.1.json
index ee4535c6126..077b082999a 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.list.1.json
@@ -9,7 +9,7 @@
"customer": "cus_NORMALIZED",
"description": null,
"flow_directions": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--SetupIntent.list.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.list.1.json",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.retrieve.1.json
new file mode 100644
index 00000000000..2a3d4e7cfb0
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.retrieve.1.json
@@ -0,0 +1,34 @@
+{
+ "application": null,
+ "automatic_payment_methods": null,
+ "cancellation_reason": null,
+ "client_secret": "NORMALIZED",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED",
+ "description": null,
+ "flow_directions": null,
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--SetupIntent.create.1.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/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.create.1.json
similarity index 92%
rename from corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.create.1.json
index 2eea6874bc0..5972c8623c9 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.create.1.json
@@ -1,4 +1,5 @@
{
+ "adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": null,
@@ -36,13 +37,13 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.create.1.json",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_server_user_id": "11",
+ "remote_server_user_id": "1",
"type": "card_update"
},
"mode": "setup",
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.list.1.json
similarity index 93%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--checkout.Session.list.1.json
rename to corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.list.1.json
index 56c07b4beb8..c28c3df0e53 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.list.1.json
@@ -1,6 +1,7 @@
{
"data": [
{
+ "adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": null,
@@ -38,13 +39,13 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--checkout.Session.create.1.json",
+ "id": "invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.create.1.json",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_server_user_id": "7",
+ "remote_server_user_id": "1",
"type": "card_update"
},
"mode": "setup",
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.5.json
deleted file mode 100644
index 7b1e11d7750..00000000000
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.5.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--SetupIntent.create.1.json
deleted file mode 100644
index 3cad2e262b0..00000000000
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--SetupIntent.create.1.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "flow_directions": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--SetupIntent.create.1.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/invoice_scheduled_upgrade_server_legacy_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--SetupIntent.retrieve.1.json
deleted file mode 100644
index 3cad2e262b0..00000000000
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--SetupIntent.retrieve.1.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "flow_directions": null,
- "id": "invoice_scheduled_upgrade_server_legacy_plan--SetupIntent.create.1.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/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
similarity index 75%
rename from corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
rename to corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
index cb80ccaf4dc..88714ea1f9d 100644
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
@@ -6,10 +6,10 @@
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 3383e261-95a",
+ "description": "zulip.testserver 02be9d36-17a",
"discount": null,
"email": "[email protected]",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -20,7 +20,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
similarity index 75%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.modify.1.json
rename to corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
index 27cf50c9170..8998779ddc0 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
@@ -6,10 +6,10 @@
"default_currency": null,
"default_source": null,
"delinquent": false,
- "description": "zulip.testserver 3383e261-95a",
+ "description": "zulip.testserver 02be9d36-17a",
"discount": null,
"email": "[email protected]",
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -20,7 +20,7 @@
"livemode": false,
"metadata": {
"remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-95a9-4f36-ae0c-4ecf80fab561"
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json
new file mode 100644
index 00000000000..2e725b4e398
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip.testserver 02be9d36-17a",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_realm_host": "zulip.testserver",
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json
new file mode 100644
index 00000000000..2e725b4e398
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip.testserver 02be9d36-17a",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_realm_host": "zulip.testserver",
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json
new file mode 100644
index 00000000000..2e725b4e398
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip.testserver 02be9d36-17a",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_realm_host": "zulip.testserver",
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json
new file mode 100644
index 00000000000..2e725b4e398
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip.testserver 02be9d36-17a",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_realm_host": "zulip.testserver",
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json
new file mode 100644
index 00000000000..2e725b4e398
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "zulip.testserver 02be9d36-17a",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_realm_host": "zulip.testserver",
+ "remote_realm_uuid": "02be9d36-17a9-4ae3-af50-773b5f93c245"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
similarity index 85%
rename from corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
rename to corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
index e78bbdc9f0e..79ef198afd2 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
@@ -12,6 +12,7 @@
"attempted": false,
"auto_advance": true,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"invoice_pdf": null,
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
- "invoice": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "invoice": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -107,7 +109,7 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json/lines"
+ "url": "/v1/invoices/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json/lines"
},
"livemode": false,
"metadata": {},
@@ -160,7 +162,8 @@
"total": 120000,
"total_discount_amounts": [],
"total_excluding_tax": 120000,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
similarity index 86%
rename from corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
rename to corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
index 3e234bd38b2..23fcfa22381 100644
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
@@ -12,6 +12,7 @@
"attempted": false,
"auto_advance": true,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
- "invoice": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "invoice": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -107,7 +109,7 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json/lines"
+ "url": "/v1/invoices/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json/lines"
},
"livemode": false,
"metadata": {},
@@ -160,7 +162,8 @@
"total": 120000,
"total_discount_amounts": [],
"total_excluding_tax": 120000,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.list.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.list.1.json
similarity index 100%
rename from corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.list.1.json
rename to corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.list.1.json
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json
similarity index 83%
rename from corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json
rename to corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json
index ee0a2b762ef..0fe267b9de3 100644
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json
@@ -6,7 +6,7 @@
"description": "Zulip Business - renewal",
"discountable": false,
"discounts": [],
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json
new file mode 100644
index 00000000000..c739cc618ae
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json
@@ -0,0 +1,50 @@
+{
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "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": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
new file mode 100644
index 00000000000..80fdf174a60
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
@@ -0,0 +1,34 @@
+{
+ "application": null,
+ "automatic_payment_methods": null,
+ "cancellation_reason": null,
+ "client_secret": "NORMALIZED",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED",
+ "description": null,
+ "flow_directions": null,
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.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/free_trial_not_available_for_ended_legacy_customer--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
similarity index 90%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--SetupIntent.list.1.json
rename to corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
index 19565ee9b31..b402d705232 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
@@ -9,7 +9,7 @@
"customer": "cus_NORMALIZED",
"description": null,
"flow_directions": null,
- "id": "free_trial_not_available_for_ended_legacy_customer--SetupIntent.list.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
new file mode 100644
index 00000000000..80fdf174a60
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
@@ -0,0 +1,34 @@
+{
+ "application": null,
+ "automatic_payment_methods": null,
+ "cancellation_reason": null,
+ "client_secret": "NORMALIZED",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED",
+ "description": null,
+ "flow_directions": null,
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.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/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json
similarity index 81%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.create.1.json
rename to corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json
index cc0f9289c4b..553a02ecf2f 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json
@@ -1,4 +1,5 @@
{
+ "adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": null,
@@ -9,7 +10,7 @@
"status": null
},
"billing_address_collection": "required",
- "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/02be9d36-17a9-4ae3-af50-773b5f93c245/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -36,13 +37,13 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--checkout.Session.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_realm_user_id": "4",
+ "remote_realm_user_id": "1",
"type": "card_update"
},
"mode": "setup",
@@ -73,7 +74,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/02be9d36-17a9-4ae3-af50-773b5f93c245/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json
similarity index 83%
rename from corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json
rename to corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json
index d534a52d359..c4e926d0914 100644
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json
@@ -1,6 +1,7 @@
{
"data": [
{
+ "adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": null,
@@ -11,7 +12,7 @@
"status": null
},
"billing_address_collection": "required",
- "cancel_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/upgrade/?manual_license_management=false&tier=1",
+ "cancel_url": "http://selfhosting.testserver/realm/02be9d36-17a9-4ae3-af50-773b5f93c245/upgrade/?manual_license_management=false&tier=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
@@ -38,13 +39,13 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json",
+ "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_realm_user_id": "9",
+ "remote_realm_user_id": "1",
"type": "card_update"
},
"mode": "setup",
@@ -75,7 +76,7 @@
"status": "open",
"submit_type": null,
"subscription": null,
- "success_url": "http://selfhosting.testserver/realm/3383e261-95a9-4f36-ae0c-4ecf80fab561/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "success_url": "http://selfhosting.testserver/realm/02be9d36-17a9-4ae3-af50-773b5f93c245/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
"total_details": null,
"ui_mode": "hosted",
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json
deleted file mode 100644
index b4d2f2501ea..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip.testserver 3383e261-15a",
- "discount": null,
- "email": "[email protected]",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json
deleted file mode 100644
index b4d2f2501ea..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip.testserver 3383e261-15a",
- "discount": null,
- "email": "[email protected]",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json
deleted file mode 100644
index b4d2f2501ea..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip.testserver 3383e261-15a",
- "discount": null,
- "email": "[email protected]",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json
deleted file mode 100644
index b4d2f2501ea..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip.testserver 3383e261-15a",
- "discount": null,
- "email": "[email protected]",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json
deleted file mode 100644
index b4d2f2501ea..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "zulip.testserver 3383e261-15a",
- "discount": null,
- "email": "[email protected]",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_realm_host": "zulip.testserver",
- "remote_realm_uuid": "3383e261-15a1-4f36-ae0c-4ecf80fab561"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json
deleted file mode 100644
index b39cd58e149..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json
+++ /dev/null
@@ -1,49 +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
- },
- "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
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": null,
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
deleted file mode 100644
index 6d754c0a7a3..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "flow_directions": null,
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.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/schedule_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
deleted file mode 100644
index ff659cf7feb..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "data": [
- {
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "flow_directions": null,
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.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": false,
- "object": "list",
- "url": "/v1/setup_intents"
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
deleted file mode 100644
index 6d754c0a7a3..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "flow_directions": null,
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.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/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
similarity index 88%
rename from corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
rename to corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
index a87c2afc86f..b1507ad3ec1 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.modify.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
similarity index 88%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.modify.1.json
rename to corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
index 1ca8e20d505..cd8cc08bfc2 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_ended_legacy_customer--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "free_trial_not_available_for_ended_legacy_customer--Customer.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json
new file mode 100644
index 00000000000..45b131bb2db
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json
new file mode 100644
index 00000000000..45b131bb2db
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json
new file mode 100644
index 00000000000..45b131bb2db
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json
new file mode 100644
index 00000000000..45b131bb2db
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json
new file mode 100644
index 00000000000..45b131bb2db
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
similarity index 85%
rename from corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
rename to corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
index e4460558b30..ebd051145d7 100644
--- a/corporate/tests/stripe_fixtures/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json
@@ -12,6 +12,7 @@
"attempted": false,
"auto_advance": true,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": null,
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"invoice_pdf": null,
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
- "invoice": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "invoice": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -107,7 +109,7 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/schedule_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json/lines"
+ "url": "/v1/invoices/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json/lines"
},
"livemode": false,
"metadata": {},
@@ -160,7 +162,8 @@
"total": 120000,
"total_discount_amounts": [],
"total_excluding_tax": 120000,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
similarity index 85%
rename from corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
rename to corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
index b2c5f5ec729..87e69aa49ea 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.finalize_invoice.1.json
@@ -12,6 +12,7 @@
"attempted": false,
"auto_advance": true,
"automatic_tax": {
+ "disabled_reason": null,
"enabled": false,
"liability": null,
"status": null
@@ -43,7 +44,7 @@
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap",
"issuer": {
"type": "self"
@@ -60,8 +61,8 @@
"discount_amounts": [],
"discountable": false,
"discounts": [],
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
- "invoice": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "invoice": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"invoice_item": "ii_NORMALIZED",
"livemode": false,
"metadata": {},
@@ -71,13 +72,14 @@
"start": 1333335845
},
"plan": null,
+ "pretax_credit_amounts": [],
"price": {
"active": false,
"billing_scheme": "per_unit",
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
@@ -107,7 +109,7 @@
"has_more": false,
"object": "list",
"total_count": 1,
- "url": "/v1/invoices/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json/lines"
+ "url": "/v1/invoices/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json/lines"
},
"livemode": false,
"metadata": {},
@@ -160,7 +162,8 @@
"total": 120000,
"total_discount_amounts": [],
"total_excluding_tax": 120000,
+ "total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"transfer_data": null,
- "webhooks_delivered_at": null
+ "webhooks_delivered_at": 1000000000
}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.list.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.list.1.json
similarity index 100%
rename from corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.list.1.json
rename to corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.list.1.json
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json
similarity index 82%
rename from corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json
rename to corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json
index 7b0d74137d8..0f0887bc363 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json
@@ -6,7 +6,7 @@
"description": "Zulip Business - renewal",
"discountable": false,
"discounts": [],
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--InvoiceItem.create.1.json",
"invoice": null,
"livemode": false,
"metadata": {},
@@ -22,7 +22,7 @@
"created": 1000000000,
"currency": "usd",
"custom_unit_amount": null,
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json",
"livemode": false,
"lookup_key": null,
"metadata": {},
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json
new file mode 100644
index 00000000000..9a2e676dfac
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json
@@ -0,0 +1,50 @@
+{
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "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": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
new file mode 100644
index 00000000000..f284d758654
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
@@ -0,0 +1,34 @@
+{
+ "application": null,
+ "automatic_payment_methods": null,
+ "cancellation_reason": null,
+ "client_secret": "NORMALIZED",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED",
+ "description": null,
+ "flow_directions": null,
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.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/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
new file mode 100644
index 00000000000..ec2c7447f44
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
@@ -0,0 +1,41 @@
+{
+ "data": [
+ {
+ "application": null,
+ "automatic_payment_methods": null,
+ "cancellation_reason": null,
+ "client_secret": "NORMALIZED",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED",
+ "description": null,
+ "flow_directions": null,
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.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": false,
+ "object": "list",
+ "url": "/v1/setup_intents"
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
new file mode 100644
index 00000000000..f284d758654
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
@@ -0,0 +1,34 @@
+{
+ "application": null,
+ "automatic_payment_methods": null,
+ "cancellation_reason": null,
+ "client_secret": "NORMALIZED",
+ "created": 1000000000,
+ "customer": "cus_NORMALIZED",
+ "description": null,
+ "flow_directions": null,
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.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/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json
new file mode 100644
index 00000000000..d1198cfa67f
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json
@@ -0,0 +1,81 @@
+{
+ "adaptive_pricing": null,
+ "after_expiration": null,
+ "allow_promotion_codes": null,
+ "amount_subtotal": null,
+ "amount_total": null,
+ "automatic_tax": {
+ "enabled": false,
+ "liability": null,
+ "status": null
+ },
+ "billing_address_collection": "required",
+ "cancel_url": "http://selfhosting.testserver/server/6cde5f7a-1f7e-4978-9716-49f69ebfc9fe/upgrade/?manual_license_management=false&tier=1",
+ "client_reference_id": null,
+ "client_secret": 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,
+ "email": "[email protected]",
+ "name": null,
+ "phone": null,
+ "tax_exempt": null,
+ "tax_ids": null
+ },
+ "customer_email": null,
+ "expires_at": 1000000000,
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json",
+ "invoice": null,
+ "invoice_creation": null,
+ "livemode": false,
+ "locale": null,
+ "metadata": {
+ "remote_server_user_id": "1",
+ "type": "card_update"
+ },
+ "mode": "setup",
+ "object": "checkout.session",
+ "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",
+ "phone_number_collection": {
+ "enabled": false
+ },
+ "recovered_from": null,
+ "saved_payment_method_options": null,
+ "setup_intent": "seti_NORMALIZED",
+ "shipping": null,
+ "shipping_address_collection": null,
+ "shipping_options": [],
+ "shipping_rate": null,
+ "status": "open",
+ "submit_type": null,
+ "subscription": null,
+ "success_url": "http://selfhosting.testserver/server/6cde5f7a-1f7e-4978-9716-49f69ebfc9fe/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
+ "total_details": null,
+ "ui_mode": "hosted",
+ "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json
new file mode 100644
index 00000000000..ef049b58e13
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json
@@ -0,0 +1,88 @@
+{
+ "data": [
+ {
+ "adaptive_pricing": null,
+ "after_expiration": null,
+ "allow_promotion_codes": null,
+ "amount_subtotal": null,
+ "amount_total": null,
+ "automatic_tax": {
+ "enabled": false,
+ "liability": null,
+ "status": null
+ },
+ "billing_address_collection": "required",
+ "cancel_url": "http://selfhosting.testserver/server/6cde5f7a-1f7e-4978-9716-49f69ebfc9fe/upgrade/?manual_license_management=false&tier=1",
+ "client_reference_id": null,
+ "client_secret": 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,
+ "email": "[email protected]",
+ "name": null,
+ "phone": null,
+ "tax_exempt": null,
+ "tax_ids": null
+ },
+ "customer_email": null,
+ "expires_at": 1000000000,
+ "id": "schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json",
+ "invoice": null,
+ "invoice_creation": null,
+ "livemode": false,
+ "locale": null,
+ "metadata": {
+ "remote_server_user_id": "1",
+ "type": "card_update"
+ },
+ "mode": "setup",
+ "object": "checkout.session",
+ "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",
+ "phone_number_collection": {
+ "enabled": false
+ },
+ "recovered_from": null,
+ "saved_payment_method_options": null,
+ "setup_intent": "seti_NORMALIZED",
+ "shipping": null,
+ "shipping_address_collection": null,
+ "shipping_options": [],
+ "shipping_rate": null,
+ "status": "open",
+ "submit_type": null,
+ "subscription": null,
+ "success_url": "http://selfhosting.testserver/server/6cde5f7a-1f7e-4978-9716-49f69ebfc9fe/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"
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "url": "/v1/checkout/sessions"
+}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json
deleted file mode 100644
index af9025d11cd..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json
deleted file mode 100644
index af9025d11cd..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.2.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json
deleted file mode 100644
index af9025d11cd..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.3.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json
deleted file mode 100644
index af9025d11cd..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.4.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json
deleted file mode 100644
index af9025d11cd..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.5.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.create.1.json",
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json
deleted file mode 100644
index 87b8ca54e1d..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--PaymentMethod.create.1.json
+++ /dev/null
@@ -1,49 +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
- },
- "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
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": null,
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
deleted file mode 100644
index 0976b8239a4..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "flow_directions": null,
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.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/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
deleted file mode 100644
index b4037aec206..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "data": [
- {
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "flow_directions": null,
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.list.1.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": false,
- "object": "list",
- "url": "/v1/setup_intents"
-}
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
deleted file mode 100644
index 0976b8239a4..00000000000
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.retrieve.1.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "application": null,
- "automatic_payment_methods": null,
- "cancellation_reason": null,
- "client_secret": "NORMALIZED",
- "created": 1000000000,
- "customer": "cus_NORMALIZED",
- "description": null,
- "flow_directions": null,
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--SetupIntent.create.1.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/upgrade_legacy_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.create.1.json
similarity index 91%
rename from corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.create.1.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.create.1.json
index 33763fb7895..8908a724a42 100644
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.create.1.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "upgrade_legacy_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.modify.1.json
similarity index 91%
rename from corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.modify.1.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.modify.1.json
index 75269999bfb..a2b6c56d481 100644
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.modify.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.modify.1.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "upgrade_legacy_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.1.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.1.json
index 7b1e11d7750..9ab16dc1678 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.1.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json",
+ "customer": "upgrade_complimentary_access_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.2.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.2.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.2.json
index 7b1e11d7750..9ab16dc1678 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.2.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.2.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json",
+ "customer": "upgrade_complimentary_access_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.3.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.3.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.3.json
index 7b1e11d7750..9ab16dc1678 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.3.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.3.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json",
+ "customer": "upgrade_complimentary_access_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.4.json
similarity index 84%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.4.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.4.json
index 7b1e11d7750..9ab16dc1678 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.4.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.4.json
@@ -9,7 +9,7 @@
"description": "demo.example.com 6cde5f7a-1f7",
"discount": null,
"email": "[email protected]",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.create.1.json",
"invoice_prefix": "NORMALIZED",
"invoice_settings": {
"custom_fields": null,
@@ -49,14 +49,15 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1000000000,
- "customer": "invoice_scheduled_upgrade_server_legacy_plan--Customer.create.1.json",
- "id": "invoice_scheduled_upgrade_server_legacy_plan--Customer.retrieve.1.json",
+ "customer": "upgrade_complimentary_access_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
@@ -68,7 +69,7 @@
"livemode": false,
"metadata": {
"remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
},
"name": null,
"next_invoice_sequence": 1,
diff --git a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.5.json
new file mode 100644
index 00000000000..9ab16dc1678
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.5.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "upgrade_complimentary_access_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "upgrade_complimentary_access_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.6.json
new file mode 100644
index 00000000000..9ab16dc1678
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.6.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "upgrade_complimentary_access_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "upgrade_complimentary_access_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.7.json
new file mode 100644
index 00000000000..9ab16dc1678
--- /dev/null
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Customer.retrieve.7.json
@@ -0,0 +1,82 @@
+{
+ "address": null,
+ "balance": 0,
+ "created": 1000000000,
+ "currency": null,
+ "default_currency": null,
+ "default_source": null,
+ "delinquent": false,
+ "description": "demo.example.com 6cde5f7a-1f7",
+ "discount": null,
+ "email": "[email protected]",
+ "id": "upgrade_complimentary_access_plan--Customer.create.1.json",
+ "invoice_prefix": "NORMALIZED",
+ "invoice_settings": {
+ "custom_fields": null,
+ "default_payment_method": {
+ "allow_redisplay": "unspecified",
+ "billing_details": {
+ "address": {
+ "city": "San Francisco",
+ "country": "US",
+ "line1": "123 Main St",
+ "line2": null,
+ "postal_code": "12345",
+ "state": "CA"
+ },
+ "email": null,
+ "name": "John Doe",
+ "phone": null
+ },
+ "card": {
+ "brand": "visa",
+ "checks": {
+ "address_line1_check": "pass",
+ "address_postal_code_check": "pass",
+ "cvc_check": "pass"
+ },
+ "country": "US",
+ "display_brand": "visa",
+ "exp_month": 1,
+ "exp_year": 9999,
+ "fingerprint": "NORMALIZED",
+ "funding": "credit",
+ "generated_from": null,
+ "last4": "4242",
+ "networks": {
+ "available": [
+ "visa"
+ ],
+ "preferred": null
+ },
+ "regulated_status": "unregulated",
+ "three_d_secure_usage": {
+ "supported": true
+ },
+ "wallet": null
+ },
+ "created": 1000000000,
+ "customer": "upgrade_complimentary_access_plan--Customer.create.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.retrieve.1.json",
+ "livemode": false,
+ "metadata": {},
+ "object": "payment_method",
+ "type": "card"
+ },
+ "footer": null,
+ "rendering_options": null
+ },
+ "livemode": false,
+ "metadata": {
+ "remote_server_str": "demo.example.com 6cde5f7a-1f7",
+ "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
+ },
+ "name": null,
+ "next_invoice_sequence": 1,
+ "object": "customer",
+ "phone": null,
+ "preferred_locales": [],
+ "shipping": null,
+ "tax_exempt": "none",
+ "test_clock": null
+}
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Invoice.list.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Invoice.list.1.json
similarity index 100%
rename from corporate/tests/stripe_fixtures/upgrade_legacy_plan--Invoice.list.1.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--Invoice.list.1.json
diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--PaymentMethod.create.1.json
similarity index 90%
rename from corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--PaymentMethod.create.1.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--PaymentMethod.create.1.json
index c0c611c846a..9274e950bb7 100644
--- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_legacy_plan--PaymentMethod.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--PaymentMethod.create.1.json
@@ -34,6 +34,7 @@
],
"preferred": null
},
+ "regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
@@ -41,7 +42,7 @@
},
"created": 1000000000,
"customer": null,
- "id": "invoice_scheduled_upgrade_realm_legacy_plan--Customer.retrieve.1.json",
+ "id": "upgrade_complimentary_access_plan--Customer.retrieve.1.json",
"livemode": false,
"metadata": {},
"object": "payment_method",
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--SetupIntent.create.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.create.1.json
similarity index 91%
rename from corporate/tests/stripe_fixtures/upgrade_legacy_plan--SetupIntent.create.1.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.create.1.json
index 60713d67a23..b54091bb8b5 100644
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--SetupIntent.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.create.1.json
@@ -7,7 +7,7 @@
"customer": "cus_NORMALIZED",
"description": null,
"flow_directions": null,
- "id": "upgrade_legacy_plan--SetupIntent.create.1.json",
+ "id": "upgrade_complimentary_access_plan--SetupIntent.create.1.json",
"last_setup_error": null,
"latest_attempt": "setatt_NORMALIZED",
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--SetupIntent.list.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.list.1.json
similarity index 93%
rename from corporate/tests/stripe_fixtures/upgrade_legacy_plan--SetupIntent.list.1.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.list.1.json
index 51a7f2939d2..feb76595902 100644
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--SetupIntent.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.list.1.json
@@ -9,7 +9,7 @@
"customer": "cus_NORMALIZED",
"description": null,
"flow_directions": null,
- "id": "upgrade_legacy_plan--SetupIntent.list.1.json",
+ "id": "upgrade_complimentary_access_plan--SetupIntent.list.1.json",
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--SetupIntent.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.retrieve.1.json
similarity index 91%
rename from corporate/tests/stripe_fixtures/upgrade_legacy_plan--SetupIntent.retrieve.1.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.retrieve.1.json
index 60713d67a23..b54091bb8b5 100644
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--SetupIntent.retrieve.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--SetupIntent.retrieve.1.json
@@ -7,7 +7,7 @@
"customer": "cus_NORMALIZED",
"description": null,
"flow_directions": null,
- "id": "upgrade_legacy_plan--SetupIntent.create.1.json",
+ "id": "upgrade_complimentary_access_plan--SetupIntent.create.1.json",
"last_setup_error": null,
"latest_attempt": "setatt_NORMALIZED",
"livemode": false,
diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.create.1.json
similarity index 93%
rename from corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--checkout.Session.create.1.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.create.1.json
index c70164a4947..a2769a7c651 100644
--- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_active_legacy_customer--checkout.Session.create.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.create.1.json
@@ -1,4 +1,5 @@
{
+ "adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": null,
@@ -36,13 +37,13 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "free_trial_not_available_for_active_legacy_customer--checkout.Session.create.1.json",
+ "id": "upgrade_complimentary_access_plan--checkout.Session.create.1.json",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_server_user_id": "3",
+ "remote_server_user_id": "1",
"type": "card_update"
},
"mode": "setup",
diff --git a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.list.1.json
similarity index 94%
rename from corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json
rename to corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.list.1.json
index e5662ffe7e1..fbbab491643 100644
--- a/corporate/tests/stripe_fixtures/schedule_server_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.list.1.json
+++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.list.1.json
@@ -1,6 +1,7 @@
{
"data": [
{
+ "adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": null,
@@ -38,13 +39,13 @@
},
"customer_email": null,
"expires_at": 1000000000,
- "id": "schedule_server_legacy_plan_upgrade_to_fixed_price_plan--checkout.Session.create.1.json",
+ "id": "upgrade_complimentary_access_plan--checkout.Session.create.1.json",
"invoice": null,
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
- "remote_server_user_id": "11",
+ "remote_server_user_id": "1",
"type": "card_update"
},
"mode": "setup",
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.1.json
deleted file mode 100644
index 41d28328e4d..00000000000
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.1.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "upgrade_legacy_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "upgrade_legacy_plan--Customer.create.1.json",
- "id": "upgrade_legacy_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.2.json
deleted file mode 100644
index 41d28328e4d..00000000000
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.2.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "upgrade_legacy_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "upgrade_legacy_plan--Customer.create.1.json",
- "id": "upgrade_legacy_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.3.json
deleted file mode 100644
index 41d28328e4d..00000000000
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.3.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "upgrade_legacy_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "upgrade_legacy_plan--Customer.create.1.json",
- "id": "upgrade_legacy_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.4.json
deleted file mode 100644
index 41d28328e4d..00000000000
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.4.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "upgrade_legacy_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "upgrade_legacy_plan--Customer.create.1.json",
- "id": "upgrade_legacy_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.5.json
deleted file mode 100644
index 41d28328e4d..00000000000
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.5.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "upgrade_legacy_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "upgrade_legacy_plan--Customer.create.1.json",
- "id": "upgrade_legacy_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.6.json
deleted file mode 100644
index 41d28328e4d..00000000000
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.6.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "upgrade_legacy_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "upgrade_legacy_plan--Customer.create.1.json",
- "id": "upgrade_legacy_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.7.json
deleted file mode 100644
index 41d28328e4d..00000000000
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--Customer.retrieve.7.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "address": null,
- "balance": 0,
- "created": 1000000000,
- "currency": null,
- "default_currency": null,
- "default_source": null,
- "delinquent": false,
- "description": "demo.example.com 6cde5f7a-1f7",
- "discount": null,
- "email": "[email protected]",
- "id": "upgrade_legacy_plan--Customer.create.1.json",
- "invoice_prefix": "NORMALIZED",
- "invoice_settings": {
- "custom_fields": null,
- "default_payment_method": {
- "allow_redisplay": "unspecified",
- "billing_details": {
- "address": {
- "city": "San Francisco",
- "country": "US",
- "line1": "123 Main St",
- "line2": null,
- "postal_code": "12345",
- "state": "CA"
- },
- "email": null,
- "name": "John Doe",
- "phone": null
- },
- "card": {
- "brand": "visa",
- "checks": {
- "address_line1_check": "pass",
- "address_postal_code_check": "pass",
- "cvc_check": "pass"
- },
- "country": "US",
- "display_brand": "visa",
- "exp_month": 1,
- "exp_year": 9999,
- "fingerprint": "NORMALIZED",
- "funding": "credit",
- "generated_from": null,
- "last4": "4242",
- "networks": {
- "available": [
- "visa"
- ],
- "preferred": null
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": "upgrade_legacy_plan--Customer.create.1.json",
- "id": "upgrade_legacy_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
- },
- "footer": null,
- "rendering_options": null
- },
- "livemode": false,
- "metadata": {
- "remote_server_str": "demo.example.com 6cde5f7a-1f7",
- "remote_server_uuid": "6cde5f7a-1f7e-4178-1716-41f61ebfc1fe"
- },
- "name": null,
- "next_invoice_sequence": 1,
- "object": "customer",
- "phone": null,
- "preferred_locales": [],
- "shipping": null,
- "tax_exempt": "none",
- "test_clock": null
-}
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--PaymentMethod.create.1.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--PaymentMethod.create.1.json
deleted file mode 100644
index 51d77eaebd1..00000000000
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--PaymentMethod.create.1.json
+++ /dev/null
@@ -1,49 +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
- },
- "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
- },
- "three_d_secure_usage": {
- "supported": true
- },
- "wallet": null
- },
- "created": 1000000000,
- "customer": null,
- "id": "upgrade_legacy_plan--Customer.retrieve.1.json",
- "livemode": false,
- "metadata": {},
- "object": "payment_method",
- "type": "card"
-}
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--checkout.Session.create.1.json
deleted file mode 100644
index c0e06c80ced..00000000000
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--checkout.Session.create.1.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "status": null
- },
- "billing_address_collection": "required",
- "cancel_url": "http://selfhosting.testserver/server/6cde5f7a-1f7e-4978-9716-49f69ebfc9fe/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": 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,
- "email": "[email protected]",
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "expires_at": 1000000000,
- "id": "upgrade_legacy_plan--checkout.Session.create.1.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "remote_server_user_id": "14",
- "type": "card_update"
- },
- "mode": "setup",
- "object": "checkout.session",
- "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",
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping": null,
- "shipping_address_collection": null,
- "shipping_options": [],
- "shipping_rate": null,
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "success_url": "http://selfhosting.testserver/server/6cde5f7a-1f7e-4978-9716-49f69ebfc9fe/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
- "total_details": null,
- "ui_mode": "hosted",
- "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED"
-}
diff --git a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_legacy_plan--checkout.Session.list.1.json
deleted file mode 100644
index 87ab6dc9ba2..00000000000
--- a/corporate/tests/stripe_fixtures/upgrade_legacy_plan--checkout.Session.list.1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "data": [
- {
- "after_expiration": null,
- "allow_promotion_codes": null,
- "amount_subtotal": null,
- "amount_total": null,
- "automatic_tax": {
- "enabled": false,
- "liability": null,
- "status": null
- },
- "billing_address_collection": "required",
- "cancel_url": "http://selfhosting.testserver/server/6cde5f7a-1f7e-4978-9716-49f69ebfc9fe/upgrade/?manual_license_management=false&tier=1",
- "client_reference_id": null,
- "client_secret": 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,
- "email": "[email protected]",
- "name": null,
- "phone": null,
- "tax_exempt": null,
- "tax_ids": null
- },
- "customer_email": null,
- "expires_at": 1000000000,
- "id": "upgrade_legacy_plan--checkout.Session.create.1.json",
- "invoice": null,
- "invoice_creation": null,
- "livemode": false,
- "locale": null,
- "metadata": {
- "remote_server_user_id": "14",
- "type": "card_update"
- },
- "mode": "setup",
- "object": "checkout.session",
- "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",
- "phone_number_collection": {
- "enabled": false
- },
- "recovered_from": null,
- "saved_payment_method_options": null,
- "setup_intent": "seti_NORMALIZED",
- "shipping": null,
- "shipping_address_collection": null,
- "shipping_options": [],
- "shipping_rate": null,
- "status": "open",
- "submit_type": null,
- "subscription": null,
- "success_url": "http://selfhosting.testserver/server/6cde5f7a-1f7e-4978-9716-49f69ebfc9fe/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"
- }
- ],
- "has_more": false,
- "object": "list",
- "url": "/v1/checkout/sessions"
-}
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py
index bb00cf64939..e34c0c81dd5 100644
--- a/corporate/tests/test_stripe.py
+++ b/corporate/tests/test_stripe.py
@@ -8043,7 +8043,9 @@ class TestRemoteRealmBillingFlow(StripeTestCase, RemoteRealmBillingTestCase):
@responses.activate
@mock_stripe()
- def test_schedule_legacy_plan_upgrade_to_fixed_price_plan(self, *mocks: Mock) -> None:
+ def test_schedule_complimentary_access_plan_upgrade_to_fixed_price_plan(
+ self, *mocks: Mock
+ ) -> None:
hamlet = self.example_user("hamlet")
remote_realm = RemoteRealm.objects.get(uuid=hamlet.realm.uuid)
@@ -8060,10 +8062,10 @@ class TestRemoteRealmBillingFlow(StripeTestCase, RemoteRealmBillingTestCase):
send_server_data_to_push_bouncer(consider_usage_statistics=False)
customer = Customer.objects.get(remote_realm=self.remote_realm)
- legacy_plan = get_current_plan_by_customer(customer)
- assert legacy_plan is not None
- self.assertEqual(legacy_plan.tier, CustomerPlan.TIER_SELF_HOSTED_LEGACY)
- self.assertEqual(legacy_plan.next_invoice_date, end_date)
+ complimentary_access_plan = get_current_plan_by_customer(customer)
+ assert complimentary_access_plan is not None
+ self.assertEqual(complimentary_access_plan.tier, CustomerPlan.TIER_SELF_HOSTED_LEGACY)
+ self.assertEqual(complimentary_access_plan.next_invoice_date, end_date)
self.login("iago")
@@ -8107,8 +8109,10 @@ class TestRemoteRealmBillingFlow(StripeTestCase, RemoteRealmBillingTestCase):
remote_server_plan_start_date="billing_cycle_end_date", talk_to_stripe=False
)
- legacy_plan.refresh_from_db()
- self.assertEqual(legacy_plan.status, CustomerPlan.SWITCH_PLAN_TIER_AT_PLAN_END)
+ complimentary_access_plan.refresh_from_db()
+ self.assertEqual(
+ complimentary_access_plan.status, CustomerPlan.SWITCH_PLAN_TIER_AT_PLAN_END
+ )
fixed_price_plan_offer.refresh_from_db()
self.assertEqual(fixed_price_plan_offer.status, CustomerPlanOffer.PROCESSED)
@@ -8117,15 +8121,15 @@ class TestRemoteRealmBillingFlow(StripeTestCase, RemoteRealmBillingTestCase):
send_server_data_to_push_bouncer(consider_usage_statistics=False)
invoice_plans_as_needed()
- legacy_plan.refresh_from_db()
+ complimentary_access_plan.refresh_from_db()
current_plan = get_current_plan_by_customer(customer)
assert current_plan is not None
self.assertEqual(current_plan.tier, CustomerPlan.TIER_SELF_HOSTED_BUSINESS)
self.assertIsNotNone(current_plan.fixed_price)
self.assertIsNone(current_plan.price_per_license)
self.assertEqual(current_plan.next_invoice_date, add_months(end_date, 1))
- self.assertEqual(legacy_plan.status, CustomerPlan.ENDED)
- self.assertEqual(legacy_plan.next_invoice_date, None)
+ self.assertEqual(complimentary_access_plan.status, CustomerPlan.ENDED)
+ self.assertEqual(complimentary_access_plan.next_invoice_date, None)
@responses.activate
@mock_stripe()
@@ -8654,7 +8658,7 @@ class TestRemoteRealmBillingFlow(StripeTestCase, RemoteRealmBillingTestCase):
@responses.activate
@mock_stripe()
- def test_invoice_scheduled_upgrade_realm_legacy_plan(self, *mocks: Mock) -> None:
+ def test_invoice_scheduled_upgrade_realm_complimentary_access_plan(self, *mocks: Mock) -> None:
hamlet = self.example_user("hamlet")
remote_realm = RemoteRealm.objects.get(uuid=hamlet.realm.uuid)
@@ -8684,13 +8688,15 @@ class TestRemoteRealmBillingFlow(StripeTestCase, RemoteRealmBillingTestCase):
zulip_realm_customer = Customer.objects.get(stripe_customer_id=stripe_customer.id)
assert zulip_realm_customer is not None
- realm_legacy_plan = get_current_plan_by_customer(zulip_realm_customer)
- assert realm_legacy_plan is not None
- self.assertEqual(realm_legacy_plan.tier, CustomerPlan.TIER_SELF_HOSTED_LEGACY)
- self.assertEqual(realm_legacy_plan.status, CustomerPlan.SWITCH_PLAN_TIER_AT_PLAN_END)
- self.assertEqual(realm_legacy_plan.next_invoice_date, end_date)
+ realm_complimentary_access_plan = get_current_plan_by_customer(zulip_realm_customer)
+ assert realm_complimentary_access_plan is not None
+ self.assertEqual(realm_complimentary_access_plan.tier, CustomerPlan.TIER_SELF_HOSTED_LEGACY)
+ self.assertEqual(
+ realm_complimentary_access_plan.status, CustomerPlan.SWITCH_PLAN_TIER_AT_PLAN_END
+ )
+ self.assertEqual(realm_complimentary_access_plan.next_invoice_date, end_date)
- new_plan = self.billing_session.get_next_plan(realm_legacy_plan)
+ new_plan = self.billing_session.get_next_plan(realm_complimentary_access_plan)
assert new_plan is not None
self.assertEqual(new_plan.tier, CustomerPlan.TIER_SELF_HOSTED_BUSINESS)
self.assertEqual(new_plan.status, CustomerPlan.NEVER_STARTED)
@@ -8715,10 +8721,10 @@ class TestRemoteRealmBillingFlow(StripeTestCase, RemoteRealmBillingTestCase):
# invoice is created only for new plan. The complimentary access plan only goes
# through the end of cycle updates.
- realm_legacy_plan.refresh_from_db()
+ realm_complimentary_access_plan.refresh_from_db()
new_plan.refresh_from_db()
- self.assertEqual(realm_legacy_plan.status, CustomerPlan.ENDED)
- self.assertEqual(realm_legacy_plan.next_invoice_date, None)
+ self.assertEqual(realm_complimentary_access_plan.status, CustomerPlan.ENDED)
+ self.assertEqual(realm_complimentary_access_plan.next_invoice_date, None)
self.assertEqual(new_plan.status, CustomerPlan.ACTIVE)
self.assertEqual(new_plan.invoicing_status, CustomerPlan.INVOICING_STATUS_DONE)
self.assertEqual(new_plan.next_invoice_date, add_months(end_date, 1))
@@ -9006,7 +9012,7 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
@responses.activate
@mock_stripe()
- def test_upgrade_legacy_plan(self, *mocks: Mock) -> None:
+ def test_upgrade_complimentary_access_plan(self, *mocks: Mock) -> None:
# Upload data
with time_machine.travel(self.now, tick=False):
self.add_mock_response()
@@ -9099,7 +9105,7 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
@responses.activate
@mock_stripe()
- def test_free_trial_not_available_for_active_legacy_customer(self, *mocks: Mock) -> None:
+ def test_free_trial_not_available_for_complimentary_access_customer(self, *mocks: Mock) -> None:
with self.settings(SELF_HOSTING_FREE_TRIAL_DAYS=30):
self.login("hamlet")
hamlet = self.example_user("hamlet")
@@ -9143,7 +9149,9 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
@responses.activate
@mock_stripe()
- def test_free_trial_not_available_for_ended_legacy_customer(self, *mocks: Mock) -> None:
+ def test_free_trial_not_available_for_previous_complimentary_access_customer(
+ self, *mocks: Mock
+ ) -> None:
with self.settings(SELF_HOSTING_FREE_TRIAL_DAYS=30):
self.login("hamlet")
hamlet = self.example_user("hamlet")
@@ -9901,7 +9909,9 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
@responses.activate
@mock_stripe()
- def test_schedule_server_legacy_plan_upgrade_to_fixed_price_plan(self, *mocks: Mock) -> None:
+ def test_schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan(
+ self, *mocks: Mock
+ ) -> None:
self.login("hamlet")
hamlet = self.example_user("hamlet")
@@ -9915,10 +9925,10 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
customer = self.billing_session.get_customer()
assert customer is not None
- legacy_plan = get_current_plan_by_customer(customer)
- assert legacy_plan is not None
- self.assertEqual(legacy_plan.tier, CustomerPlan.TIER_SELF_HOSTED_LEGACY)
- self.assertEqual(legacy_plan.next_invoice_date, end_date)
+ complimentary_access_plan = get_current_plan_by_customer(customer)
+ assert complimentary_access_plan is not None
+ self.assertEqual(complimentary_access_plan.tier, CustomerPlan.TIER_SELF_HOSTED_LEGACY)
+ self.assertEqual(complimentary_access_plan.next_invoice_date, end_date)
self.logout()
self.login("iago")
@@ -9961,8 +9971,10 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
remote_server_plan_start_date="billing_cycle_end_date", talk_to_stripe=False
)
- legacy_plan.refresh_from_db()
- self.assertEqual(legacy_plan.status, CustomerPlan.SWITCH_PLAN_TIER_AT_PLAN_END)
+ complimentary_access_plan.refresh_from_db()
+ self.assertEqual(
+ complimentary_access_plan.status, CustomerPlan.SWITCH_PLAN_TIER_AT_PLAN_END
+ )
fixed_price_plan_offer.refresh_from_db()
self.assertEqual(fixed_price_plan_offer.status, CustomerPlanOffer.PROCESSED)
@@ -9971,15 +9983,15 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
send_server_data_to_push_bouncer(consider_usage_statistics=False)
invoice_plans_as_needed()
- legacy_plan.refresh_from_db()
+ complimentary_access_plan.refresh_from_db()
current_plan = get_current_plan_by_customer(customer)
assert current_plan is not None
self.assertEqual(current_plan.tier, CustomerPlan.TIER_SELF_HOSTED_BUSINESS)
self.assertIsNotNone(current_plan.fixed_price)
self.assertIsNone(current_plan.price_per_license)
self.assertEqual(current_plan.next_invoice_date, add_months(end_date, 1))
- self.assertEqual(legacy_plan.status, CustomerPlan.ENDED)
- self.assertEqual(legacy_plan.next_invoice_date, None)
+ self.assertEqual(complimentary_access_plan.status, CustomerPlan.ENDED)
+ self.assertEqual(complimentary_access_plan.next_invoice_date, None)
def test_deactivate_registration_with_push_notification_service(self) -> None:
self.login("hamlet")
@@ -10182,8 +10194,7 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
self.assert_length(outbox, messages_count + 1)
@responses.activate
- @mock_stripe()
- def test_legacy_plan_ends_on_plan_end_date(self, *mocks: Mock) -> None:
+ def test_complimentary_access_plan_ends_on_plan_end_date(self, *mocks: Mock) -> None:
self.login("hamlet")
self.add_mock_response()
@@ -10226,7 +10237,7 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
@responses.activate
@mock_stripe()
- def test_invoice_scheduled_upgrade_server_legacy_plan(self, *mocks: Mock) -> None:
+ def test_invoice_scheduled_upgrade_server_complimentary_access_plan(self, *mocks: Mock) -> None:
# Upload data
self.add_mock_response()
with time_machine.travel(self.now, tick=False):
@@ -10240,11 +10251,11 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
customer = self.billing_session.get_customer()
assert customer is not None
- legacy_plan = get_current_plan_by_customer(customer)
- assert legacy_plan is not None
- self.assertEqual(legacy_plan.tier, CustomerPlan.TIER_SELF_HOSTED_LEGACY)
- self.assertEqual(legacy_plan.status, CustomerPlan.ACTIVE)
- self.assertEqual(legacy_plan.next_invoice_date, end_date)
+ complimentary_access_plan = get_current_plan_by_customer(customer)
+ assert complimentary_access_plan is not None
+ self.assertEqual(complimentary_access_plan.tier, CustomerPlan.TIER_SELF_HOSTED_LEGACY)
+ self.assertEqual(complimentary_access_plan.status, CustomerPlan.ACTIVE)
+ self.assertEqual(complimentary_access_plan.next_invoice_date, end_date)
self.login("hamlet")
hamlet = self.example_user("hamlet")
@@ -10255,9 +10266,11 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
stripe_customer = self.add_card_and_upgrade(
remote_server_plan_start_date="billing_cycle_end_date", talk_to_stripe=False
)
- legacy_plan.refresh_from_db()
- self.assertEqual(legacy_plan.status, CustomerPlan.SWITCH_PLAN_TIER_AT_PLAN_END)
- new_plan = self.billing_session.get_next_plan(legacy_plan)
+ complimentary_access_plan.refresh_from_db()
+ self.assertEqual(
+ complimentary_access_plan.status, CustomerPlan.SWITCH_PLAN_TIER_AT_PLAN_END
+ )
+ new_plan = self.billing_session.get_next_plan(complimentary_access_plan)
assert new_plan is not None
self.assertEqual(new_plan.tier, CustomerPlan.TIER_SELF_HOSTED_BUSINESS)
self.assertEqual(new_plan.status, CustomerPlan.NEVER_STARTED)
@@ -10292,10 +10305,10 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):
# invoice is created only for new plan. The complimentary access plan only
# goes through the end of cycle updates.
- legacy_plan.refresh_from_db()
+ complimentary_access_plan.refresh_from_db()
new_plan.refresh_from_db()
- self.assertEqual(legacy_plan.status, CustomerPlan.ENDED)
- self.assertEqual(legacy_plan.next_invoice_date, None)
+ self.assertEqual(complimentary_access_plan.status, CustomerPlan.ENDED)
+ self.assertEqual(complimentary_access_plan.next_invoice_date, None)
self.assertEqual(new_plan.status, CustomerPlan.ACTIVE)
self.assertEqual(new_plan.invoicing_status, CustomerPlan.INVOICING_STATUS_DONE)
self.assertEqual(new_plan.next_invoice_date, add_months(end_date, 1))