diff --git a/api/organisations/chargebee/chargebee.py b/api/organisations/chargebee/chargebee.py index e67d622a0fb4..4444454e4896 100644 --- a/api/organisations/chargebee/chargebee.py +++ b/api/organisations/chargebee/chargebee.py @@ -181,7 +181,7 @@ def add_single_seat(subscription_id: str): {"id": ADDITIONAL_SEAT_ADDON_ID, "quantity": current_seats + 1} ], "prorate": True, - "invoice_immediately": True, + "invoice_immediately": False, }, ) diff --git a/api/tests/unit/organisations/chargebee/test_unit_chargebee_chargebee.py b/api/tests/unit/organisations/chargebee/test_unit_chargebee_chargebee.py index 45a4c8460acd..519c96c9ab50 100644 --- a/api/tests/unit/organisations/chargebee/test_unit_chargebee_chargebee.py +++ b/api/tests/unit/organisations/chargebee/test_unit_chargebee_chargebee.py @@ -480,7 +480,7 @@ def test_add_single_seat_with_existing_addon(mocker): {"id": ADDITIONAL_SEAT_ADDON_ID, "quantity": addon_quantity + 1} ], "prorate": True, - "invoice_immediately": True, + "invoice_immediately": False, }, ) @@ -511,7 +511,7 @@ def test_add_single_seat_without_existing_addon(mocker): { "addons": [{"id": ADDITIONAL_SEAT_ADDON_ID, "quantity": 1}], "prorate": True, - "invoice_immediately": True, + "invoice_immediately": False, }, ) @@ -555,7 +555,7 @@ def test_add_single_seat_throws_upgrade_seats_error_error_if_api_error(mocker, c { "addons": [{"id": ADDITIONAL_SEAT_ADDON_ID, "quantity": 1}], "prorate": True, - "invoice_immediately": True, + "invoice_immediately": False, }, ) assert len(caplog.records) == 1