1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-16 07:07:32 -05:00

[AC 482]automatically apply discounts to provider portal orgs (#2801)

* Adding discount coupon on provider org creation

* Change the provider discount Id

* Fixing the whitespace format

* Remove discount at subscription and apply to customer

* resolving a failing test

* Remove white spaces
This commit is contained in:
cyprain-okeke
2023-04-10 14:40:04 +01:00
committed by GitHub
parent 6d7bcd98a9
commit 141c6862ca
4 changed files with 55 additions and 4 deletions

View File

@ -664,7 +664,7 @@ public class OrganizationService : IOrganizationService
{
await _paymentService.PurchaseOrganizationAsync(organization, signup.PaymentMethodType.Value,
signup.PaymentToken, plan, signup.AdditionalStorageGb, signup.AdditionalSeats,
signup.PremiumAccessAddon, signup.TaxInfo);
signup.PremiumAccessAddon, signup.TaxInfo, provider);
}
var ownerId = provider ? default : signup.Owner.Id;