mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
Sales Tax for Premium signups (#1087)
* Started charging sales tax on Premium signups * added a line break
This commit is contained in:
parent
9f938f5efd
commit
c9cab74476
@ -444,6 +444,22 @@ namespace Bit.Core.Services
|
||||
Quantity = 1,
|
||||
});
|
||||
|
||||
var taxRates = await _taxRateRepository.GetByLocationAsync(
|
||||
new Bit.Core.Models.Table.TaxRate()
|
||||
{
|
||||
Country = customer.Address.Country,
|
||||
PostalCode = customer.Address.PostalCode
|
||||
}
|
||||
);
|
||||
var taxRate = taxRates.FirstOrDefault();
|
||||
if (taxRate != null)
|
||||
{
|
||||
subCreateOptions.DefaultTaxRates = new List<string>(1)
|
||||
{
|
||||
taxRate.Id
|
||||
};
|
||||
}
|
||||
|
||||
if (additionalStorageGb > 0)
|
||||
{
|
||||
subCreateOptions.Items.Add(new SubscriptionItemOptions
|
||||
|
Loading…
Reference in New Issue
Block a user