From 8b11e88a912a746099157c03ba16e724a5009d12 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Wed, 8 Oct 2025 14:46:34 +0530 Subject: [PATCH] stripe: Upgrade to latest version. This includes some changes to specify the correct type for params. --- corporate/lib/stripe.py | 16 +- .../add_minimum_licenses--Charge.list.1.json | 2 +- .../add_minimum_licenses--Event.list.1.json | 2 +- .../add_minimum_licenses--Event.list.2.json | 29 +- .../add_minimum_licenses--Event.list.3.json | 4 +- ...dd_minimum_licenses--Invoice.create.1.json | 2 +- ...inimum_licenses--InvoiceItem.create.1.json | 1 + ...m_licenses--checkout.Session.create.1.json | 24 +- ...mum_licenses--checkout.Session.list.1.json | 24 +- ...tach_discount_to_realm--Charge.list.1.json | 2 +- ...tach_discount_to_realm--Charge.list.2.json | 4 +- ...ttach_discount_to_realm--Event.list.1.json | 2 +- ...ttach_discount_to_realm--Event.list.2.json | 27 +- ...ttach_discount_to_realm--Event.list.3.json | 4 +- ...ttach_discount_to_realm--Event.list.5.json | 2 +- ...ttach_discount_to_realm--Event.list.6.json | 33 +- ...ttach_discount_to_realm--Event.list.7.json | 2 +- ...h_discount_to_realm--Invoice.create.1.json | 2 +- ...h_discount_to_realm--Invoice.create.2.json | 2 +- ...h_discount_to_realm--Invoice.create.3.json | 2 +- ...scount_to_realm--InvoiceItem.create.1.json | 1 + ...scount_to_realm--InvoiceItem.create.2.json | 1 + ...scount_to_realm--InvoiceItem.create.3.json | 1 + ...t_to_realm--checkout.Session.create.1.json | 24 +- ...t_to_realm--checkout.Session.create.2.json | 24 +- ...unt_to_realm--checkout.Session.list.1.json | 24 +- ...unt_to_realm--checkout.Session.list.2.json | 24 +- ...illing_page_permissions--Event.list.1.json | 2 +- ...illing_page_permissions--Event.list.2.json | 35 +- ...illing_page_permissions--Event.list.3.json | 4 +- ...ng_page_permissions--Invoice.create.1.json | 2 +- ...age_permissions--InvoiceItem.create.1.json | 1 + ...ermissions--checkout.Session.create.1.json | 24 +- ..._permissions--checkout.Session.list.1.json | 24 +- ...de_at_end_of_free_trial--Event.list.1.json | 53 +- ...free_trial--checkout.Session.create.1.json | 24 +- ...f_free_trial--checkout.Session.list.1.json | 24 +- ...tomer_but_payment_fails--Event.list.1.json | 2 +- ...r_but_payment_fails--Invoice.create.1.json | 2 +- ...omer_but_payment_fails--Invoice.pay.1.json | 22 +- ...t_payment_fails--InvoiceItem.create.1.json | 1 + ...ment_fails--checkout.Session.create.1.json | 24 +- ...ayment_fails--checkout.Session.list.1.json | 24 +- ...om_standard_to_plus--Invoice.create.1.json | 2 +- ...d_to_plus--Invoice.finalize_invoice.1.json | 2 +- ...from_standard_to_plus--Invoice.list.1.json | 2 +- ...tandard_to_plus--InvoiceItem.create.1.json | 1 + ...parameters--checkout.Session.create.1.json | 24 +- ...parameters--checkout.Session.create.2.json | 24 +- ...parameters--checkout.Session.create.3.json | 24 +- ...parameters--checkout.Session.create.4.json | 24 +- ...parameters--checkout.Session.create.5.json | 24 +- ...parameters--checkout.Session.create.6.json | 24 +- ...parameters--checkout.Session.create.7.json | 24 +- ...parameters--checkout.Session.create.8.json | 24 +- ...parameters--checkout.Session.create.9.json | 24 +- ...e_parameters--checkout.Session.list.1.json | 24 +- ...e_parameters--checkout.Session.list.2.json | 24 +- ...e_parameters--checkout.Session.list.3.json | 24 +- ...e_parameters--checkout.Session.list.4.json | 24 +- ...e_parameters--checkout.Session.list.5.json | 24 +- ...e_parameters--checkout.Session.list.6.json | 24 +- ...e_parameters--checkout.Session.list.7.json | 24 +- ...e_parameters--checkout.Session.list.8.json | 24 +- ...e_parameters--checkout.Session.list.9.json | 24 +- ..._default_payment_method--Event.list.1.json | 2 +- ..._default_payment_method--Event.list.2.json | 31 +- ..._default_payment_method--Event.list.3.json | 4 +- ...ault_payment_method--Invoice.create.1.json | 2 +- ..._payment_method--InvoiceItem.create.1.json | 1 + ...ent_method--checkout.Session.create.1.json | 24 +- ...yment_method--checkout.Session.list.1.json | 24 +- ...nimum_licenses_for_plan--Event.list.1.json | 2 +- ...nimum_licenses_for_plan--Event.list.2.json | 31 +- ...nimum_licenses_for_plan--Event.list.3.json | 39 +- ...m_licenses_for_plan--Invoice.create.1.json | 2 +- ...m_licenses_for_plan--Invoice.create.2.json | 2 +- ...censes_for_plan--InvoiceItem.create.1.json | 1 + ...censes_for_plan--InvoiceItem.create.2.json | 1 + ...s_for_plan--checkout.Session.create.1.json | 24 +- ...ses_for_plan--checkout.Session.list.1.json | 24 +- ...de_at_end_of_free_trial--Event.list.1.json | 2 +- ...free_trial--checkout.Session.create.1.json | 24 +- ...f_free_trial--checkout.Session.list.1.json | 24 +- ..._and_void_open_invoices--Event.list.1.json | 158 +---- ..._and_void_open_invoices--Event.list.2.json | 25 +- ..._and_void_open_invoices--Event.list.3.json | 2 +- ..._void_open_invoices--Invoice.create.1.json | 2 +- ..._void_open_invoices--Invoice.create.2.json | 2 +- ...d_open_invoices--InvoiceItem.create.1.json | 1 + ...d_open_invoices--InvoiceItem.create.2.json | 1 + ..._payments_as_needed--Invoice.create.1.json | 2 +- ..._payments_as_needed--Invoice.create.2.json | 2 +- ..._payments_as_needed--Invoice.create.3.json | 2 +- ..._payments_as_needed--Invoice.create.4.json | 2 +- ..._payments_as_needed--Invoice.create.5.json | 2 +- ..._payments_as_needed--Invoice.create.6.json | 2 +- ..._payments_as_needed--Invoice.create.7.json | 2 +- ..._payments_as_needed--Invoice.create.8.json | 2 +- ...as_needed--Invoice.finalize_invoice.3.json | 2 +- ...as_needed--Invoice.finalize_invoice.8.json | 2 +- ...n_payments_as_needed--Invoice.list.15.json | 2 +- ...on_payments_as_needed--Invoice.list.7.json | 2 +- ...on_payments_as_needed--Invoice.list.8.json | 2 +- ...nts_as_needed--Invoice.void_invoice.3.json | 2 +- ...ments_as_needed--InvoiceItem.create.1.json | 1 + ...ments_as_needed--InvoiceItem.create.2.json | 1 + ...ments_as_needed--InvoiceItem.create.3.json | 1 + ...ments_as_needed--InvoiceItem.create.4.json | 1 + ...ments_as_needed--InvoiceItem.create.5.json | 1 + ...ments_as_needed--InvoiceItem.create.6.json | 1 + ...ments_as_needed--InvoiceItem.create.7.json | 1 + ...ments_as_needed--InvoiceItem.create.8.json | 1 + .../end_free_trial--Event.list.1.json | 53 +- ...free_trial--checkout.Session.create.1.json | 24 +- ...d_free_trial--checkout.Session.list.1.json | 24 +- .../fixed_price_plans--Event.list.1.json | 94 +-- .../fixed_price_plans--Event.list.2.json | 29 +- .../fixed_price_plans--Event.list.3.json | 2 +- .../fixed_price_plans--Invoice.create.1.json | 2 +- .../fixed_price_plans--Invoice.create.2.json | 2 +- ...ice_plans--Invoice.finalize_invoice.2.json | 2 +- .../fixed_price_plans--Invoice.list.1.json | 2 +- ...xed_price_plans--InvoiceItem.create.1.json | 1 + ...xed_price_plans--InvoiceItem.create.2.json | 1 + ...mentary_access_customer--Event.list.1.json | 53 +- ...mentary_access_customer--Event.list.2.json | 29 +- ...mentary_access_customer--Event.list.3.json | 44 +- ...ary_access_customer--Invoice.create.1.json | 2 +- ...access_customer--InvoiceItem.create.1.json | 1 + ...access_customer--InvoiceItem.create.2.json | 1 + ...s_customer--checkout.Session.create.1.json | 24 +- ...ess_customer--checkout.Session.list.1.json | 24 +- ...mentary_access_customer--Event.list.1.json | 2 +- ...mentary_access_customer--Event.list.2.json | 37 +- ...mentary_access_customer--Event.list.3.json | 15 +- ...ary_access_customer--Invoice.create.1.json | 2 +- ..._customer--Invoice.finalize_invoice.1.json | 2 +- ...entary_access_customer--Invoice.pay.1.json | 2 +- ...access_customer--InvoiceItem.create.1.json | 1 + ...access_customer--InvoiceItem.create.2.json | 1 + ...s_customer--checkout.Session.create.1.json | 24 +- ...ess_customer--checkout.Session.list.1.json | 24 +- ...e_trial_upgrade_by_card--Event.list.1.json | 51 +- ...e_trial_upgrade_by_card--Event.list.2.json | 2 +- ...ial_upgrade_by_card--Invoice.create.1.json | 2 +- ...ial_upgrade_by_card--Invoice.create.2.json | 2 +- ...ial_upgrade_by_card--Invoice.create.3.json | 2 +- ...e_by_card--Invoice.finalize_invoice.3.json | 2 +- ...trial_upgrade_by_card--Invoice.list.7.json | 2 +- ...upgrade_by_card--InvoiceItem.create.1.json | 1 + ...upgrade_by_card--InvoiceItem.create.2.json | 1 + ...upgrade_by_card--InvoiceItem.create.3.json | 1 + ...de_by_card--checkout.Session.create.1.json | 24 +- ...rade_by_card--checkout.Session.list.1.json | 24 +- ...rial_upgrade_by_invoice--Event.list.1.json | 52 +- ...rial_upgrade_by_invoice--Event.list.2.json | 6 +- ...rial_upgrade_by_invoice--Event.list.3.json | 21 +- ..._upgrade_by_invoice--Invoice.create.1.json | 2 +- ...y_invoice--Invoice.finalize_invoice.1.json | 4 +- ...al_upgrade_by_invoice--Invoice.list.1.json | 4 +- ...ial_upgrade_by_invoice--Invoice.pay.1.json | 4 +- ...rade_by_invoice--InvoiceItem.create.1.json | 1 + ...e_customer_fails_to_pay--Event.list.1.json | 2 +- ...e_customer_fails_to_pay--Event.list.2.json | 4 +- ...e_customer_fails_to_pay--Event.list.3.json | 7 +- ...stomer_fails_to_pay--Invoice.create.1.json | 2 +- ...ls_to_pay--Invoice.finalize_invoice.1.json | 2 +- ...er_fails_to_pay--InvoiceItem.create.1.json | 1 + ...nal_users_after_payment--Event.list.1.json | 44 +- ...nal_users_after_payment--Event.list.2.json | 4 +- ...nal_users_after_payment--Event.list.3.json | 17 +- ...users_after_payment--Invoice.create.1.json | 2 +- ...r_payment--Invoice.finalize_invoice.1.json | 2 +- ...l_users_after_payment--Invoice.list.1.json | 2 +- ...l_users_after_payment--Invoice.list.2.json | 2 +- ...al_users_after_payment--Invoice.pay.1.json | 2 +- ...s_after_payment--InvoiceItem.create.1.json | 1 + ...s_after_payment--InvoiceItem.create.2.json | 1 + ..._for_additional_license--Event.list.1.json | 2 +- ..._for_additional_license--Event.list.2.json | 367 +++++----- ..._for_additional_license--Event.list.3.json | 183 +---- ..._additional_license--Invoice.create.1.json | 2 +- ..._additional_license--Invoice.create.2.json | 2 +- ...itional_license--InvoiceItem.create.1.json | 1 + ...itional_license--InvoiceItem.create.2.json | 1 + ...al_license--checkout.Session.create.1.json | 24 +- ...onal_license--checkout.Session.list.1.json | 24 +- ...mote_realm_upgrade--Customer.create.1.json | 4 +- ...mote_realm_upgrade--Customer.modify.1.json | 4 +- ...te_realm_upgrade--Customer.retrieve.1.json | 4 +- ...te_realm_upgrade--Customer.retrieve.2.json | 4 +- ...te_realm_upgrade--Customer.retrieve.3.json | 4 +- ...te_realm_upgrade--Customer.retrieve.4.json | 4 +- ...te_realm_upgrade--Customer.retrieve.5.json | 4 +- ...al_remote_realm_upgrade--Event.list.1.json | 6 +- ...al_remote_realm_upgrade--Event.list.2.json | 35 +- ...al_remote_realm_upgrade--Event.list.3.json | 9 +- ...emote_realm_upgrade--Invoice.create.1.json | 2 +- ...e_realm_upgrade--InvoiceItem.create.1.json | 1 + ...e_realm_upgrade--InvoiceItem.create.2.json | 1 + ...lm_upgrade--checkout.Session.create.1.json | 28 +- ...ealm_upgrade--checkout.Session.list.1.json | 28 +- ...l_remote_server_upgrade--Event.list.1.json | 2 +- ...l_remote_server_upgrade--Event.list.2.json | 29 +- ...l_remote_server_upgrade--Event.list.3.json | 9 +- ...mote_server_upgrade--Invoice.create.1.json | 2 +- ..._server_upgrade--InvoiceItem.create.1.json | 1 + ..._server_upgrade--InvoiceItem.create.2.json | 1 + ...er_upgrade--checkout.Session.create.1.json | 24 +- ...rver_upgrade--checkout.Session.list.1.json | 24 +- ...with_uncaught_exception--Event.list.1.json | 2 +- ...with_uncaught_exception--Event.list.2.json | 33 +- ...with_uncaught_exception--Event.list.3.json | 165 ++++- ..._uncaught_exception--Invoice.create.1.json | 2 +- ...aught_exception--InvoiceItem.create.1.json | 1 + ..._exception--checkout.Session.create.1.json | 24 +- ...ht_exception--checkout.Session.list.1.json | 24 +- .../invoice_plan--Event.list.1.json | 2 +- .../invoice_plan--Event.list.2.json | 33 +- .../invoice_plan--Event.list.3.json | 4 +- .../invoice_plan--Invoice.create.1.json | 2 +- .../invoice_plan--Invoice.create.2.json | 2 +- .../invoice_plan--InvoiceItem.create.1.json | 1 + .../invoice_plan--InvoiceItem.create.2.json | 1 + .../invoice_plan--InvoiceItem.create.3.json | 1 + .../invoice_plan--InvoiceItem.create.4.json | 1 + ...voice_plan--checkout.Session.create.1.json | 24 +- ...invoice_plan--checkout.Session.list.1.json | 24 +- ...ce_plans_as_needed--Customer.create.1.json | 4 +- ...ce_plans_as_needed--Customer.modify.1.json | 4 +- ..._plans_as_needed--Customer.retrieve.1.json | 4 +- ..._plans_as_needed--Customer.retrieve.2.json | 4 +- ..._plans_as_needed--Customer.retrieve.3.json | 4 +- ..._plans_as_needed--Customer.retrieve.4.json | 4 +- ..._plans_as_needed--Customer.retrieve.5.json | 4 +- ...invoice_plans_as_needed--Event.list.1.json | 6 +- ...invoice_plans_as_needed--Event.list.2.json | 281 ++++---- ...invoice_plans_as_needed--Event.list.3.json | 146 +--- ...ice_plans_as_needed--Invoice.create.1.json | 2 +- ...ice_plans_as_needed--Invoice.create.2.json | 2 +- ...plans_as_needed--InvoiceItem.create.1.json | 1 + ...plans_as_needed--InvoiceItem.create.2.json | 1 + ...plans_as_needed--InvoiceItem.create.3.json | 1 + ...plans_as_needed--InvoiceItem.create.4.json | 1 + ...plans_as_needed--InvoiceItem.create.5.json | 1 + ..._as_needed--checkout.Session.create.1.json | 28 +- ...ns_as_needed--checkout.Session.list.1.json | 28 +- ..._plans_as_needed_server--Event.list.1.json | 2 +- ..._plans_as_needed_server--Event.list.2.json | 27 +- ..._plans_as_needed_server--Event.list.3.json | 9 +- ...ns_as_needed_server--Invoice.create.1.json | 2 +- ...ns_as_needed_server--Invoice.create.2.json | 2 +- ...s_needed_server--InvoiceItem.create.1.json | 1 + ...s_needed_server--InvoiceItem.create.2.json | 1 + ...s_needed_server--InvoiceItem.create.3.json | 1 + ...s_needed_server--InvoiceItem.create.4.json | 1 + ...s_needed_server--InvoiceItem.create.5.json | 1 + ...ded_server--checkout.Session.create.1.json | 24 +- ...eeded_server--checkout.Session.list.1.json | 24 +- ...entary_access_plan--Customer.create.1.json | 4 +- ...entary_access_plan--Customer.modify.1.json | 4 +- ...tary_access_plan--Customer.retrieve.1.json | 4 +- ...tary_access_plan--Customer.retrieve.2.json | 4 +- ...tary_access_plan--Customer.retrieve.3.json | 4 +- ...tary_access_plan--Customer.retrieve.4.json | 4 +- ...tary_access_plan--Customer.retrieve.5.json | 4 +- ...mentary_access_plan--Invoice.create.1.json | 2 +- ...ary_access_plan--InvoiceItem.create.1.json | 1 + ...ary_access_plan--InvoiceItem.create.2.json | 1 + ...ccess_plan--checkout.Session.create.1.json | 28 +- ..._access_plan--checkout.Session.list.1.json | 28 +- ...mentary_access_plan--Invoice.create.1.json | 2 +- ...cess_plan--Invoice.finalize_invoice.1.json | 2 +- ...limentary_access_plan--Invoice.list.2.json | 2 +- ...ary_access_plan--InvoiceItem.create.1.json | 1 + ...ary_access_plan--InvoiceItem.create.2.json | 1 + ...ccess_plan--checkout.Session.create.1.json | 24 +- ..._access_plan--checkout.Session.list.1.json | 24 +- ...realms_and_upgrade--Customer.create.1.json | 4 +- ...realms_and_upgrade--Customer.modify.1.json | 4 +- ...alms_and_upgrade--Customer.retrieve.1.json | 4 +- ...alms_and_upgrade--Customer.retrieve.2.json | 4 +- ...alms_and_upgrade--Customer.retrieve.3.json | 4 +- ...alms_and_upgrade--Customer.retrieve.4.json | 4 +- ...alms_and_upgrade--Customer.retrieve.5.json | 4 +- ...alms_and_upgrade--Customer.retrieve.6.json | 4 +- ...r_to_realms_and_upgrade--Event.list.1.json | 6 +- ...r_to_realms_and_upgrade--Event.list.2.json | 39 +- ...r_to_realms_and_upgrade--Event.list.3.json | 15 +- ..._realms_and_upgrade--Invoice.create.1.json | 2 +- ...d_upgrade--Invoice.finalize_invoice.1.json | 2 +- ..._to_realms_and_upgrade--Invoice.pay.1.json | 2 +- ...lms_and_upgrade--InvoiceItem.create.1.json | 1 + ...lms_and_upgrade--InvoiceItem.create.2.json | 1 + ...nd_upgrade--checkout.Session.create.1.json | 28 +- ..._and_upgrade--checkout.Session.list.1.json | 28 +- ...non_sponsorship_billing--Event.list.1.json | 2 +- ...non_sponsorship_billing--Event.list.2.json | 29 +- ...non_sponsorship_billing--Event.list.3.json | 9 +- ...sponsorship_billing--Invoice.create.1.json | 2 +- ...sorship_billing--InvoiceItem.create.1.json | 1 + ...sorship_billing--InvoiceItem.create.2.json | 1 + ...ip_billing--checkout.Session.create.1.json | 24 +- ...ship_billing--checkout.Session.list.1.json | 24 +- .../payment_method_string--Event.list.1.json | 2 +- .../payment_method_string--Event.list.2.json | 363 +++++----- .../payment_method_string--Event.list.3.json | 172 +---- .../payment_method_string--Event.list.4.json | 6 - ...yment_method_string--Invoice.create.1.json | 2 +- ...od_string--Invoice.finalize_invoice.1.json | 2 +- .../payment_method_string--Invoice.pay.1.json | 2 +- ...t_method_string--InvoiceItem.create.1.json | 1 + ...hod_string--checkout.Session.create.1.json | 24 +- ...ethod_string--checkout.Session.list.1.json | 24 +- ...grade_at_free_trial_end--Event.list.1.json | 2 +- ..._trial_end--checkout.Session.create.1.json | 24 +- ...ee_trial_end--checkout.Session.list.1.json | 24 +- ..._at_free_trial_end--Customer.create.1.json | 4 +- ..._at_free_trial_end--Customer.modify.1.json | 4 +- ...t_free_trial_end--Customer.retrieve.1.json | 4 +- ...t_free_trial_end--Customer.retrieve.2.json | 4 +- ...t_free_trial_end--Customer.retrieve.3.json | 4 +- ...t_free_trial_end--Customer.retrieve.4.json | 4 +- ...t_free_trial_end--Customer.retrieve.5.json | 4 +- ...t_free_trial_end--Customer.retrieve.6.json | 4 +- ...grade_at_free_trial_end--Event.list.1.json | 6 +- ..._trial_end--checkout.Session.create.1.json | 28 +- ...ee_trial_end--checkout.Session.list.1.json | 28 +- ...grade_at_free_trial_end--Event.list.1.json | 2 +- ..._trial_end--checkout.Session.create.1.json | 24 +- ...ee_trial_end--checkout.Session.list.1.json | 24 +- .../replace_payment_method--Event.list.1.json | 53 +- .../replace_payment_method--Event.list.2.json | 29 +- .../replace_payment_method--Event.list.3.json | 4 +- ...lace_payment_method--Invoice.create.1.json | 2 +- ...lace_payment_method--Invoice.create.2.json | 2 +- ...replace_payment_method--Invoice.pay.2.json | 22 +- ..._payment_method--InvoiceItem.create.1.json | 1 + ..._payment_method--SetupIntent.create.2.json | 20 +- ...ent_method--checkout.Session.create.1.json | 24 +- ...ent_method--checkout.Session.create.2.json | 24 +- ...ent_method--checkout.Session.create.3.json | 24 +- ...ent_method--checkout.Session.create.4.json | 24 +- ...ent_method--checkout.Session.create.5.json | 24 +- ...yment_method--checkout.Session.list.1.json | 24 +- ...yment_method--checkout.Session.list.2.json | 24 +- ...yment_method--checkout.Session.list.3.json | 24 +- ...o_fixed_price_plan--Customer.create.1.json | 4 +- ...o_fixed_price_plan--Customer.modify.1.json | 4 +- ...fixed_price_plan--Customer.retrieve.1.json | 4 +- ...fixed_price_plan--Customer.retrieve.2.json | 4 +- ...fixed_price_plan--Customer.retrieve.3.json | 4 +- ...fixed_price_plan--Customer.retrieve.4.json | 4 +- ...fixed_price_plan--Customer.retrieve.5.json | 4 +- ...to_fixed_price_plan--Invoice.create.1.json | 2 +- ...ixed_price_plan--InvoiceItem.create.1.json | 1 + ...price_plan--checkout.Session.create.1.json | 28 +- ...d_price_plan--checkout.Session.list.1.json | 28 +- ...r_fixed_price_plan--Customer.create.1.json | 4 +- ...r_fixed_price_plan--Customer.modify.1.json | 4 +- ...fixed_price_plan--Customer.retrieve.1.json | 4 +- ...fixed_price_plan--Customer.retrieve.2.json | 4 +- ...fixed_price_plan--Customer.retrieve.3.json | 4 +- ...fixed_price_plan--Customer.retrieve.4.json | 4 +- ...fixed_price_plan--Customer.retrieve.5.json | 4 +- ...nother_fixed_price_plan--Event.list.1.json | 6 +- ...nother_fixed_price_plan--Event.list.2.json | 33 +- ...nother_fixed_price_plan--Event.list.3.json | 4 +- ...er_fixed_price_plan--Invoice.create.1.json | 2 +- ...r_fixed_price_plan--Invoice.create.10.json | 2 +- ...r_fixed_price_plan--Invoice.create.11.json | 2 +- ...r_fixed_price_plan--Invoice.create.12.json | 2 +- ...r_fixed_price_plan--Invoice.create.13.json | 2 +- ...er_fixed_price_plan--Invoice.create.2.json | 2 +- ...er_fixed_price_plan--Invoice.create.3.json | 2 +- ...er_fixed_price_plan--Invoice.create.4.json | 2 +- ...er_fixed_price_plan--Invoice.create.5.json | 2 +- ...er_fixed_price_plan--Invoice.create.6.json | 2 +- ...er_fixed_price_plan--Invoice.create.7.json | 2 +- ...er_fixed_price_plan--Invoice.create.8.json | 2 +- ...er_fixed_price_plan--Invoice.create.9.json | 2 +- ...ice_plan--Invoice.finalize_invoice.11.json | 2 +- ...rice_plan--Invoice.finalize_invoice.5.json | 2 +- ...ixed_price_plan--InvoiceItem.create.1.json | 1 + ...xed_price_plan--InvoiceItem.create.10.json | 1 + ...xed_price_plan--InvoiceItem.create.11.json | 1 + ...xed_price_plan--InvoiceItem.create.12.json | 1 + ...xed_price_plan--InvoiceItem.create.13.json | 1 + ...ixed_price_plan--InvoiceItem.create.2.json | 1 + ...ixed_price_plan--InvoiceItem.create.3.json | 1 + ...ixed_price_plan--InvoiceItem.create.4.json | 1 + ...ixed_price_plan--InvoiceItem.create.5.json | 1 + ...ixed_price_plan--InvoiceItem.create.6.json | 1 + ...ixed_price_plan--InvoiceItem.create.7.json | 1 + ...ixed_price_plan--InvoiceItem.create.8.json | 1 + ...ixed_price_plan--InvoiceItem.create.9.json | 1 + ...price_plan--checkout.Session.create.1.json | 28 +- ...d_price_plan--checkout.Session.list.1.json | 28 +- ...to_fixed_price_plan--Invoice.create.1.json | 2 +- ...rice_plan--Invoice.finalize_invoice.1.json | 2 +- ...ixed_price_plan--InvoiceItem.create.1.json | 1 + ...price_plan--checkout.Session.create.1.json | 24 +- ...d_price_plan--checkout.Session.list.1.json | 24 +- ...xed_price_business_plan--Event.list.1.json | 2 +- ...xed_price_business_plan--Event.list.2.json | 27 +- ...xed_price_business_plan--Event.list.3.json | 9 +- ...price_business_plan--Invoice.create.1.json | 2 +- ...price_business_plan--Invoice.create.2.json | 2 +- ...ness_plan--Invoice.finalize_invoice.2.json | 2 +- ...e_business_plan--InvoiceItem.create.1.json | 1 + ...e_business_plan--InvoiceItem.create.2.json | 1 + ...e_business_plan--InvoiceItem.create.3.json | 1 + ...iness_plan--checkout.Session.create.1.json | 24 +- ...usiness_plan--checkout.Session.list.1.json | 24 +- ...nual_business_plan--Customer.create.1.json | 4 +- ...nual_business_plan--Customer.modify.1.json | 4 +- ...al_business_plan--Customer.retrieve.1.json | 4 +- ...al_business_plan--Customer.retrieve.2.json | 4 +- ...al_business_plan--Customer.retrieve.3.json | 4 +- ...al_business_plan--Customer.retrieve.4.json | 4 +- ...al_business_plan--Customer.retrieve.5.json | 4 +- ...al_business_plan--Customer.retrieve.6.json | 4 +- ...ce_annual_business_plan--Event.list.1.json | 6 +- ...ce_annual_business_plan--Event.list.2.json | 33 +- ...ce_annual_business_plan--Event.list.3.json | 9 +- ...nnual_business_plan--Invoice.create.1.json | 2 +- ...nnual_business_plan--Invoice.create.2.json | 2 +- ...l_business_plan--InvoiceItem.create.1.json | 1 + ...l_business_plan--InvoiceItem.create.2.json | 1 + ...l_business_plan--InvoiceItem.create.3.json | 1 + ...iness_plan--checkout.Session.create.1.json | 28 +- ...usiness_plan--checkout.Session.list.1.json | 28 +- ...for_realms_on_paid_plan--Event.list.1.json | 2 +- ...for_realms_on_paid_plan--Event.list.2.json | 245 ++----- ...for_realms_on_paid_plan--Event.list.3.json | 222 +++++- ...realms_on_paid_plan--Invoice.create.1.json | 2 +- ...paid_plan--Invoice.finalize_invoice.1.json | 2 +- ...or_realms_on_paid_plan--Invoice.pay.1.json | 2 +- ...ms_on_paid_plan--InvoiceItem.create.1.json | 1 + ..._paid_plan--checkout.Session.create.1.json | 24 +- ...on_paid_plan--checkout.Session.list.1.json | 24 +- ...ipe_billing_portal_urls--Event.list.1.json | 33 +- ...ipe_billing_portal_urls--Event.list.2.json | 37 +- ...billing_portal_urls--Invoice.create.1.json | 2 +- ...rtal_urls--Invoice.finalize_invoice.1.json | 2 +- ...pe_billing_portal_urls--Invoice.pay.1.json | 2 +- ...ing_portal_urls--InvoiceItem.create.1.json | 1 + ...billing_portal.Configuration.create.1.json | 4 +- ...billing_portal.Configuration.create.2.json | 4 +- ...billing_portal.Configuration.create.3.json | 4 +- ...urls--billing_portal.Session.create.1.json | 2 +- ...ortal_urls--checkout.Session.create.1.json | 24 +- ..._portal_urls--checkout.Session.list.1.json | 24 +- ...s_for_remote_realm--Customer.create.1.json | 4 +- ...s_for_remote_realm--Customer.modify.1.json | 4 +- ...for_remote_realm--Customer.retrieve.1.json | 4 +- ...for_remote_realm--Customer.retrieve.2.json | 4 +- ...for_remote_realm--Customer.retrieve.3.json | 4 +- ...for_remote_realm--Customer.retrieve.4.json | 4 +- ...for_remote_realm--Customer.retrieve.5.json | 4 +- ...l_urls_for_remote_realm--Event.list.1.json | 6 +- ...l_urls_for_remote_realm--Event.list.2.json | 33 +- ...l_urls_for_remote_realm--Event.list.3.json | 9 +- ...ls_for_remote_realm--Invoice.create.1.json | 2 +- ...or_remote_realm--InvoiceItem.create.1.json | 1 + ...or_remote_realm--InvoiceItem.create.2.json | 1 + ...billing_portal.Configuration.create.1.json | 4 +- ...billing_portal.Configuration.create.2.json | 4 +- ...ealm--billing_portal.Session.create.1.json | 2 +- ...ealm--billing_portal.Session.create.2.json | 2 +- ...mote_realm--checkout.Session.create.1.json | 28 +- ...remote_realm--checkout.Session.list.1.json | 28 +- ..._urls_for_remote_server--Event.list.1.json | 2 +- ..._urls_for_remote_server--Event.list.2.json | 29 +- ..._urls_for_remote_server--Event.list.3.json | 9 +- ...s_for_remote_server--Invoice.create.1.json | 2 +- ...r_remote_server--InvoiceItem.create.1.json | 1 + ...r_remote_server--InvoiceItem.create.2.json | 1 + ...billing_portal.Configuration.create.1.json | 4 +- ...billing_portal.Configuration.create.2.json | 4 +- ...ote_server--checkout.Session.create.1.json | 24 +- ...emote_server--checkout.Session.list.1.json | 24 +- ...atic_license_management--Event.list.1.json | 2 +- ...atic_license_management--Event.list.2.json | 27 +- ...atic_license_management--Event.list.3.json | 4 +- ..._license_management--Invoice.create.1.json | 2 +- ..._license_management--Invoice.create.2.json | 2 +- ..._license_management--Invoice.create.3.json | 2 +- ...ense_management--InvoiceItem.create.1.json | 1 + ...ense_management--InvoiceItem.create.2.json | 1 + ...ense_management--InvoiceItem.create.3.json | 1 + ...ense_management--InvoiceItem.create.4.json | 1 + ...management--checkout.Session.create.1.json | 24 +- ...e_management--checkout.Session.list.1.json | 24 +- ...atic_license_management--Event.list.1.json | 2 +- ...atic_license_management--Event.list.2.json | 35 +- ...atic_license_management--Event.list.3.json | 4 +- ..._license_management--Invoice.create.1.json | 2 +- ..._license_management--Invoice.create.2.json | 2 +- ..._license_management--Invoice.create.3.json | 2 +- ..._license_management--Invoice.create.4.json | 2 +- ..._license_management--Invoice.create.5.json | 2 +- ...anagement--Invoice.finalize_invoice.2.json | 2 +- ...anagement--Invoice.finalize_invoice.5.json | 2 +- ...ic_license_management--Invoice.list.4.json | 2 +- ...ense_management--InvoiceItem.create.1.json | 1 + ...ense_management--InvoiceItem.create.2.json | 1 + ...ense_management--InvoiceItem.create.3.json | 1 + ...ense_management--InvoiceItem.create.4.json | 1 + ...ense_management--InvoiceItem.create.5.json | 1 + ...ense_management--InvoiceItem.create.6.json | 1 + ...management--checkout.Session.create.1.json | 24 +- ...e_management--checkout.Session.list.1.json | 24 +- ...nual_license_management--Event.list.1.json | 2 +- ...nual_license_management--Event.list.2.json | 29 +- ...nual_license_management--Event.list.3.json | 4 +- ..._license_management--Invoice.create.1.json | 2 +- ..._license_management--Invoice.create.2.json | 2 +- ..._license_management--Invoice.create.3.json | 2 +- ...ense_management--InvoiceItem.create.1.json | 1 + ...ense_management--InvoiceItem.create.2.json | 1 + ...ense_management--InvoiceItem.create.3.json | 1 + ...management--checkout.Session.create.1.json | 24 +- ...e_management--checkout.Session.list.1.json | 24 +- ..._from_annual_to_monthly--Event.list.1.json | 53 +- ...to_monthly--checkout.Session.create.1.json | 24 +- ...l_to_monthly--checkout.Session.list.1.json | 24 +- ..._from_monthly_to_annual--Event.list.1.json | 2 +- ..._to_annual--checkout.Session.create.1.json | 24 +- ...ly_to_annual--checkout.Session.list.1.json | 24 +- ...Customer.create_balance_transaction.1.json | 4 +- ...m_standard_to_plus_plan--Event.list.1.json | 53 +- ...m_standard_to_plus_plan--Event.list.2.json | 41 +- ...m_standard_to_plus_plan--Event.list.3.json | 8 +- ...andard_to_plus_plan--Invoice.create.1.json | 2 +- ...andard_to_plus_plan--Invoice.create.2.json | 4 +- ...plus_plan--Invoice.finalize_invoice.1.json | 2 +- ...plus_plan--Invoice.finalize_invoice.2.json | 6 +- ..._standard_to_plus_plan--Invoice.pay.1.json | 2 +- ...rd_to_plus_plan--InvoiceItem.create.1.json | 1 + ...rd_to_plus_plan--InvoiceItem.create.2.json | 1 + ..._plus_plan--checkout.Session.create.1.json | 24 +- ...to_plus_plan--checkout.Session.list.1.json | 24 +- ..._plan_from_billing_page--Event.list.1.json | 2 +- ..._plan_from_billing_page--Event.list.2.json | 236 ++----- ..._plan_from_billing_page--Event.list.3.json | 180 ++++- ...n_from_billing_page--Invoice.create.1.json | 2 +- ...n_from_billing_page--Invoice.create.2.json | 2 +- ...n_from_billing_page--Invoice.create.3.json | 2 +- ...n_from_billing_page--Invoice.create.4.json | 2 +- ...om_billing_page--InvoiceItem.create.1.json | 1 + ...om_billing_page--InvoiceItem.create.2.json | 1 + ...om_billing_page--InvoiceItem.create.3.json | 1 + ...om_billing_page--InvoiceItem.create.4.json | 1 + .../upgrade_by_card--Charge.list.1.json | 2 +- .../upgrade_by_card--Event.list.1.json | 2 +- .../upgrade_by_card--Event.list.2.json | 2 +- .../upgrade_by_card--Event.list.3.json | 31 +- .../upgrade_by_card--Event.list.4.json | 4 +- .../upgrade_by_card--Invoice.create.1.json | 2 +- ...upgrade_by_card--InvoiceItem.create.1.json | 1 + ...de_by_card--checkout.Session.create.1.json | 24 +- ...rade_by_card--checkout.Session.list.1.json | 24 +- ...e_by_card_to_plus_plan--Charge.list.1.json | 2 +- ...de_by_card_to_plus_plan--Event.list.1.json | 2 +- ...de_by_card_to_plus_plan--Event.list.2.json | 29 +- ...de_by_card_to_plus_plan--Event.list.3.json | 4 +- ...y_card_to_plus_plan--Invoice.create.1.json | 2 +- ...rd_to_plus_plan--InvoiceItem.create.1.json | 1 + ..._plus_plan--checkout.Session.create.1.json | 24 +- ...to_plus_plan--checkout.Session.list.1.json | 24 +- ...dated_lower_seat_count--Charge.list.1.json | 2 +- ...tdated_lower_seat_count--Event.list.1.json | 2 +- ...tdated_lower_seat_count--Event.list.2.json | 666 +++++++++--------- ...tdated_lower_seat_count--Event.list.3.json | 9 +- ...tdated_lower_seat_count--Event.list.4.json | 164 +---- ...tdated_lower_seat_count--Event.list.5.json | 6 - ...ed_lower_seat_count--Invoice.create.1.json | 2 +- ...ower_seat_count--InvoiceItem.create.1.json | 1 + ...seat_count--checkout.Session.create.1.json | 24 +- ...r_seat_count--checkout.Session.list.1.json | 24 +- ...th_outdated_seat_count--Charge.list.1.json | 2 +- ...ith_outdated_seat_count--Event.list.1.json | 2 +- ...ith_outdated_seat_count--Event.list.2.json | 35 +- ...ith_outdated_seat_count--Event.list.3.json | 8 +- ...ith_outdated_seat_count--Event.list.4.json | 18 +- ...outdated_seat_count--Invoice.create.1.json | 2 +- ...outdated_seat_count--Invoice.create.2.json | 2 +- ...eat_count--Invoice.finalize_invoice.1.json | 2 +- ...h_outdated_seat_count--Invoice.list.2.json | 2 +- ...th_outdated_seat_count--Invoice.pay.1.json | 2 +- ...ated_seat_count--InvoiceItem.create.1.json | 1 + ...ated_seat_count--InvoiceItem.create.2.json | 1 + ...seat_count--checkout.Session.create.1.json | 24 +- ...d_seat_count--checkout.Session.list.1.json | 24 +- ..._minimum_for_plan_tier--Charge.list.1.json | 2 +- ...d_minimum_for_plan_tier--Event.list.1.json | 2 +- ...d_minimum_for_plan_tier--Event.list.2.json | 247 ++----- ...d_minimum_for_plan_tier--Event.list.3.json | 222 +++++- ...nimum_for_plan_tier--Invoice.create.1.json | 2 +- ...plan_tier--Invoice.finalize_invoice.1.json | 2 +- ...minimum_for_plan_tier--Invoice.list.2.json | 2 +- ..._minimum_for_plan_tier--Invoice.pay.1.json | 2 +- ...m_for_plan_tier--InvoiceItem.create.1.json | 1 + ..._plan_tier--checkout.Session.create.1.json | 24 +- ...or_plan_tier--checkout.Session.list.1.json | 24 +- .../upgrade_by_invoice--Event.list.1.json | 164 +---- .../upgrade_by_invoice--Event.list.2.json | 29 +- .../upgrade_by_invoice--Event.list.3.json | 2 +- .../upgrade_by_invoice--Invoice.create.1.json | 2 +- ...rade_by_invoice--InvoiceItem.create.1.json | 1 + ...by_invoice_to_plus_plan--Event.list.1.json | 2 +- ...by_invoice_to_plus_plan--Event.list.2.json | 35 +- ...by_invoice_to_plus_plan--Event.list.3.json | 4 +- ...nvoice_to_plus_plan--Invoice.create.1.json | 2 +- ...plus_plan--Invoice.finalize_invoice.1.json | 2 +- ..._invoice_to_plus_plan--Invoice.list.1.json | 2 +- ...y_invoice_to_plus_plan--Invoice.pay.1.json | 2 +- ...ce_to_plus_plan--InvoiceItem.create.1.json | 1 + ...ccess_plan--checkout.Session.create.1.json | 24 +- ..._access_plan--checkout.Session.list.1.json | 24 +- ...nse_counts--checkout.Session.create.1.json | 24 +- ...cense_counts--checkout.Session.list.1.json | 24 +- ...rade_pay_by_invoice--Invoice.create.1.json | 2 +- ...y_invoice--Invoice.finalize_invoice.1.json | 2 +- ...ade_pay_by_invoice--Invoice.refresh.1.json | 2 +- ...de_pay_by_invoice--Invoice.retrieve.1.json | 2 +- ..._pay_by_invoice--InvoiceItem.create.1.json | 1 + ...ion_during_card_upgrade--Event.list.1.json | 2 +- ...ion_during_card_upgrade--Event.list.2.json | 27 +- ...ion_during_card_upgrade--Event.list.3.json | 4 +- ...during_card_upgrade--Invoice.create.1.json | 2 +- ...ng_card_upgrade--InvoiceItem.create.1.json | 1 + ...rd_upgrade--checkout.Session.create.1.json | 24 +- ...card_upgrade--checkout.Session.list.1.json | 24 +- ...monthly_basic_plan--Customer.create.1.json | 4 +- ...monthly_basic_plan--Customer.modify.1.json | 4 +- ...nthly_basic_plan--Customer.retrieve.1.json | 4 +- ...nthly_basic_plan--Customer.retrieve.2.json | 4 +- ...nthly_basic_plan--Customer.retrieve.3.json | 4 +- ...nthly_basic_plan--Customer.retrieve.4.json | 4 +- ...nthly_basic_plan--Customer.retrieve.5.json | 4 +- ...nthly_basic_plan--Customer.retrieve.6.json | 4 +- ...nthly_basic_plan--Customer.retrieve.7.json | 4 +- ...r_to_monthly_basic_plan--Event.list.1.json | 6 +- ...r_to_monthly_basic_plan--Event.list.2.json | 189 ++--- ...r_to_monthly_basic_plan--Event.list.3.json | 146 +++- ..._monthly_basic_plan--Invoice.create.1.json | 2 +- ...thly_basic_plan--InvoiceItem.create.1.json | 1 + ...thly_basic_plan--InvoiceItem.create.2.json | 1 + ...basic_plan--checkout.Session.create.1.json | 28 +- ...y_basic_plan--checkout.Session.list.1.json | 28 +- ...rice_monthly_basic_plan--Event.list.1.json | 2 +- ...rice_monthly_basic_plan--Event.list.2.json | 256 ++----- ...rice_monthly_basic_plan--Event.list.3.json | 194 ++++- ..._monthly_basic_plan--Invoice.create.1.json | 2 +- ..._monthly_basic_plan--Invoice.create.2.json | 2 +- ..._monthly_basic_plan--Invoice.create.3.json | 2 +- ...asic_plan--Invoice.finalize_invoice.1.json | 4 +- ...asic_plan--Invoice.finalize_invoice.2.json | 2 +- ...asic_plan--Invoice.finalize_invoice.3.json | 2 +- ...ice_monthly_basic_plan--Invoice.pay.1.json | 4 +- ...thly_basic_plan--InvoiceItem.create.1.json | 1 + ...thly_basic_plan--InvoiceItem.create.2.json | 1 + ...thly_basic_plan--InvoiceItem.create.3.json | 1 + ...basic_plan--checkout.Session.create.1.json | 21 +- ...y_basic_plan--checkout.Session.list.1.json | 21 +- ...r_to_monthly_basic_plan--Event.list.1.json | 2 +- ...r_to_monthly_basic_plan--Event.list.2.json | 29 +- ...r_to_monthly_basic_plan--Event.list.3.json | 9 +- ..._monthly_basic_plan--Invoice.create.1.json | 2 +- ...thly_basic_plan--InvoiceItem.create.1.json | 1 + ...thly_basic_plan--InvoiceItem.create.2.json | 1 + ...basic_plan--checkout.Session.create.1.json | 24 +- ...y_basic_plan--checkout.Session.list.1.json | 24 +- ...o_fixed_price_plus_plan--Event.list.1.json | 2 +- ...o_fixed_price_plus_plan--Event.list.2.json | 364 +++++----- ...o_fixed_price_plus_plan--Event.list.3.json | 180 ++++- ...xed_price_plus_plan--Invoice.create.1.json | 2 +- ...xed_price_plus_plan--Invoice.create.2.json | 2 +- ...plus_plan--Invoice.finalize_invoice.2.json | 2 +- ...price_plus_plan--InvoiceItem.create.1.json | 1 + ...price_plus_plan--InvoiceItem.create.2.json | 1 + ...ic_plan_free_trial--Customer.create.1.json | 4 +- ...ic_plan_free_trial--Customer.modify.1.json | 4 +- ..._plan_free_trial--Customer.retrieve.1.json | 4 +- ..._plan_free_trial--Customer.retrieve.2.json | 4 +- ..._plan_free_trial--Customer.retrieve.3.json | 4 +- ..._plan_free_trial--Customer.retrieve.4.json | 4 +- ..._plan_free_trial--Customer.retrieve.5.json | 4 +- ..._plan_free_trial--Customer.retrieve.6.json | 4 +- ..._plan_free_trial--Customer.retrieve.7.json | 4 +- ...o_basic_plan_free_trial--Event.list.1.json | 6 +- ...free_trial--checkout.Session.create.1.json | 28 +- ...n_free_trial--checkout.Session.list.1.json | 28 +- ...ree_trial_remote_server--Event.list.1.json | 2 +- ...ote_server--checkout.Session.create.1.json | 24 +- ...emote_server--checkout.Session.list.1.json | 24 +- ...r_to_business_plan--Customer.create.1.json | 4 +- ...r_to_business_plan--Customer.modify.1.json | 4 +- ...to_business_plan--Customer.retrieve.1.json | 4 +- ...to_business_plan--Customer.retrieve.2.json | 4 +- ...to_business_plan--Customer.retrieve.3.json | 4 +- ...to_business_plan--Customer.retrieve.4.json | 4 +- ...to_business_plan--Customer.retrieve.5.json | 4 +- ...to_business_plan--Customer.retrieve.6.json | 4 +- ...to_business_plan--Customer.retrieve.7.json | 4 +- ...e_user_to_business_plan--Event.list.1.json | 6 +- ...e_user_to_business_plan--Event.list.2.json | 31 +- ...e_user_to_business_plan--Event.list.3.json | 9 +- ...er_to_business_plan--Invoice.create.1.json | 2 +- ...o_business_plan--InvoiceItem.create.1.json | 1 + ...o_business_plan--InvoiceItem.create.2.json | 1 + ...iness_plan--checkout.Session.create.1.json | 28 +- ...usiness_plan--checkout.Session.list.1.json | 28 +- ...monthly_basic_plan--Customer.create.1.json | 4 +- ...monthly_basic_plan--Customer.modify.1.json | 4 +- ...nthly_basic_plan--Customer.retrieve.1.json | 4 +- ...nthly_basic_plan--Customer.retrieve.2.json | 4 +- ...nthly_basic_plan--Customer.retrieve.3.json | 4 +- ...nthly_basic_plan--Customer.retrieve.4.json | 4 +- ...nthly_basic_plan--Customer.retrieve.5.json | 4 +- ...nthly_basic_plan--Customer.retrieve.6.json | 4 +- ...rice_monthly_basic_plan--Event.list.1.json | 6 +- ...rice_monthly_basic_plan--Event.list.2.json | 37 +- ...rice_monthly_basic_plan--Event.list.3.json | 4 +- ..._monthly_basic_plan--Invoice.create.1.json | 2 +- ...thly_basic_plan--InvoiceItem.create.1.json | 1 + ...basic_plan--checkout.Session.create.1.json | 28 +- ...y_basic_plan--checkout.Session.list.1.json | 28 +- ..._exception--checkout.Session.create.1.json | 24 +- ...ht_exception--checkout.Session.list.1.json | 24 +- ..._manual_plan_management--Event.list.1.json | 4 +- ..._manual_plan_management--Event.list.2.json | 35 +- ..._manual_plan_management--Event.list.3.json | 4 +- ...ual_plan_management--Invoice.create.1.json | 2 +- ...anagement--Invoice.finalize_invoice.1.json | 2 +- ...manual_plan_management--Invoice.pay.1.json | 2 +- ...plan_management--InvoiceItem.create.1.json | 1 + ...d_all_open_invoices--Invoice.create.1.json | 2 +- ...d_all_open_invoices--Invoice.create.2.json | 2 +- ...l_open_invoices--InvoiceItem.create.1.json | 1 + ...l_open_invoices--InvoiceItem.create.2.json | 1 + uv.lock | 6 +- version.py | 2 +- 746 files changed, 7726 insertions(+), 4712 deletions(-) delete mode 100644 corporate/tests/stripe_fixtures/payment_method_string--Event.list.4.json delete mode 100644 corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.5.json diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py index a01f0f5953..47c5a4e842 100644 --- a/corporate/lib/stripe.py +++ b/corporate/lib/stripe.py @@ -102,7 +102,7 @@ CARD_CAPITALIZATION = { } # The version of Stripe API the billing system supports. -STRIPE_API_VERSION = "2025-04-30.basil" +STRIPE_API_VERSION = "2025-09-30.clover" stripe.api_version = STRIPE_API_VERSION @@ -777,7 +777,7 @@ class BillingSession(ABC): assert customer is not None and customer.stripe_customer_id is not None # Check if customer has any $0 invoices. - list_params = stripe.Invoice.ListParams( + list_params = stripe.params.InvoiceListParams( customer=customer.stripe_customer_id, limit=1, status="paid", @@ -854,7 +854,7 @@ class BillingSession(ABC): plan_tier: int, billing_schedule: int, charge_automatically: bool, - invoice_period: stripe.InvoiceItem.CreateParamsPeriod, + invoice_period: stripe.params.InvoiceItemCreateParamsPeriod, license_management: str | None = None, days_until_due: int | None = None, on_free_trial: bool = False, @@ -892,7 +892,7 @@ class BillingSession(ABC): # If automatic charge fails, we simply void the invoice. # https://stripe.com/docs/invoicing/integration/automatic-advancement-collection auto_advance = not charge_automatically - invoice_params = stripe.Invoice.CreateParams( + invoice_params = stripe.params.InvoiceCreateParams( auto_advance=auto_advance, collection_method=collection_method, customer=customer.stripe_customer_id, @@ -3249,12 +3249,12 @@ class BillingSession(ABC): need_to_invoice = False # Track if we added renewal invoice item which is possibly eligible for discount. - renewal_invoice_period: stripe.InvoiceItem.CreateParamsPeriod | None = None + renewal_invoice_period: stripe.params.InvoiceItemCreateParamsPeriod | None = None for ledger_entry in LicenseLedger.objects.filter( plan=plan, id__gt=invoiced_through_id, event_time__lte=event_time ).order_by("id"): # InvoiceItem variables. - invoice_item_params = stripe.InvoiceItem.CreateParams( + invoice_item_params = stripe.params.InvoiceItemCreateParams( customer=plan.customer.stripe_customer_id ) @@ -3312,7 +3312,7 @@ class BillingSession(ABC): else: collection_method = "send_invoice" days_until_due = DEFAULT_INVOICE_DAYS_UNTIL_DUE - invoice_params = stripe.Invoice.CreateParams( + invoice_params = stripe.params.InvoiceCreateParams( auto_advance=True, collection_method=collection_method, customer=plan.customer.stripe_customer_id, @@ -3323,7 +3323,7 @@ class BillingSession(ABC): stripe_invoice = stripe.Invoice.create(**invoice_params) if invoice_item_params.get("description") is not None: - invoice_period = stripe.InvoiceItem.CreateParamsPeriod( + invoice_period = stripe.params.InvoiceItemCreateParamsPeriod( start=datetime_to_timestamp(ledger_entry.event_time), end=datetime_to_timestamp( get_plan_renewal_or_end_date(plan, ledger_entry.event_time) diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Charge.list.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Charge.list.1.json index e7046eeb4e..5b1a7c43d4 100644 --- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Charge.list.1.json +++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Charge.list.1.json @@ -58,7 +58,7 @@ "payment_method_details": { "card": { "amount_authorized": 100000, - "authorization_code": null, + "authorization_code": "082087", "brand": "visa", "checks": { "address_line1_check": "pass", diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.1.json index 1106ba28c3..195220b712 100644 --- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.2.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.2.json index bb1cbbf678..b05ae09bf7 100644 --- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -172,7 +172,7 @@ "id": "add_minimum_licenses--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "add_minimum_licenses--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "add_minimum_licenses--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "add_minimum_licenses--Event.list.2.json", "last_payment_error": null, "latest_charge": "add_minimum_licenses--Charge.list.1.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 100000, - "authorization_code": null, + "authorization_code": "082087", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "add_minimum_licenses--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "add_minimum_licenses--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "add_minimum_licenses--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 100000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "add_minimum_licenses--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.3.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.3.json index 9aa0707d3f..183d0c355f 100644 --- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.create.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.create.1.json index 87a1bad3a6..a72c8f6ee6 100644 --- a/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--InvoiceItem.create.1.json index c7c9b5aefb..748ed07c48 100644 --- a/corporate/tests/stripe_fixtures/add_minimum_licenses--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 100000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--checkout.Session.create.1.json index 8164b55279..6e88ed18a5 100644 --- a/corporate/tests/stripe_fixtures/add_minimum_licenses--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/add_minimum_licenses--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/add_minimum_licenses--checkout.Session.list.1.json index a5d2a1009c..fbc2656953 100644 --- a/corporate/tests/stripe_fixtures/add_minimum_licenses--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/add_minimum_licenses--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json index c0c642fc52..ecbbe0d932 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json @@ -58,7 +58,7 @@ "payment_method_details": { "card": { "amount_authorized": 7200, - "authorization_code": null, + "authorization_code": "119016", "brand": "visa", "checks": { "address_line1_check": "pass", diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json index 91b4b73e31..41b9349942 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json @@ -58,7 +58,7 @@ "payment_method_details": { "card": { "amount_authorized": 36000, - "authorization_code": null, + "authorization_code": "062836", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -170,7 +170,7 @@ "payment_method_details": { "card": { "amount_authorized": 7200, - "authorization_code": null, + "authorization_code": "119016", "brand": "visa", "checks": { "address_line1_check": "pass", diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.1.json index 28708a521d..c2c2844144 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json index 3e6d2608e9..c38e560139 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "attach_discount_to_realm--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "attach_discount_to_realm--Event.list.2.json", "last_payment_error": null, "latest_charge": "attach_discount_to_realm--Charge.list.1.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 7200, - "authorization_code": null, + "authorization_code": "119016", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "attach_discount_to_realm--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "attach_discount_to_realm--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "attach_discount_to_realm--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 7200, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "attach_discount_to_realm--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json index 582e72844e..49bea9a6d3 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.5.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.5.json index 18ed6593b1..9ac7bb1d04 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.5.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.5.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json index 1b9714843b..dba457fbb6 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.6.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -162,7 +162,7 @@ "id": "attach_discount_to_realm--Event.list.6.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "attach_discount_to_realm--Event.list.6.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -170,7 +170,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -341,7 +341,7 @@ "id": "attach_discount_to_realm--Event.list.6.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "attach_discount_to_realm--Event.list.6.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -349,7 +349,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -371,6 +371,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "attach_discount_to_realm--Event.list.6.json", "last_payment_error": null, "latest_charge": "attach_discount_to_realm--Charge.list.2.json", @@ -420,7 +421,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -481,7 +482,7 @@ "payment_method_details": { "card": { "amount_authorized": 36000, - "authorization_code": null, + "authorization_code": "062836", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -547,7 +548,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -716,7 +717,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -901,7 +902,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -923,6 +924,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "attach_discount_to_realm--Event.list.6.json", "last_payment_error": null, "latest_charge": null, @@ -972,7 +974,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1153,7 +1155,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1168,6 +1170,7 @@ "invoice": "attach_discount_to_realm--Event.list.6.json", "livemode": false, "metadata": {}, + "net_amount": 36000, "object": "invoiceitem", "parent": null, "period": { @@ -1199,7 +1202,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1313,7 +1316,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "attach_discount_to_realm--Event.list.6.json", @@ -1327,7 +1330,7 @@ "type": "invoice.created" } ], - "has_more": false, + "has_more": true, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json index ce78c33e21..399e09bc7d 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Event.list.7.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json index 6b3e41d291..1209476c16 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json index 8639b80a3d..a931639389 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.2.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.3.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.3.json index 7f04015042..cc8d44a40e 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.3.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Invoice.create.3.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.1.json index 40c42107e5..c8c5448a45 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 7200, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.2.json index a2d79e7aac..bf00ecb74e 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 36000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.3.json index 5431228e95..d54032e577 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 24000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.1.json index 22d4f05f27..7297cfb1f4 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.2.json index 67368792a3..691d5f5fca 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.2.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.create.2.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.1.json index 2f90535377..d0e9b9e429 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.2.json index 8879453e97..a67586b33e 100644 --- a/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.2.json +++ b/corporate/tests/stripe_fixtures/attach_discount_to_realm--checkout.Session.list.2.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.1.json index 883e52659e..0a5e0025a3 100644 --- a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json index 950129a102..f058285252 100644 --- a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -172,7 +172,7 @@ "id": "billing_page_permissions--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "billing_page_permissions--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "billing_page_permissions--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "billing_page_permissions--Event.list.2.json", "last_payment_error": null, "latest_charge": "billing_page_permissions--Event.list.2.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "840154", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -370,7 +371,7 @@ "id": "billing_page_permissions--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "billing_page_permissions--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "billing_page_permissions--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "billing_page_permissions--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -958,7 +960,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "billing_page_permissions--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "billing_page_permissions--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1208,7 +1211,7 @@ "type": "customer.updated" } ], - "has_more": false, + "has_more": true, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json index 08052d52d8..fee040cef8 100644 --- a/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.create.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.create.1.json index 0e020e933b..a100590dae 100644 --- a/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/billing_page_permissions--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--InvoiceItem.create.1.json index 40c3d12b11..d152628060 100644 --- a/corporate/tests/stripe_fixtures/billing_page_permissions--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/billing_page_permissions--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.create.1.json index cbcc2fddb9..2adb93692a 100644 --- a/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "desdemona@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.list.1.json index 5e56eac0ea..a4235d5084 100644 --- a/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/billing_page_permissions--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "desdemona@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Event.list.1.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Event.list.1.json index 37d4178fbf..dc9e864731 100644 --- a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--Event.list.1.json @@ -1,44 +1,27 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { - "address": null, - "balance": 0, + "amount_paid": 48000, + "amount_requested": 48000, "created": 1000000000, - "currency": null, - "default_source": null, - "delinquent": false, - "description": "zulip (Zulip Dev)", - "discount": null, - "email": "hamlet@zulip.com", - "id": "cancel_downgrade_at_end_of_free_trial--Customer.create.1.json", - "invoice_prefix": "NORMALIZED", - "invoice_settings": { - "custom_fields": null, - "default_payment_method": "pm_NORMALIZED", - "footer": null, - "rendering_options": null - }, + "currency": "usd", + "id": "cancel_downgrade_at_end_of_free_trial--Event.list.1.json", + "invoice": "in_NORMALIZED", + "is_default": true, "livemode": false, - "metadata": { - "realm_id": "1", - "realm_str": "zulip" + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" }, - "name": null, - "next_invoice_sequence": 1, - "object": "customer", - "phone": null, - "preferred_locales": [], - "shipping": null, - "tax_exempt": "none", - "test_clock": null - }, - "previous_attributes": { - "invoice_settings": { - "default_payment_method": null + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 } } }, @@ -47,10 +30,10 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "cancel_downgrade_at_end_of_free_trial--Event.list.1.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" + "id": null, + "idempotency_key": null }, - "type": "customer.updated" + "type": "invoice_payment.paid" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--checkout.Session.create.1.json index 4638a86eb3..4cf53bcc42 100644 --- a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--checkout.Session.list.1.json index ccf776bb71..a22ad2b56f 100644 --- a/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/cancel_downgrade_at_end_of_free_trial--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Event.list.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Event.list.1.json index a2b26612fe..38da9fbb38 100644 --- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.create.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.create.1.json index ac14cc1121..be64938c82 100644 --- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json index 47841202eb..17e19a3bbb 100644 --- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--Invoice.pay.1.json @@ -8,6 +8,7 @@ "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", + "network_decline_code": "01", "param": null, "payment_intent": { "amount": 48000, @@ -28,6 +29,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "card_attached_to_customer_but_payment_fails--Invoice.pay.1.json", "last_payment_error": { "advice_code": "try_again_later", @@ -36,6 +38,7 @@ "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", + "network_decline_code": "01", "payment_method": { "allow_redisplay": "unspecified", "billing_details": { @@ -175,7 +178,7 @@ "object": "payment_method", "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1746899180", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913616", "setup_intent": null, "source": null, "type": "card_error" @@ -188,23 +191,23 @@ "Access-Control-Max-Age": "300", "Cache-Control": "no-cache, no-store", "Connection": "keep-alive", - "Content-Length": "5309", - "Content-Security-Policy": "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=TukYFDLV2lHfmYsKO8QKy1Rs8CFOE-Ik92j0oi7ZNOKjRVL1NdvjDcjXu7lLN5teYlBHlKnXeBBeKYy1", + "Content-Length": "5394", + "Content-Security-Policy": "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=irAykxLghuCmgqrIXf-pM0galma1w0YXzU99WaktruwmWPN8iPfQgKGBqdAaBd-GGagPQijh3O5rblPQ", "Content-Type": "application/json", "Date": "NORMALIZED DATETIME", - "Idempotency-Key": "1fa7f874-a11d-4037-8138-8376033b630c", + "Idempotency-Key": "038fe7d4-6476-4c9f-9ae3-65780db13c1a", "Original-Request": "req_NORMALIZED", "Request-Id": "req_NORMALIZED", "Server": "nginx", "Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload", "Stripe-Should-Retry": "false", - "Stripe-Version": "2025-04-30.basil", + "Stripe-Version": "2025-09-30.clover", "Vary": "Origin", "X-Stripe-Priority-Routing-Enabled": "true", "X-Stripe-Routing-Context-Priority-Tier": "api-testmode", - "X-Wc": "ABGHI" + "X-Wc": "ABGHIJ" }, - "http_body": "{\n \"error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"payment_intent\": {\n \"id\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\",\n \"object\": \"payment_intent\",\n \"amount\": 48000,\n \"amount_capturable\": 0,\n \"amount_details\": {\n \"tip\": {\n }\n },\n \"amount_received\": 0,\n \"application\": null,\n \"application_fee_amount\": null,\n \"automatic_payment_methods\": null,\n \"canceled_at\": null,\n \"cancellation_reason\": null,\n \"capture_method\": \"automatic\",\n \"client_secret\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json_secret_G3EUmoq04HcLKw0N7NRThkD06\",\n \"confirmation_method\": \"automatic\",\n \"created\": 1000000000,\n \"currency\": \"usd\",\n \"customer\": \"cus_NORMALIZED\",\n \"description\": \"Payment for Invoice\",\n \"last_payment_error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"payment_method\": {\n \"id\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 5,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {\n },\n \"type\": \"card\"\n },\n \"type\": \"card_error\"\n },\n \"latest_charge\": \"ch_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {\n },\n \"next_action\": null,\n \"on_behalf_of\": null,\n \"payment_method\": null,\n \"payment_method_configuration_details\": null,\n \"payment_method_options\": {\n \"card\": {\n \"installments\": null,\n \"mandate_options\": null,\n \"network\": null,\n \"request_three_d_secure\": \"automatic\"\n },\n \"link\": {\n \"persistent_token\": null\n }\n },\n \"payment_method_types\": [\n \"card\",\n \"link\"\n ],\n \"processing\": null,\n \"receipt_email\": \"hamlet@zulip.com\",\n \"review\": null,\n \"setup_future_usage\": null,\n \"shipping\": null,\n \"source\": null,\n \"statement_descriptor\": \"Zulip Cloud Standard\",\n \"statement_descriptor_suffix\": null,\n \"status\": \"requires_payment_method\",\n \"transfer_data\": null,\n \"transfer_group\": null\n },\n \"payment_method\": {\n \"id\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 5,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {\n },\n \"type\": \"card\"\n },\n \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1746899180\",\n \"type\": \"card_error\"\n }\n}\n", + "http_body": "{\n \"error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_intent\": {\n \"id\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json\",\n \"object\": \"payment_intent\",\n \"amount\": 48000,\n \"amount_capturable\": 0,\n \"amount_details\": {\n \"tip\": {}\n },\n \"amount_received\": 0,\n \"application\": null,\n \"application_fee_amount\": null,\n \"automatic_payment_methods\": null,\n \"canceled_at\": null,\n \"cancellation_reason\": null,\n \"capture_method\": \"automatic\",\n \"client_secret\": \"card_attached_to_customer_but_payment_fails--Invoice.pay.1.json_secret_LfzkMlKx921LSChr94gZnpAuj\",\n \"confirmation_method\": \"automatic\",\n \"created\": 1000000000,\n \"currency\": \"usd\",\n \"customer\": \"cus_NORMALIZED\",\n \"description\": \"Payment for Invoice\",\n \"excluded_payment_method_types\": null,\n \"last_payment_error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_method\": {\n \"id\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 10,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"type\": \"card_error\"\n },\n \"latest_charge\": \"ch_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"next_action\": null,\n \"on_behalf_of\": null,\n \"payment_method\": null,\n \"payment_method_configuration_details\": null,\n \"payment_method_options\": {\n \"card\": {\n \"installments\": null,\n \"mandate_options\": null,\n \"network\": null,\n \"request_three_d_secure\": \"automatic\"\n },\n \"link\": {\n \"persistent_token\": null\n }\n },\n \"payment_method_types\": [\n \"card\",\n \"link\"\n ],\n \"processing\": null,\n \"receipt_email\": \"hamlet@zulip.com\",\n \"review\": null,\n \"setup_future_usage\": null,\n \"shipping\": null,\n \"source\": null,\n \"statement_descriptor\": \"Zulip Cloud Standard\",\n \"statement_descriptor_suffix\": null,\n \"status\": \"requires_payment_method\",\n \"transfer_data\": null,\n \"transfer_group\": null\n },\n \"payment_method\": {\n \"id\": \"card_attached_to_customer_but_payment_fails--Customer.retrieve.1.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 10,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913616\",\n \"type\": \"card_error\"\n }\n}\n", "http_status": 402, "json_body": { "error": { @@ -214,6 +217,7 @@ "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", + "network_decline_code": "01", "payment_intent": { "amount": 48000, "amount_capturable": 0, @@ -233,6 +237,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "card_attached_to_customer_but_payment_fails--Invoice.pay.1.json", "last_payment_error": { "advice_code": "try_again_later", @@ -241,6 +246,7 @@ "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", + "network_decline_code": "01", "payment_method": { "allow_redisplay": "unspecified", "billing_details": { @@ -380,7 +386,7 @@ "object": "payment_method", "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1746899180", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913616", "type": "card_error" } }, diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--InvoiceItem.create.1.json index f898d1d1b0..96d8dd5d82 100644 --- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.create.1.json index 71ed07bf04..0f0bdd6640 100644 --- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.list.1.json index 1075c96488..c6c07ad798 100644 --- a/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/card_attached_to_customer_but_payment_fails--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json index 27682827c4..c177b8b1e4 100644 --- a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.create.1.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json index 65fbc4de65..74210ad688 100644 --- a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.finalize_invoice.1.json @@ -142,5 +142,5 @@ "total_excluding_tax": 12000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json index 0f05caf094..7311a8e47e 100644 --- a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json +++ b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--Invoice.list.1.json @@ -144,7 +144,7 @@ "total_excluding_tax": 12000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--InvoiceItem.create.1.json index e702bf3928..68b24d6c78 100644 --- a/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/change_plan_tier_from_standard_to_plus--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 12000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.1.json index 65c4a695d4..07cee85559 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.2.json index 93422aaa03..ea31f4bbdc 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.2.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.2.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.3.json index e9333ab3fc..cdf399314c 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.3.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.3.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.4.json index c836dd4800..5e5c59feb0 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.4.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.4.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.5.json index e0cdb49b05..1a48c62908 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.5.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.5.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.6.json index 6c2b1a7b8b..969e3fff48 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.6.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.6.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.7.json index 48dd566f9d..0a443ace15 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.7.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.7.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.8.json index 29b5a15660..d6ef0c872b 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.8.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.8.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.9.json index 1e66fc72fb..ead534ded6 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.9.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.create.9.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.1.json index 4156adccd8..020166657e 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.2.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.2.json index a697c57205..4a00add78f 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.2.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.2.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.3.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.3.json index 1a1acb3543..f1395499da 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.3.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.3.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.4.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.4.json index 4c1dc9d08d..6a95ca37be 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.4.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.4.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.5.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.5.json index 1791e33b87..4bde8af439 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.5.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.5.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.6.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.6.json index 5c2cf74422..b7de2c3990 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.6.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.6.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.7.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.7.json index 6db3a53853..0da3986565 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.7.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.7.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.8.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.8.json index 7039dd1edc..b3d4a67c6d 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.8.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.8.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.9.json b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.9.json index a49227c28d..50cf6ed4b5 100644 --- a/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.9.json +++ b/corporate/tests/stripe_fixtures/check_upgrade_parameters--checkout.Session.list.9.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.1.json index 0dcf28b94c..9d1654ee7a 100644 --- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json index 7823476606..106688f863 100644 --- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -172,7 +172,7 @@ "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "customer_has_credit_card_as_default_payment_method--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json", "last_payment_error": null, "latest_charge": "customer_has_credit_card_as_default_payment_method--Event.list.2.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "283515", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "customer_has_credit_card_as_default_payment_method--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "customer_has_credit_card_as_default_payment_method--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "customer_has_credit_card_as_default_payment_method--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1208,7 +1211,7 @@ "type": "customer.updated" } ], - "has_more": false, + "has_more": true, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json index b172562035..db950e91e4 100644 --- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.create.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.create.1.json index 577e3715a0..f5c018a90f 100644 --- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--InvoiceItem.create.1.json index 0c69e4f46b..135a6b9e28 100644 --- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.create.1.json index 97833ec91f..a527c91f06 100644 --- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "iago@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.list.1.json index 3386b9a636..9ea5685afd 100644 --- a/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/customer_has_credit_card_as_default_payment_method--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "iago@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.1.json index 76945efefd..4053e082b5 100644 --- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.2.json index 6035e548e0..5c95e6ff9d 100644 --- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -172,7 +172,7 @@ "id": "customer_minimum_licenses_for_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "customer_minimum_licenses_for_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "customer_minimum_licenses_for_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "customer_minimum_licenses_for_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": "customer_minimum_licenses_for_plan--Event.list.2.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 72000, - "authorization_code": null, + "authorization_code": "084938", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "customer_minimum_licenses_for_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "customer_minimum_licenses_for_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "customer_minimum_licenses_for_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 72000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "customer_minimum_licenses_for_plan--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1208,7 +1211,7 @@ "type": "customer.updated" } ], - "has_more": false, + "has_more": true, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.3.json index fb3bfa6358..df7e247572 100644 --- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Event.list.3.json @@ -1,7 +1,42 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "amount_paid": 48000, + "amount_requested": 48000, + "created": 1000000000, + "currency": "usd", + "id": "customer_minimum_licenses_for_plan--Event.list.3.json", + "invoice": "in_NORMALIZED", + "is_default": true, + "livemode": false, + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" + }, + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 + } + } + }, + "id": "customer_minimum_licenses_for_plan--Event.list.3.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice_payment.paid" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +205,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.1.json index 04bf5e08e1..65daa945f5 100644 --- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.2.json index c193e01c0b..ecdae8f47d 100644 --- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--InvoiceItem.create.1.json index 6f37f9dbfe..ff4cefb394 100644 --- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 72000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--InvoiceItem.create.2.json index 86e8270e6d..89ffa8735c 100644 --- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 72000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--checkout.Session.create.1.json index 6b691c9d6d..fb65321db2 100644 --- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--checkout.Session.list.1.json index cc0eceaa46..8f5c75c23c 100644 --- a/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/customer_minimum_licenses_for_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Event.list.1.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Event.list.1.json index 03448ad45d..f61947595d 100644 --- a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--checkout.Session.create.1.json index 39ab0ec83d..c9ce6e6308 100644 --- a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--checkout.Session.list.1.json index f0bf9703c8..12f0cbfd4b 100644 --- a/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/downgrade_at_end_of_free_trial--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json index 6a9f7ca0bf..d3fab9d0d6 100644 --- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.1.json @@ -1,154 +1,28 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 24000, - "amount_overpaid": 0, - "amount_paid": 0, - "amount_remaining": 24000, - "amount_shipping": 0, - "application": null, - "attempt_count": 0, - "attempted": false, - "auto_advance": true, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "charge_automatically", + "amount_paid": 100000, + "amount_requested": 100000, "created": 1000000000, "currency": "usd", - "custom_fields": null, - "customer": "cus_NORMALIZED", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": null, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", "id": "downgrade_realm_and_void_open_invoices--Event.list.1.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 24000, - "currency": "usd", - "description": "Zulip Cloud Standard - renewal", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "downgrade_realm_and_void_open_invoices--Event.list.1.json", - "invoice": "downgrade_realm_and_void_open_invoices--Event.list.1.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "ii_NORMALIZED", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1388631845, - "start": 1357095845 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "4000" - }, - "quantity": 6, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/downgrade_realm_and_void_open_invoices--Event.list.1.json/lines" - }, + "invoice": "in_NORMALIZED", + "is_default": true, "livemode": false, - "metadata": {}, - "next_payment_attempt": 1000000000, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "open", + "status": "paid", "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": null, - "voided_at": null - }, - "subtotal": 24000, - "subtotal_excluding_tax": 24000, - "test_clock": null, - "total": 24000, - "total_discount_amounts": [], - "total_excluding_tax": 24000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "canceled_at": null, + "paid_at": 1000000000 + } } }, "id": "downgrade_realm_and_void_open_invoices--Event.list.1.json", @@ -156,10 +30,10 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "downgrade_realm_and_void_open_invoices--Event.list.1.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" + "id": null, + "idempotency_key": null }, - "type": "invoice.finalized" + "type": "invoice_payment.paid" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.2.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.2.json index 3bf7953858..346324b8d3 100644 --- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -179,7 +179,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -201,6 +201,7 @@ "currency": "usd", "customer": "downgrade_realm_and_void_open_invoices--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -250,7 +251,7 @@ "type": "payment_intent.canceled" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -419,7 +420,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -605,7 +606,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -627,6 +628,7 @@ "currency": "usd", "customer": "downgrade_realm_and_void_open_invoices--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -676,7 +678,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -857,7 +859,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -872,6 +874,7 @@ "invoice": "downgrade_realm_and_void_open_invoices--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { @@ -903,7 +906,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1017,7 +1020,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "downgrade_realm_and_void_open_invoices--Event.list.2.json", @@ -1031,7 +1034,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1081,7 +1084,7 @@ "type": "customer.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.3.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.3.json index 1262192284..45c1d71d3c 100644 --- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json index 454a9c4a23..72bc9a9e9c 100644 --- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.2.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.2.json index eb8d3a6472..75045dd0bc 100644 --- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--InvoiceItem.create.1.json index 6e058fd7f9..b949528358 100644 --- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--InvoiceItem.create.2.json index 56e605f132..ab7cb1336c 100644 --- a/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/downgrade_realm_and_void_open_invoices--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.1.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.1.json index fc86131fff..db36d210b3 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.1.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.2.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.2.json index b2e073c299..054d173596 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.3.json index 6f02327f49..615f91b657 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.3.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.3.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.4.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.4.json index ca4f09c59d..2d6e936613 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.4.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.4.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.5.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.5.json index 04c0d057b2..a0696dd0fb 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.5.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.5.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.6.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.6.json index 4ab45c97c4..5359bba7e5 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.6.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.6.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.7.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.7.json index 40b45ae9fc..33223eaf39 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.7.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.7.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.8.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.8.json index 17eef77204..4063600f3a 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.8.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.create.8.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json index 7146b4e8ab..0ac80f260f 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.3.json @@ -142,5 +142,5 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.json index e1bf13b20e..fc4dfcd49d 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.finalize_invoice.8.json @@ -142,5 +142,5 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json index a1bbaabc87..c81adf9d67 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.15.json @@ -144,7 +144,7 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, { "account_country": "US", diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json index f21dff70c8..2bd6778f1b 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.7.json @@ -290,7 +290,7 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json index f21dff70c8..2bd6778f1b 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.list.8.json @@ -290,7 +290,7 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json index b6487a3b3a..f0d4425527 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--Invoice.void_invoice.3.json @@ -142,5 +142,5 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.1.json index 63c0a11ab3..db67521ee8 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.2.json index 7321def7a9..ce881adbca 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.3.json index 145f9a1ed2..54270f2053 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.4.json index d329051953..86c4632d73 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.4.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.4.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.5.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.5.json index 4060979c3d..c1e301a4df 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.5.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.5.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.6.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.6.json index 60e5ae9f34..1891db018f 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.6.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.6.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.7.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.7.json index d5d89d135d..2c625a81b6 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.7.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.7.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.8.json b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.8.json index ef7c479836..2bbedc70bd 100644 --- a/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.8.json +++ b/corporate/tests/stripe_fixtures/downgrade_small_realms_behind_on_payments_as_needed--InvoiceItem.create.8.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/end_free_trial--Event.list.1.json b/corporate/tests/stripe_fixtures/end_free_trial--Event.list.1.json index e11679c2bb..1d39d2506f 100644 --- a/corporate/tests/stripe_fixtures/end_free_trial--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/end_free_trial--Event.list.1.json @@ -1,44 +1,27 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { - "address": null, - "balance": 0, + "amount_paid": 72000, + "amount_requested": 72000, "created": 1000000000, - "currency": null, - "default_source": null, - "delinquent": false, - "description": "zulip (Zulip Dev)", - "discount": null, - "email": "hamlet@zulip.com", - "id": "end_free_trial--Customer.create.1.json", - "invoice_prefix": "NORMALIZED", - "invoice_settings": { - "custom_fields": null, - "default_payment_method": "pm_NORMALIZED", - "footer": null, - "rendering_options": null - }, + "currency": "usd", + "id": "end_free_trial--Event.list.1.json", + "invoice": "in_NORMALIZED", + "is_default": true, "livemode": false, - "metadata": { - "realm_id": "1", - "realm_str": "zulip" + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" }, - "name": null, - "next_invoice_sequence": 1, - "object": "customer", - "phone": null, - "preferred_locales": [], - "shipping": null, - "tax_exempt": "none", - "test_clock": null - }, - "previous_attributes": { - "invoice_settings": { - "default_payment_method": null + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 } } }, @@ -47,10 +30,10 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "end_free_trial--Event.list.1.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" + "id": null, + "idempotency_key": null }, - "type": "customer.updated" + "type": "invoice_payment.paid" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/end_free_trial--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/end_free_trial--checkout.Session.create.1.json index 5aec90ac27..75f17c368a 100644 --- a/corporate/tests/stripe_fixtures/end_free_trial--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/end_free_trial--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/end_free_trial--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/end_free_trial--checkout.Session.list.1.json index 9cc5a856c7..33a40b2640 100644 --- a/corporate/tests/stripe_fixtures/end_free_trial--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/end_free_trial--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json index 17b87572fd..114ecc2a4a 100644 --- a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.1.json @@ -1,95 +1,21 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { - "adaptive_pricing": null, - "after_expiration": null, - "allow_promotion_codes": null, - "amount_subtotal": null, - "amount_total": null, - "automatic_tax": { - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "billing_address_collection": "required", - "cancel_url": "http://annual-free.zulipdev.com:9991/billing/", - "client_reference_id": null, - "client_secret": null, - "collected_information": { - "shipping_details": null - }, - "consent": null, - "consent_collection": null, + "configuration": "bpc_NORMALIZED", "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": "limited-plan-admin@zulip.com", - "name": null, - "phone": null, - "tax_exempt": null, - "tax_ids": null - }, - "customer_email": null, - "discounts": null, - "expires_at": 1000000000, + "flow": null, "id": "fixed_price_plans--Event.list.1.json", - "invoice": null, - "invoice_creation": null, "livemode": false, "locale": null, - "metadata": { - "type": "card_update", - "user_id": "25" - }, - "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", - "permissions": null, - "phone_number_collection": { - "enabled": false - }, - "recovered_from": null, - "saved_payment_method_options": null, - "setup_intent": "seti_NORMALIZED", - "shipping_address_collection": null, - "shipping_cost": null, - "shipping_options": [], - "status": "expired", - "submit_type": null, - "subscription": null, - "success_url": "http://annual-free.zulipdev.com:9991/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", - "total_details": null, - "ui_mode": "hosted", - "url": null, - "wallet_options": null + "object": "billing_portal.session", + "on_behalf_of": null, + "return_url": "http://asdfsdaf.zulipdev.com:9991/billing/", + "url": "https://billing.stripe.com/p/session/test_NORMALIZED" } }, "id": "fixed_price_plans--Event.list.1.json", @@ -97,10 +23,10 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": null, - "idempotency_key": null + "id": "fixed_price_plans--Event.list.1.json", + "idempotency_key": "00000000-0000-0000-0000-000000000000" }, - "type": "checkout.session.expired" + "type": "billing_portal.session.created" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.2.json index fe7e0254c4..1eb70f1a8c 100644 --- a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -171,7 +171,7 @@ "id": "fixed_price_plans--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "fixed_price_plans--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -179,7 +179,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -201,6 +201,7 @@ "currency": "usd", "customer": "fixed_price_plans--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "fixed_price_plans--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -250,7 +251,7 @@ "type": "payment_intent.canceled" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -419,7 +420,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -605,7 +606,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -627,6 +628,7 @@ "currency": "usd", "customer": "fixed_price_plans--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "fixed_price_plans--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -676,7 +678,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -831,7 +833,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -857,7 +859,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -872,6 +874,7 @@ "invoice": "fixed_price_plans--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { @@ -903,7 +906,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1017,7 +1020,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "fixed_price_plans--Event.list.2.json", @@ -1031,7 +1034,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1081,7 +1084,7 @@ "type": "customer.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.3.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.3.json index 616bf89bab..f92dc67fb0 100644 --- a/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.1.json index 514175f964..16041c048c 100644 --- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.json index 4150999020..48697f9b61 100644 --- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json index 3fb3367ddc..dd0a41cc43 100644 --- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json +++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.finalize_invoice.2.json @@ -142,5 +142,5 @@ "total_excluding_tax": 100, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.list.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.list.1.json index 0a1061a16f..9fef97916d 100644 --- a/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.list.1.json +++ b/corporate/tests/stripe_fixtures/fixed_price_plans--Invoice.list.1.json @@ -144,7 +144,7 @@ "total_excluding_tax": 100, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, { "account_country": "US", diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/fixed_price_plans--InvoiceItem.create.1.json index e4d957d4e1..437ad1e85e 100644 --- a/corporate/tests/stripe_fixtures/fixed_price_plans--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/fixed_price_plans--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/fixed_price_plans--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/fixed_price_plans--InvoiceItem.create.2.json index 5cda97d9c8..250a793da6 100644 --- a/corporate/tests/stripe_fixtures/fixed_price_plans--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/fixed_price_plans--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 100, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.1.json index 4dd6e586bf..ddf960c8cf 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.1.json @@ -1,44 +1,27 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { - "address": null, - "balance": 0, + "amount_paid": 1850, + "amount_requested": 1850, "created": 1000000000, - "currency": null, - "default_source": null, - "delinquent": false, - "description": "demo.example.com 6cde5f7a-1f7", - "discount": null, - "email": "hamlet@zulip.com", - "id": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json", - "invoice_prefix": "NORMALIZED", - "invoice_settings": { - "custom_fields": null, - "default_payment_method": "pm_NORMALIZED", - "footer": null, - "rendering_options": null - }, + "currency": "usd", + "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.1.json", + "invoice": "in_NORMALIZED", + "is_default": true, "livemode": false, - "metadata": { - "remote_server_str": "demo.example.com 6cde5f7a-1f7", - "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe" + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" }, - "name": null, - "next_invoice_sequence": 1, - "object": "customer", - "phone": null, - "preferred_locales": [], - "shipping": null, - "tax_exempt": "none", - "test_clock": null - }, - "previous_attributes": { - "invoice_settings": { - "default_payment_method": null + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 } } }, @@ -47,10 +30,10 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.1.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" + "id": null, + "idempotency_key": null }, - "type": "customer.updated" + "type": "invoice_payment.paid" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json index 571a8aee54..f1d7d0209f 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 4300, - "authorization_code": null, + "authorization_code": "077681", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "free_trial_not_available_for_complimentary_access_customer--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1092,7 +1094,7 @@ "total_excluding_tax": 6300, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 6300, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.3.json index 094eea88d3..62fe516f4b 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Event.list.3.json @@ -1,7 +1,42 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "amount_paid": 10000, + "amount_requested": 10000, + "created": 1000000000, + "currency": "usd", + "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json", + "invoice": "in_NORMALIZED", + "is_default": true, + "livemode": false, + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" + }, + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 + } + } + }, + "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.3.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice_payment.paid" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -209,7 +244,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -417,7 +452,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -635,7 +670,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +692,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "free_trial_not_available_for_complimentary_access_customer--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.create.1.json index 933a600b2c..ebb460c6ba 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.1.json index ea67b12db7..935921a9af 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 6300, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.2.json index e473c0fdcd..0227ccb166 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--checkout.Session.create.1.json index 79d5896c2b..8024cf23c8 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_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,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_customer--checkout.Session.list.1.json index 1681121717..75c553739a 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_complimentary_access_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,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json index c3a34c9400..e29d2bcc1b 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json index 72b3def1ef..bc5d72e33f 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 4300, - "authorization_code": null, + "authorization_code": "414234", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -120,7 +120,7 @@ "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -322,7 +322,7 @@ "total_excluding_tax": 4300, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json", @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -530,7 +530,7 @@ "total_excluding_tax": 4300, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "effective_at": null, @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "free_trial_not_available_for_previous_complimentary_access_customer--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -825,7 +826,7 @@ "total_excluding_tax": 4300, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 6300, @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1092,7 +1094,7 @@ "total_excluding_tax": 6300, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 6300, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json index 124d4b8ec7..695f128f80 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -195,7 +195,7 @@ "total_excluding_tax": 4300, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json", @@ -209,7 +209,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -403,7 +403,7 @@ "total_excluding_tax": 4300, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.3.json", @@ -417,7 +417,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -611,7 +611,7 @@ "total_excluding_tax": 4300, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_paid": 0, @@ -635,7 +635,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +657,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "free_trial_not_available_for_previous_complimentary_access_customer--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.create.1.json index fd1d125467..605156c071 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_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 index faf33c6092..8694f8f4bd 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_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 @@ -189,5 +189,5 @@ "total_excluding_tax": 4300, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.pay.1.json index 33a7a1702f..9d489daeaa 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--Invoice.pay.1.json @@ -189,5 +189,5 @@ "total_excluding_tax": 4300, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.1.json index 3a464fa4c5..f145729488 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 6300, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.2.json index f8229429f9..9f69a4edc4 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--checkout.Session.create.1.json index 1c9fe14420..81ccd3b134 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_customer--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,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_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 index 36c6ede3ed..a47f783560 100644 --- a/corporate/tests/stripe_fixtures/free_trial_not_available_for_previous_complimentary_access_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,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json index 83d7bea4e7..e98ed66c58 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.1.json @@ -1,44 +1,27 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { - "address": null, - "balance": 0, + "amount_paid": 72000, + "amount_requested": 72000, "created": 1000000000, - "currency": null, - "default_source": null, - "delinquent": false, - "description": "zulip (Zulip Dev)", - "discount": null, - "email": "hamlet@zulip.com", + "currency": "usd", "id": "free_trial_upgrade_by_card--Event.list.1.json", - "invoice_prefix": "NORMALIZED", - "invoice_settings": { - "custom_fields": null, - "default_payment_method": "pm_NORMALIZED", - "footer": null, - "rendering_options": null - }, + "invoice": "in_NORMALIZED", + "is_default": true, "livemode": false, - "metadata": { - "realm_id": "1", - "realm_str": "zulip" + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" }, - "name": null, - "next_invoice_sequence": 1, - "object": "customer", - "phone": null, - "preferred_locales": [], - "shipping": null, - "tax_exempt": "none", - "test_clock": null - }, - "previous_attributes": { - "invoice_settings": { - "default_payment_method": null + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 } } }, @@ -47,10 +30,10 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "free_trial_upgrade_by_card--Event.list.1.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" + "id": null, + "idempotency_key": null }, - "type": "customer.updated" + "type": "invoice_payment.paid" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.2.json index 7702cc2c21..3a0fe4b880 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.json index 46b631a088..a35f59c355 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.1.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.2.json index 29c97d5b64..ce00e9e4fc 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.3.json index cb3e2dd807..b5a544579b 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.3.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.create.3.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json index 982410b944..5f4bbb47db 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.finalize_invoice.3.json @@ -142,5 +142,5 @@ "total_excluding_tax": 152000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json index e34c4bac70..248daffe9f 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--Invoice.list.7.json @@ -144,7 +144,7 @@ "total_excluding_tax": 152000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, { "account_country": "US", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.1.json index 2f0ef7fdf4..e42be15ba4 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 120000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.2.json index ea60f0d4eb..a31b96e994 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 5172, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.3.json index a68f35b4d9..7f12e36c58 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 152000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.create.1.json index 020154d677..8ba59712ed 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.list.1.json index 309e5b5559..26e208fa00 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_card--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json index 92ab8dddb8..49a5c5aa4b 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.1.json @@ -1,22 +1,22 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { "account_country": "US", "account_name": "NORMALIZED", "account_tax_ids": null, - "amount_due": 984000, + "amount_due": 152000, "amount_overpaid": 0, - "amount_paid": 984000, - "amount_remaining": 0, + "amount_paid": 0, + "amount_remaining": 152000, "amount_shipping": 0, "application": null, "attempt_count": 0, "attempted": false, - "auto_advance": false, + "auto_advance": true, "automatic_tax": { "disabled_reason": null, "enabled": false, @@ -26,7 +26,7 @@ }, "automatically_finalizes_at": null, "billing_reason": "manual", - "collection_method": "send_invoice", + "collection_method": "charge_automatically", "created": 1000000000, "currency": "usd", "custom_fields": null, @@ -43,7 +43,7 @@ "default_tax_rates": [], "description": null, "discounts": [], - "due_date": 1000000000, + "due_date": null, "effective_at": 1000000000, "ending_balance": 0, "footer": null, @@ -59,9 +59,9 @@ "lines": { "data": [ { - "amount": 984000, + "amount": 152000, "currency": "usd", - "description": "Zulip Cloud Standard", + "description": "Zulip Cloud Standard - renewal", "discount_amounts": [], "discountable": false, "discounts": [], @@ -83,8 +83,8 @@ "type": "invoice_item_details" }, "period": { - "end": 1362193445, - "start": 1330657445 + "end": 1393729445, + "start": 1362193445 }, "pretax_credit_amounts": [], "pricing": { @@ -95,7 +95,7 @@ "type": "price_details", "unit_amount_decimal": "8000" }, - "quantity": 123, + "quantity": 19, "taxes": [] } ], @@ -105,16 +105,8 @@ "url": "/v1/invoices/free_trial_upgrade_by_invoice--Event.list.1.json/lines" }, "livemode": false, - "metadata": { - "billing_schedule": "1", - "current_plan_id": "1", - "license_management": "manual", - "licenses": "123", - "on_free_trial": "True", - "plan_tier": "1", - "user_id": "10" - }, - "next_payment_attempt": null, + "metadata": {}, + "next_payment_attempt": 1000000000, "number": "NORMALIZED", "object": "invoice", "on_behalf_of": null, @@ -141,22 +133,22 @@ "shipping_details": null, "starting_balance": 0, "statement_descriptor": "Zulip Cloud Standard", - "status": "paid", + "status": "open", "status_transitions": { "finalized_at": 1000000000, "marked_uncollectible_at": null, - "paid_at": 1000000000, + "paid_at": null, "voided_at": null }, - "subtotal": 984000, - "subtotal_excluding_tax": 984000, + "subtotal": 152000, + "subtotal_excluding_tax": 152000, "test_clock": null, - "total": 984000, + "total": 152000, "total_discount_amounts": [], - "total_excluding_tax": 984000, + "total_excluding_tax": 152000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "free_trial_upgrade_by_invoice--Event.list.1.json", @@ -167,7 +159,7 @@ "id": "free_trial_upgrade_by_invoice--Event.list.1.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" }, - "type": "invoice.paid" + "type": "invoice.finalized" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.2.json index a89d7a4cd3..02d1e60f88 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -107,7 +107,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "39", "license_management": "manual", "licenses": "123", "on_free_trial": "True", @@ -156,7 +156,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 } }, "id": "free_trial_upgrade_by_invoice--Event.list.2.json", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.3.json index 9eea036dfb..70a5ec656f 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -107,7 +107,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "39", "license_management": "manual", "licenses": "123", "on_free_trial": "True", @@ -156,13 +156,13 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 } }, "id": "free_trial_upgrade_by_invoice--Event.list.3.json", "livemode": false, "object": "event", - "pending_webhooks": 2, + "pending_webhooks": 0, "request": { "id": "free_trial_upgrade_by_invoice--Event.list.3.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -170,7 +170,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -276,7 +276,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "39", "license_management": "manual", "licenses": "123", "on_free_trial": "True", @@ -325,7 +325,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 }, "previous_attributes": { "amount_paid": 0, @@ -340,7 +340,7 @@ "id": "free_trial_upgrade_by_invoice--Event.list.3.json", "livemode": false, "object": "event", - "pending_webhooks": 2, + "pending_webhooks": 0, "request": { "id": "free_trial_upgrade_by_invoice--Event.list.3.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -348,7 +348,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -370,6 +370,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "free_trial_upgrade_by_invoice--Event.list.3.json", "last_payment_error": null, "latest_charge": null, @@ -411,7 +412,7 @@ "id": "free_trial_upgrade_by_invoice--Event.list.3.json", "livemode": false, "object": "event", - "pending_webhooks": 2, + "pending_webhooks": 0, "request": { "id": "free_trial_upgrade_by_invoice--Event.list.3.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json index a577e71cfc..2fe17bcb73 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.create.1.json @@ -60,7 +60,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "39", "license_management": "manual", "licenses": "123", "on_free_trial": "True", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json index 0bf274bb73..4342d16d41 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.finalize_invoice.1.json @@ -101,7 +101,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "39", "license_management": "manual", "licenses": "123", "on_free_trial": "True", @@ -150,5 +150,5 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 } diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.1.json index 4188b9abf4..dddc05f052 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.list.1.json @@ -103,7 +103,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "39", "license_management": "manual", "licenses": "123", "on_free_trial": "True", @@ -152,7 +152,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.pay.1.json index 8409b09583..29e4c5d2b8 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--Invoice.pay.1.json @@ -101,7 +101,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "39", "license_management": "manual", "licenses": "123", "on_free_trial": "True", @@ -150,5 +150,5 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 } diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--InvoiceItem.create.1.json index 69fe91c734..6c726da16a 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json index 9568387040..5b9da39c77 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json index 9e24500a91..801640c116 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,7 +156,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.2.json", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json index 940f00bc8b..ad3b689d92 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -348,7 +348,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -370,6 +370,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "free_trial_upgrade_by_invoice_customer_fails_to_pay--Event.list.3.json", "last_payment_error": null, "latest_charge": null, diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.create.1.json index 0dc8766fb9..f272228726 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.finalize_invoice.1.json index 37d345a452..c8a1924034 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--Invoice.finalize_invoice.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--InvoiceItem.create.1.json index f6e9e0f90e..d4ffcabbe7 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_customer_fails_to_pay--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json index 4fda3fe460..bb18323230 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json @@ -1,22 +1,22 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { "account_country": "US", "account_name": "NORMALIZED", "account_tax_ids": null, - "amount_due": 16000, + "amount_due": 984000, "amount_overpaid": 0, - "amount_paid": 0, - "amount_remaining": 16000, + "amount_paid": 984000, + "amount_remaining": 0, "amount_shipping": 0, "application": null, "attempt_count": 0, "attempted": false, - "auto_advance": true, + "auto_advance": false, "automatic_tax": { "disabled_reason": null, "enabled": false, @@ -59,9 +59,9 @@ "lines": { "data": [ { - "amount": 16000, + "amount": 984000, "currency": "usd", - "description": "Additional license (Mar 2, 2012 - Mar 2, 2013)", + "description": "Zulip Cloud Standard", "discount_amounts": [], "discountable": false, "discounts": [], @@ -95,7 +95,7 @@ "type": "price_details", "unit_amount_decimal": "8000" }, - "quantity": 2, + "quantity": 123, "taxes": [] } ], @@ -105,7 +105,15 @@ "url": "/v1/invoices/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json/lines" }, "livemode": false, - "metadata": {}, + "metadata": { + "billing_schedule": "1", + "current_plan_id": "40", + "license_management": "manual", + "licenses": "123", + "on_free_trial": "True", + "plan_tier": "1", + "user_id": "10" + }, "next_payment_attempt": null, "number": "NORMALIZED", "object": "invoice", @@ -133,19 +141,19 @@ "shipping_details": null, "starting_balance": 0, "statement_descriptor": "Zulip Cloud Standard", - "status": "open", + "status": "paid", "status_transitions": { "finalized_at": 1000000000, "marked_uncollectible_at": null, - "paid_at": null, + "paid_at": 1000000000, "voided_at": null }, - "subtotal": 16000, - "subtotal_excluding_tax": 16000, + "subtotal": 984000, + "subtotal_excluding_tax": 984000, "test_clock": null, - "total": 16000, + "total": 984000, "total_discount_amounts": [], - "total_excluding_tax": 16000, + "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], "webhooks_delivered_at": 1000000000 @@ -156,10 +164,10 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": null, - "idempotency_key": null + "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.1.json", + "idempotency_key": "00000000-0000-0000-0000-000000000000" }, - "type": "invoice.sent" + "type": "invoice.paid" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.2.json index 72e00bb84f..9b6e3a2c03 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -107,7 +107,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "42", "license_management": "manual", "licenses": "123", "on_free_trial": "True", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json index 9d80b4c2a7..9f66b3d101 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -107,7 +107,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "42", "license_management": "manual", "licenses": "123", "on_free_trial": "True", @@ -162,7 +162,7 @@ "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -170,7 +170,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -276,7 +276,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "42", "license_management": "manual", "licenses": "123", "on_free_trial": "True", @@ -340,7 +340,7 @@ "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 1, "request": { "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -348,7 +348,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -370,6 +370,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json", "last_payment_error": null, "latest_charge": null, @@ -411,7 +412,7 @@ "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json", "livemode": false, "object": "event", - "pending_webhooks": 1, + "pending_webhooks": 0, "request": { "id": "free_trial_upgrade_by_invoice_with_additional_users_after_payment--Event.list.3.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.create.1.json index 1fb980cb89..e6a6895d4b 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.create.1.json @@ -60,7 +60,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "42", "license_management": "manual", "licenses": "123", "on_free_trial": "True", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.finalize_invoice.1.json index 9a0639c7d1..bce897735a 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.finalize_invoice.1.json @@ -101,7 +101,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "42", "license_management": "manual", "licenses": "123", "on_free_trial": "True", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.1.json index 316f2decfc..14a1a1ef09 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.1.json @@ -103,7 +103,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "42", "license_management": "manual", "licenses": "123", "on_free_trial": "True", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.2.json index f3f06d95c1..8f0cb84f15 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.2.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.list.2.json @@ -249,7 +249,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "42", "license_management": "manual", "licenses": "123", "on_free_trial": "True", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.pay.1.json index 668bdf85d9..21af21b8ec 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--Invoice.pay.1.json @@ -101,7 +101,7 @@ "livemode": false, "metadata": { "billing_schedule": "1", - "current_plan_id": "1", + "current_plan_id": "42", "license_management": "manual", "licenses": "123", "on_free_trial": "True", diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.1.json index be35f80950..2a388fc10c 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.2.json index 8191328eae..2e8e11be37 100644 --- a/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/free_trial_upgrade_by_invoice_with_additional_users_after_payment--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 16000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.1.json index 194444b465..0c4d5cdf0b 100644 --- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.2.json index b2a7a3c249..4782fd8d5d 100644 --- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.2.json @@ -1,7 +1,186 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "account_country": "US", + "account_name": "NORMALIZED", + "account_tax_ids": null, + "amount_due": 48000, + "amount_overpaid": 0, + "amount_paid": 48000, + "amount_remaining": 0, + "amount_shipping": 0, + "application": null, + "attempt_count": 1, + "attempted": true, + "auto_advance": false, + "automatic_tax": { + "disabled_reason": null, + "enabled": false, + "liability": null, + "provider": null, + "status": null + }, + "automatically_finalizes_at": null, + "billing_reason": "manual", + "collection_method": "charge_automatically", + "created": 1000000000, + "currency": "usd", + "custom_fields": null, + "customer": "invoice_for_additional_license--Customer.create.1.json", + "customer_address": null, + "customer_email": "hamlet@zulip.com", + "customer_name": null, + "customer_phone": null, + "customer_shipping": null, + "customer_tax_exempt": "none", + "customer_tax_ids": [], + "default_payment_method": null, + "default_source": null, + "default_tax_rates": [], + "description": null, + "discounts": [], + "due_date": null, + "effective_at": 1000000000, + "ending_balance": 0, + "footer": null, + "from_invoice": null, + "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", + "id": "invoice_for_additional_license--Event.list.2.json", + "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", + "issuer": { + "type": "self" + }, + "last_finalization_error": null, + "latest_revision": null, + "lines": { + "data": [ + { + "amount": 48000, + "currency": "usd", + "description": "Zulip Cloud Standard", + "discount_amounts": [], + "discountable": false, + "discounts": [], + "id": "invoice_for_additional_license--Event.list.2.json", + "invoice": "invoice_for_additional_license--Event.list.2.json", + "livemode": false, + "metadata": {}, + "object": "line_item", + "parent": { + "invoice_item_details": { + "invoice_item": "invoice_for_additional_license--Event.list.2.json", + "proration": false, + "proration_details": { + "credited_items": null + }, + "subscription": null + }, + "subscription_item_details": null, + "type": "invoice_item_details" + }, + "period": { + "end": 1357095845, + "start": 1325473445 + }, + "pretax_credit_amounts": [], + "pricing": { + "price_details": { + "price": "price_NORMALIZED", + "product": "prod_NORMALIZED" + }, + "type": "price_details", + "unit_amount_decimal": "8000" + }, + "quantity": 6, + "taxes": [] + } + ], + "has_more": false, + "object": "list", + "total_count": 1, + "url": "/v1/invoices/invoice_for_additional_license--Event.list.2.json/lines" + }, + "livemode": false, + "metadata": { + "billing_schedule": "1", + "current_plan_id": "None", + "license_management": "automatic", + "licenses": "6", + "on_free_trial": "False", + "plan_tier": "1", + "user_id": "10" + }, + "next_payment_attempt": null, + "number": "NORMALIZED", + "object": "invoice", + "on_behalf_of": null, + "parent": null, + "payment_settings": { + "default_mandate": null, + "payment_method_options": null, + "payment_method_types": null + }, + "period_end": 1000000000, + "period_start": 1000000000, + "post_payment_credit_notes_amount": 0, + "pre_payment_credit_notes_amount": 0, + "receipt_number": null, + "rendering": { + "amount_tax_display": null, + "pdf": { + "page_size": "letter" + }, + "template": null, + "template_version": null + }, + "shipping_cost": null, + "shipping_details": null, + "starting_balance": 0, + "statement_descriptor": "Zulip Cloud Standard", + "status": "paid", + "status_transitions": { + "finalized_at": 1000000000, + "marked_uncollectible_at": null, + "paid_at": 1000000000, + "voided_at": null + }, + "subtotal": 48000, + "subtotal_excluding_tax": 48000, + "test_clock": null, + "total": 48000, + "total_discount_amounts": [], + "total_excluding_tax": 48000, + "total_pretax_credit_amounts": [], + "total_taxes": [], + "webhooks_delivered_at": 1000000000 + }, + "previous_attributes": { + "amount_paid": 0, + "amount_remaining": 48000, + "attempt_count": 0, + "attempted": false, + "status": "open", + "status_transitions": { + "paid_at": null + } + } + }, + "id": "invoice_for_additional_license--Event.list.2.json", + "livemode": false, + "object": "event", + "pending_webhooks": 2, + "request": { + "id": "invoice_for_additional_license--Event.list.2.json", + "idempotency_key": "00000000-0000-0000-0000-000000000000" + }, + "type": "invoice.updated" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -23,6 +202,7 @@ "currency": "usd", "customer": "invoice_for_additional_license--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_for_additional_license--Event.list.2.json", "last_payment_error": null, "latest_charge": "invoice_for_additional_license--Event.list.2.json", @@ -72,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -133,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "154499", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -199,168 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 100, - "amount_overpaid": 0, - "amount_paid": 0, - "amount_remaining": 100, - "amount_shipping": 0, - "application": null, - "attempt_count": 0, - "attempted": false, - "auto_advance": true, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "send_invoice", - "created": 1000000000, - "currency": "usd", - "custom_fields": null, - "customer": "cus_NORMALIZED", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": 1000000000, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", - "id": "invoice_for_additional_license--Event.list.2.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 100, - "currency": "usd", - "description": "Zulip Cloud Standard - renewal", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "invoice_for_additional_license--Event.list.2.json", - "invoice": "invoice_for_additional_license--Event.list.2.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "ii_NORMALIZED", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1388631845, - "start": 1357095845 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "100" - }, - "quantity": 1, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/invoice_for_additional_license--Event.list.2.json/lines" - }, - "livemode": false, - "metadata": {}, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "open", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": null, - "voided_at": null - }, - "subtotal": 100, - "subtotal_excluding_tax": 100, - "test_clock": null, - "total": 100, - "total_discount_amounts": [], - "total_excluding_tax": 100, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 - } - }, - "id": "invoice_for_additional_license--Event.list.2.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": null, - "idempotency_key": null - }, - "type": "invoice.sent" - }, - { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -529,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -714,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -736,6 +755,7 @@ "currency": "usd", "customer": "invoice_for_additional_license--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_for_additional_license--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -785,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -940,7 +960,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -966,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -981,6 +1001,7 @@ "invoice": "invoice_for_additional_license--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -1012,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1126,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "invoice_for_additional_license--Event.list.2.json", @@ -1140,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.3.json index 0ac472aef7..8206190086 100644 --- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -337,185 +337,6 @@ "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "invoice.paid" - }, - { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 48000, - "amount_overpaid": 0, - "amount_paid": 48000, - "amount_remaining": 0, - "amount_shipping": 0, - "application": null, - "attempt_count": 1, - "attempted": true, - "auto_advance": false, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "charge_automatically", - "created": 1000000000, - "currency": "usd", - "custom_fields": null, - "customer": "cus_NORMALIZED", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": null, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", - "id": "invoice_for_additional_license--Event.list.2.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 48000, - "currency": "usd", - "description": "Zulip Cloud Standard", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "invoice_for_additional_license--Event.list.2.json", - "invoice": "invoice_for_additional_license--Event.list.2.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "ii_NORMALIZED", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1357095845, - "start": 1325473445 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "8000" - }, - "quantity": 6, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/invoice_for_additional_license--Event.list.2.json/lines" - }, - "livemode": false, - "metadata": { - "billing_schedule": "1", - "current_plan_id": "None", - "license_management": "automatic", - "licenses": "6", - "on_free_trial": "False", - "plan_tier": "1", - "user_id": "10" - }, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "paid", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": 1000000000, - "voided_at": null - }, - "subtotal": 48000, - "subtotal_excluding_tax": 48000, - "test_clock": null, - "total": 48000, - "total_discount_amounts": [], - "total_excluding_tax": 48000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 - }, - "previous_attributes": { - "amount_paid": 0, - "amount_remaining": 48000, - "attempt_count": 0, - "attempted": false, - "status": "open", - "status_transitions": { - "paid_at": null - } - } - }, - "id": "invoice_for_additional_license--Event.list.3.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": "invoice_for_additional_license--Event.list.2.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" - }, - "type": "invoice.updated" } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.1.json index 3a45e722b2..d2bd5addbd 100644 --- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.2.json index 4725085413..824775f096 100644 --- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--InvoiceItem.create.1.json index 3f21493de1..83a83581d7 100644 --- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--InvoiceItem.create.2.json index 666687f9d8..71642c21ee 100644 --- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 7781, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--checkout.Session.create.1.json index cf11fdfe17..fb49e93c83 100644 --- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/invoice_for_additional_license--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_for_additional_license--checkout.Session.list.1.json index 6fd00305a2..9875de30ac 100644 --- a/corporate/tests/stripe_fixtures/invoice_for_additional_license--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_for_additional_license--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.create.1.json index b9c47cf8d0..78a22e19d4 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.create.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.modify.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.modify.1.json index 63f65b8430..5dd9c745b0 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.1.json index 615ebfd6a1..f1d02a37b2 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.2.json index 615ebfd6a1..f1d02a37b2 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.2.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.2.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.3.json index 615ebfd6a1..f1d02a37b2 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.3.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.3.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.4.json index 615ebfd6a1..f1d02a37b2 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.4.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.4.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.5.json index 615ebfd6a1..f1d02a37b2 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.5.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Customer.retrieve.5.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.1.json index 2dabe3aab1..0902e62537 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -11,7 +11,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json", @@ -25,7 +25,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.2.json index 6fe3ff1e53..6a4e5f46d3 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 1850, - "authorization_code": null, + "authorization_code": "938408", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -120,7 +120,7 @@ "id": "invoice_initial_remote_realm_upgrade--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "invoice_initial_remote_realm_upgrade--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "invoice_initial_remote_realm_upgrade--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_initial_remote_realm_upgrade--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "invoice_initial_remote_realm_upgrade--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1092,7 +1094,7 @@ "total_excluding_tax": 3850, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "invoice_initial_remote_realm_upgrade--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 3850, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "invoice_initial_remote_realm_upgrade--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1301,7 +1304,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_initial_remote_realm_upgrade--Customer.create.1.json", @@ -1315,7 +1318,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.3.json index f1a58f9312..f54a969f26 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -209,7 +209,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -417,7 +417,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -635,7 +635,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +657,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_initial_remote_realm_upgrade--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.create.1.json index 71c3a39a1e..c4169c1fc4 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--InvoiceItem.create.1.json index 15eecc8726..43eb7a4f7e 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 3850, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--InvoiceItem.create.2.json index e644e7a322..8b4b081da5 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.create.1.json index 615b12c98b..c2e9760fc0 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.list.1.json index eb4f0ca5d4..53368586be 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_realm_upgrade--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.1.json index 0df67fc5b5..796f61ce8e 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.json index bd7623838c..bd1f83354d 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 4300, - "authorization_code": null, + "authorization_code": "017991", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -120,7 +120,7 @@ "id": "invoice_initial_remote_server_upgrade--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 1, "request": { "id": "invoice_initial_remote_server_upgrade--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "invoice_initial_remote_server_upgrade--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_initial_remote_server_upgrade--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "invoice_initial_remote_server_upgrade--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 6300, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "invoice_initial_remote_server_upgrade--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.3.json index 8fd3e4592e..d057186a0f 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -209,7 +209,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -417,7 +417,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -635,7 +635,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +657,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_initial_remote_server_upgrade--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.create.1.json index 4c74623d41..6440c0c68a 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--InvoiceItem.create.1.json index a734d45ae3..fe6f4116bc 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 6300, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--InvoiceItem.create.2.json index 8177fc167d..4a4c1d37f2 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--checkout.Session.create.1.json index b27554a5e8..fe425e5a8b 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--checkout.Session.list.1.json index f8db750423..1b6b25e78e 100644 --- a/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_initial_remote_server_upgrade--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.1.json index e391c794d9..3f8b60fff7 100644 --- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json index 7543e8bbce..fe5d5e90ca 100644 --- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -172,7 +172,7 @@ "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json", "last_payment_error": null, "latest_charge": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "646670", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -370,7 +371,7 @@ "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 1, "request": { "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "invoice_payment_succeeded_event_with_uncaught_exception--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1208,7 +1211,7 @@ "type": "customer.updated" } ], - "has_more": false, + "has_more": true, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json index a196221643..86f471dcae 100644 --- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json @@ -1,7 +1,168 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "account_country": "US", + "account_name": "NORMALIZED", + "account_tax_ids": null, + "amount_due": 16000, + "amount_overpaid": 0, + "amount_paid": 0, + "amount_remaining": 16000, + "amount_shipping": 0, + "application": null, + "attempt_count": 0, + "attempted": false, + "auto_advance": true, + "automatic_tax": { + "disabled_reason": null, + "enabled": false, + "liability": null, + "provider": null, + "status": null + }, + "automatically_finalizes_at": null, + "billing_reason": "manual", + "collection_method": "send_invoice", + "created": 1000000000, + "currency": "usd", + "custom_fields": null, + "customer": "cus_NORMALIZED", + "customer_address": null, + "customer_email": "hamlet@zulip.com", + "customer_name": null, + "customer_phone": null, + "customer_shipping": null, + "customer_tax_exempt": "none", + "customer_tax_ids": [], + "default_payment_method": null, + "default_source": null, + "default_tax_rates": [], + "description": null, + "discounts": [], + "due_date": 1000000000, + "effective_at": 1000000000, + "ending_balance": 0, + "footer": null, + "from_invoice": null, + "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", + "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json", + "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", + "issuer": { + "type": "self" + }, + "last_finalization_error": null, + "latest_revision": null, + "lines": { + "data": [ + { + "amount": 16000, + "currency": "usd", + "description": "Additional license (Mar 2, 2012 - Mar 2, 2013)", + "discount_amounts": [], + "discountable": false, + "discounts": [], + "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json", + "invoice": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json", + "livemode": false, + "metadata": {}, + "object": "line_item", + "parent": { + "invoice_item_details": { + "invoice_item": "ii_NORMALIZED", + "proration": false, + "proration_details": { + "credited_items": null + }, + "subscription": null + }, + "subscription_item_details": null, + "type": "invoice_item_details" + }, + "period": { + "end": 1362193445, + "start": 1330657445 + }, + "pretax_credit_amounts": [], + "pricing": { + "price_details": { + "price": "price_NORMALIZED", + "product": "prod_NORMALIZED" + }, + "type": "price_details", + "unit_amount_decimal": "8000" + }, + "quantity": 2, + "taxes": [] + } + ], + "has_more": false, + "object": "list", + "total_count": 1, + "url": "/v1/invoices/invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json/lines" + }, + "livemode": false, + "metadata": {}, + "next_payment_attempt": null, + "number": "NORMALIZED", + "object": "invoice", + "on_behalf_of": null, + "parent": null, + "payment_settings": { + "default_mandate": null, + "payment_method_options": null, + "payment_method_types": null + }, + "period_end": 1000000000, + "period_start": 1000000000, + "post_payment_credit_notes_amount": 0, + "pre_payment_credit_notes_amount": 0, + "receipt_number": null, + "rendering": { + "amount_tax_display": null, + "pdf": { + "page_size": "letter" + }, + "template": null, + "template_version": null + }, + "shipping_cost": null, + "shipping_details": null, + "starting_balance": 0, + "statement_descriptor": "Zulip Cloud Standard", + "status": "open", + "status_transitions": { + "finalized_at": 1000000000, + "marked_uncollectible_at": null, + "paid_at": null, + "voided_at": null + }, + "subtotal": 16000, + "subtotal_excluding_tax": 16000, + "test_clock": null, + "total": 16000, + "total_discount_amounts": [], + "total_excluding_tax": 16000, + "total_pretax_credit_amounts": [], + "total_taxes": [], + "webhooks_delivered_at": 1000000000 + } + }, + "id": "invoice_payment_succeeded_event_with_uncaught_exception--Event.list.3.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice.sent" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +331,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.create.1.json index 1f9a4146ec..190ed120b4 100644 --- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--InvoiceItem.create.1.json index 413fab6d81..ded0a54d66 100644 --- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--checkout.Session.create.1.json index 66a3648264..29d0c55032 100644 --- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--checkout.Session.list.1.json index 003f3e2be7..0a395b75d1 100644 --- a/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_payment_succeeded_event_with_uncaught_exception--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.1.json index 0bdf0c51a0..effe5cc551 100644 --- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json index deb0d92282..684e19c085 100644 --- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -172,7 +172,7 @@ "id": "invoice_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "invoice_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "invoice_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": "invoice_plan--Event.list.2.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "308464", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -370,7 +371,7 @@ "id": "invoice_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 1, "request": { "id": "invoice_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "invoice_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "invoice_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "invoice_plan--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1208,7 +1211,7 @@ "type": "customer.updated" } ], - "has_more": false, + "has_more": true, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json index 342a40aec8..49c3e1bb0c 100644 --- a/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/invoice_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.1.json index 0cde5e0205..8974987786 100644 --- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.2.json index e902b2efcd..732487bb92 100644 --- a/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/invoice_plan--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.1.json index 9893f04a8a..4ad64e81e7 100644 --- a/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.2.json index 8c905a5a87..619645024f 100644 --- a/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 17442, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.3.json index f9e03d3ae4..4137ff283a 100644 --- a/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 56000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.4.json index 27e357ff73..f0da8adc5b 100644 --- a/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.4.json +++ b/corporate/tests/stripe_fixtures/invoice_plan--InvoiceItem.create.4.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 7255, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.create.1.json index 095c583f99..c125cf4e41 100644 --- a/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.list.1.json index f563de395f..28b4a5bbd2 100644 --- a/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.create.1.json index 67a16150a1..79ac31bdb6 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.create.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_plans_as_needed--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.modify.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.modify.1.json index 9107526d17..d23a2828b8 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_plans_as_needed--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.1.json index 624ee66144..54733cb091 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_plans_as_needed--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.2.json index 624ee66144..54733cb091 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.2.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.2.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_plans_as_needed--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.3.json index 624ee66144..54733cb091 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.3.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.3.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_plans_as_needed--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.4.json index 624ee66144..54733cb091 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.4.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.4.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_plans_as_needed--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.5.json index 624ee66144..54733cb091 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.5.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Customer.retrieve.5.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_plans_as_needed--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.1.json index c7205b41d9..4ef8329d4f 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -11,7 +11,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_plans_as_needed--Customer.create.1.json", @@ -25,7 +25,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.2.json index f857dee562..4a57f9afb6 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.2.json @@ -1,176 +1,134 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 320000, - "amount_overpaid": 0, - "amount_paid": 0, - "amount_remaining": 320000, - "amount_shipping": 0, + "amount": 1850, + "amount_captured": 1850, + "amount_refunded": 0, "application": null, - "attempt_count": 0, - "attempted": false, - "auto_advance": true, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null + "application_fee": null, + "application_fee_amount": null, + "balance_transaction": "txn_NORMALIZED", + "billing_details": { + "address": { + "city": "San Francisco", + "country": "US", + "line1": "123 Main St", + "line2": null, + "postal_code": "12345", + "state": "CA" + }, + "email": null, + "name": "John Doe", + "phone": null, + "tax_id": null }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "send_invoice", + "calculated_statement_descriptor": "ZULIP BASIC", + "captured": true, "created": 1000000000, "currency": "usd", - "custom_fields": null, - "customer": "cus_NORMALIZED", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": 1000000000, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", + "customer": "invoice_plans_as_needed--Customer.create.1.json", + "description": "Payment for Invoice", + "destination": null, + "dispute": null, + "disputed": false, + "failure_balance_transaction": null, + "failure_code": null, + "failure_message": null, + "fraud_details": {}, "id": "invoice_plans_as_needed--Event.list.2.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 320000, - "currency": "usd", - "description": "Zulip Cloud Standard", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "invoice_plans_as_needed--Event.list.2.json", - "invoice": "invoice_plans_as_needed--Event.list.2.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "ii_NORMALIZED", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1000000000, - "start": 1000000000 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "8000" - }, - "quantity": 40, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/invoice_plans_as_needed--Event.list.2.json/lines" - }, "livemode": false, - "metadata": { - "billing_schedule": "1", - "current_plan_id": "None", - "license_management": "manual", - "licenses": "40", - "on_free_trial": "False", - "plan_tier": "1", - "user_id": "10" - }, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", + "metadata": {}, + "object": "charge", "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": 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", + "risk_score": 0, + "seller_message": "Payment complete.", + "type": "authorized" }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" + "paid": true, + "payment_intent": "invoice_plans_as_needed--Event.list.2.json", + "payment_method": "pm_NORMALIZED", + "payment_method_details": { + "card": { + "amount_authorized": 1850, + "authorization_code": "975418", + "brand": "visa", + "checks": { + "address_line1_check": "pass", + "address_postal_code_check": "pass", + "cvc_check": "pass" + }, + "country": "US", + "exp_month": 1, + "exp_year": 9999, + "extended_authorization": { + "status": "disabled" + }, + "fingerprint": "NORMALIZED", + "funding": "credit", + "incremental_authorization": { + "status": "unavailable" + }, + "installments": null, + "last4": "4242", + "mandate": null, + "multicapture": { + "status": "unavailable" + }, + "network": "visa", + "network_token": { + "used": false + }, + "network_transaction_id": "100110997670110", + "overcapture": { + "maximum_amount_capturable": 1850, + "status": "unavailable" + }, + "regulated_status": "unregulated", + "three_d_secure": null, + "wallet": null }, - "template": null, - "template_version": null + "type": "card" }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "open", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": null, - "voided_at": null - }, - "subtotal": 320000, - "subtotal_excluding_tax": 320000, - "test_clock": null, - "total": 320000, - "total_discount_amounts": [], - "total_excluding_tax": 320000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "radar_options": {}, + "receipt_email": "hamlet@zulip.com", + "receipt_number": null, + "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap", + "refunded": false, + "review": null, + "shipping": null, + "source": null, + "source_transfer": null, + "statement_descriptor": "Zulip Basic", + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null } }, "id": "invoice_plans_as_needed--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { - "id": null, - "idempotency_key": null + "id": "invoice_plans_as_needed--Event.list.2.json", + "idempotency_key": "00000000-0000-0000-0000-000000000000" }, - "type": "invoice.sent" + "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -378,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -602,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -624,6 +582,7 @@ "currency": "usd", "customer": "invoice_plans_as_needed--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_plans_as_needed--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -673,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -934,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -949,6 +908,7 @@ "invoice": "invoice_plans_as_needed--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { @@ -980,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1134,7 +1094,7 @@ "total_excluding_tax": 3850, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -1160,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1175,6 +1135,7 @@ "invoice": "invoice_plans_as_needed--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 3850, "object": "invoiceitem", "parent": null, "period": { @@ -1206,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1319,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "invoice_plans_as_needed--Event.list.2.json", @@ -1333,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1343,7 +1304,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_plans_as_needed--Customer.create.1.json", @@ -1357,7 +1318,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.3.json index 24d34580af..1ab30bb643 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -203,13 +203,13 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "invoice_plans_as_needed--Event.list.3.json", + "id": "invoice_plans_as_needed--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -411,13 +411,13 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "invoice_plans_as_needed--Event.list.3.json", + "id": "invoice_plans_as_needed--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -629,13 +629,13 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "invoice_plans_as_needed--Event.list.3.json", + "id": "invoice_plans_as_needed--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,9 +657,10 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_plans_as_needed--Event.list.2.json", "last_payment_error": null, - "latest_charge": "invoice_plans_as_needed--Event.list.3.json", + "latest_charge": "ch_NORMALIZED", "livemode": false, "metadata": {}, "next_action": null, @@ -700,137 +701,10 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "invoice_plans_as_needed--Event.list.3.json", + "id": "invoice_plans_as_needed--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "payment_intent.succeeded" - }, - { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "amount": 1850, - "amount_captured": 1850, - "amount_refunded": 0, - "application": null, - "application_fee": null, - "application_fee_amount": null, - "balance_transaction": "txn_NORMALIZED", - "billing_details": { - "address": { - "city": "San Francisco", - "country": "US", - "line1": "123 Main St", - "line2": null, - "postal_code": "12345", - "state": "CA" - }, - "email": null, - "name": "John Doe", - "phone": null, - "tax_id": null - }, - "calculated_statement_descriptor": "ZULIP BASIC", - "captured": true, - "created": 1000000000, - "currency": "usd", - "customer": "cus_NORMALIZED", - "description": "Payment for Invoice", - "destination": null, - "dispute": null, - "disputed": false, - "failure_balance_transaction": null, - "failure_code": null, - "failure_message": null, - "fraud_details": {}, - "id": "invoice_plans_as_needed--Event.list.3.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", - "risk_score": 0, - "seller_message": "Payment complete.", - "type": "authorized" - }, - "paid": true, - "payment_intent": "invoice_plans_as_needed--Event.list.2.json", - "payment_method": "pm_NORMALIZED", - "payment_method_details": { - "card": { - "amount_authorized": 1850, - "authorization_code": null, - "brand": "visa", - "checks": { - "address_line1_check": "pass", - "address_postal_code_check": "pass", - "cvc_check": "pass" - }, - "country": "US", - "exp_month": 1, - "exp_year": 9999, - "extended_authorization": { - "status": "disabled" - }, - "fingerprint": "NORMALIZED", - "funding": "credit", - "incremental_authorization": { - "status": "unavailable" - }, - "installments": null, - "last4": "4242", - "mandate": null, - "multicapture": { - "status": "unavailable" - }, - "network": "visa", - "network_token": { - "used": false - }, - "network_transaction_id": "100110997670110", - "overcapture": { - "maximum_amount_capturable": 1850, - "status": "unavailable" - }, - "regulated_status": "unregulated", - "three_d_secure": null, - "wallet": null - }, - "type": "card" - }, - "radar_options": {}, - "receipt_email": "hamlet@zulip.com", - "receipt_number": null, - "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap", - "refunded": false, - "review": null, - "shipping": null, - "source": null, - "source_transfer": null, - "statement_descriptor": "Zulip Basic", - "statement_descriptor_suffix": null, - "status": "succeeded", - "transfer_data": null, - "transfer_group": null - } - }, - "id": "invoice_plans_as_needed--Event.list.3.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": "invoice_plans_as_needed--Event.list.3.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" - }, - "type": "charge.succeeded" } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.1.json index fdfd0b2dca..2c9d26fc9c 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.2.json index f9dd1519c8..55a1347626 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.1.json index cd48a9deb8..c557db0a1e 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 3850, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.2.json index 623ba32474..f092d9f3fc 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.3.json index 2b1b980745..36780aeb7a 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 1635, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.4.json index 722b631a23..f714defa17 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.4.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.4.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 5600, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.5.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.5.json index 20bd3dfa51..4929585cb1 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.5.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--InvoiceItem.create.5.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.create.1.json index 3db4d5c966..1e826a4fb4 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.list.1.json index 5b81ad69d3..0609cbab62 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.1.json index 451c78d6f9..886c591180 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.2.json index 9c1ad3059b..ddfa7d2e1d 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 4300, - "authorization_code": null, + "authorization_code": "160168", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "invoice_plans_as_needed_server--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_plans_as_needed_server--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "invoice_plans_as_needed_server--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "invoice_plans_as_needed_server--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 6300, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "invoice_plans_as_needed_server--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.3.json index 4c1b0173b8..caf6cfcd7f 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -209,7 +209,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -417,7 +417,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -635,7 +635,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +657,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "invoice_plans_as_needed_server--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.1.json index e2ea5eb720..64417eae87 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.2.json index c2226ec24b..02887eb7e1 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.1.json index 7fa95c14e6..c2a5d49c8f 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 6300, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.2.json index 534d54f525..19de314541 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.3.json index e2240da143..01821560dc 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 1635, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.4.json index 69700f4973..02664218f7 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.4.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.4.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 8050, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.5.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.5.json index 491ca5b521..528a65158d 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.5.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--InvoiceItem.create.5.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.create.1.json index 11187be5a1..13623a3793 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.list.1.json index 3b633bee94..8be08439cf 100644 --- a/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_plans_as_needed_server--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json index c0ecb0f7de..688e92ac6a 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.modify.1.json index 06579c386f..ddca105142 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json index 78d2600ceb..9d1b455dff 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.2.json index 78d2600ceb..9d1b455dff 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.2.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.2.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.3.json index 78d2600ceb..9d1b455dff 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.3.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.3.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.4.json index 78d2600ceb..9d1b455dff 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.4.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.retrieve.4.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "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 index 78d2600ceb..9d1b455dff 100644 --- 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 @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "invoice_scheduled_upgrade_realm_complimentary_access_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json index d8a9a6174e..fca7a723d5 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--Invoice.create.1.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.1.json index 371b0e328e..fa57af4ed1 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 200000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.2.json index 1ea556bd2e..4e23a50cff 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json index a51c814154..530a933b47 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/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_complimentary_access_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.list.1.json index 25211f4dc6..bc3c09ce88 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_realm_complimentary_access_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json index 85c7c03be4..98c3440b15 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.create.1.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.finalize_invoice.1.json index eaf9fde3c0..89594fc86b 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.finalize_invoice.1.json @@ -182,5 +182,5 @@ "total_excluding_tax": 176000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.2.json index 80d1e30611..21978846d2 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.2.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--Invoice.list.2.json @@ -184,7 +184,7 @@ "total_excluding_tax": 176000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.1.json index b0fd184be1..31a516df35 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 200000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.2.json index 9ed7368b71..3a0d47d20f 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.create.1.json index 59d798b5ca..60d15ec064 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.list.1.json index 9625ea7cd4..8eb86c1faf 100644 --- a/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/invoice_scheduled_upgrade_server_complimentary_access_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json index 892d6b42f6..d8208fe1ef 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.modify.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.modify.1.json index 5ebe5f3ed5..8e201c746e 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.json index 36a9b56ea8..51eba8e110 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.2.json index 36a9b56ea8..51eba8e110 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.2.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.2.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.3.json index 36a9b56ea8..51eba8e110 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.3.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.3.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.4.json index 36a9b56ea8..51eba8e110 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.4.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.4.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.5.json index 36a9b56ea8..51eba8e110 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.5.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.5.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.6.json index b754d4514c..2ec1c91bcc 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.6.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Customer.retrieve.6.json @@ -5,7 +5,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 2, diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.1.json index 6acd0c1dfc..e78b8c6f31 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -11,7 +11,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json", @@ -25,7 +25,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.2.json index 187813c472..7a6ee78782 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 176000, - "authorization_code": null, + "authorization_code": "044944", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -322,7 +322,7 @@ "total_excluding_tax": 176000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json", @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -530,7 +530,7 @@ "total_excluding_tax": 176000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "effective_at": null, @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -825,7 +826,7 @@ "total_excluding_tax": 176000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 200000, @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1092,7 +1094,7 @@ "total_excluding_tax": 200000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 200000, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1301,7 +1304,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "migrate_customer_server_to_realms_and_upgrade--Customer.create.1.json", @@ -1315,7 +1318,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.3.json index 5a09efdc43..7e147bc8ab 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -195,7 +195,7 @@ "total_excluding_tax": 176000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json", @@ -209,7 +209,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -403,7 +403,7 @@ "total_excluding_tax": 176000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.3.json", @@ -417,7 +417,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -611,7 +611,7 @@ "total_excluding_tax": 176000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_paid": 0, @@ -635,7 +635,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +657,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "migrate_customer_server_to_realms_and_upgrade--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.create.1.json index d34cc909a3..63a42b3405 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.finalize_invoice.1.json index d6c2c8a0ec..b0cea55ca5 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.finalize_invoice.1.json @@ -189,5 +189,5 @@ "total_excluding_tax": 176000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.pay.1.json index 6975b67d0f..597b02cdbf 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--Invoice.pay.1.json @@ -189,5 +189,5 @@ "total_excluding_tax": 176000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--InvoiceItem.create.1.json index c4552b7836..232314e40b 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 200000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--InvoiceItem.create.2.json index 464f90372e..118017703a 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.json index abfb24b949..3c59ef8e61 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.list.1.json index f2924a3d5c..3d1acf4015 100644 --- a/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/migrate_customer_server_to_realms_and_upgrade--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.1.json index 5f8a6a1bf5..06d2a1ac51 100644 --- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json index 8cf2ad8ea3..19624b7927 100644 --- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 176000, - "authorization_code": null, + "authorization_code": "766964", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "non_sponsorship_billing--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "non_sponsorship_billing--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "non_sponsorship_billing--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1092,7 +1094,7 @@ "total_excluding_tax": 200000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "non_sponsorship_billing--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 200000, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "non_sponsorship_billing--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json index 82f2d96a4d..0bd4012c06 100644 --- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -209,7 +209,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -417,7 +417,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -635,7 +635,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +657,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "non_sponsorship_billing--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json index 094d330f65..b0a11b73aa 100644 --- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.1.json index e701394a58..df8812cb3c 100644 --- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 200000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.2.json index 588a2490be..e6cbeffb42 100644 --- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.create.1.json index d97f542728..e0ec0342eb 100644 --- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.list.1.json index e33210d18d..a356f70e53 100644 --- a/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/non_sponsorship_billing--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.1.json b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.1.json index be959bf1e8..02a37fe012 100644 --- a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.2.json b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.2.json index 673401e7be..82954265c0 100644 --- a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,7 +156,176 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null + } + }, + "id": "payment_method_string--Event.list.2.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": "payment_method_string--Event.list.2.json", + "idempotency_key": "00000000-0000-0000-0000-000000000000" + }, + "type": "invoice.paid" + }, + { + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "account_country": "US", + "account_name": "NORMALIZED", + "account_tax_ids": null, + "amount_due": 984000, + "amount_overpaid": 0, + "amount_paid": 984000, + "amount_remaining": 0, + "amount_shipping": 0, + "application": null, + "attempt_count": 0, + "attempted": false, + "auto_advance": false, + "automatic_tax": { + "disabled_reason": null, + "enabled": false, + "liability": null, + "provider": null, + "status": null + }, + "automatically_finalizes_at": null, + "billing_reason": "manual", + "collection_method": "send_invoice", + "created": 1000000000, + "currency": "usd", + "custom_fields": null, + "customer": "payment_method_string--Customer.create.1.json", + "customer_address": null, + "customer_email": "hamlet@zulip.com", + "customer_name": null, + "customer_phone": null, + "customer_shipping": null, + "customer_tax_exempt": "none", + "customer_tax_ids": [], + "default_payment_method": null, + "default_source": null, + "default_tax_rates": [], + "description": null, + "discounts": [], + "due_date": 1000000000, + "effective_at": 1000000000, + "ending_balance": 0, + "footer": null, + "from_invoice": null, + "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", + "id": "payment_method_string--Event.list.2.json", + "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", + "issuer": { + "type": "self" + }, + "last_finalization_error": null, + "latest_revision": null, + "lines": { + "data": [ + { + "amount": 984000, + "currency": "usd", + "description": "Zulip Cloud Standard", + "discount_amounts": [], + "discountable": false, + "discounts": [], + "id": "payment_method_string--Event.list.2.json", + "invoice": "payment_method_string--Event.list.2.json", + "livemode": false, + "metadata": {}, + "object": "line_item", + "parent": { + "invoice_item_details": { + "invoice_item": "payment_method_string--Event.list.2.json", + "proration": false, + "proration_details": { + "credited_items": null + }, + "subscription": null + }, + "subscription_item_details": null, + "type": "invoice_item_details" + }, + "period": { + "end": 1000000000, + "start": 1000000000 + }, + "pretax_credit_amounts": [], + "pricing": { + "price_details": { + "price": "price_NORMALIZED", + "product": "prod_NORMALIZED" + }, + "type": "price_details", + "unit_amount_decimal": "8000" + }, + "quantity": 123, + "taxes": [] + } + ], + "has_more": false, + "object": "list", + "total_count": 1, + "url": "/v1/invoices/payment_method_string--Event.list.2.json/lines" + }, + "livemode": false, + "metadata": { + "billing_schedule": "1", + "current_plan_id": "None", + "license_management": "manual", + "licenses": "123", + "on_free_trial": "False", + "plan_tier": "1", + "user_id": "10" + }, + "next_payment_attempt": null, + "number": "NORMALIZED", + "object": "invoice", + "on_behalf_of": null, + "parent": null, + "payment_settings": { + "default_mandate": null, + "payment_method_options": null, + "payment_method_types": null + }, + "period_end": 1000000000, + "period_start": 1000000000, + "post_payment_credit_notes_amount": 0, + "pre_payment_credit_notes_amount": 0, + "receipt_number": null, + "rendering": { + "amount_tax_display": null, + "pdf": { + "page_size": "letter" + }, + "template": null, + "template_version": null + }, + "shipping_cost": null, + "shipping_details": null, + "starting_balance": 0, + "statement_descriptor": "Zulip Cloud Standard", + "status": "paid", + "status_transitions": { + "finalized_at": 1000000000, + "marked_uncollectible_at": null, + "paid_at": 1000000000, + "voided_at": null + }, + "subtotal": 984000, + "subtotal_excluding_tax": 984000, + "test_clock": null, + "total": 984000, + "total_discount_amounts": [], + "total_excluding_tax": 984000, + "total_pretax_credit_amounts": [], + "total_taxes": [], + "webhooks_delivered_at": null }, "previous_attributes": { "amount_paid": 0, @@ -179,7 +348,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -201,6 +370,7 @@ "currency": "usd", "customer": "payment_method_string--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "payment_method_string--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -250,7 +420,7 @@ "type": "payment_intent.canceled" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -405,7 +575,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "payment_method_string--Event.list.2.json", @@ -419,7 +589,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -574,7 +744,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "automatically_finalizes_at": 1000000000, @@ -605,7 +775,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -627,6 +797,7 @@ "currency": "usd", "customer": "payment_method_string--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "payment_method_string--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -676,7 +847,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -831,7 +1002,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -857,7 +1028,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -872,6 +1043,7 @@ "invoice": "payment_method_string--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { @@ -903,168 +1075,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 10000, - "amount_overpaid": 0, - "amount_paid": 0, - "amount_remaining": 10000, - "amount_shipping": 0, - "application": null, - "attempt_count": 0, - "attempted": false, - "auto_advance": true, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "send_invoice", - "created": 1000000000, - "currency": "usd", - "custom_fields": null, - "customer": "cus_NORMALIZED", - "customer_address": null, - "customer_email": "user-0-test-realm-8@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": 1000000000, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", - "id": "payment_method_string--Event.list.2.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 10000, - "currency": "usd", - "description": "Zulip Cloud Standard", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "payment_method_string--Event.list.2.json", - "invoice": "payment_method_string--Event.list.2.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "ii_NORMALIZED", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1000000000, - "start": 1000000000 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "10000" - }, - "quantity": 1, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/payment_method_string--Event.list.2.json/lines" - }, - "livemode": false, - "metadata": {}, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "open", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": null, - "voided_at": null - }, - "subtotal": 10000, - "subtotal_excluding_tax": 10000, - "test_clock": null, - "total": 10000, - "total_discount_amounts": [], - "total_excluding_tax": 10000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 - } - }, - "id": "payment_method_string--Event.list.2.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": null, - "idempotency_key": null - }, - "type": "invoice.sent" - }, - { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1178,7 +1189,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "payment_method_string--Event.list.2.json", @@ -1192,7 +1203,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1242,7 +1253,7 @@ "type": "customer.updated" } ], - "has_more": true, + "has_more": false, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.3.json b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.3.json index 6d5feba0a4..6d922067af 100644 --- a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.3.json @@ -1,175 +1,5 @@ { - "data": [ - { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 984000, - "amount_overpaid": 0, - "amount_paid": 984000, - "amount_remaining": 0, - "amount_shipping": 0, - "application": null, - "attempt_count": 0, - "attempted": false, - "auto_advance": false, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "send_invoice", - "created": 1000000000, - "currency": "usd", - "custom_fields": null, - "customer": "cus_NORMALIZED", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": 1000000000, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", - "id": "payment_method_string--Event.list.2.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 984000, - "currency": "usd", - "description": "Zulip Cloud Standard", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "payment_method_string--Event.list.2.json", - "invoice": "payment_method_string--Event.list.2.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "ii_NORMALIZED", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1000000000, - "start": 1000000000 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "8000" - }, - "quantity": 123, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/payment_method_string--Event.list.2.json/lines" - }, - "livemode": false, - "metadata": { - "billing_schedule": "1", - "current_plan_id": "None", - "license_management": "manual", - "licenses": "123", - "on_free_trial": "False", - "plan_tier": "1", - "user_id": "10" - }, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "paid", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": 1000000000, - "voided_at": null - }, - "subtotal": 984000, - "subtotal_excluding_tax": 984000, - "test_clock": null, - "total": 984000, - "total_discount_amounts": [], - "total_excluding_tax": 984000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 - } - }, - "id": "payment_method_string--Event.list.3.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": "payment_method_string--Event.list.2.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" - }, - "type": "invoice.paid" - } - ], + "data": [], "has_more": false, "object": "list", "url": "/v1/events" diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.4.json b/corporate/tests/stripe_fixtures/payment_method_string--Event.list.4.json deleted file mode 100644 index 6d922067af..0000000000 --- a/corporate/tests/stripe_fixtures/payment_method_string--Event.list.4.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "data": [], - "has_more": false, - "object": "list", - "url": "/v1/events" -} diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.create.1.json b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.create.1.json index fe84a88149..ee0ed7230f 100644 --- a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.finalize_invoice.1.json index b524002c17..e8b1bd3c6e 100644 --- a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.finalize_invoice.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.pay.1.json index 36e860b45a..b406b2178f 100644 --- a/corporate/tests/stripe_fixtures/payment_method_string--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/payment_method_string--Invoice.pay.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/payment_method_string--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/payment_method_string--InvoiceItem.create.1.json index 4154e6b92e..00804e9af5 100644 --- a/corporate/tests/stripe_fixtures/payment_method_string--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/payment_method_string--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/payment_method_string--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/payment_method_string--checkout.Session.create.1.json index 271c994854..5de6ca6b75 100644 --- a/corporate/tests/stripe_fixtures/payment_method_string--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/payment_method_string--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/payment_method_string--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/payment_method_string--checkout.Session.list.1.json index d3b2231096..fd3cf33755 100644 --- a/corporate/tests/stripe_fixtures/payment_method_string--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/payment_method_string--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Event.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Event.list.1.json index dd48f5c0b4..452bea1a14 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json index caea4a93e4..10940ab48a 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json index 74156fe63f..c451d20fdd 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/redirect_for_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json index 85f8d5f009..8d144830b3 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.modify.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.modify.1.json index b70c6bdb73..25c8b563af 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json index 3b09bcde78..b2b7c5a3ea 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json index 3b09bcde78..b2b7c5a3ea 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.2.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json index 3b09bcde78..b2b7c5a3ea 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.3.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json index 3b09bcde78..b2b7c5a3ea 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.4.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json index 3b09bcde78..b2b7c5a3ea 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.5.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json index 3b09bcde78..b2b7c5a3ea 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.retrieve.6.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json index ed97112be0..c12ccc335b 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -11,7 +11,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--Customer.create.1.json", @@ -25,7 +25,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json index e2f168bea9..4f9f82684e 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json index 3f142a1800..4b09d15672 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_realm_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Event.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Event.list.1.json index 6dd69b1d5d..b86f31cded 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json index 465c4c2cad..f2c87c409c 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json index 5e51e36bfb..1e803478b8 100644 --- a/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/redirect_for_remote_server_billing_page_downgrade_at_free_trial_end--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json index 4ef71939de..b0f4712e3c 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.1.json @@ -1,44 +1,27 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { - "address": null, - "balance": 0, + "amount_paid": 48000, + "amount_requested": 48000, "created": 1000000000, - "currency": null, - "default_source": null, - "delinquent": false, - "description": "zulip (Zulip Dev)", - "discount": null, - "email": "hamlet@zulip.com", - "id": "replace_payment_method--Customer.create.1.json", - "invoice_prefix": "NORMALIZED", - "invoice_settings": { - "custom_fields": null, - "default_payment_method": "pm_NORMALIZED", - "footer": null, - "rendering_options": null - }, + "currency": "usd", + "id": "replace_payment_method--Event.list.1.json", + "invoice": "in_NORMALIZED", + "is_default": true, "livemode": false, - "metadata": { - "realm_id": "1", - "realm_str": "zulip" + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" }, - "name": null, - "next_invoice_sequence": 1, - "object": "customer", - "phone": null, - "preferred_locales": [], - "shipping": null, - "tax_exempt": "none", - "test_clock": null - }, - "previous_attributes": { - "invoice_settings": { - "default_payment_method": null + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 } } }, @@ -47,10 +30,10 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "replace_payment_method--Event.list.1.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" + "id": null, + "idempotency_key": null }, - "type": "customer.updated" + "type": "invoice_payment.paid" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json index ac9dc990d3..9f069687eb 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "replace_payment_method--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "replace_payment_method--Event.list.2.json", "last_payment_error": null, "latest_charge": "replace_payment_method--Event.list.2.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "522397", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "replace_payment_method--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "replace_payment_method--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "replace_payment_method--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "replace_payment_method--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1208,7 +1211,7 @@ "type": "customer.updated" } ], - "has_more": false, + "has_more": true, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json index 05b41bb8ee..5d42a1eea1 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json index 3421839a07..4b7f013eee 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json index dfe5f4e58f..47078af9f7 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json index 85a82fbecf..3a66dee734 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--Invoice.pay.2.json @@ -8,6 +8,7 @@ "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", + "network_decline_code": "01", "param": null, "payment_intent": { "amount": 5000, @@ -28,6 +29,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "replace_payment_method--Invoice.pay.2.json", "last_payment_error": { "advice_code": "try_again_later", @@ -36,6 +38,7 @@ "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", + "network_decline_code": "01", "payment_method": { "allow_redisplay": "unspecified", "billing_details": { @@ -175,7 +178,7 @@ "object": "payment_method", "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1746899385", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913918", "setup_intent": null, "source": null, "type": "card_error" @@ -188,23 +191,23 @@ "Access-Control-Max-Age": "300", "Cache-Control": "no-cache, no-store", "Connection": "keep-alive", - "Content-Length": "5290", - "Content-Security-Policy": "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=TukYFDLV2lHfmYsKO8QKy1Rs8CFOE-Ik92j0oi7ZNOKjRVL1NdvjDcjXu7lLN5teYlBHlKnXeBBeKYy1", + "Content-Length": "5375", + "Content-Security-Policy": "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=irAykxLghuCmgqrIXf-pM0galma1w0YXzU99WaktruwmWPN8iPfQgKGBqdAaBd-GGagPQijh3O5rblPQ", "Content-Type": "application/json", "Date": "NORMALIZED DATETIME", - "Idempotency-Key": "be647435-6f59-43db-b2e8-f1b903e9f62b", + "Idempotency-Key": "d3306ad4-fd75-42ce-b299-fce16ed674c4", "Original-Request": "req_NORMALIZED", "Request-Id": "req_NORMALIZED", "Server": "nginx", "Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload", "Stripe-Should-Retry": "false", - "Stripe-Version": "2025-04-30.basil", + "Stripe-Version": "2025-09-30.clover", "Vary": "Origin", "X-Stripe-Priority-Routing-Enabled": "true", "X-Stripe-Routing-Context-Priority-Tier": "api-testmode", - "X-Wc": "ABGHI" + "X-Wc": "ABGHIJ" }, - "http_body": "{\n \"error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"payment_intent\": {\n \"id\": \"replace_payment_method--Invoice.pay.2.json\",\n \"object\": \"payment_intent\",\n \"amount\": 5000,\n \"amount_capturable\": 0,\n \"amount_details\": {\n \"tip\": {\n }\n },\n \"amount_received\": 0,\n \"application\": null,\n \"application_fee_amount\": null,\n \"automatic_payment_methods\": null,\n \"canceled_at\": null,\n \"cancellation_reason\": null,\n \"capture_method\": \"automatic\",\n \"client_secret\": \"replace_payment_method--Invoice.pay.2.json_secret_nBNr2TQijAwq9vfBbJsqUMhB6\",\n \"confirmation_method\": \"automatic\",\n \"created\": 1000000000,\n \"currency\": \"usd\",\n \"customer\": \"cus_NORMALIZED\",\n \"description\": \"Payment for Invoice\",\n \"last_payment_error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"payment_method\": {\n \"id\": \"replace_payment_method--Customer.retrieve.7.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 5,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {\n },\n \"type\": \"card\"\n },\n \"type\": \"card_error\"\n },\n \"latest_charge\": \"ch_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {\n },\n \"next_action\": null,\n \"on_behalf_of\": null,\n \"payment_method\": null,\n \"payment_method_configuration_details\": null,\n \"payment_method_options\": {\n \"card\": {\n \"installments\": null,\n \"mandate_options\": null,\n \"network\": null,\n \"request_three_d_secure\": \"automatic\"\n },\n \"link\": {\n \"persistent_token\": null\n }\n },\n \"payment_method_types\": [\n \"card\",\n \"link\"\n ],\n \"processing\": null,\n \"receipt_email\": \"hamlet@zulip.com\",\n \"review\": null,\n \"setup_future_usage\": null,\n \"shipping\": null,\n \"source\": null,\n \"statement_descriptor\": null,\n \"statement_descriptor_suffix\": null,\n \"status\": \"requires_payment_method\",\n \"transfer_data\": null,\n \"transfer_group\": null\n },\n \"payment_method\": {\n \"id\": \"replace_payment_method--Customer.retrieve.7.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 5,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {\n },\n \"type\": \"card\"\n },\n \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1746899385\",\n \"type\": \"card_error\"\n }\n}\n", + "http_body": "{\n \"error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_intent\": {\n \"id\": \"replace_payment_method--Invoice.pay.2.json\",\n \"object\": \"payment_intent\",\n \"amount\": 5000,\n \"amount_capturable\": 0,\n \"amount_details\": {\n \"tip\": {}\n },\n \"amount_received\": 0,\n \"application\": null,\n \"application_fee_amount\": null,\n \"automatic_payment_methods\": null,\n \"canceled_at\": null,\n \"cancellation_reason\": null,\n \"capture_method\": \"automatic\",\n \"client_secret\": \"replace_payment_method--Invoice.pay.2.json_secret_N0ibfNA1c7mKThX3kFyApFfQd\",\n \"confirmation_method\": \"automatic\",\n \"created\": 1000000000,\n \"currency\": \"usd\",\n \"customer\": \"cus_NORMALIZED\",\n \"description\": \"Payment for Invoice\",\n \"excluded_payment_method_types\": null,\n \"last_payment_error\": {\n \"advice_code\": \"try_again_later\",\n \"charge\": \"ch_NORMALIZED\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_method\": {\n \"id\": \"replace_payment_method--Customer.retrieve.7.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 10,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"type\": \"card_error\"\n },\n \"latest_charge\": \"ch_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"next_action\": null,\n \"on_behalf_of\": null,\n \"payment_method\": null,\n \"payment_method_configuration_details\": null,\n \"payment_method_options\": {\n \"card\": {\n \"installments\": null,\n \"mandate_options\": null,\n \"network\": null,\n \"request_three_d_secure\": \"automatic\"\n },\n \"link\": {\n \"persistent_token\": null\n }\n },\n \"payment_method_types\": [\n \"card\",\n \"link\"\n ],\n \"processing\": null,\n \"receipt_email\": \"hamlet@zulip.com\",\n \"review\": null,\n \"setup_future_usage\": null,\n \"shipping\": null,\n \"source\": null,\n \"statement_descriptor\": null,\n \"statement_descriptor_suffix\": null,\n \"status\": \"requires_payment_method\",\n \"transfer_data\": null,\n \"transfer_group\": null\n },\n \"payment_method\": {\n \"id\": \"replace_payment_method--Customer.retrieve.7.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 10,\n \"exp_year\": 2026,\n \"fingerprint\": \"DXkIrMyLWOiSbbeT\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0341\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913918\",\n \"type\": \"card_error\"\n }\n}\n", "http_status": 402, "json_body": { "error": { @@ -214,6 +217,7 @@ "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", + "network_decline_code": "01", "payment_intent": { "amount": 5000, "amount_capturable": 0, @@ -233,6 +237,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "replace_payment_method--Invoice.pay.2.json", "last_payment_error": { "advice_code": "try_again_later", @@ -241,6 +246,7 @@ "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", + "network_decline_code": "01", "payment_method": { "allow_redisplay": "unspecified", "billing_details": { @@ -380,7 +386,7 @@ "object": "payment_method", "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1746899385", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913918", "type": "card_error" } }, diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.1.json index bd63b42ebf..1571930902 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json index 046c6a8478..7b6f61afc9 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--SetupIntent.create.2.json @@ -8,6 +8,7 @@ "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", + "network_decline_code": "01", "param": null, "payment_intent": null, "payment_method": { @@ -61,7 +62,7 @@ "object": "payment_method", "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1746899381", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913913", "setup_intent": { "application": null, "automatic_payment_methods": null, @@ -78,6 +79,7 @@ "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", + "network_decline_code": "01", "payment_method": { "allow_redisplay": "unspecified", "billing_details": { @@ -165,23 +167,23 @@ "Access-Control-Max-Age": "300", "Cache-Control": "no-cache, no-store", "Connection": "keep-alive", - "Content-Length": "4542", - "Content-Security-Policy": "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=TukYFDLV2lHfmYsKO8QKy1Rs8CFOE-Ik92j0oi7ZNOKjRVL1NdvjDcjXu7lLN5teYlBHlKnXeBBeKYy1", + "Content-Length": "4591", + "Content-Security-Policy": "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=irAykxLghuCmgqrIXf-pM0galma1w0YXzU99WaktruwmWPN8iPfQgKGBqdAaBd-GGagPQijh3O5rblPQ", "Content-Type": "application/json", "Date": "NORMALIZED DATETIME", - "Idempotency-Key": "3dbc2960-cd2f-442e-b6a0-2340e8fd46c7", + "Idempotency-Key": "bd89dd3c-ca97-485e-b5a4-fb5457e24a64", "Original-Request": "req_NORMALIZED", "Request-Id": "req_NORMALIZED", "Server": "nginx", "Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload", "Stripe-Should-Retry": "false", - "Stripe-Version": "2025-04-30.basil", + "Stripe-Version": "2025-09-30.clover", "Vary": "Origin", "X-Stripe-Priority-Routing-Enabled": "true", "X-Stripe-Routing-Context-Priority-Tier": "api-testmode", - "X-Wc": "ABGHI" + "X-Wc": "ABGHIJ" }, - "http_body": "{\n \"error\": {\n \"advice_code\": \"try_again_later\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"payment_method\": {\n \"id\": \"replace_payment_method--PaymentMethod.create.2.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 5,\n \"exp_year\": 2026,\n \"fingerprint\": \"D5bwp1hJalF8jxeQ\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0002\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": null,\n \"livemode\": false,\n \"metadata\": {\n },\n \"type\": \"card\"\n },\n \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1746899381\",\n \"setup_intent\": {\n \"id\": \"replace_payment_method--SetupIntent.create.2.json\",\n \"object\": \"setup_intent\",\n \"application\": null,\n \"automatic_payment_methods\": null,\n \"cancellation_reason\": null,\n \"client_secret\": \"replace_payment_method--SetupIntent.create.2.json_secret_SHrFXdsjvZJ3KImUJYY5smbmnfFiAQ6\",\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"description\": null,\n \"flow_directions\": null,\n \"last_setup_error\": {\n \"advice_code\": \"try_again_later\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"payment_method\": {\n \"id\": \"replace_payment_method--PaymentMethod.create.2.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 5,\n \"exp_year\": 2026,\n \"fingerprint\": \"D5bwp1hJalF8jxeQ\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0002\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": null,\n \"livemode\": false,\n \"metadata\": {\n },\n \"type\": \"card\"\n },\n \"type\": \"card_error\"\n },\n \"latest_attempt\": \"setatt_NORMALIZED\",\n \"livemode\": false,\n \"mandate\": null,\n \"metadata\": {\n },\n \"next_action\": null,\n \"on_behalf_of\": null,\n \"payment_method\": null,\n \"payment_method_configuration_details\": null,\n \"payment_method_options\": {\n \"card\": {\n \"mandate_options\": null,\n \"network\": null,\n \"request_three_d_secure\": \"automatic\"\n }\n },\n \"payment_method_types\": [\n \"card\"\n ],\n \"single_use_mandate\": null,\n \"status\": \"requires_payment_method\",\n \"usage\": \"off_session\"\n },\n \"type\": \"card_error\"\n }\n}\n", + "http_body": "{\n \"error\": {\n \"advice_code\": \"try_again_later\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_method\": {\n \"id\": \"replace_payment_method--PaymentMethod.create.2.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 10,\n \"exp_year\": 2026,\n \"fingerprint\": \"D5bwp1hJalF8jxeQ\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0002\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": null,\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"request_log_url\": \"https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913913\",\n \"setup_intent\": {\n \"id\": \"replace_payment_method--SetupIntent.create.2.json\",\n \"object\": \"setup_intent\",\n \"application\": null,\n \"automatic_payment_methods\": null,\n \"cancellation_reason\": null,\n \"client_secret\": \"replace_payment_method--SetupIntent.create.2.json_secret_TCHmLweCuH2mQ9rglUcLGXULYgxnPF3\",\n \"created\": 1000000000,\n \"customer\": \"cus_NORMALIZED\",\n \"description\": null,\n \"flow_directions\": null,\n \"last_setup_error\": {\n \"advice_code\": \"try_again_later\",\n \"code\": \"card_declined\",\n \"decline_code\": \"generic_decline\",\n \"doc_url\": \"https://stripe.com/docs/error-codes/card-declined\",\n \"message\": \"Your card was declined.\",\n \"network_decline_code\": \"01\",\n \"payment_method\": {\n \"id\": \"replace_payment_method--PaymentMethod.create.2.json\",\n \"object\": \"payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\": {\n \"address\": {\n \"city\": \"San Francisco\",\n \"country\": \"US\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"postal_code\": \"94105\",\n \"state\": \"CA\"\n },\n \"email\": null,\n \"name\": \"John Doe\",\n \"phone\": null,\n \"tax_id\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\": \"pass\",\n \"address_postal_code_check\": \"pass\",\n \"cvc_check\": \"pass\"\n },\n \"country\": \"US\",\n \"display_brand\": \"visa\",\n \"exp_month\": 10,\n \"exp_year\": 2026,\n \"fingerprint\": \"D5bwp1hJalF8jxeQ\",\n \"funding\": \"credit\",\n \"generated_from\": null,\n \"last4\": \"0002\",\n \"networks\": {\n \"available\": [\n \"visa\"\n ],\n \"preferred\": null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\": {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\": 1000000000,\n \"customer\": null,\n \"livemode\": false,\n \"metadata\": {},\n \"type\": \"card\"\n },\n \"type\": \"card_error\"\n },\n \"latest_attempt\": \"setatt_NORMALIZED\",\n \"livemode\": false,\n \"mandate\": null,\n \"metadata\": {},\n \"next_action\": null,\n \"on_behalf_of\": null,\n \"payment_method\": null,\n \"payment_method_configuration_details\": null,\n \"payment_method_options\": {\n \"card\": {\n \"mandate_options\": null,\n \"network\": null,\n \"request_three_d_secure\": \"automatic\"\n }\n },\n \"payment_method_types\": [\n \"card\"\n ],\n \"single_use_mandate\": null,\n \"status\": \"requires_payment_method\",\n \"usage\": \"off_session\"\n },\n \"type\": \"card_error\"\n }\n}\n", "http_status": 402, "json_body": { "error": { @@ -190,6 +192,7 @@ "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", + "network_decline_code": "01", "payment_method": { "allow_redisplay": "unspecified", "billing_details": { @@ -241,7 +244,7 @@ "object": "payment_method", "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1746899381", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_NORMALIZED?t=1759913913", "setup_intent": { "application": null, "automatic_payment_methods": null, @@ -258,6 +261,7 @@ "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", + "network_decline_code": "01", "payment_method": { "allow_redisplay": "unspecified", "billing_details": { diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.1.json index 45b53894bf..eec1a952c9 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.2.json index 5a45d7d2bf..7ce52f4a67 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.2.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.2.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/billing/", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.3.json index f86c37591c..af70b54ffa 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.3.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.3.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/billing/", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.4.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.4.json index 85ad38bbd6..162877f1be 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.4.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.4.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/billing/", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.5.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.5.json index a5adcd4d56..2af6b9b08d 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.5.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.create.5.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=true&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.1.json index 860dd69b38..dd4516fe45 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.2.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.2.json index 2b02cc2531..a4fa0b2ac3 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.2.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.2.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/billing/", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.3.json b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.3.json index 1c6bd0b489..9b278ad21c 100644 --- a/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.3.json +++ b/corporate/tests/stripe_fixtures/replace_payment_method--checkout.Session.list.3.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/billing/", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_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 index 22a843526d..780042445c 100644 --- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_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 @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json index e946efcc45..3a954bf6f5 100644 --- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "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 index 2506553d6c..917710de24 100644 --- 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 @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, 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 index 2506553d6c..917710de24 100644 --- 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 @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, 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 index 2506553d6c..917710de24 100644 --- 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 @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, 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 index 2506553d6c..917710de24 100644 --- 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 @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, 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 index 2506553d6c..917710de24 100644 --- 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 @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_complimentary_access_plan_upgrade_to_fixed_price_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_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 index 1df5d59d4d..092a194f19 100644 --- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_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 @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_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 index bce35b960f..f7a5e6e48d 100644 --- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_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 @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 120000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_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 index 36ab8c4c8d..f7dafa16d3 100644 --- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_plan_upgrade_to_fixed_price_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,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/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_complimentary_access_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 index 06a06c1afa..0570a46156 100644 --- a/corporate/tests/stripe_fixtures/schedule_complimentary_access_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,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json index 2e343550ac..b72ea85b07 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.modify.1.json index f25f00461c..56aa3bcc59 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.json index a55d792601..201616ea55 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.2.json index a55d792601..201616ea55 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.2.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.2.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.3.json index a55d792601..201616ea55 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.3.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.3.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.4.json index a55d792601..201616ea55 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.4.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.4.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.5.json index a55d792601..201616ea55 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.5.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.retrieve.5.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.1.json index 695c14d63e..72998735df 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -11,7 +11,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json", @@ -25,7 +25,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json index 28b119a06b..0df9ce2214 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -171,7 +171,7 @@ "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -179,7 +179,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -201,6 +201,7 @@ "currency": "usd", "customer": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json", @@ -250,7 +251,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -311,7 +312,7 @@ "payment_method_details": { "card": { "amount_authorized": 10000, - "authorization_code": null, + "authorization_code": "969509", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -377,7 +378,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -545,7 +546,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -729,7 +730,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -751,6 +752,7 @@ "currency": "usd", "customer": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -800,7 +802,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -980,7 +982,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -995,6 +997,7 @@ "invoice": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { @@ -1026,7 +1029,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1139,7 +1142,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.2.json", @@ -1153,7 +1156,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1163,7 +1166,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Customer.create.1.json", @@ -1177,7 +1180,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json index 06b82aaac2..07aa9f232b 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -169,7 +169,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.1.json index fb6f6a135a..a408ce9a79 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.10.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.10.json index c27c9a0f3d..e89f255431 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.10.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.10.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.11.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.11.json index 45008f8fef..76b31aeec9 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.11.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.11.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.12.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.12.json index b54bd8dee1..0c9b2403bc 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.12.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.12.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.13.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.13.json index aa34ad28b0..bb177aa79f 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.13.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.13.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.2.json index 7dbb533f71..2fc7788a41 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.3.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.3.json index 2ee48166d0..67e151c50b 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.3.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.3.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.4.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.4.json index ef3245747b..03ce54e16b 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.4.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.4.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.5.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.5.json index 51624236a9..d8088426ba 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.5.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.5.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.6.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.6.json index fca588c1a1..15bbbc0078 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.6.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.6.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.7.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.7.json index 8fe6ca52b2..bd47287049 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.7.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.7.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.8.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.8.json index e59d408df5..d345fab394 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.8.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.8.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.9.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.9.json index 1fd2971db3..a39a128e25 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.9.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.create.9.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.11.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.11.json index 8c8e889777..1edc8a98ce 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.11.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.11.json @@ -142,5 +142,5 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.5.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.5.json index ffe718d999..0fa75fe9b7 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.5.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--Invoice.finalize_invoice.5.json @@ -142,5 +142,5 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.1.json index ef4b91e907..62928a7a73 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.10.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.10.json index b0f7efaeb1..0f7927e241 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.10.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.10.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.11.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.11.json index 2e5a2ee3b1..7f12185878 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.11.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.11.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.12.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.12.json index 73565623d8..abb758139e 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.12.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.12.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.13.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.13.json index 975c908b5e..8d5da0c0e2 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.13.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.13.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 14166, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.2.json index a0c3fd299d..10f89f2a50 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.3.json index 555f151b43..c72d1df5e7 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.4.json index bbb9dc1308..c6a360a909 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.4.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.4.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.5.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.5.json index c18ec7c605..9a59f5db6d 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.5.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.5.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.6.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.6.json index 1b3dc0f5a4..c4c080e5f1 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.6.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.6.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.7.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.7.json index 3a191aef55..07239f4ab9 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.7.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.7.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.8.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.8.json index 74a2a8f322..322f72daae 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.8.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.8.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.9.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.9.json index 32fb8514ed..e34bcc2f13 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.9.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--InvoiceItem.create.9.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.create.1.json index 288e14393c..1b054e18d5 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.list.1.json index 52ae7b1006..2340685235 100644 --- a/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/schedule_fixed_price_plan_upgrade_to_another_fixed_price_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/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--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_plan_upgrade_to_fixed_price_plan--Invoice.create.1.json index 5c1b6d846c..faa708e7de 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_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 @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_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 index 7584b60d8e..02c54455bd 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_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 @@ -142,5 +142,5 @@ "total_excluding_tax": 120000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_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 index aec4ccdc13..847398d1be 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_complimentary_access_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 @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 120000, "object": "invoiceitem", "parent": null, "period": { 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 index 97e2ef9132..60396dd9da 100644 --- 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 @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", 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 index 7629da5325..5d3bd5efc6 100644 --- 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 @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.1.json index 13124f441c..eefa42e5b6 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json index 2e6218fd00..7dbdfb97e8 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 51600, - "authorization_code": null, + "authorization_code": "221320", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "schedule_server_upgrade_to_fixed_price_business_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 75600, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json index 93ede6c614..8c28a0c72a 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -209,7 +209,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -417,7 +417,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -635,7 +635,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +657,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "schedule_server_upgrade_to_fixed_price_business_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.1.json index 79657cbb05..f5d55baf74 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.2.json index 8118f17872..4324b6f7f7 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.2.json index 4d5cfe87e6..08db05d547 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.2.json +++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--Invoice.finalize_invoice.2.json @@ -142,5 +142,5 @@ "total_excluding_tax": 120000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--InvoiceItem.create.1.json index da74bc0cf2..1873780270 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 75600, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--InvoiceItem.create.2.json index 51dc82ab96..603a29591d 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--InvoiceItem.create.3.json index fbc6b9d4a9..d4faf8b5bd 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 120000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--checkout.Session.create.1.json index 7b5e82f5e6..23a7f6edc2 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--checkout.Session.list.1.json index 24957532c1..76de90bcfb 100644 --- a/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/schedule_server_upgrade_to_fixed_price_business_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json index 17e52236ef..78659b84dd 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.modify.1.json index 1c1405e582..06c7f5437f 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.json index 755a6968c0..f4f12a5c63 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.2.json index 755a6968c0..f4f12a5c63 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.2.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.2.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.3.json index 755a6968c0..f4f12a5c63 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.3.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.3.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.4.json index 755a6968c0..f4f12a5c63 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.4.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.4.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.5.json index 755a6968c0..f4f12a5c63 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.5.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.5.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.6.json index e23b221d03..7b7cc687f4 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.6.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Customer.retrieve.6.json @@ -5,7 +5,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 3, diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.1.json index 93265da029..e251fb4a2e 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -11,7 +11,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json", @@ -25,7 +25,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json index fec608d3fc..82d238236b 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 22200, - "authorization_code": null, + "authorization_code": "287609", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1092,7 +1094,7 @@ "total_excluding_tax": 46200, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 46200, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1301,7 +1304,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Customer.create.1.json", @@ -1315,7 +1318,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json index 9e8331889b..222f981ed5 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -209,7 +209,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -417,7 +417,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -635,7 +635,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +657,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "schedule_upgrade_to_fixed_price_annual_business_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.1.json index 5892e0d8cc..eddf5c42b6 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.2.json index 814b61bbe9..1a181200e2 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.1.json index a039387429..7b45d07475 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 46200, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.2.json index d523ba05ae..14d9d69545 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.3.json index 7bbe74ef1a..ac4959d755 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 120000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.create.1.json index 2d85c82972..070861b695 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.list.1.json index 3cd115d703..b05e617b49 100644 --- a/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/schedule_upgrade_to_fixed_price_annual_business_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.1.json index 031ffd6e69..86b97497db 100644 --- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json index 4513f9d222..2eea884c4e 100644 --- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json @@ -1,186 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 48000, - "amount_overpaid": 0, - "amount_paid": 48000, - "amount_remaining": 0, - "amount_shipping": 0, - "application": null, - "attempt_count": 1, - "attempted": true, - "auto_advance": false, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "charge_automatically", - "created": 1000000000, - "currency": "usd", - "custom_fields": null, - "customer": "sponsorship_access_for_realms_on_paid_plan--Customer.create.1.json", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": null, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", - "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 48000, - "currency": "usd", - "description": "Zulip Cloud Standard", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", - "invoice": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1357095845, - "start": 1325473445 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "8000" - }, - "quantity": 6, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json/lines" - }, - "livemode": false, - "metadata": { - "billing_schedule": "1", - "current_plan_id": "None", - "license_management": "automatic", - "licenses": "6", - "on_free_trial": "False", - "plan_tier": "1", - "user_id": "10" - }, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "paid", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": 1000000000, - "voided_at": null - }, - "subtotal": 48000, - "subtotal_excluding_tax": 48000, - "test_clock": null, - "total": 48000, - "total_discount_amounts": [], - "total_excluding_tax": 48000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 - }, - "previous_attributes": { - "amount_paid": 0, - "amount_remaining": 48000, - "attempt_count": 0, - "attempted": false, - "status": "open", - "status_transitions": { - "paid_at": null - } - } - }, - "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" - }, - "type": "invoice.updated" - }, - { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +23,7 @@ "currency": "usd", "customer": "sponsorship_access_for_realms_on_paid_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", @@ -251,7 +73,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +134,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "921009", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +200,42 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "amount_paid": 48000, + "amount_requested": 48000, + "created": 1000000000, + "currency": "usd", + "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", + "invoice": "in_NORMALIZED", + "is_default": true, + "livemode": false, + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" + }, + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 + } + } + }, + "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice_payment.paid" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -533,7 +390,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", @@ -547,7 +404,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -702,7 +559,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "effective_at": null, @@ -732,7 +589,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +611,7 @@ "currency": "usd", "customer": "sponsorship_access_for_realms_on_paid_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +661,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -958,7 +816,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -984,7 +842,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +857,7 @@ "invoice": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +889,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1003,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", @@ -1158,7 +1017,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json index 9d42eff1db..c830803297 100644 --- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Event.list.3.json @@ -1,7 +1,42 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "amount_paid": 5000, + "amount_requested": 5000, + "created": 1000000000, + "currency": "usd", + "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.3.json", + "invoice": "in_NORMALIZED", + "is_default": true, + "livemode": false, + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" + }, + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 + } + } + }, + "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.3.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice_payment.paid" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,7 +191,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.3.json", @@ -170,7 +205,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -325,7 +360,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.3.json", @@ -337,6 +372,185 @@ "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "invoice.paid" + }, + { + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "account_country": "US", + "account_name": "NORMALIZED", + "account_tax_ids": null, + "amount_due": 48000, + "amount_overpaid": 0, + "amount_paid": 48000, + "amount_remaining": 0, + "amount_shipping": 0, + "application": null, + "attempt_count": 1, + "attempted": true, + "auto_advance": false, + "automatic_tax": { + "disabled_reason": null, + "enabled": false, + "liability": null, + "provider": null, + "status": null + }, + "automatically_finalizes_at": null, + "billing_reason": "manual", + "collection_method": "charge_automatically", + "created": 1000000000, + "currency": "usd", + "custom_fields": null, + "customer": "cus_NORMALIZED", + "customer_address": null, + "customer_email": "hamlet@zulip.com", + "customer_name": null, + "customer_phone": null, + "customer_shipping": null, + "customer_tax_exempt": "none", + "customer_tax_ids": [], + "default_payment_method": null, + "default_source": null, + "default_tax_rates": [], + "description": null, + "discounts": [], + "due_date": null, + "effective_at": 1000000000, + "ending_balance": 0, + "footer": null, + "from_invoice": null, + "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", + "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", + "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", + "issuer": { + "type": "self" + }, + "last_finalization_error": null, + "latest_revision": null, + "lines": { + "data": [ + { + "amount": 48000, + "currency": "usd", + "description": "Zulip Cloud Standard", + "discount_amounts": [], + "discountable": false, + "discounts": [], + "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", + "invoice": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", + "livemode": false, + "metadata": {}, + "object": "line_item", + "parent": { + "invoice_item_details": { + "invoice_item": "ii_NORMALIZED", + "proration": false, + "proration_details": { + "credited_items": null + }, + "subscription": null + }, + "subscription_item_details": null, + "type": "invoice_item_details" + }, + "period": { + "end": 1357095845, + "start": 1325473445 + }, + "pretax_credit_amounts": [], + "pricing": { + "price_details": { + "price": "price_NORMALIZED", + "product": "prod_NORMALIZED" + }, + "type": "price_details", + "unit_amount_decimal": "8000" + }, + "quantity": 6, + "taxes": [] + } + ], + "has_more": false, + "object": "list", + "total_count": 1, + "url": "/v1/invoices/sponsorship_access_for_realms_on_paid_plan--Event.list.2.json/lines" + }, + "livemode": false, + "metadata": { + "billing_schedule": "1", + "current_plan_id": "None", + "license_management": "automatic", + "licenses": "6", + "on_free_trial": "False", + "plan_tier": "1", + "user_id": "10" + }, + "next_payment_attempt": null, + "number": "NORMALIZED", + "object": "invoice", + "on_behalf_of": null, + "parent": null, + "payment_settings": { + "default_mandate": null, + "payment_method_options": null, + "payment_method_types": null + }, + "period_end": 1000000000, + "period_start": 1000000000, + "post_payment_credit_notes_amount": 0, + "pre_payment_credit_notes_amount": 0, + "receipt_number": null, + "rendering": { + "amount_tax_display": null, + "pdf": { + "page_size": "letter" + }, + "template": null, + "template_version": null + }, + "shipping_cost": null, + "shipping_details": null, + "starting_balance": 0, + "statement_descriptor": "Zulip Cloud Standard", + "status": "paid", + "status_transitions": { + "finalized_at": 1000000000, + "marked_uncollectible_at": null, + "paid_at": 1000000000, + "voided_at": null + }, + "subtotal": 48000, + "subtotal_excluding_tax": 48000, + "test_clock": null, + "total": 48000, + "total_discount_amounts": [], + "total_excluding_tax": 48000, + "total_pretax_credit_amounts": [], + "total_taxes": [], + "webhooks_delivered_at": null + }, + "previous_attributes": { + "amount_paid": 0, + "amount_remaining": 48000, + "attempt_count": 0, + "attempted": false, + "status": "open", + "status_transitions": { + "paid_at": null + } + } + }, + "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.3.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": "sponsorship_access_for_realms_on_paid_plan--Event.list.2.json", + "idempotency_key": "00000000-0000-0000-0000-000000000000" + }, + "type": "invoice.updated" } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.create.1.json index a6be0925c8..825d01400b 100644 --- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.finalize_invoice.1.json index 0b9021cc5d..15bb202a23 100644 --- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.finalize_invoice.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.pay.1.json index 83f56299c2..e2fcffc432 100644 --- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--Invoice.pay.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--InvoiceItem.create.1.json index 9ae0578f3f..90bb6f73f4 100644 --- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.create.1.json index 388177fd59..059dc286d6 100644 --- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.list.1.json index cbc3a5fe5e..0052e9dfa8 100644 --- a/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/sponsorship_access_for_realms_on_paid_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.1.json index 9099b9de14..ddd2858578 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.1.json @@ -1,32 +1,39 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { - "configuration": "bpc_NORMALIZED", + "amount_paid": 48000, + "amount_requested": 48000, "created": 1000000000, - "customer": "cus_NORMALIZED", - "flow": null, + "currency": "usd", "id": "stripe_billing_portal_urls--Event.list.1.json", + "invoice": "in_NORMALIZED", + "is_default": true, "livemode": false, - "locale": null, - "object": "billing_portal.session", - "on_behalf_of": null, - "return_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1&setup_payment_by_invoice=false", - "url": "https://billing.stripe.com/p/session/test_NORMALIZED" + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" + }, + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 + } } }, "id": "stripe_billing_portal_urls--Event.list.1.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { - "id": "stripe_billing_portal_urls--Event.list.1.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" + "id": null, + "idempotency_key": null }, - "type": "billing_portal.session.created" + "type": "invoice_payment.paid" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.json index 47806d79f4..6c49d8ec6b 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,13 +156,13 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "stripe_billing_portal_urls--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "stripe_billing_portal_urls--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -170,7 +170,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -325,7 +325,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_paid": 0, @@ -348,7 +348,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -370,6 +370,7 @@ "currency": "usd", "customer": "stripe_billing_portal_urls--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "stripe_billing_portal_urls--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -419,7 +420,7 @@ "type": "payment_intent.canceled" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -574,7 +575,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "stripe_billing_portal_urls--Event.list.2.json", @@ -588,7 +589,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -743,7 +744,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "automatically_finalizes_at": 1000000000, @@ -774,7 +775,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -796,6 +797,7 @@ "currency": "usd", "customer": "stripe_billing_portal_urls--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "stripe_billing_portal_urls--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -845,7 +847,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1000,7 +1002,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -1026,7 +1028,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1041,6 +1043,7 @@ "invoice": "stripe_billing_portal_urls--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { @@ -1072,7 +1075,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1186,7 +1189,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "stripe_billing_portal_urls--Event.list.2.json", @@ -1200,7 +1203,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.create.1.json index c64599fd22..379fe48549 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.finalize_invoice.1.json index 99211a70bc..e60557b0c7 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.finalize_invoice.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.pay.1.json index 5643837f7c..384c66f8af 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--Invoice.pay.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--InvoiceItem.create.1.json index 4da62f34e5..7935b1fe84 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.1.json index 595619cb41..9c16cb05d7 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.1.json @@ -47,7 +47,8 @@ "proration_behavior": "none", "schedule_at_period_end": { "conditions": [] - } + }, + "trial_update_behavior": "end_trial" } }, "id": "stripe_billing_portal_urls--billing_portal.Configuration.create.1.json", @@ -58,6 +59,7 @@ "url": null }, "metadata": {}, + "name": null, "object": "billing_portal.configuration", "updated": 1000000000 } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.2.json index 61ee6cc28f..59b72a4484 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.2.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.2.json @@ -47,7 +47,8 @@ "proration_behavior": "none", "schedule_at_period_end": { "conditions": [] - } + }, + "trial_update_behavior": "end_trial" } }, "id": "stripe_billing_portal_urls--billing_portal.Configuration.create.2.json", @@ -58,6 +59,7 @@ "url": null }, "metadata": {}, + "name": null, "object": "billing_portal.configuration", "updated": 1000000000 } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.3.json index abc694b2ac..1818b5b71e 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.3.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Configuration.create.3.json @@ -43,7 +43,8 @@ "proration_behavior": "none", "schedule_at_period_end": { "conditions": [] - } + }, + "trial_update_behavior": "end_trial" } }, "id": "stripe_billing_portal_urls--billing_portal.Configuration.create.3.json", @@ -54,6 +55,7 @@ "url": null }, "metadata": {}, + "name": null, "object": "billing_portal.configuration", "updated": 1000000000 } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Session.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Session.create.1.json index 8418f16272..758dd14829 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--billing_portal.Session.create.1.json @@ -3,7 +3,7 @@ "created": 1000000000, "customer": "cus_NORMALIZED", "flow": null, - "id": "stripe_billing_portal_urls--Event.list.1.json", + "id": "stripe_billing_portal_urls--billing_portal.Session.create.1.json", "livemode": false, "locale": null, "object": "billing_portal.session", diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--checkout.Session.create.1.json index 9b6d43bdb3..d70cc62057 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--checkout.Session.list.1.json index 2768b453f8..b25fd55e9a 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json index 3e72230504..e02796cc43 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.modify.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.modify.1.json index 35fef85e46..531841e5fa 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.json index c74d84222b..54d2205787 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.2.json index c74d84222b..54d2205787 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.2.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.2.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.3.json index c74d84222b..54d2205787 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.3.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.3.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.4.json index c74d84222b..54d2205787 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.4.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.4.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.5.json index c74d84222b..54d2205787 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.5.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Customer.retrieve.5.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.1.json index cadf89d7b3..d1c126daf8 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -11,7 +11,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json", @@ -25,7 +25,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.2.json index c2067743ad..c8d07dd771 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 176000, - "authorization_code": null, + "authorization_code": "927776", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1092,7 +1094,7 @@ "total_excluding_tax": 200000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 200000, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1301,7 +1304,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "stripe_billing_portal_urls_for_remote_realm--Customer.create.1.json", @@ -1315,7 +1318,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.3.json index ce52598371..d369e255c3 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -209,7 +209,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -417,7 +417,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -635,7 +635,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +657,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "stripe_billing_portal_urls_for_remote_realm--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.create.1.json index ff39b9b35f..2e1f8be426 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--InvoiceItem.create.1.json index cdbebcf3da..41bc0c163e 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 200000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--InvoiceItem.create.2.json index 598e0f31e3..07543cd409 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.1.json index 5426112ca1..30c1e4aaeb 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.1.json @@ -43,7 +43,8 @@ "proration_behavior": "none", "schedule_at_period_end": { "conditions": [] - } + }, + "trial_update_behavior": "end_trial" } }, "id": "stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.1.json", @@ -54,6 +55,7 @@ "url": null }, "metadata": {}, + "name": null, "object": "billing_portal.configuration", "updated": 1000000000 } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.json index 88427f8b77..76b8707612 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.json @@ -47,7 +47,8 @@ "proration_behavior": "none", "schedule_at_period_end": { "conditions": [] - } + }, + "trial_update_behavior": "end_trial" } }, "id": "stripe_billing_portal_urls_for_remote_realm--billing_portal.Configuration.create.2.json", @@ -58,6 +59,7 @@ "url": null }, "metadata": {}, + "name": null, "object": "billing_portal.configuration", "updated": 1000000000 } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.1.json index 2dfbd1f997..89d626e26d 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.1.json @@ -8,6 +8,6 @@ "locale": null, "object": "billing_portal.session", "on_behalf_of": null, - "return_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/", + "return_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/", "url": "https://billing.stripe.com/p/session/test_NORMALIZED" } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.2.json index 7ade923ab4..4e89af4f3d 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.2.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--billing_portal.Session.create.2.json @@ -8,6 +8,6 @@ "locale": null, "object": "billing_portal.session", "on_behalf_of": null, - "return_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/", + "return_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/", "url": "https://billing.stripe.com/p/session/test_NORMALIZED" } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.create.1.json index e91c1a31f1..85055ef11d 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.list.1.json index 466e587057..6048eb08dc 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_realm--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.1.json index 6efaee5c57..5bd29f916b 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.2.json index 14a552564d..16c8895a6c 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 176000, - "authorization_code": null, + "authorization_code": "757123", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "stripe_billing_portal_urls_for_remote_server--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1092,7 +1094,7 @@ "total_excluding_tax": 200000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 200000, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.3.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.3.json index cd085c5cc7..c1c42e0eb8 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -209,7 +209,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -417,7 +417,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -635,7 +635,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +657,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "stripe_billing_portal_urls_for_remote_server--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.create.1.json index e3e60bfd97..31be3aece4 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--InvoiceItem.create.1.json index 3a6be45515..dcca97807d 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 200000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--InvoiceItem.create.2.json index 7bac0c651f..253ed376e5 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.1.json index 604b216a11..f77bf5537c 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.1.json @@ -43,7 +43,8 @@ "proration_behavior": "none", "schedule_at_period_end": { "conditions": [] - } + }, + "trial_update_behavior": "end_trial" } }, "id": "stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.1.json", @@ -54,6 +55,7 @@ "url": null }, "metadata": {}, + "name": null, "object": "billing_portal.configuration", "updated": 1000000000 } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.json index 6109d157e4..a818fc1a86 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.json @@ -47,7 +47,8 @@ "proration_behavior": "none", "schedule_at_period_end": { "conditions": [] - } + }, + "trial_update_behavior": "end_trial" } }, "id": "stripe_billing_portal_urls_for_remote_server--billing_portal.Configuration.create.2.json", @@ -58,6 +59,7 @@ "url": null }, "metadata": {}, + "name": null, "object": "billing_portal.configuration", "updated": 1000000000 } diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--checkout.Session.create.1.json index 758f2f7c58..877050786b 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--checkout.Session.list.1.json index 7b10e559aa..1f33b38a38 100644 --- a/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/stripe_billing_portal_urls_for_remote_server--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.1.json index 5446d34730..f2210c50ee 100644 --- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json index b49c89778c..88ea6eda70 100644 --- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json", "last_payment_error": null, "latest_charge": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "858918", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json index 0b64d959f6..87ad37573b 100644 --- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.1.json index 8d6558ed9e..cf622e97ec 100644 --- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.2.json index 57f98c7c3b..bcd1721bc0 100644 --- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.3.json index e82417c338..2b3237f17a 100644 --- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.3.json +++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--Invoice.create.3.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.1.json index 466e9099e9..bd529933ae 100644 --- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.2.json index 07f558bf89..dc3752b828 100644 --- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 112000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.3.json index 31cabd9992..6472e29d4f 100644 --- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 36610, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.4.json index c3a682da85..bb293eb50c 100644 --- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.4.json +++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--InvoiceItem.create.4.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 20000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.create.1.json index 49a7a654ad..782e30b09b 100644 --- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.list.1.json index e209dae952..cf796e9ee2 100644 --- a/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_annual_plan_to_monthly_plan_for_automatic_license_management--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.1.json index c260f16dfa..6b1a642487 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json index b13ada9699..2fe9d5c280 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -172,7 +172,7 @@ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json", "last_payment_error": null, "latest_charge": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 4800, - "authorization_code": null, + "authorization_code": "672739", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -370,7 +371,7 @@ "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -958,7 +960,7 @@ "total_excluding_tax": 4800, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 4800, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1208,7 +1211,7 @@ "type": "customer.updated" } ], - "has_more": true, + "has_more": false, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json index 6ecaebedec..a3128c0599 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.1.json index 1cecd0ac1b..06a325a5da 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.2.json index 39d7368c4f..e0d9ceeb78 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.3.json index 95569b021d..1d1aecbf87 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.3.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.3.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.4.json index d4d747858a..a3fb449dba 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.4.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.4.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.5.json index 7982ecef26..028097f00f 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.5.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.create.5.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json index 9bdf8d1eec..1e66c1ac20 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.2.json @@ -142,5 +142,5 @@ "total_excluding_tax": 11200, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json index 5648f8ad0c..4fc4ccc396 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.finalize_invoice.5.json @@ -142,5 +142,5 @@ "total_excluding_tax": 240000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.4.json index 3e07164919..7d616c4922 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.4.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Invoice.list.4.json @@ -144,7 +144,7 @@ "total_excluding_tax": 240000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, { "account_country": "US", diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.1.json index 477456d998..acc0f29cca 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 4800, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.2.json index 98ff3ef8d5..cc534eac5e 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 11200, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.3.json index e0b8bb5ba4..a32b76e788 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 160000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.4.json index fa29992121..49162e021b 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.4.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.4.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 40000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.5.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.5.json index 74dc694dd6..be49a8761c 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.5.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.5.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 36830, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.6.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.6.json index 4df51b44a7..84ae17110b 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.6.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--InvoiceItem.create.6.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 240000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.create.1.json index ab5951efb5..fecf90a6e7 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.list.1.json index 3d410ae308..ab0b0c7969 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.1.json index d794ef4410..24d1758b12 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json index 0da4b8e349..a2e2431142 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -172,7 +172,7 @@ "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json", "last_payment_error": null, "latest_charge": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 28000, - "authorization_code": null, + "authorization_code": "805162", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 28000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json index cedea67e0e..149b147e54 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.1.json index 901d7607a0..f01719f54f 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.2.json index 5e69270637..1964beeacf 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.3.json index 031f110e67..5d012168db 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.3.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Invoice.create.3.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--InvoiceItem.create.1.json index 34507e4d81..2a9f3651a0 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 28000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--InvoiceItem.create.2.json index e502a5001c..d533791352 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 280000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--InvoiceItem.create.3.json index 731aec8442..b9f7b76a35 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 280000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.create.1.json index fbc28781cb..37bcfac01e 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.list.1.json index ca58701d03..510b42f7b3 100644 --- a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json index cc8e7e4008..9aea1b72df 100644 --- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--Event.list.1.json @@ -1,44 +1,27 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { - "address": null, - "balance": 0, + "amount_paid": 4800, + "amount_requested": 4800, "created": 1000000000, - "currency": null, - "default_source": null, - "delinquent": false, - "description": "zulip (Zulip Dev)", - "discount": null, - "email": "hamlet@zulip.com", - "id": "switch_now_free_trial_from_annual_to_monthly--Customer.create.1.json", - "invoice_prefix": "NORMALIZED", - "invoice_settings": { - "custom_fields": null, - "default_payment_method": "pm_NORMALIZED", - "footer": null, - "rendering_options": null - }, + "currency": "usd", + "id": "switch_now_free_trial_from_annual_to_monthly--Event.list.1.json", + "invoice": "in_NORMALIZED", + "is_default": true, "livemode": false, - "metadata": { - "realm_id": "1", - "realm_str": "zulip" + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" }, - "name": null, - "next_invoice_sequence": 1, - "object": "customer", - "phone": null, - "preferred_locales": [], - "shipping": null, - "tax_exempt": "none", - "test_clock": null - }, - "previous_attributes": { - "invoice_settings": { - "default_payment_method": null + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 } } }, @@ -47,10 +30,10 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "switch_now_free_trial_from_annual_to_monthly--Event.list.1.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" + "id": null, + "idempotency_key": null }, - "type": "customer.updated" + "type": "invoice_payment.paid" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.create.1.json index 56fc574a88..d042054e40 100644 --- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.list.1.json index 610e5580bb..d3bb14aeb2 100644 --- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_annual_to_monthly--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Event.list.1.json index dd7b1e287a..09d49066cf 100644 --- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.create.1.json index f426578d75..c1dd27230c 100644 --- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.list.1.json index 961ba00070..210fb95ead 100644 --- a/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/switch_now_free_trial_from_monthly_to_annual--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json index 83d765d497..78ab15921a 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json @@ -1,12 +1,12 @@ { - "amount": -2219, + "amount": -805, "checkout_session": null, "created": 1000000000, "credit_note": null, "currency": "usd", "customer": "cus_NORMALIZED", "description": "Credit from early termination of active plan", - "ending_balance": -2219, + "ending_balance": -805, "id": "switch_realm_from_standard_to_plus_plan--Customer.create_balance_transaction.1.json", "invoice": null, "livemode": false, diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.1.json index c62110833e..fe39b17f8d 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.1.json @@ -1,44 +1,27 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { - "address": null, - "balance": 0, + "amount_paid": 7200, + "amount_requested": 7200, "created": 1000000000, - "currency": null, - "default_source": null, - "delinquent": false, - "description": "zulip (Zulip Dev)", - "discount": null, - "email": "hamlet@zulip.com", - "id": "switch_realm_from_standard_to_plus_plan--Customer.create.1.json", - "invoice_prefix": "NORMALIZED", - "invoice_settings": { - "custom_fields": null, - "default_payment_method": "pm_NORMALIZED", - "footer": null, - "rendering_options": null - }, + "currency": "usd", + "id": "switch_realm_from_standard_to_plus_plan--Event.list.1.json", + "invoice": "in_NORMALIZED", + "is_default": true, "livemode": false, - "metadata": { - "realm_id": "1", - "realm_str": "zulip" + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" }, - "name": null, - "next_invoice_sequence": 1, - "object": "customer", - "phone": null, - "preferred_locales": [], - "shipping": null, - "tax_exempt": "none", - "test_clock": null - }, - "previous_attributes": { - "invoice_settings": { - "default_payment_method": null + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 } } }, @@ -47,10 +30,10 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "switch_realm_from_standard_to_plus_plan--Event.list.1.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" + "id": null, + "idempotency_key": null }, - "type": "customer.updated" + "type": "invoice_payment.paid" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json index 860251a509..973263cb04 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,7 +156,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_paid": 0, @@ -172,7 +172,7 @@ "id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "switch_realm_from_standard_to_plus_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": "switch_realm_from_standard_to_plus_plan--Event.list.2.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "330222", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -370,7 +371,7 @@ "id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 1, "request": { "id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -533,7 +534,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json", @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -702,7 +703,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "effective_at": null, @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "switch_realm_from_standard_to_plus_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -958,7 +960,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "switch_realm_from_standard_to_plus_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "switch_realm_from_standard_to_plus_plan--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1208,7 +1211,7 @@ "type": "customer.updated" } ], - "has_more": false, + "has_more": true, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.json index dd1e109a9d..66d419aa4c 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,7 +156,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json", @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -325,7 +325,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "switch_realm_from_standard_to_plus_plan--Event.list.3.json", diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json index 9c8fd4c1d2..f5f7718ad2 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json index dc00d9a35c..a105a40229 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.create.2.json @@ -84,7 +84,7 @@ }, "shipping_cost": null, "shipping_details": null, - "starting_balance": -2219, + "starting_balance": -805, "statement_descriptor": "Zulip Cloud Plus", "status": "draft", "status_transitions": { @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json index a3a3a2bc00..b0307cad51 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json index 3a3058e5b7..daac9cd340 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.finalize_invoice.2.json @@ -2,10 +2,10 @@ "account_country": "US", "account_name": "NORMALIZED", "account_tax_ids": null, - "amount_due": 117781, + "amount_due": 119195, "amount_overpaid": 0, "amount_paid": 0, - "amount_remaining": 117781, + "amount_remaining": 119195, "amount_shipping": 0, "application": null, "attempt_count": 0, @@ -125,7 +125,7 @@ }, "shipping_cost": null, "shipping_details": null, - "starting_balance": -2219, + "starting_balance": -805, "statement_descriptor": "Zulip Cloud Plus", "status": "open", "status_transitions": { diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.pay.1.json index 4dfb40b9ca..9817eee038 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Invoice.pay.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.1.json index 0fa9ae384e..2bf715cbc6 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.2.json index 032a68c4f5..7c9fa5072e 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 120000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.create.1.json index 8beaf07902..16959bd487 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.list.1.json index 16d17c2f7c..9ac545cccf 100644 --- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json index e2fcc8562d..c524c022e6 100644 --- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json index fa736801fe..3f34f9ab67 100644 --- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json @@ -1,185 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 800000, - "amount_overpaid": 0, - "amount_paid": 800000, - "amount_remaining": 0, - "amount_shipping": 0, - "application": null, - "attempt_count": 0, - "attempted": false, - "auto_advance": false, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "send_invoice", - "created": 1000000000, - "currency": "usd", - "custom_fields": null, - "customer": "update_licenses_of_manual_plan_from_billing_page--Customer.create.1.json", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": 1000000000, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", - "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 800000, - "currency": "usd", - "description": "Zulip Cloud Standard", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", - "invoice": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1357095845, - "start": 1325473445 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "8000" - }, - "quantity": 100, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json/lines" - }, - "livemode": false, - "metadata": { - "billing_schedule": "1", - "current_plan_id": "None", - "license_management": "manual", - "licenses": "100", - "on_free_trial": "False", - "plan_tier": "1", - "user_id": "10" - }, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "paid", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": 1000000000, - "voided_at": null - }, - "subtotal": 800000, - "subtotal_excluding_tax": 800000, - "test_clock": null, - "total": 800000, - "total_discount_amounts": [], - "total_excluding_tax": 800000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 - }, - "previous_attributes": { - "amount_paid": 0, - "amount_remaining": 800000, - "auto_advance": true, - "status": "open", - "status_transitions": { - "paid_at": null - } - } - }, - "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" - }, - "type": "invoice.updated" - }, - { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -201,6 +23,7 @@ "currency": "usd", "customer": "update_licenses_of_manual_plan_from_billing_page--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -250,7 +73,42 @@ "type": "payment_intent.canceled" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "amount_paid": 28000, + "amount_requested": 28000, + "created": 1000000000, + "currency": "usd", + "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", + "invoice": "in_NORMALIZED", + "is_default": true, + "livemode": false, + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" + }, + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 + } + } + }, + "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice_payment.paid" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -419,7 +277,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -605,7 +463,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -627,6 +485,7 @@ "currency": "usd", "customer": "update_licenses_of_manual_plan_from_billing_page--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -676,7 +535,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -857,7 +716,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -872,6 +731,7 @@ "invoice": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 800000, "object": "invoiceitem", "parent": null, "period": { @@ -903,7 +763,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1017,7 +877,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", @@ -1031,7 +891,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1081,7 +941,7 @@ "type": "customer.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.3.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.3.json index 564477a416..aa4d6e79a0 100644 --- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -168,6 +168,184 @@ "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "invoice.paid" + }, + { + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "account_country": "US", + "account_name": "NORMALIZED", + "account_tax_ids": null, + "amount_due": 800000, + "amount_overpaid": 0, + "amount_paid": 800000, + "amount_remaining": 0, + "amount_shipping": 0, + "application": null, + "attempt_count": 0, + "attempted": false, + "auto_advance": false, + "automatic_tax": { + "disabled_reason": null, + "enabled": false, + "liability": null, + "provider": null, + "status": null + }, + "automatically_finalizes_at": null, + "billing_reason": "manual", + "collection_method": "send_invoice", + "created": 1000000000, + "currency": "usd", + "custom_fields": null, + "customer": "cus_NORMALIZED", + "customer_address": null, + "customer_email": "hamlet@zulip.com", + "customer_name": null, + "customer_phone": null, + "customer_shipping": null, + "customer_tax_exempt": "none", + "customer_tax_ids": [], + "default_payment_method": null, + "default_source": null, + "default_tax_rates": [], + "description": null, + "discounts": [], + "due_date": 1000000000, + "effective_at": 1000000000, + "ending_balance": 0, + "footer": null, + "from_invoice": null, + "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", + "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", + "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", + "issuer": { + "type": "self" + }, + "last_finalization_error": null, + "latest_revision": null, + "lines": { + "data": [ + { + "amount": 800000, + "currency": "usd", + "description": "Zulip Cloud Standard", + "discount_amounts": [], + "discountable": false, + "discounts": [], + "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", + "invoice": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", + "livemode": false, + "metadata": {}, + "object": "line_item", + "parent": { + "invoice_item_details": { + "invoice_item": "ii_NORMALIZED", + "proration": false, + "proration_details": { + "credited_items": null + }, + "subscription": null + }, + "subscription_item_details": null, + "type": "invoice_item_details" + }, + "period": { + "end": 1357095845, + "start": 1325473445 + }, + "pretax_credit_amounts": [], + "pricing": { + "price_details": { + "price": "price_NORMALIZED", + "product": "prod_NORMALIZED" + }, + "type": "price_details", + "unit_amount_decimal": "8000" + }, + "quantity": 100, + "taxes": [] + } + ], + "has_more": false, + "object": "list", + "total_count": 1, + "url": "/v1/invoices/update_licenses_of_manual_plan_from_billing_page--Event.list.2.json/lines" + }, + "livemode": false, + "metadata": { + "billing_schedule": "1", + "current_plan_id": "None", + "license_management": "manual", + "licenses": "100", + "on_free_trial": "False", + "plan_tier": "1", + "user_id": "10" + }, + "next_payment_attempt": null, + "number": "NORMALIZED", + "object": "invoice", + "on_behalf_of": null, + "parent": null, + "payment_settings": { + "default_mandate": null, + "payment_method_options": null, + "payment_method_types": null + }, + "period_end": 1000000000, + "period_start": 1000000000, + "post_payment_credit_notes_amount": 0, + "pre_payment_credit_notes_amount": 0, + "receipt_number": null, + "rendering": { + "amount_tax_display": null, + "pdf": { + "page_size": "letter" + }, + "template": null, + "template_version": null + }, + "shipping_cost": null, + "shipping_details": null, + "starting_balance": 0, + "statement_descriptor": "Zulip Cloud Standard", + "status": "paid", + "status_transitions": { + "finalized_at": 1000000000, + "marked_uncollectible_at": null, + "paid_at": 1000000000, + "voided_at": null + }, + "subtotal": 800000, + "subtotal_excluding_tax": 800000, + "test_clock": null, + "total": 800000, + "total_discount_amounts": [], + "total_excluding_tax": 800000, + "total_pretax_credit_amounts": [], + "total_taxes": [], + "webhooks_delivered_at": 1000000000 + }, + "previous_attributes": { + "amount_paid": 0, + "amount_remaining": 800000, + "auto_advance": true, + "status": "open", + "status_transitions": { + "paid_at": null + } + } + }, + "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.3.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": "update_licenses_of_manual_plan_from_billing_page--Event.list.2.json", + "idempotency_key": "00000000-0000-0000-0000-000000000000" + }, + "type": "invoice.updated" } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.1.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.1.json index fdb39228d7..338d4004e6 100644 --- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.2.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.2.json index 8e3b78f60d..aa3a65bb17 100644 --- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.3.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.3.json index e63190bbed..86943d38fd 100644 --- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.3.json +++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.3.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.4.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.4.json index f716d8964d..3e7cf93574 100644 --- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.4.json +++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--Invoice.create.4.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.1.json index b0eab6bdef..904292e11b 100644 --- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 800000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.2.json index a32bd3a3e0..3418aa3415 100644 --- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 400000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.3.json index 207173d5c6..60f2195b84 100644 --- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 1200000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.4.json b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.4.json index a3dec6b01b..ae39c3ad48 100644 --- a/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.4.json +++ b/corporate/tests/stripe_fixtures/update_licenses_of_manual_plan_from_billing_page--InvoiceItem.create.4.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 960000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json index 29955545eb..6ef6f5a748 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json @@ -58,7 +58,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "037102", "brand": "visa", "checks": { "address_line1_check": "pass", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json index f97c074010..ed6c9753aa 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json index 71f2318213..0a4d394cef 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json index 6e7252ae64..bbd1f6a727 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "upgrade_by_card--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_card--Event.list.3.json", "last_payment_error": null, "latest_charge": "upgrade_by_card--Charge.list.1.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "037102", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "upgrade_by_card--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_card--Event.list.3.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -958,7 +960,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "upgrade_by_card--Event.list.3.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_card--Event.list.3.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1208,7 +1211,7 @@ "type": "customer.updated" } ], - "has_more": false, + "has_more": true, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json index f6e3f564b9..9794ee70bc 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Event.list.4.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.json index 25b128b92c..10d88b5437 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--InvoiceItem.create.1.json index fdb49752ec..232c162870 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.create.1.json index 6f9ecc5ef7..ea9d51b2b6 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.list.1.json index 6e3d005a86..67c04bc1da 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Charge.list.1.json index 816bd03a32..54c9ef48e5 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Charge.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Charge.list.1.json @@ -58,7 +58,7 @@ "payment_method_details": { "card": { "amount_authorized": 120000, - "authorization_code": null, + "authorization_code": "356934", "brand": "visa", "checks": { "address_line1_check": "pass", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.1.json index c886dbcb8c..14ddb62185 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.2.json index e20ab42036..1e3c9a7057 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -172,7 +172,7 @@ "id": "upgrade_by_card_to_plus_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "upgrade_by_card_to_plus_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "upgrade_by_card_to_plus_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_card_to_plus_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": "upgrade_by_card_to_plus_plan--Charge.list.1.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 120000, - "authorization_code": null, + "authorization_code": "356934", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "upgrade_by_card_to_plus_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_card_to_plus_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "upgrade_by_card_to_plus_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 120000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_card_to_plus_plan--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.3.json index 86f85fd628..88b7edc36f 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.create.1.json index f896bad5fb..a9b587d4eb 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--InvoiceItem.create.1.json index 2af6727d3a..6e33e18a0c 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 120000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--checkout.Session.create.1.json index e897753745..98d11f099a 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--checkout.Session.list.1.json index 3ae04ecd0e..c3f658ccf4 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_to_plus_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.json index 2bc392b171..888640a360 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Charge.list.1.json @@ -58,7 +58,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "433764", "brand": "visa", "checks": { "address_line1_check": "pass", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.1.json index 0e6fc13b8d..fede5e2a0f 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json index 0fdf4cbe1c..2c518070a8 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "433764", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -128,7 +128,168 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "account_country": "US", + "account_name": "NORMALIZED", + "account_tax_ids": null, + "amount_due": 1200000, + "amount_overpaid": 0, + "amount_paid": 0, + "amount_remaining": 1200000, + "amount_shipping": 0, + "application": null, + "attempt_count": 0, + "attempted": false, + "auto_advance": true, + "automatic_tax": { + "disabled_reason": null, + "enabled": false, + "liability": null, + "provider": null, + "status": null + }, + "automatically_finalizes_at": null, + "billing_reason": "manual", + "collection_method": "send_invoice", + "created": 1000000000, + "currency": "usd", + "custom_fields": null, + "customer": "cus_NORMALIZED", + "customer_address": null, + "customer_email": "hamlet@zulip.com", + "customer_name": null, + "customer_phone": null, + "customer_shipping": null, + "customer_tax_exempt": "none", + "customer_tax_ids": [], + "default_payment_method": null, + "default_source": null, + "default_tax_rates": [], + "description": null, + "discounts": [], + "due_date": 1000000000, + "effective_at": 1000000000, + "ending_balance": 0, + "footer": null, + "from_invoice": null, + "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", + "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", + "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", + "issuer": { + "type": "self" + }, + "last_finalization_error": null, + "latest_revision": null, + "lines": { + "data": [ + { + "amount": 1200000, + "currency": "usd", + "description": "Zulip Cloud Standard - renewal", + "discount_amounts": [], + "discountable": false, + "discounts": [], + "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", + "invoice": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", + "livemode": false, + "metadata": {}, + "object": "line_item", + "parent": { + "invoice_item_details": { + "invoice_item": "ii_NORMALIZED", + "proration": false, + "proration_details": { + "credited_items": null + }, + "subscription": null + }, + "subscription_item_details": null, + "type": "invoice_item_details" + }, + "period": { + "end": 1388631845, + "start": 1357095845 + }, + "pretax_credit_amounts": [], + "pricing": { + "price_details": { + "price": "price_NORMALIZED", + "product": "prod_NORMALIZED" + }, + "type": "price_details", + "unit_amount_decimal": "8000" + }, + "quantity": 150, + "taxes": [] + } + ], + "has_more": false, + "object": "list", + "total_count": 1, + "url": "/v1/invoices/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json/lines" + }, + "livemode": false, + "metadata": {}, + "next_payment_attempt": null, + "number": "NORMALIZED", + "object": "invoice", + "on_behalf_of": null, + "parent": null, + "payment_settings": { + "default_mandate": null, + "payment_method_options": null, + "payment_method_types": null + }, + "period_end": 1000000000, + "period_start": 1000000000, + "post_payment_credit_notes_amount": 0, + "pre_payment_credit_notes_amount": 0, + "receipt_number": null, + "rendering": { + "amount_tax_display": null, + "pdf": { + "page_size": "letter" + }, + "template": null, + "template_version": null + }, + "shipping_cost": null, + "shipping_details": null, + "starting_balance": 0, + "statement_descriptor": "Zulip Cloud Standard", + "status": "open", + "status_transitions": { + "finalized_at": 1000000000, + "marked_uncollectible_at": null, + "paid_at": null, + "voided_at": null + }, + "subtotal": 1200000, + "subtotal_excluding_tax": 1200000, + "test_clock": null, + "total": 1200000, + "total_discount_amounts": [], + "total_excluding_tax": 1200000, + "total_pretax_credit_amounts": [], + "total_taxes": [], + "webhooks_delivered_at": 1000000000 + } + }, + "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice.sent" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -297,7 +458,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -482,7 +643,168 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "account_country": "US", + "account_name": "NORMALIZED", + "account_tax_ids": null, + "amount_due": 960000, + "amount_overpaid": 0, + "amount_paid": 0, + "amount_remaining": 960000, + "amount_shipping": 0, + "application": null, + "attempt_count": 0, + "attempted": false, + "auto_advance": true, + "automatic_tax": { + "disabled_reason": null, + "enabled": false, + "liability": null, + "provider": null, + "status": null + }, + "automatically_finalizes_at": null, + "billing_reason": "manual", + "collection_method": "send_invoice", + "created": 1000000000, + "currency": "usd", + "custom_fields": null, + "customer": "cus_NORMALIZED", + "customer_address": null, + "customer_email": "hamlet@zulip.com", + "customer_name": null, + "customer_phone": null, + "customer_shipping": null, + "customer_tax_exempt": "none", + "customer_tax_ids": [], + "default_payment_method": null, + "default_source": null, + "default_tax_rates": [], + "description": null, + "discounts": [], + "due_date": 1000000000, + "effective_at": 1000000000, + "ending_balance": 0, + "footer": null, + "from_invoice": null, + "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", + "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", + "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", + "issuer": { + "type": "self" + }, + "last_finalization_error": null, + "latest_revision": null, + "lines": { + "data": [ + { + "amount": 960000, + "currency": "usd", + "description": "Zulip Cloud Standard - renewal", + "discount_amounts": [], + "discountable": false, + "discounts": [], + "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", + "invoice": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", + "livemode": false, + "metadata": {}, + "object": "line_item", + "parent": { + "invoice_item_details": { + "invoice_item": "ii_NORMALIZED", + "proration": false, + "proration_details": { + "credited_items": null + }, + "subscription": null + }, + "subscription_item_details": null, + "type": "invoice_item_details" + }, + "period": { + "end": 1420167845, + "start": 1388631845 + }, + "pretax_credit_amounts": [], + "pricing": { + "price_details": { + "price": "price_NORMALIZED", + "product": "prod_NORMALIZED" + }, + "type": "price_details", + "unit_amount_decimal": "8000" + }, + "quantity": 120, + "taxes": [] + } + ], + "has_more": false, + "object": "list", + "total_count": 1, + "url": "/v1/invoices/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json/lines" + }, + "livemode": false, + "metadata": {}, + "next_payment_attempt": null, + "number": "NORMALIZED", + "object": "invoice", + "on_behalf_of": null, + "parent": null, + "payment_settings": { + "default_mandate": null, + "payment_method_options": null, + "payment_method_types": null + }, + "period_end": 1000000000, + "period_start": 1000000000, + "post_payment_credit_notes_amount": 0, + "pre_payment_credit_notes_amount": 0, + "receipt_number": null, + "rendering": { + "amount_tax_display": null, + "pdf": { + "page_size": "letter" + }, + "template": null, + "template_version": null + }, + "shipping_cost": null, + "shipping_details": null, + "starting_balance": 0, + "statement_descriptor": "Zulip Cloud Standard", + "status": "open", + "status_transitions": { + "finalized_at": 1000000000, + "marked_uncollectible_at": null, + "paid_at": null, + "voided_at": null + }, + "subtotal": 960000, + "subtotal_excluding_tax": 960000, + "test_clock": null, + "total": 960000, + "total_discount_amounts": [], + "total_excluding_tax": 960000, + "total_pretax_credit_amounts": [], + "total_taxes": [], + "webhooks_delivered_at": 1000000000 + } + }, + "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice.sent" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -504,6 +826,7 @@ "currency": "usd", "customer": "upgrade_by_card_with_outdated_lower_seat_count--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -553,7 +876,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -734,7 +1057,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -749,6 +1072,7 @@ "invoice": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -780,168 +1104,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 400000, - "amount_overpaid": 0, - "amount_paid": 0, - "amount_remaining": 400000, - "amount_shipping": 0, - "application": null, - "attempt_count": 0, - "attempted": false, - "auto_advance": true, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "send_invoice", - "created": 1000000000, - "currency": "usd", - "custom_fields": null, - "customer": "cus_NORMALIZED", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": 1000000000, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", - "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 400000, - "currency": "usd", - "description": "Additional license (Jan 2, 2012 - Jan 2, 2013)", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", - "invoice": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "ii_NORMALIZED", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1357095845, - "start": 1325473445 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "8000" - }, - "quantity": 50, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json/lines" - }, - "livemode": false, - "metadata": {}, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "open", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": null, - "voided_at": null - }, - "subtotal": 400000, - "subtotal_excluding_tax": 400000, - "test_clock": null, - "total": 400000, - "total_discount_amounts": [], - "total_excluding_tax": 400000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 - } - }, - "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": null, - "idempotency_key": null - }, - "type": "invoice.sent" - }, - { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1055,7 +1218,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", @@ -1069,7 +1232,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1117,167 +1280,6 @@ "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "customer.updated" - }, - { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 1200000, - "amount_overpaid": 0, - "amount_paid": 0, - "amount_remaining": 1200000, - "amount_shipping": 0, - "application": null, - "attempt_count": 0, - "attempted": false, - "auto_advance": true, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "send_invoice", - "created": 1000000000, - "currency": "usd", - "custom_fields": null, - "customer": "cus_NORMALIZED", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": 1000000000, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", - "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 1200000, - "currency": "usd", - "description": "Zulip Cloud Standard - renewal", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", - "invoice": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "ii_NORMALIZED", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1388631845, - "start": 1357095845 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "8000" - }, - "quantity": 150, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json/lines" - }, - "livemode": false, - "metadata": {}, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "open", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": null, - "voided_at": null - }, - "subtotal": 1200000, - "subtotal_excluding_tax": 1200000, - "test_clock": null, - "total": 1200000, - "total_discount_amounts": [], - "total_excluding_tax": 1200000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 - } - }, - "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": null, - "idempotency_key": null - }, - "type": "invoice.sent" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json index e22668760e..2bd6facc06 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -339,7 +339,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -518,7 +518,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -540,6 +540,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.4.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.4.json index 6277a38747..6d922067af 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.4.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.4.json @@ -1,167 +1,5 @@ { - "data": [ - { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 960000, - "amount_overpaid": 0, - "amount_paid": 0, - "amount_remaining": 960000, - "amount_shipping": 0, - "application": null, - "attempt_count": 0, - "attempted": false, - "auto_advance": true, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "send_invoice", - "created": 1000000000, - "currency": "usd", - "custom_fields": null, - "customer": "cus_NORMALIZED", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": 1000000000, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", - "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.4.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 960000, - "currency": "usd", - "description": "Zulip Cloud Standard - renewal", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.4.json", - "invoice": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.4.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "ii_NORMALIZED", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1420167845, - "start": 1388631845 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "8000" - }, - "quantity": 120, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/upgrade_by_card_with_outdated_lower_seat_count--Event.list.4.json/lines" - }, - "livemode": false, - "metadata": {}, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "open", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": null, - "voided_at": null - }, - "subtotal": 960000, - "subtotal_excluding_tax": 960000, - "test_clock": null, - "total": 960000, - "total_discount_amounts": [], - "total_excluding_tax": 960000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 - } - }, - "id": "upgrade_by_card_with_outdated_lower_seat_count--Event.list.4.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": null, - "idempotency_key": null - }, - "type": "invoice.sent" - } - ], + "data": [], "has_more": false, "object": "list", "url": "/v1/events" diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.5.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.5.json deleted file mode 100644 index 6d922067af..0000000000 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Event.list.5.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "data": [], - "has_more": false, - "object": "list", - "url": "/v1/events" -} diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Invoice.create.1.json index 50eeee48e1..6a0e0b4847 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--InvoiceItem.create.1.json index 7ce2accd70..955f25b825 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--checkout.Session.create.1.json index 67daaac56f..056a596b4d 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--checkout.Session.list.1.json index 08c7f521f4..5875a147f8 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_lower_seat_count--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json index eb92ab94c5..aa1bb46f3d 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json @@ -58,7 +58,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "989631", "brand": "visa", "checks": { "address_line1_check": "pass", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.1.json index d876497a37..1afca1fc9d 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json index 0f880d3cf7..eefa27e8ab 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,7 +156,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_paid": 0, @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "upgrade_by_card_with_outdated_seat_count--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json", "last_payment_error": null, "latest_charge": "upgrade_by_card_with_outdated_seat_count--Charge.list.1.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "989631", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -533,7 +534,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json", @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -702,7 +703,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "effective_at": null, @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "upgrade_by_card_with_outdated_seat_count--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -958,7 +960,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_card_with_outdated_seat_count--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json index 9056e54df0..1a05c7381d 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,7 +156,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json", @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -325,7 +325,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_card_with_outdated_seat_count--Event.list.3.json", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.4.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.4.json index d87a45b377..ed166e6adb 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.4.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Event.list.4.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -162,7 +162,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -332,7 +332,7 @@ "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -340,7 +340,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -362,6 +362,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json", "last_payment_error": null, "latest_charge": null, @@ -411,7 +412,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -584,7 +585,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -599,6 +600,7 @@ "invoice": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json", "livemode": false, "metadata": {}, + "net_amount": 136000, "object": "invoiceitem", "parent": null, "period": { @@ -630,7 +632,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -736,7 +738,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_card_with_outdated_seat_count--Event.list.4.json", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json index 9060c096f6..ac549492e1 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.2.json index 2924205a98..a7880ac555 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.1.json index 831b613063..2e18d09563 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.finalize_invoice.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.list.2.json index f07f0f57ab..55b8b97096 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.list.2.json @@ -298,7 +298,7 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.pay.1.json index 6849c6248c..1f963f3aae 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Invoice.pay.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 48000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.1.json index dc1243d991..ed024ae74c 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.2.json index 9255dcc2e0..3a18615980 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 136000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.create.1.json index f9cf9b7f69..8a9ab49e6e 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.list.1.json index e8ab8c693c..71c3be10ad 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.json index 828d6a085f..49b8aa745e 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.json @@ -58,7 +58,7 @@ "payment_method_details": { "card": { "amount_authorized": 40000, - "authorization_code": null, + "authorization_code": "409943", "brand": "visa", "checks": { "address_line1_check": "pass", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.1.json index f6f739a97a..fdb61e6cde 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json index 939bb7eaa7..9b49a8ce7a 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json @@ -1,186 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 40000, - "amount_overpaid": 0, - "amount_paid": 40000, - "amount_remaining": 0, - "amount_shipping": 0, - "application": null, - "attempt_count": 1, - "attempted": true, - "auto_advance": false, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "charge_automatically", - "created": 1000000000, - "currency": "usd", - "custom_fields": null, - "customer": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Customer.create.1.json", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": null, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", - "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 40000, - "currency": "usd", - "description": "Zulip Cloud Standard", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", - "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1357095845, - "start": 1325473445 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "8000" - }, - "quantity": 5, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json/lines" - }, - "livemode": false, - "metadata": { - "billing_schedule": "1", - "current_plan_id": "None", - "license_management": "automatic", - "licenses": "5", - "on_free_trial": "False", - "plan_tier": "1", - "user_id": "10" - }, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "paid", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": 1000000000, - "voided_at": null - }, - "subtotal": 40000, - "subtotal_excluding_tax": 40000, - "test_clock": null, - "total": 40000, - "total_discount_amounts": [], - "total_excluding_tax": 40000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 - }, - "previous_attributes": { - "amount_paid": 0, - "amount_remaining": 40000, - "attempt_count": 0, - "attempted": false, - "status": "open", - "status_transitions": { - "paid_at": null - } - } - }, - "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" - }, - "type": "invoice.updated" - }, - { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +23,7 @@ "currency": "usd", "customer": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", "last_payment_error": null, "latest_charge": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Charge.list.1.json", @@ -251,7 +73,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +134,7 @@ "payment_method_details": { "card": { "amount_authorized": 40000, - "authorization_code": null, + "authorization_code": "409943", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +200,42 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "amount_paid": 48000, + "amount_requested": 48000, + "created": 1000000000, + "currency": "usd", + "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", + "invoice": "in_NORMALIZED", + "is_default": true, + "livemode": false, + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" + }, + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 + } + } + }, + "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice_payment.paid" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -533,7 +390,7 @@ "total_excluding_tax": 40000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", @@ -547,7 +404,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -702,7 +559,7 @@ "total_excluding_tax": 40000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "effective_at": null, @@ -732,7 +589,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +611,7 @@ "currency": "usd", "customer": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +661,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -958,7 +816,7 @@ "total_excluding_tax": 40000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -984,7 +842,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +857,7 @@ "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 40000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +889,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1003,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", @@ -1158,7 +1017,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1208,7 +1067,7 @@ "type": "customer.updated" } ], - "has_more": false, + "has_more": true, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json index fad6a6d07d..35543e58f3 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json @@ -1,7 +1,42 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "amount_paid": 120000, + "amount_requested": 120000, + "created": 1000000000, + "currency": "usd", + "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json", + "invoice": "in_NORMALIZED", + "is_default": true, + "livemode": false, + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" + }, + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 + } + } + }, + "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice_payment.paid" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,7 +191,7 @@ "total_excluding_tax": 40000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json", @@ -170,7 +205,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -325,7 +360,7 @@ "total_excluding_tax": 40000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json", @@ -337,6 +372,185 @@ "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "invoice.paid" + }, + { + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "account_country": "US", + "account_name": "NORMALIZED", + "account_tax_ids": null, + "amount_due": 40000, + "amount_overpaid": 0, + "amount_paid": 40000, + "amount_remaining": 0, + "amount_shipping": 0, + "application": null, + "attempt_count": 1, + "attempted": true, + "auto_advance": false, + "automatic_tax": { + "disabled_reason": null, + "enabled": false, + "liability": null, + "provider": null, + "status": null + }, + "automatically_finalizes_at": null, + "billing_reason": "manual", + "collection_method": "charge_automatically", + "created": 1000000000, + "currency": "usd", + "custom_fields": null, + "customer": "cus_NORMALIZED", + "customer_address": null, + "customer_email": "hamlet@zulip.com", + "customer_name": null, + "customer_phone": null, + "customer_shipping": null, + "customer_tax_exempt": "none", + "customer_tax_ids": [], + "default_payment_method": null, + "default_source": null, + "default_tax_rates": [], + "description": null, + "discounts": [], + "due_date": null, + "effective_at": 1000000000, + "ending_balance": 0, + "footer": null, + "from_invoice": null, + "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", + "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", + "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", + "issuer": { + "type": "self" + }, + "last_finalization_error": null, + "latest_revision": null, + "lines": { + "data": [ + { + "amount": 40000, + "currency": "usd", + "description": "Zulip Cloud Standard", + "discount_amounts": [], + "discountable": false, + "discounts": [], + "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", + "invoice": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", + "livemode": false, + "metadata": {}, + "object": "line_item", + "parent": { + "invoice_item_details": { + "invoice_item": "ii_NORMALIZED", + "proration": false, + "proration_details": { + "credited_items": null + }, + "subscription": null + }, + "subscription_item_details": null, + "type": "invoice_item_details" + }, + "period": { + "end": 1357095845, + "start": 1325473445 + }, + "pretax_credit_amounts": [], + "pricing": { + "price_details": { + "price": "price_NORMALIZED", + "product": "prod_NORMALIZED" + }, + "type": "price_details", + "unit_amount_decimal": "8000" + }, + "quantity": 5, + "taxes": [] + } + ], + "has_more": false, + "object": "list", + "total_count": 1, + "url": "/v1/invoices/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json/lines" + }, + "livemode": false, + "metadata": { + "billing_schedule": "1", + "current_plan_id": "None", + "license_management": "automatic", + "licenses": "5", + "on_free_trial": "False", + "plan_tier": "1", + "user_id": "10" + }, + "next_payment_attempt": null, + "number": "NORMALIZED", + "object": "invoice", + "on_behalf_of": null, + "parent": null, + "payment_settings": { + "default_mandate": null, + "payment_method_options": null, + "payment_method_types": null + }, + "period_end": 1000000000, + "period_start": 1000000000, + "post_payment_credit_notes_amount": 0, + "pre_payment_credit_notes_amount": 0, + "receipt_number": null, + "rendering": { + "amount_tax_display": null, + "pdf": { + "page_size": "letter" + }, + "template": null, + "template_version": null + }, + "shipping_cost": null, + "shipping_details": null, + "starting_balance": 0, + "statement_descriptor": "Zulip Cloud Standard", + "status": "paid", + "status_transitions": { + "finalized_at": 1000000000, + "marked_uncollectible_at": null, + "paid_at": 1000000000, + "voided_at": null + }, + "subtotal": 40000, + "subtotal_excluding_tax": 40000, + "test_clock": null, + "total": 40000, + "total_discount_amounts": [], + "total_excluding_tax": 40000, + "total_pretax_credit_amounts": [], + "total_taxes": [], + "webhooks_delivered_at": null + }, + "previous_attributes": { + "amount_paid": 0, + "amount_remaining": 40000, + "attempt_count": 0, + "attempted": false, + "status": "open", + "status_transitions": { + "paid_at": null + } + } + }, + "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.3.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": "upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Event.list.2.json", + "idempotency_key": "00000000-0000-0000-0000-000000000000" + }, + "type": "invoice.updated" } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.create.1.json index 23de27d530..8d666e3ae4 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.finalize_invoice.1.json index 5e5e9ce45f..39bfc09f80 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.finalize_invoice.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 40000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.list.2.json index 16264418a7..d0a9d9a09d 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.list.2.json @@ -152,7 +152,7 @@ "total_excluding_tax": 40000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.pay.1.json index eaee219c30..b5006f8fb0 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--Invoice.pay.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 40000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--InvoiceItem.create.1.json index 92f5d64305..8ebb692856 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 40000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--checkout.Session.create.1.json index e625423a75..35fcc86cea 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--checkout.Session.list.1.json index d9f0276bcb..2b537308c1 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count_and_minimum_for_plan_tier--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json index 0bd79d8b86..8397990a78 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.1.json @@ -1,162 +1,28 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 40000, - "amount_overpaid": 0, - "amount_paid": 40000, - "amount_remaining": 0, - "amount_shipping": 0, - "application": null, - "attempt_count": 1, - "attempted": true, - "auto_advance": false, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "charge_automatically", + "amount_paid": 120000, + "amount_requested": 120000, "created": 1000000000, "currency": "usd", - "custom_fields": null, - "customer": "cus_NORMALIZED", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": null, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", "id": "upgrade_by_invoice--Event.list.1.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 40000, - "currency": "usd", - "description": "Zulip Cloud Standard", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "upgrade_by_invoice--Event.list.1.json", - "invoice": "upgrade_by_invoice--Event.list.1.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "ii_NORMALIZED", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1357095845, - "start": 1325473445 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "8000" - }, - "quantity": 5, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/upgrade_by_invoice--Event.list.1.json/lines" - }, + "invoice": "in_NORMALIZED", + "is_default": true, "livemode": false, - "metadata": { - "billing_schedule": "1", - "current_plan_id": "None", - "license_management": "automatic", - "licenses": "5", - "on_free_trial": "False", - "plan_tier": "1", - "user_id": "10" + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" }, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", "status": "paid", "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": 1000000000, - "voided_at": null - }, - "subtotal": 40000, - "subtotal_excluding_tax": 40000, - "test_clock": null, - "total": 40000, - "total_discount_amounts": [], - "total_excluding_tax": 40000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "canceled_at": null, + "paid_at": 1000000000 + } } }, "id": "upgrade_by_invoice--Event.list.1.json", @@ -164,10 +30,10 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "upgrade_by_invoice--Event.list.1.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" + "id": null, + "idempotency_key": null }, - "type": "invoice.payment_succeeded" + "type": "invoice_payment.paid" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.2.json index 5845f9a5ee..ffc7d1c256 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -171,7 +171,7 @@ "id": "upgrade_by_invoice--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "upgrade_by_invoice--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -179,7 +179,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -201,6 +201,7 @@ "currency": "usd", "customer": "upgrade_by_invoice--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_invoice--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -250,7 +251,7 @@ "type": "payment_intent.canceled" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -419,7 +420,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -605,7 +606,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -627,6 +628,7 @@ "currency": "usd", "customer": "upgrade_by_invoice--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_invoice--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -676,7 +678,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -831,7 +833,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -857,7 +859,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -872,6 +874,7 @@ "invoice": "upgrade_by_invoice--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { @@ -903,7 +906,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1017,7 +1020,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_invoice--Event.list.2.json", @@ -1031,7 +1034,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1081,7 +1084,7 @@ "type": "customer.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.3.json index a62e20ba83..f810533463 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json index 751a5970e9..dea39f9c15 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice--InvoiceItem.create.1.json index dfdd4bbff6..1a5f1b4fed 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.json index 65e9dcd648..6c8c0952af 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.2.json index e72a6aa272..348e28d71d 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,7 +156,7 @@ "total_excluding_tax": 1476000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_paid": 0, @@ -171,7 +171,7 @@ "id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -179,7 +179,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -201,6 +201,7 @@ "currency": "usd", "customer": "upgrade_by_invoice_to_plus_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -250,7 +251,7 @@ "type": "payment_intent.canceled" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -405,7 +406,7 @@ "total_excluding_tax": 1476000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json", @@ -419,7 +420,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -574,7 +575,7 @@ "total_excluding_tax": 1476000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "automatically_finalizes_at": 1000000000, @@ -605,7 +606,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -627,6 +628,7 @@ "currency": "usd", "customer": "upgrade_by_invoice_to_plus_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -676,7 +678,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -831,7 +833,7 @@ "total_excluding_tax": 1476000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -857,7 +859,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -872,6 +874,7 @@ "invoice": "upgrade_by_invoice_to_plus_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 1476000, "object": "invoiceitem", "parent": null, "period": { @@ -903,7 +906,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1017,7 +1020,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_invoice_to_plus_plan--Event.list.2.json", @@ -1031,7 +1034,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1081,7 +1084,7 @@ "type": "customer.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.3.json index ad5dd1ad53..c333436bd9 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,7 +156,7 @@ "total_excluding_tax": 1476000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_by_invoice_to_plus_plan--Event.list.3.json", diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.create.1.json index 54da755b30..6f9e133171 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.finalize_invoice.1.json index f6088207e4..70aa5bca0f 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.finalize_invoice.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 1476000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.list.1.json index afbcc08bee..30b0cf647c 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.list.1.json @@ -152,7 +152,7 @@ "total_excluding_tax": 1476000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.pay.1.json index ee152bddce..5ca76e6496 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--Invoice.pay.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 1476000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--InvoiceItem.create.1.json index c5f4bd2f97..83e2509ba4 100644 --- a/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_by_invoice_to_plus_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 1476000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.create.1.json index 02b847874b..3e52bcfd22 100644 --- a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.list.1.json index 6d51d4ab03..d1c0f1fea8 100644 --- a/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_complimentary_access_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.create.1.json index 69f35a3e62..d1fb95e32c 100644 --- a/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.list.1.json index bbd7b382d5..9b6fae0bd0 100644 --- a/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_license_counts--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.create.1.json index 1b40986dbb..891fe1abfa 100644 --- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.finalize_invoice.1.json index 62e378ae9b..f6c1f262e1 100644 --- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.finalize_invoice.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 320000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.refresh.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.refresh.1.json index 62e378ae9b..f6c1f262e1 100644 --- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.refresh.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.refresh.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 320000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.retrieve.1.json index 62e378ae9b..f6c1f262e1 100644 --- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--Invoice.retrieve.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 320000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--InvoiceItem.create.1.json index a3c73d4705..0ae07de286 100644 --- a/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_pay_by_invoice--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 320000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.1.json index 636bb03d2f..dfe1bfd120 100644 --- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json index 15e75fc3d2..1cbdd76def 100644 --- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -180,7 +180,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -202,6 +202,7 @@ "currency": "usd", "customer": "upgrade_race_condition_during_card_upgrade--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json", "last_payment_error": null, "latest_charge": "upgrade_race_condition_during_card_upgrade--Event.list.2.json", @@ -251,7 +252,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +313,7 @@ "payment_method_details": { "card": { "amount_authorized": 48000, - "authorization_code": null, + "authorization_code": "070062", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -378,7 +379,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -547,7 +548,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -732,7 +733,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -754,6 +755,7 @@ "currency": "usd", "customer": "upgrade_race_condition_during_card_upgrade--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -803,7 +805,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -984,7 +986,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -999,6 +1001,7 @@ "invoice": "upgrade_race_condition_during_card_upgrade--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { @@ -1030,7 +1033,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1144,7 +1147,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_race_condition_during_card_upgrade--Event.list.2.json", @@ -1158,7 +1161,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json index 0cd4cb90e8..3c30679c70 100644 --- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -170,7 +170,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.create.1.json index a7c2ac4430..27f88242b9 100644 --- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--InvoiceItem.create.1.json index 02ae3239fe..de70be3810 100644 --- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 48000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.create.1.json index 0db606afc1..5a56f7cc04 100644 --- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.list.1.json index 1f46955870..f116e4db11 100644 --- a/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_race_condition_during_card_upgrade--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json index c93e52770d..cbf422a0df 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.modify.1.json index c37581e372..417f384c28 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.json index fa4cc1317d..5b6f56e4ab 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.2.json index fa4cc1317d..5b6f56e4ab 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.2.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.3.json index fa4cc1317d..5b6f56e4ab 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.3.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.4.json index fa4cc1317d..5b6f56e4ab 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.4.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.4.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.5.json index fa4cc1317d..5b6f56e4ab 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.5.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.5.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.6.json index 1f99eb86a5..7d61fb1c45 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.6.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.6.json @@ -5,7 +5,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 2, diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.7.json index 1f99eb86a5..7d61fb1c45 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.7.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Customer.retrieve.7.json @@ -5,7 +5,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 2, diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.1.json index 900fc12031..de156483c3 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -11,7 +11,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", @@ -25,7 +25,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json index 31530d8cf5..24389412a9 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json @@ -1,134 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "amount": 1850, - "amount_captured": 1850, - "amount_refunded": 0, - "application": null, - "application_fee": null, - "application_fee_amount": null, - "balance_transaction": "txn_NORMALIZED", - "billing_details": { - "address": { - "city": "San Francisco", - "country": "US", - "line1": "123 Main St", - "line2": null, - "postal_code": "12345", - "state": "CA" - }, - "email": null, - "name": "John Doe", - "phone": null, - "tax_id": null - }, - "calculated_statement_descriptor": "ZULIP BASIC", - "captured": true, - "created": 1000000000, - "currency": "usd", - "customer": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", - "description": "Payment for Invoice", - "destination": null, - "dispute": null, - "disputed": false, - "failure_balance_transaction": null, - "failure_code": null, - "failure_message": null, - "fraud_details": {}, - "id": "upgrade_remote_realm_user_to_monthly_basic_plan--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", - "risk_score": 0, - "seller_message": "Payment complete.", - "type": "authorized" - }, - "paid": true, - "payment_intent": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", - "payment_method": "pm_NORMALIZED", - "payment_method_details": { - "card": { - "amount_authorized": 1850, - "authorization_code": null, - "brand": "visa", - "checks": { - "address_line1_check": "pass", - "address_postal_code_check": "pass", - "cvc_check": "pass" - }, - "country": "US", - "exp_month": 1, - "exp_year": 9999, - "extended_authorization": { - "status": "disabled" - }, - "fingerprint": "NORMALIZED", - "funding": "credit", - "incremental_authorization": { - "status": "unavailable" - }, - "installments": null, - "last4": "4242", - "mandate": null, - "multicapture": { - "status": "unavailable" - }, - "network": "visa", - "network_token": { - "used": false - }, - "network_transaction_id": "100110997670110", - "overcapture": { - "maximum_amount_capturable": 1850, - "status": "unavailable" - }, - "regulated_status": "unregulated", - "three_d_secure": null, - "wallet": null - }, - "type": "card" - }, - "radar_options": {}, - "receipt_email": "hamlet@zulip.com", - "receipt_number": null, - "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap", - "refunded": false, - "review": null, - "shipping": null, - "source": null, - "source_transfer": null, - "statement_descriptor": "Zulip Basic", - "statement_descriptor_suffix": null, - "status": "succeeded", - "transfer_data": null, - "transfer_group": null - } - }, - "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" - }, - "type": "charge.succeeded" - }, - { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -336,7 +209,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -560,7 +433,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +455,7 @@ "currency": "usd", "customer": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +505,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -892,7 +766,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +781,7 @@ "invoice": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +813,42 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "amount_paid": 22200, + "amount_requested": 22200, + "created": 1000000000, + "currency": "usd", + "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", + "invoice": "in_NORMALIZED", + "is_default": true, + "livemode": false, + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" + }, + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 + } + } + }, + "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice_payment.paid" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1118,7 +1028,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1043,7 @@ "invoice": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 3850, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1075,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1188,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", @@ -1291,7 +1202,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1301,7 +1212,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Customer.create.1.json", @@ -1315,7 +1226,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json index c0d9a8de9c..0e1736cfda 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -203,13 +203,13 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", + "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -411,13 +411,13 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", + "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -629,13 +629,13 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", + "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,9 +657,10 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", "last_payment_error": null, - "latest_charge": "ch_NORMALIZED", + "latest_charge": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json", "livemode": false, "metadata": {}, "next_action": null, @@ -700,10 +701,137 @@ "object": "event", "pending_webhooks": 0, "request": { - "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", + "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "payment_intent.succeeded" + }, + { + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "amount": 1850, + "amount_captured": 1850, + "amount_refunded": 0, + "application": null, + "application_fee": null, + "application_fee_amount": null, + "balance_transaction": "txn_NORMALIZED", + "billing_details": { + "address": { + "city": "San Francisco", + "country": "US", + "line1": "123 Main St", + "line2": null, + "postal_code": "12345", + "state": "CA" + }, + "email": null, + "name": "John Doe", + "phone": null, + "tax_id": null + }, + "calculated_statement_descriptor": "ZULIP BASIC", + "captured": true, + "created": 1000000000, + "currency": "usd", + "customer": "cus_NORMALIZED", + "description": "Payment for Invoice", + "destination": null, + "dispute": null, + "disputed": false, + "failure_balance_transaction": null, + "failure_code": null, + "failure_message": null, + "fraud_details": {}, + "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.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", + "risk_score": 0, + "seller_message": "Payment complete.", + "type": "authorized" + }, + "paid": true, + "payment_intent": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.2.json", + "payment_method": "pm_NORMALIZED", + "payment_method_details": { + "card": { + "amount_authorized": 1850, + "authorization_code": "212474", + "brand": "visa", + "checks": { + "address_line1_check": "pass", + "address_postal_code_check": "pass", + "cvc_check": "pass" + }, + "country": "US", + "exp_month": 1, + "exp_year": 9999, + "extended_authorization": { + "status": "disabled" + }, + "fingerprint": "NORMALIZED", + "funding": "credit", + "incremental_authorization": { + "status": "unavailable" + }, + "installments": null, + "last4": "4242", + "mandate": null, + "multicapture": { + "status": "unavailable" + }, + "network": "visa", + "network_token": { + "used": false + }, + "network_transaction_id": "100110997670110", + "overcapture": { + "maximum_amount_capturable": 1850, + "status": "unavailable" + }, + "regulated_status": "unregulated", + "three_d_secure": null, + "wallet": null + }, + "type": "card" + }, + "radar_options": {}, + "receipt_email": "hamlet@zulip.com", + "receipt_number": null, + "receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap", + "refunded": false, + "review": null, + "shipping": null, + "source": null, + "source_transfer": null, + "statement_descriptor": "Zulip Basic", + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + }, + "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": "upgrade_remote_realm_user_to_monthly_basic_plan--Event.list.3.json", + "idempotency_key": "00000000-0000-0000-0000-000000000000" + }, + "type": "charge.succeeded" } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.create.1.json index 0d11b3f91e..2e6f5be607 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--InvoiceItem.create.1.json index fbe1001862..7417d7d04f 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 3850, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--InvoiceItem.create.2.json index 3c919e0a77..cd2dfb2215 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.create.1.json index 0bad1b57dc..636a7ef97d 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.list.1.json index 861c5bd3b8..ef674a816c 100644 --- a/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_remote_realm_user_to_monthly_basic_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.1.json index 3226a61ce1..ef9d11a530 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json index bd0afdb92a..f79fef771c 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json @@ -1,185 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 10000, - "amount_overpaid": 0, - "amount_paid": 10000, - "amount_remaining": 0, - "amount_shipping": 0, - "application": null, - "attempt_count": 1, - "attempted": true, - "auto_advance": false, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "charge_automatically", - "created": 1000000000, - "currency": "usd", - "custom_fields": null, - "customer": "upgrade_server_to_fixed_price_monthly_basic_plan--Customer.create.1.json", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", - "discounts": [], - "due_date": null, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", - "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 10000, - "currency": "usd", - "description": "Zulip Basic", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", - "invoice": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1357095845, - "start": 1325473445 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "10000" - }, - "quantity": 1, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json/lines" - }, - "livemode": false, - "metadata": { - "billing_schedule": "2", - "current_plan_id": "None", - "license_management": "automatic", - "licenses": "18", - "on_free_trial": "False", - "plan_tier": "103" - }, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Basic", - "status": "paid", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": 1000000000, - "voided_at": null - }, - "subtotal": 10000, - "subtotal_excluding_tax": 10000, - "test_clock": null, - "total": 10000, - "total_discount_amounts": [], - "total_excluding_tax": 10000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": null - }, - "previous_attributes": { - "amount_paid": 0, - "amount_remaining": 10000, - "attempt_count": 0, - "attempted": false, - "status": "open", - "status_transitions": { - "paid_at": null - } - } - }, - "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", - "livemode": false, - "object": "event", - "pending_webhooks": 2, - "request": { - "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" - }, - "type": "invoice.updated" - }, - { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -243,7 +65,7 @@ "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 1, + "pending_webhooks": 0, "request": { "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -251,7 +73,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -312,7 +134,7 @@ "payment_method_details": { "card": { "amount_authorized": 10000, - "authorization_code": "858239", + "authorization_code": "643507", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -340,7 +162,7 @@ "network_token": { "used": false }, - "network_transaction_id": "749857738210088", + "network_transaction_id": "100110997670110", "overcapture": { "maximum_amount_capturable": 10000, "status": "unavailable" @@ -370,7 +192,7 @@ "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 2, + "pending_webhooks": 0, "request": { "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -378,7 +200,42 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "amount_paid": 176000, + "amount_requested": 176000, + "created": 1000000000, + "currency": "usd", + "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", + "invoice": "in_NORMALIZED", + "is_default": true, + "livemode": false, + "object": "invoice_payment", + "payment": { + "payment_intent": "pi_NORMALIZED", + "type": "payment_intent" + }, + "status": "paid", + "status_transitions": { + "canceled_at": null, + "paid_at": 1000000000 + } + } + }, + "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice_payment.paid" + }, + { + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -418,7 +275,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": 1000000000, @@ -532,7 +389,7 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 } }, "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", @@ -546,7 +403,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -586,7 +443,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": 1000000000, @@ -700,7 +557,7 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 }, "previous_attributes": { "effective_at": null, @@ -730,7 +587,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -802,7 +659,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -842,7 +699,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": null, @@ -956,7 +813,7 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 }, "previous_attributes": { "amount_due": 0, @@ -982,7 +839,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -997,6 +854,7 @@ "invoice": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { @@ -1028,7 +886,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1068,7 +926,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": null, @@ -1155,7 +1013,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1205,7 +1063,7 @@ "type": "customer.updated" } ], - "has_more": false, + "has_more": true, "object": "list", "url": "/v1/events" } diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json index ca1da9db16..4952553806 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -41,7 +41,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": 1000000000, @@ -155,13 +155,13 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 } }, "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json", "livemode": false, "object": "event", - "pending_webhooks": 2, + "pending_webhooks": 0, "request": { "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -169,7 +169,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -209,7 +209,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": 1000000000, @@ -323,18 +323,196 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 } }, "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json", "livemode": false, "object": "event", - "pending_webhooks": 1, + "pending_webhooks": 0, "request": { "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "invoice.paid" + }, + { + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "account_country": "US", + "account_name": "NORMALIZED", + "account_tax_ids": null, + "amount_due": 10000, + "amount_overpaid": 0, + "amount_paid": 10000, + "amount_remaining": 0, + "amount_shipping": 0, + "application": null, + "attempt_count": 1, + "attempted": true, + "auto_advance": false, + "automatic_tax": { + "disabled_reason": null, + "enabled": false, + "liability": null, + "provider": null, + "status": null + }, + "automatically_finalizes_at": null, + "billing_reason": "manual", + "collection_method": "charge_automatically", + "created": 1000000000, + "currency": "usd", + "custom_fields": null, + "customer": "cus_NORMALIZED", + "customer_address": null, + "customer_email": "hamlet@zulip.com", + "customer_name": null, + "customer_phone": null, + "customer_shipping": null, + "customer_tax_exempt": "none", + "customer_tax_ids": [], + "default_payment_method": null, + "default_source": null, + "default_tax_rates": [], + "description": null, + "discounts": [], + "due_date": null, + "effective_at": 1000000000, + "ending_balance": 0, + "footer": null, + "from_invoice": null, + "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", + "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", + "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", + "issuer": { + "type": "self" + }, + "last_finalization_error": null, + "latest_revision": null, + "lines": { + "data": [ + { + "amount": 10000, + "currency": "usd", + "description": "Zulip Basic", + "discount_amounts": [], + "discountable": false, + "discounts": [], + "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", + "invoice": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", + "livemode": false, + "metadata": {}, + "object": "line_item", + "parent": { + "invoice_item_details": { + "invoice_item": "ii_NORMALIZED", + "proration": false, + "proration_details": { + "credited_items": null + }, + "subscription": null + }, + "subscription_item_details": null, + "type": "invoice_item_details" + }, + "period": { + "end": 1357095845, + "start": 1325473445 + }, + "pretax_credit_amounts": [], + "pricing": { + "price_details": { + "price": "price_NORMALIZED", + "product": "prod_NORMALIZED" + }, + "type": "price_details", + "unit_amount_decimal": "10000" + }, + "quantity": 1, + "taxes": [] + } + ], + "has_more": false, + "object": "list", + "total_count": 1, + "url": "/v1/invoices/upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json/lines" + }, + "livemode": false, + "metadata": { + "billing_schedule": "2", + "current_plan_id": "None", + "license_management": "automatic", + "licenses": "18", + "on_free_trial": "False", + "plan_tier": "103" + }, + "next_payment_attempt": null, + "number": "NORMALIZED", + "object": "invoice", + "on_behalf_of": null, + "parent": null, + "payment_settings": { + "default_mandate": null, + "payment_method_options": null, + "payment_method_types": null + }, + "period_end": 1000000000, + "period_start": 1000000000, + "post_payment_credit_notes_amount": 0, + "pre_payment_credit_notes_amount": 0, + "receipt_number": null, + "rendering": { + "amount_tax_display": null, + "pdf": { + "page_size": "letter" + }, + "template": null, + "template_version": null + }, + "shipping_cost": null, + "shipping_details": null, + "starting_balance": 0, + "statement_descriptor": "Zulip Basic", + "status": "paid", + "status_transitions": { + "finalized_at": 1000000000, + "marked_uncollectible_at": null, + "paid_at": 1000000000, + "voided_at": null + }, + "subtotal": 10000, + "subtotal_excluding_tax": 10000, + "test_clock": null, + "total": 10000, + "total_discount_amounts": [], + "total_excluding_tax": 10000, + "total_pretax_credit_amounts": [], + "total_taxes": [], + "webhooks_delivered_at": 1000000000 + }, + "previous_attributes": { + "amount_paid": 0, + "amount_remaining": 10000, + "attempt_count": 0, + "attempted": false, + "status": "open", + "status_transitions": { + "paid_at": null + } + } + }, + "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.3.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": "upgrade_server_to_fixed_price_monthly_basic_plan--Event.list.2.json", + "idempotency_key": "00000000-0000-0000-0000-000000000000" + }, + "type": "invoice.updated" } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.1.json index b36ec163ca..1e041caa6a 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.1.json @@ -35,7 +35,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": null, diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.2.json index b5c581a40b..c04cc144ea 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.2.json @@ -35,7 +35,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": null, diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.3.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.3.json index 7abdad728f..1f0e86cfdd 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.create.3.json @@ -35,7 +35,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": null, diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json index aba3c72ca0..c6c6eef03e 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.1.json @@ -35,7 +35,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": 1000000000, @@ -149,5 +149,5 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 } diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.2.json index 08b13a9a7d..3f3315e0d3 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.2.json @@ -35,7 +35,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": 1000000000, diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.3.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.3.json index 13b099138d..32b728c1bf 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.finalize_invoice.3.json @@ -35,7 +35,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": 1000000000, diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json index b4d3a5d361..2765e19590 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--Invoice.pay.1.json @@ -35,7 +35,7 @@ "default_payment_method": null, "default_source": null, "default_tax_rates": [], - "description": "If paying by bank transfer outside of the US, use the OUR option for who should pay bank transfer fees, to make sure that your invoice is paid in full.", + "description": null, "discounts": [], "due_date": null, "effective_at": 1000000000, @@ -149,5 +149,5 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": null + "webhooks_delivered_at": 1000000000 } diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--InvoiceItem.create.1.json index 94d1ace399..d8c96e20d5 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--InvoiceItem.create.2.json index 329eff414b..2ac0d71e17 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--InvoiceItem.create.3.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--InvoiceItem.create.3.json index 165877e003..047ac7aeaa 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--InvoiceItem.create.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--InvoiceItem.create.3.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json index 8e74c672f6..eb5f3ab603 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json @@ -13,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -50,7 +69,7 @@ "livemode": false, "locale": null, "metadata": { - "remote_server_user_id": "1", + "remote_server_user_id": "15", "type": "card_update" }, "mode": "setup", diff --git a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json index c385d9e6c8..9716ef286e 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json @@ -15,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -37,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -52,7 +71,7 @@ "livemode": false, "locale": null, "metadata": { - "remote_server_user_id": "1", + "remote_server_user_id": "15", "type": "card_update" }, "mode": "setup", diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.1.json index 456c0df1c7..73e2837af0 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.2.json index 96fb578720..6694898af2 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 4300, - "authorization_code": null, + "authorization_code": "869905", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -120,7 +120,7 @@ "id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 1, "request": { "id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "upgrade_server_user_to_monthly_basic_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 6300, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.3.json index 286179a969..dafdd76d3b 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -209,7 +209,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -417,7 +417,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -635,7 +635,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +657,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_server_user_to_monthly_basic_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.create.1.json index 4214192451..4f6e3fd15c 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--InvoiceItem.create.1.json index a7b705d8a8..c5c6931c5a 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 6300, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--InvoiceItem.create.2.json index b003ab3525..9dd6f26f17 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -2000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--checkout.Session.create.1.json index 4546b28023..0aee63066a 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--checkout.Session.list.1.json index d90b8ef18a..1035dd273f 100644 --- a/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_server_user_to_monthly_basic_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.1.json index e550129a34..6b636b7e5e 100644 --- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.2.json index 8a3ceb3f3a..4c90db86c0 100644 --- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.2.json @@ -1,185 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", - "created": 1000000000, - "data": { - "object": { - "account_country": "US", - "account_name": "NORMALIZED", - "account_tax_ids": null, - "amount_due": 984000, - "amount_overpaid": 0, - "amount_paid": 984000, - "amount_remaining": 0, - "amount_shipping": 0, - "application": null, - "attempt_count": 0, - "attempted": false, - "auto_advance": false, - "automatic_tax": { - "disabled_reason": null, - "enabled": false, - "liability": null, - "provider": null, - "status": null - }, - "automatically_finalizes_at": null, - "billing_reason": "manual", - "collection_method": "send_invoice", - "created": 1000000000, - "currency": "usd", - "custom_fields": null, - "customer": "upgrade_to_fixed_price_plus_plan--Customer.create.1.json", - "customer_address": null, - "customer_email": "hamlet@zulip.com", - "customer_name": null, - "customer_phone": null, - "customer_shipping": null, - "customer_tax_exempt": "none", - "customer_tax_ids": [], - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discounts": [], - "due_date": 1000000000, - "effective_at": 1000000000, - "ending_balance": 0, - "footer": null, - "from_invoice": null, - "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", - "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", - "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", - "issuer": { - "type": "self" - }, - "last_finalization_error": null, - "latest_revision": null, - "lines": { - "data": [ - { - "amount": 984000, - "currency": "usd", - "description": "Zulip Cloud Standard", - "discount_amounts": [], - "discountable": false, - "discounts": [], - "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", - "invoice": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", - "livemode": false, - "metadata": {}, - "object": "line_item", - "parent": { - "invoice_item_details": { - "invoice_item": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", - "proration": false, - "proration_details": { - "credited_items": null - }, - "subscription": null - }, - "subscription_item_details": null, - "type": "invoice_item_details" - }, - "period": { - "end": 1357095845, - "start": 1325473445 - }, - "pretax_credit_amounts": [], - "pricing": { - "price_details": { - "price": "price_NORMALIZED", - "product": "prod_NORMALIZED" - }, - "type": "price_details", - "unit_amount_decimal": "8000" - }, - "quantity": 123, - "taxes": [] - } - ], - "has_more": false, - "object": "list", - "total_count": 1, - "url": "/v1/invoices/upgrade_to_fixed_price_plus_plan--Event.list.2.json/lines" - }, - "livemode": false, - "metadata": { - "billing_schedule": "1", - "current_plan_id": "None", - "license_management": "manual", - "licenses": "123", - "on_free_trial": "False", - "plan_tier": "1", - "user_id": "10" - }, - "next_payment_attempt": null, - "number": "NORMALIZED", - "object": "invoice", - "on_behalf_of": null, - "parent": null, - "payment_settings": { - "default_mandate": null, - "payment_method_options": null, - "payment_method_types": null - }, - "period_end": 1000000000, - "period_start": 1000000000, - "post_payment_credit_notes_amount": 0, - "pre_payment_credit_notes_amount": 0, - "receipt_number": null, - "rendering": { - "amount_tax_display": null, - "pdf": { - "page_size": "letter" - }, - "template": null, - "template_version": null - }, - "shipping_cost": null, - "shipping_details": null, - "starting_balance": 0, - "statement_descriptor": "Zulip Cloud Standard", - "status": "paid", - "status_transitions": { - "finalized_at": 1000000000, - "marked_uncollectible_at": null, - "paid_at": 1000000000, - "voided_at": null - }, - "subtotal": 984000, - "subtotal_excluding_tax": 984000, - "test_clock": null, - "total": 984000, - "total_discount_amounts": [], - "total_excluding_tax": 984000, - "total_pretax_credit_amounts": [], - "total_taxes": [], - "webhooks_delivered_at": 1000000000 - }, - "previous_attributes": { - "amount_paid": 0, - "amount_remaining": 984000, - "auto_advance": true, - "status": "open", - "status_transitions": { - "paid_at": null - } - } - }, - "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", - "livemode": false, - "object": "event", - "pending_webhooks": 0, - "request": { - "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", - "idempotency_key": "00000000-0000-0000-0000-000000000000" - }, - "type": "invoice.updated" - }, - { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -201,6 +23,7 @@ "currency": "usd", "customer": "upgrade_to_fixed_price_plus_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -250,7 +73,7 @@ "type": "payment_intent.canceled" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -419,7 +242,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -605,7 +428,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -627,6 +450,7 @@ "currency": "usd", "customer": "upgrade_to_fixed_price_plus_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -676,7 +500,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -831,7 +655,7 @@ "total_excluding_tax": 984000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -857,7 +681,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -872,6 +696,7 @@ "invoice": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { @@ -903,7 +728,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1017,7 +842,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", @@ -1031,7 +856,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1081,7 +906,7 @@ "type": "customer.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1126,6 +951,167 @@ "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "customer.created" + }, + { + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "account_country": "US", + "account_name": "NORMALIZED", + "account_tax_ids": null, + "amount_due": 100, + "amount_overpaid": 0, + "amount_paid": 0, + "amount_remaining": 100, + "amount_shipping": 0, + "application": null, + "attempt_count": 0, + "attempted": false, + "auto_advance": true, + "automatic_tax": { + "disabled_reason": null, + "enabled": false, + "liability": null, + "provider": null, + "status": null + }, + "automatically_finalizes_at": null, + "billing_reason": "manual", + "collection_method": "send_invoice", + "created": 1000000000, + "currency": "usd", + "custom_fields": null, + "customer": "cus_NORMALIZED", + "customer_address": null, + "customer_email": "hamlet@zulip.com", + "customer_name": null, + "customer_phone": null, + "customer_shipping": null, + "customer_tax_exempt": "none", + "customer_tax_ids": [], + "default_payment_method": null, + "default_source": null, + "default_tax_rates": [], + "description": null, + "discounts": [], + "due_date": 1000000000, + "effective_at": 1000000000, + "ending_balance": 0, + "footer": null, + "from_invoice": null, + "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", + "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", + "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", + "issuer": { + "type": "self" + }, + "last_finalization_error": null, + "latest_revision": null, + "lines": { + "data": [ + { + "amount": 100, + "currency": "usd", + "description": "Zulip Cloud Standard - renewal", + "discount_amounts": [], + "discountable": false, + "discounts": [], + "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", + "invoice": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", + "livemode": false, + "metadata": {}, + "object": "line_item", + "parent": { + "invoice_item_details": { + "invoice_item": "ii_NORMALIZED", + "proration": false, + "proration_details": { + "credited_items": null + }, + "subscription": null + }, + "subscription_item_details": null, + "type": "invoice_item_details" + }, + "period": { + "end": 1388631845, + "start": 1357095845 + }, + "pretax_credit_amounts": [], + "pricing": { + "price_details": { + "price": "price_NORMALIZED", + "product": "prod_NORMALIZED" + }, + "type": "price_details", + "unit_amount_decimal": "100" + }, + "quantity": 1, + "taxes": [] + } + ], + "has_more": false, + "object": "list", + "total_count": 1, + "url": "/v1/invoices/upgrade_to_fixed_price_plus_plan--Event.list.2.json/lines" + }, + "livemode": false, + "metadata": {}, + "next_payment_attempt": null, + "number": "NORMALIZED", + "object": "invoice", + "on_behalf_of": null, + "parent": null, + "payment_settings": { + "default_mandate": null, + "payment_method_options": null, + "payment_method_types": null + }, + "period_end": 1000000000, + "period_start": 1000000000, + "post_payment_credit_notes_amount": 0, + "pre_payment_credit_notes_amount": 0, + "receipt_number": null, + "rendering": { + "amount_tax_display": null, + "pdf": { + "page_size": "letter" + }, + "template": null, + "template_version": null + }, + "shipping_cost": null, + "shipping_details": null, + "starting_balance": 0, + "statement_descriptor": "Zulip Cloud Standard", + "status": "open", + "status_transitions": { + "finalized_at": 1000000000, + "marked_uncollectible_at": null, + "paid_at": null, + "voided_at": null + }, + "subtotal": 100, + "subtotal_excluding_tax": 100, + "test_clock": null, + "total": 100, + "total_discount_amounts": [], + "total_excluding_tax": 100, + "total_pretax_credit_amounts": [], + "total_taxes": [], + "webhooks_delivered_at": null + } + }, + "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": null, + "idempotency_key": null + }, + "type": "invoice.sent" } ], "has_more": true, diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.3.json index f2ebafd6cc..31c3dd0444 100644 --- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -168,6 +168,184 @@ "idempotency_key": "00000000-0000-0000-0000-000000000000" }, "type": "invoice.paid" + }, + { + "api_version": "2025-09-30.clover", + "created": 1000000000, + "data": { + "object": { + "account_country": "US", + "account_name": "NORMALIZED", + "account_tax_ids": null, + "amount_due": 984000, + "amount_overpaid": 0, + "amount_paid": 984000, + "amount_remaining": 0, + "amount_shipping": 0, + "application": null, + "attempt_count": 0, + "attempted": false, + "auto_advance": false, + "automatic_tax": { + "disabled_reason": null, + "enabled": false, + "liability": null, + "provider": null, + "status": null + }, + "automatically_finalizes_at": null, + "billing_reason": "manual", + "collection_method": "send_invoice", + "created": 1000000000, + "currency": "usd", + "custom_fields": null, + "customer": "cus_NORMALIZED", + "customer_address": null, + "customer_email": "hamlet@zulip.com", + "customer_name": null, + "customer_phone": null, + "customer_shipping": null, + "customer_tax_exempt": "none", + "customer_tax_ids": [], + "default_payment_method": null, + "default_source": null, + "default_tax_rates": [], + "description": null, + "discounts": [], + "due_date": 1000000000, + "effective_at": 1000000000, + "ending_balance": 0, + "footer": null, + "from_invoice": null, + "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED/test_NORMALIZED?s=ap", + "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", + "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED/test_NORMALIZED/pdf?s=ap", + "issuer": { + "type": "self" + }, + "last_finalization_error": null, + "latest_revision": null, + "lines": { + "data": [ + { + "amount": 984000, + "currency": "usd", + "description": "Zulip Cloud Standard", + "discount_amounts": [], + "discountable": false, + "discounts": [], + "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", + "invoice": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", + "livemode": false, + "metadata": {}, + "object": "line_item", + "parent": { + "invoice_item_details": { + "invoice_item": "ii_NORMALIZED", + "proration": false, + "proration_details": { + "credited_items": null + }, + "subscription": null + }, + "subscription_item_details": null, + "type": "invoice_item_details" + }, + "period": { + "end": 1357095845, + "start": 1325473445 + }, + "pretax_credit_amounts": [], + "pricing": { + "price_details": { + "price": "price_NORMALIZED", + "product": "prod_NORMALIZED" + }, + "type": "price_details", + "unit_amount_decimal": "8000" + }, + "quantity": 123, + "taxes": [] + } + ], + "has_more": false, + "object": "list", + "total_count": 1, + "url": "/v1/invoices/upgrade_to_fixed_price_plus_plan--Event.list.2.json/lines" + }, + "livemode": false, + "metadata": { + "billing_schedule": "1", + "current_plan_id": "None", + "license_management": "manual", + "licenses": "123", + "on_free_trial": "False", + "plan_tier": "1", + "user_id": "10" + }, + "next_payment_attempt": null, + "number": "NORMALIZED", + "object": "invoice", + "on_behalf_of": null, + "parent": null, + "payment_settings": { + "default_mandate": null, + "payment_method_options": null, + "payment_method_types": null + }, + "period_end": 1000000000, + "period_start": 1000000000, + "post_payment_credit_notes_amount": 0, + "pre_payment_credit_notes_amount": 0, + "receipt_number": null, + "rendering": { + "amount_tax_display": null, + "pdf": { + "page_size": "letter" + }, + "template": null, + "template_version": null + }, + "shipping_cost": null, + "shipping_details": null, + "starting_balance": 0, + "statement_descriptor": "Zulip Cloud Standard", + "status": "paid", + "status_transitions": { + "finalized_at": 1000000000, + "marked_uncollectible_at": null, + "paid_at": 1000000000, + "voided_at": null + }, + "subtotal": 984000, + "subtotal_excluding_tax": 984000, + "test_clock": null, + "total": 984000, + "total_discount_amounts": [], + "total_excluding_tax": 984000, + "total_pretax_credit_amounts": [], + "total_taxes": [], + "webhooks_delivered_at": 1000000000 + }, + "previous_attributes": { + "amount_paid": 0, + "amount_remaining": 984000, + "auto_advance": true, + "status": "open", + "status_transitions": { + "paid_at": null + } + } + }, + "id": "upgrade_to_fixed_price_plus_plan--Event.list.3.json", + "livemode": false, + "object": "event", + "pending_webhooks": 0, + "request": { + "id": "upgrade_to_fixed_price_plus_plan--Event.list.2.json", + "idempotency_key": "00000000-0000-0000-0000-000000000000" + }, + "type": "invoice.updated" } ], "has_more": false, diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.1.json index 218270b179..cd1a46af9c 100644 --- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.2.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.2.json index 2456be6966..bf9e2c2e98 100644 --- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.finalize_invoice.2.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.finalize_invoice.2.json index bfd25f964c..a912eccdc5 100644 --- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.finalize_invoice.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--Invoice.finalize_invoice.2.json @@ -142,5 +142,5 @@ "total_excluding_tax": 36000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--InvoiceItem.create.1.json index cf7aade69d..1bd6a15401 100644 --- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 984000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--InvoiceItem.create.2.json index c1ebb00b03..50a5a50e8f 100644 --- a/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_to_fixed_price_plus_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 36000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.create.1.json index 93c318e5f2..1ad2d57b8a 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.create.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.modify.1.json index b07603b25e..4efee36be9 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.json index 60ff9393b2..ce78f48418 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.2.json index 60ff9393b2..ce78f48418 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.2.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.3.json index 60ff9393b2..ce78f48418 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.3.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.4.json index 60ff9393b2..ce78f48418 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.4.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.4.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.5.json index 60ff9393b2..ce78f48418 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.5.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.5.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.6.json index 60ff9393b2..ce78f48418 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.6.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.6.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.7.json index 60ff9393b2..ce78f48418 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.7.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Customer.retrieve.7.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Event.list.1.json index 12cd20e13b..1c758b8b3e 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -11,7 +11,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_basic_plan_free_trial--Customer.create.1.json", @@ -25,7 +25,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.create.1.json index 6a58960233..0942d27212 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.list.1.json index 59f4ed53be..55cd3fe437 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json index 780f666769..610db6e487 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--checkout.Session.create.1.json index 952395a0c9..61123cb8ee 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--checkout.Session.list.1.json index 0d7adf81d3..36ff164e3a 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_basic_plan_free_trial_remote_server--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "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, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.create.1.json index bb120a0da7..3ed6676b50 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.create.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_business_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.modify.1.json index b64cbaf549..59fbb497d0 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_business_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.1.json index 0417856518..ff6332a1dc 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.2.json index 0417856518..ff6332a1dc 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.2.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.3.json index 0417856518..ff6332a1dc 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.3.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.4.json index 0417856518..ff6332a1dc 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.4.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.4.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.5.json index 0417856518..ff6332a1dc 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.5.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.5.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.6.json index 1dc7a58022..c4013aff9e 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.6.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.6.json @@ -5,7 +5,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 2, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.7.json index 1dc7a58022..c4013aff9e 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.7.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Customer.retrieve.7.json @@ -5,7 +5,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_business_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 2, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.1.json index 670f5f064a..0443a80897 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -11,7 +11,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_business_plan--Customer.create.1.json", @@ -25,7 +25,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.2.json index 5a5483b5b5..7ab8bc7de6 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -62,7 +62,7 @@ "payment_method_details": { "card": { "amount_authorized": 176000, - "authorization_code": null, + "authorization_code": "997175", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -128,7 +128,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -336,7 +336,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -560,7 +560,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -582,6 +582,7 @@ "currency": "usd", "customer": "upgrade_user_to_business_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_user_to_business_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -631,7 +632,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -892,7 +893,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -907,6 +908,7 @@ "invoice": "upgrade_user_to_business_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { @@ -938,7 +940,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1118,7 +1120,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1133,6 +1135,7 @@ "invoice": "upgrade_user_to_business_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 200000, "object": "invoiceitem", "parent": null, "period": { @@ -1164,7 +1167,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1277,7 +1280,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_user_to_business_plan--Event.list.2.json", @@ -1291,7 +1294,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1301,7 +1304,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_business_plan--Customer.create.1.json", @@ -1315,7 +1318,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.3.json index 6fe19ef62e..db1c3db39d 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -209,7 +209,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -417,7 +417,7 @@ "type": "invoice.paid" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -635,7 +635,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -657,6 +657,7 @@ "currency": "usd", "customer": "cus_NORMALIZED", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_user_to_business_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": "ch_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.create.1.json index 72a1221d98..2a48b14f4e 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--InvoiceItem.create.1.json index e6576d31b7..fa115a3452 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 200000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--InvoiceItem.create.2.json index b3adb22ca5..de10a7bb0f 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": -24000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.create.1.json index 561547361a..f11ed6fa38 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.list.1.json index 30984dc4fd..c33339353e 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_business_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json index 8eba66ff46..36219b6ef0 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.modify.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.modify.1.json index 916468a481..807f8b9697 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.modify.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.modify.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json", @@ -19,7 +19,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json index edc495ca62..eba576bef9 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.1.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json index edc495ca62..eba576bef9 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.2.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json index edc495ca62..eba576bef9 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.3.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json index edc495ca62..eba576bef9 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.4.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json index edc495ca62..eba576bef9 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.5.json @@ -5,7 +5,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.json index dfed9ea689..9ebaa5d8b6 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Customer.retrieve.6.json @@ -5,7 +5,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json", @@ -69,7 +69,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 2, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.1.json index 44d01c7197..ce919765cc 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -11,7 +11,7 @@ "currency": null, "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json", @@ -25,7 +25,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json index e3d36060c0..def7d8c358 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -171,7 +171,7 @@ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -179,7 +179,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -201,6 +201,7 @@ "currency": "usd", "customer": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json", @@ -250,7 +251,7 @@ "type": "payment_intent.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -311,7 +312,7 @@ "payment_method_details": { "card": { "amount_authorized": 10000, - "authorization_code": null, + "authorization_code": "832068", "brand": "visa", "checks": { "address_line1_check": "pass", @@ -369,7 +370,7 @@ "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 2, "request": { "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -377,7 +378,7 @@ "type": "charge.succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -545,7 +546,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -729,7 +730,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -751,6 +752,7 @@ "currency": "usd", "customer": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -800,7 +802,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -954,7 +956,7 @@ "total_excluding_tax": 10000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -980,7 +982,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -995,6 +997,7 @@ "invoice": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { @@ -1026,7 +1029,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1139,7 +1142,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.2.json", @@ -1153,7 +1156,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1163,7 +1166,7 @@ "currency": "usd", "default_source": null, "delinquent": false, - "description": "zulip.testserver 5ae8113e-cd0", + "description": "zulip.testserver 1b9e1a25-900", "discount": null, "email": "hamlet@zulip.com", "id": "upgrade_user_to_fixed_price_monthly_basic_plan--Customer.create.1.json", @@ -1177,7 +1180,7 @@ "livemode": false, "metadata": { "remote_realm_host": "zulip.testserver", - "remote_realm_uuid": "5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8" + "remote_realm_uuid": "1b9e1a25-9000-419d-bb13-59cab3446e68" }, "name": null, "next_invoice_sequence": 1, diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json index b017c3f389..50efeb39eb 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -169,7 +169,7 @@ "type": "invoice.payment_succeeded" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.create.1.json index e83663ca79..3c50899c34 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--Invoice.create.1.json @@ -108,5 +108,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--InvoiceItem.create.1.json index c4ea208359..aa7b4e7560 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 10000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json index 498c641e50..95943ca687 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -79,7 +101,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json index 233fefa090..b1582de0e4 100644 --- a/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_user_to_fixed_price_monthly_basic_plan--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", - "cancel_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/upgrade/?manual_license_management=false&tier=1", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, + "cancel_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", @@ -81,7 +103,7 @@ "status": "open", "submit_type": null, "subscription": null, - "success_url": "http://selfhosting.testserver/realm/5ae8113e-cd0a-4aaf-990c-a2ddb35b37d8/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", + "success_url": "http://selfhosting.testserver/realm/1b9e1a25-9000-419d-bb13-59cab3446e68/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}", "total_details": null, "ui_mode": "hosted", "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED", diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.create.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.create.1.json index 4bec5513cf..e70722be95 100644 --- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.create.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.create.1.json @@ -1,5 +1,7 @@ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -11,10 +13,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -33,7 +52,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -53,6 +74,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.list.1.json b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.list.1.json index 4e368da20b..c346267122 100644 --- a/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.list.1.json +++ b/corporate/tests/stripe_fixtures/upgrade_with_uncaught_exception--checkout.Session.list.1.json @@ -1,7 +1,9 @@ { "data": [ { - "adaptive_pricing": null, + "adaptive_pricing": { + "enabled": false + }, "after_expiration": null, "allow_promotion_codes": null, "amount_subtotal": null, @@ -13,10 +15,27 @@ "status": null }, "billing_address_collection": "required", + "branding_settings": { + "background_color": "#ffffff", + "border_style": "rounded", + "button_color": "#0074d4", + "display_name": "Sandbox", + "font_family": "default", + "icon": { + "file": "file_1RCGizRVfKEFJaqcFHPvd6rl", + "type": "file" + }, + "logo": { + "file": "file_1RCGiyRVfKEFJaqc9ny0K376", + "type": "file" + } + }, "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1", "client_reference_id": null, "client_secret": null, "collected_information": { + "business_name": null, + "individual_name": null, "shipping_details": null }, "consent": null, @@ -35,7 +54,9 @@ "customer_creation": null, "customer_details": { "address": null, + "business_name": null, "email": "hamlet@zulip.com", + "individual_name": null, "name": null, "phone": null, "tax_exempt": null, @@ -55,6 +76,7 @@ }, "mode": "setup", "object": "checkout.session", + "origin_context": null, "payment_intent": null, "payment_link": null, "payment_method_collection": "always", diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.1.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.1.json index 270fc20d45..b4568d1333 100644 --- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.1.json +++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.1.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -148,7 +148,7 @@ "total_excluding_tax": 36000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "validate_licenses_for_manual_plan_management--Event.list.1.json", diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.2.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.2.json index 488d9ecbe9..9ec813435c 100644 --- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.2.json +++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.2.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,7 +156,7 @@ "total_excluding_tax": 56000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_paid": 0, @@ -171,7 +171,7 @@ "id": "validate_licenses_for_manual_plan_management--Event.list.2.json", "livemode": false, "object": "event", - "pending_webhooks": 0, + "pending_webhooks": 1, "request": { "id": "validate_licenses_for_manual_plan_management--Event.list.2.json", "idempotency_key": "00000000-0000-0000-0000-000000000000" @@ -179,7 +179,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -201,6 +201,7 @@ "currency": "usd", "customer": "validate_licenses_for_manual_plan_management--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "validate_licenses_for_manual_plan_management--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -250,7 +251,7 @@ "type": "payment_intent.canceled" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -405,7 +406,7 @@ "total_excluding_tax": 56000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "validate_licenses_for_manual_plan_management--Event.list.2.json", @@ -419,7 +420,7 @@ "type": "invoice.finalized" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -574,7 +575,7 @@ "total_excluding_tax": 56000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "automatically_finalizes_at": 1000000000, @@ -605,7 +606,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -627,6 +628,7 @@ "currency": "usd", "customer": "validate_licenses_for_manual_plan_management--Customer.create.1.json", "description": "Payment for Invoice", + "excluded_payment_method_types": null, "id": "validate_licenses_for_manual_plan_management--Event.list.2.json", "last_payment_error": null, "latest_charge": null, @@ -676,7 +678,7 @@ "type": "payment_intent.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -831,7 +833,7 @@ "total_excluding_tax": 56000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null }, "previous_attributes": { "amount_due": 0, @@ -857,7 +859,7 @@ "type": "invoice.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -872,6 +874,7 @@ "invoice": "validate_licenses_for_manual_plan_management--Event.list.2.json", "livemode": false, "metadata": {}, + "net_amount": 56000, "object": "invoiceitem", "parent": null, "period": { @@ -903,7 +906,7 @@ "type": "invoiceitem.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1017,7 +1020,7 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "validate_licenses_for_manual_plan_management--Event.list.2.json", @@ -1031,7 +1034,7 @@ "type": "invoice.created" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -1081,7 +1084,7 @@ "type": "customer.updated" }, { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.3.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.3.json index 8ddd9bbc4c..b4131f5e38 100644 --- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.3.json +++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Event.list.3.json @@ -1,7 +1,7 @@ { "data": [ { - "api_version": "2025-04-30.basil", + "api_version": "2025-09-30.clover", "created": 1000000000, "data": { "object": { @@ -156,7 +156,7 @@ "total_excluding_tax": 56000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } }, "id": "validate_licenses_for_manual_plan_management--Event.list.3.json", diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.create.1.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.create.1.json index 0493e85089..135364cebe 100644 --- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.create.1.json @@ -109,5 +109,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.finalize_invoice.1.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.finalize_invoice.1.json index b87fe77744..fa7ea3fd8a 100644 --- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.finalize_invoice.1.json +++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.finalize_invoice.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 56000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.pay.1.json index 78c27e6df1..83bbec63c5 100644 --- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.pay.1.json +++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--Invoice.pay.1.json @@ -150,5 +150,5 @@ "total_excluding_tax": 56000, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--InvoiceItem.create.1.json index 361bf4ca18..75bad22ce2 100644 --- a/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/validate_licenses_for_manual_plan_management--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 56000, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.1.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.1.json index 792b528cde..0d5b19cd34 100644 --- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.1.json +++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.1.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.2.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.2.json index c6bc825a03..d32817d348 100644 --- a/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.2.json +++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--Invoice.create.2.json @@ -101,5 +101,5 @@ "total_excluding_tax": 0, "total_pretax_credit_amounts": [], "total_taxes": [], - "webhooks_delivered_at": 1000000000 + "webhooks_delivered_at": null } diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--InvoiceItem.create.1.json index f060f79180..cc762d5c9d 100644 --- a/corporate/tests/stripe_fixtures/void_all_open_invoices--InvoiceItem.create.1.json +++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--InvoiceItem.create.1.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 6400, "object": "invoiceitem", "parent": null, "period": { diff --git a/corporate/tests/stripe_fixtures/void_all_open_invoices--InvoiceItem.create.2.json b/corporate/tests/stripe_fixtures/void_all_open_invoices--InvoiceItem.create.2.json index 50af32c8a4..ce6482f453 100644 --- a/corporate/tests/stripe_fixtures/void_all_open_invoices--InvoiceItem.create.2.json +++ b/corporate/tests/stripe_fixtures/void_all_open_invoices--InvoiceItem.create.2.json @@ -10,6 +10,7 @@ "invoice": "in_NORMALIZED", "livemode": false, "metadata": {}, + "net_amount": 6400, "object": "invoiceitem", "parent": null, "period": { diff --git a/uv.lock b/uv.lock index a4c64e29fb..fbb6627767 100644 --- a/uv.lock +++ b/uv.lock @@ -4959,15 +4959,15 @@ wheels = [ [[package]] name = "stripe" -version = "12.5.1" +version = "13.0.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "requests" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/bd/92/f1b72783e13662026efc7d3f0fc201230edab55edd1604326a97162d8ce4/stripe-12.5.1.tar.gz", hash = "sha256:5407d092c355c31393e767d2dcb2d5a8c3980caa9a073acb32d0ccb3c01b04b5", size = 1432826, upload-time = "2025-09-05T13:27:07.976Z" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/36/edac714e44a1a0048e74cc659b6070b42dd7027473e8f9f06a727b3860b6/stripe-13.0.1.tar.gz", hash = "sha256:5869739430ff73bd9cd81275abfb79fd4089e97e9fd98d306a015f5defd39a0d", size = 1263853, upload-time = "2025-10-03T19:37:17.335Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/1d/8d/f4c2f047eedc943aea573cb56af2c9481b2d97ee8de9819f8c5d87e9ba34/stripe-12.5.1-py2.py3-none-any.whl", hash = "sha256:39b47b331dfe933ce6cf6bd654e0ae9ba082caa9d1dd8d0ae9ae48293975f115", size = 1664067, upload-time = "2025-09-05T13:27:05.559Z" }, + { url = "https://files.pythonhosted.org/packages/3a/ac/a911f3c850420ab42447f5c049f570e55f34e0aa0b2e6a1d1a059a5656c4/stripe-13.0.1-py3-none-any.whl", hash = "sha256:7804cee14580ab37bbc1e5f6562e49dea0686ab3cb34384eb9386387ed8ebd0c", size = 1849008, upload-time = "2025-10-03T19:37:14.953Z" }, ] [[package]] diff --git a/version.py b/version.py index 139a4a75e6..985661a743 100644 --- a/version.py +++ b/version.py @@ -50,4 +50,4 @@ API_FEATURE_LEVEL = 427 # historical commits sharing the same major version, in which case a # minor version bump suffices. -PROVISION_VERSION = (354, 0) # bumped 2025-10-23 to upgrade Python requirements +PROVISION_VERSION = (355, 0) # bumped 2025-10-28 to upgrade stripe