-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[ubp] reset usage on chargebee cancellation #15362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
started the job as gitpod-build-sefftinge-ubp-handle-chargebee-15055.1 because the annotations in the pull request description changed |
1ba9010
to
a5d366c
Compare
a5d366c
to
e83cd4f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks! Code changes look good to me (modulo one nit), and they appear to work flawlessly! 🎯
I've tested:
- Accruing usage (visible in
/usage
and the/billing
balance) - Cancelling a Chargebee TeamSubscription2 -- worked flawlessly ✅
- Cancelling a legacy Chargebee TeamSubscription (of which one seat was assigned to me) -- worked flawlessly ✅
- Cancelling a personal Chargebee plan -- worked flawlessly ✅
Holding for one optional nit.
/hold
components/ee/payment-endpoint/src/accounting/team-subscription-service.ts
Outdated
Show resolved
Hide resolved
…n-service.ts Co-authored-by: Jan Keromnes <[email protected]>
/unhold |
Description
Creates a credit note for negative balance for users that are canceled (team slot or individual), so that those users start with a zero balance.
I've tested teamsubscription, teamsubscription2, individual subscription.
Related Issue(s)
Fixes #15055
How to test
Note: the
AddUsageCreditNote
endpoint uses entire credits and can't handle creditcents. So if balance is 12.34 the credit note will be 12.Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh