mirror of
https://github.com/bitwarden/server.git
synced 2025-05-25 13:24:50 -05:00

* [NO LOGIC] [PM-21104] Organize Core.Billing tax code * Add PreviewTaxAmountCommand and expose through TaxController * Add PreviewTaxAmountCommandTests * Run dotnet format
29 lines
692 B
C#
29 lines
692 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Core.Billing.Tax.Models;
|
|
|
|
namespace Bit.Api.Billing.Models.Requests;
|
|
|
|
public class TaxInformationRequestBody
|
|
{
|
|
[Required]
|
|
public string Country { get; set; }
|
|
[Required]
|
|
public string PostalCode { get; set; }
|
|
public string TaxId { get; set; }
|
|
public string TaxIdType { get; set; }
|
|
public string Line1 { get; set; }
|
|
public string Line2 { get; set; }
|
|
public string City { get; set; }
|
|
public string State { get; set; }
|
|
|
|
public TaxInformation ToDomain() => new(
|
|
Country,
|
|
PostalCode,
|
|
TaxId,
|
|
TaxIdType,
|
|
Line1,
|
|
Line2,
|
|
City,
|
|
State);
|
|
}
|