mirror of
https://github.com/bitwarden/server.git
synced 2025-05-14 08:02:17 -05:00

* [NO LOGIC] [PM-21104] Organize Core.Billing tax code * Add PreviewTaxAmountCommand and expose through TaxController * Add PreviewTaxAmountCommandTests * Run dotnet format
28 lines
647 B
C#
28 lines
647 B
C#
#nullable enable
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Core.Billing.Enums;
|
|
|
|
namespace Bit.Api.Billing.Models.Requests;
|
|
|
|
public class PreviewTaxAmountForOrganizationTrialRequestBody
|
|
{
|
|
[Required]
|
|
public PlanType PlanType { get; set; }
|
|
|
|
[Required]
|
|
public ProductType ProductType { get; set; }
|
|
|
|
[Required] public TaxInformationDTO TaxInformation { get; set; } = null!;
|
|
|
|
public class TaxInformationDTO
|
|
{
|
|
[Required]
|
|
public string Country { get; set; } = null!;
|
|
|
|
[Required]
|
|
public string PostalCode { get; set; } = null!;
|
|
|
|
public string? TaxId { get; set; }
|
|
}
|
|
}
|