mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 09:02:48 -05:00
[PM-17540]Do not grant re-subscriptions trial period (#5327)
* Remove trial for restarted subscription Signed-off-by: Cy Okeke <cokeke@bitwarden.com> * Resolve the pr comment on initial change Signed-off-by: Cy Okeke <cokeke@bitwarden.com> * Resolve the issue of not saving payment method * Refactor the taxinfo mapping Signed-off-by: Cy Okeke <cokeke@bitwarden.com> --------- Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
This commit is contained in:
@ -9,6 +9,7 @@ public class SubscriptionSetup
|
||||
public required Plan Plan { get; set; }
|
||||
public required PasswordManager PasswordManagerOptions { get; set; }
|
||||
public SecretsManager? SecretsManagerOptions { get; set; }
|
||||
public bool SkipTrial = false;
|
||||
|
||||
public class PasswordManager
|
||||
{
|
||||
|
@ -379,7 +379,7 @@ public class OrganizationBillingService(
|
||||
["organizationId"] = organizationId.ToString()
|
||||
},
|
||||
OffSession = true,
|
||||
TrialPeriodDays = plan.TrialPeriodDays
|
||||
TrialPeriodDays = subscriptionSetup.SkipTrial ? 0 : plan.TrialPeriodDays
|
||||
};
|
||||
|
||||
return await stripeAdapter.SubscriptionCreateAsync(subscriptionCreateOptions);
|
||||
|
Reference in New Issue
Block a user