1
0
mirror of https://github.com/bitwarden/server synced 2026-01-15 23:13:56 +00:00

[PM-29598] Create Subscription Upgrade Endpoint (#6787)

* Add the ticket implementation

* Add the unit test

* Fix the lint and test issues

* resolve pr comments

* Fix the error on the test file

* Review suggestion and fixes

* resolve the api access comments

* Gte the key from the client

* Add the gateway type as stripe

* Address the legacy plans issues

* Resolve the misunderstanding

* Add additional storage that we will need if they revert

* Add the previous premium UserId
This commit is contained in:
cyprain-okeke
2026-01-09 16:34:06 +01:00
committed by GitHub
parent b1cf59b1bf
commit e705fe3f3f
7 changed files with 933 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ public static class ServiceCollectionExtensions
services.AddScoped<ICreatePremiumSelfHostedSubscriptionCommand, CreatePremiumSelfHostedSubscriptionCommand>();
services.AddTransient<IPreviewPremiumTaxCommand, PreviewPremiumTaxCommand>();
services.AddScoped<IUpdatePremiumStorageCommand, UpdatePremiumStorageCommand>();
services.AddScoped<IUpgradePremiumToOrganizationCommand, UpgradePremiumToOrganizationCommand>();
}
private static void AddPremiumQueries(this IServiceCollection services)