mirror of
https://github.com/bitwarden/server
synced 2026-01-01 08:03:23 +00:00
Implemented tax collection for subscriptions (#1017)
* Implemented tax collection for subscriptions * Cleanup for Sales Tax * Cleanup for Sales Tax * Changes a constraint to an index for checking purposes * Added and implemented a ReadById method for TaxRate * Code review fixes for Tax Rate implementation * Code review fixes for Tax Rate implementation * Made the SalesTax migration script rerunnable
This commit is contained in:
11
src/Admin/Models/TaxRateAddEditModel.cs
Normal file
11
src/Admin/Models/TaxRateAddEditModel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Bit.Admin.Models
|
||||
{
|
||||
public class TaxRateAddEditModel
|
||||
{
|
||||
public string StripeTaxRateId { get; set; }
|
||||
public string Country { get; set; }
|
||||
public string State { get; set; }
|
||||
public string PostalCode { get; set; }
|
||||
public decimal Rate { get; set; }
|
||||
}
|
||||
}
|
||||
9
src/Admin/Models/TaxRatesModel.cs
Normal file
9
src/Admin/Models/TaxRatesModel.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Bit.Core.Models.Table;
|
||||
|
||||
namespace Bit.Admin.Models
|
||||
{
|
||||
public class TaxRatesModel: PagedModel<TaxRate>
|
||||
{
|
||||
public string Message { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user