mirror of
https://github.com/bitwarden/server.git
synced 2025-04-21 04:55:08 -05: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,
|
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)
|
if (additionalStorageGb > 0)
|
||||||
{
|
{
|
||||||
subCreateOptions.Items.Add(new SubscriptionItemOptions
|
subCreateOptions.Items.Add(new SubscriptionItemOptions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user