Skip to content

Commit

Permalink
feat: Add seats to next invoice (#2977)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan authored Nov 16, 2023
1 parent e0d6e8a commit e4325a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/organisations/chargebee/chargebee.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
)

Expand Down Expand Up @@ -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,
},
)

Expand Down Expand Up @@ -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
Expand Down

3 comments on commit e4325a8

@vercel
Copy link

@vercel vercel bot commented on e4325a8 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-flagsmith.vercel.app
docs-git-main-flagsmith.vercel.app
docs.bullet-train.io
docs.flagsmith.com

@vercel
Copy link

@vercel vercel bot commented on e4325a8 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on e4325a8 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.