mirror of
https://github.com/bitwarden/server
synced 2025-12-14 15:23:42 +00:00
* Enable `nullable` For Collection * Enable `nullable` For `CollectionCipher` * Enable `nullable` For `CollectionGroup` * Enable `nullable` For `CollectionUser` * Enable `nullable` For `Device` * Enable `nullable` For `Event` * Enable `nullable` For `Folder` * Enable `nullable` For `Installation` * Enable `nullable` For `IRevisable` * Enable `nullable` For `IStorable` * Enable `nullable` For `IStorableSubscriber` * Enable `nullable` For `ITableObject` * Enable `nullable` For `OrganizationApiKey` * Enable `nullable` For `OrganizationConnection` * Enable `nullable` For `OrganizationDomain` * Enable `nullable` For `OrganizationSponsorship` * Enable `nullable` For `Role` * Enable `nullable` For `TaxRate` * Enable `nullable` For `Transaction` * Enable `nullable` For `User`
26 lines
612 B
C#
26 lines
612 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
#nullable enable
|
|
|
|
namespace Bit.Core.Entities;
|
|
|
|
public class TaxRate : ITableObject<string>
|
|
{
|
|
[MaxLength(40)]
|
|
public string Id { get; set; } = null!;
|
|
[MaxLength(50)]
|
|
public string Country { get; set; } = null!;
|
|
[MaxLength(2)]
|
|
public string? State { get; set; }
|
|
[MaxLength(10)]
|
|
public string PostalCode { get; set; } = null!;
|
|
public decimal Rate { get; set; }
|
|
public bool Active { get; set; }
|
|
|
|
public void SetNewId()
|
|
{
|
|
// Id is created by Stripe, should exist before this gets called
|
|
return;
|
|
}
|
|
}
|