Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
corporate: Update stripe create_balance_transaction description.
Lauryn Menarda00e687d027a
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.pyindex 88c92d1a37a..d5fcf3414e2 100644--- a/corporate/lib/stripe.py+++ b/corporate/lib/stripe.py@@ -2525,7 +2525,7 @@ def switch_realm_from_standard_to_plus_plan(realm: Realm) -> None:standard_plan.customer.stripe_customer_id,amount=-1 * amount_to_credit_back_to_realm,currency="usd",- description="Credit from early termination of Standard plan",+ description="Credit from early termination of active plan",)switch_plan_tier(standard_plan, CustomerPlan.PLUS)invoice_plan(standard_plan, plan_switch_time)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.jsonindex cfd38627ace..8617999fcf3 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@@ -4,7 +4,7 @@"credit_note": null,"currency": "usd","customer": "cus_NORMALIZED0001",- "description": "Credit from early termination of Standard plan",+ "description": "Credit from early termination of active plan","ending_balance": -7200,"id": "cbtxn_NORMALIZED00000000000001","invoice": null,diff --git a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.list_balance_transactions.1.json b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.list_balance_transactions.1.jsonindex 07d1d8cb4d6..d532717e938 100644--- a/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.list_balance_transactions.1.json+++ b/corporate/tests/stripe_fixtures/switch_realm_from_standard_to_plus_plan--Customer.list_balance_transactions.1.json@@ -21,7 +21,7 @@"credit_note": null,"currency": "usd","customer": "cus_NORMALIZED0001",- "description": "Credit from early termination of Standard plan",+ "description": "Credit from early termination of active plan","ending_balance": -7200,"id": "cbtxn_NORMALIZED00000000000001","invoice": null,diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.pyindex 54a1aaea810..483028d28cd 100644--- a/corporate/tests/test_stripe.py+++ b/corporate/tests/test_stripe.py@@ -3577,7 +3577,7 @@ class StripeTest(StripeTestCase):self.assertEqual(cb_txn.amount, -7200)self.assertEqual(cb_txn.description,- "Credit from early termination of Standard plan",+ "Credit from early termination of active plan",)self.assertEqual(cb_txn.type, "adjustment")