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
[AC-2379] Stripe webhook update provider status #4012
[AC-2379] Stripe webhook update provider status #4012
Conversation
a7f9320
to
3e3180c
Compare
New Issues
Fixed Issues
|
bitwarden_license/src/Commercial.Core/AdminConsole/Services/ProviderService.cs
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4012 +/- ##
=======================================
Coverage ? 38.41%
=======================================
Files ? 1209
Lines ? 58704
Branches ? 5592
=======================================
Hits ? 22549
Misses ? 35111
Partials ? 1044 ☔ View full report in Codecov by Sentry. |
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.
Non-blocking: only thing missing from this PR are a handful of tests for the new service methods added. Please follow-up at some point to get that coverage added.
53c8936
Closing this PR as we learned that this |
Type of change
Objective
Updates the Stripe webhook to enable or disable a given Provider if there are changes to the Provider's subscription status.
Code changes
EnableAsync
andDisableAsync
, have been added. These methods change the Enabled property of a Provider and update the RevisionDate to the current UTC. They also handle updating the provider repository and application cacheCommercial.Core.csproj
so thatIProviderService
can be added as a dependencyRevisionDate
property to be set externally, enabling updates to this property from the new methods inProviderService.cs
EnableAsync
andDisableAsync
methodsEnableAsync
andDisableAsync
have been added, throwingNotImplementedException
when calledBefore you submit
dotnet format --verify-no-changes
) (required)