mirror of
https://github.com/bitwarden/server.git
synced 2025-06-07 19:50:32 -05:00

* [NO LOGIC] [PM-21104] Organize Core.Billing tax code * Add PreviewTaxAmountCommand and expose through TaxController * Add PreviewTaxAmountCommandTests * Run dotnet format
24 lines
596 B
C#
24 lines
596 B
C#
using Bit.Core.Billing.Tax.Models;
|
|
|
|
namespace Bit.Api.Billing.Models.Responses;
|
|
|
|
public record TaxInformationResponse(
|
|
string Country,
|
|
string PostalCode,
|
|
string TaxId,
|
|
string Line1,
|
|
string Line2,
|
|
string City,
|
|
string State)
|
|
{
|
|
public static TaxInformationResponse From(TaxInformation taxInformation)
|
|
=> new(
|
|
taxInformation.Country,
|
|
taxInformation.PostalCode,
|
|
taxInformation.TaxId,
|
|
taxInformation.Line1,
|
|
taxInformation.Line2,
|
|
taxInformation.City,
|
|
taxInformation.State);
|
|
}
|