mirror of
https://github.com/bitwarden/server.git
synced 2026-02-07 17:33:11 +08:00
* Move Api files * Move Core files * Move Infrastructure files * Move Sql Files * Move Api Sync files to Vault * Move test vault files * Update Sql.sqlproj paths * Update Codeowners * Fix vault file paths in sqlproj * Update CipherDetails.sql path in sqlproj * Update Core models and entities namespaces * Update namespaces Core Services and Repositories * Missed service namespaces * Update Api namespaces * Update Infrastructure namespaces * Move infrastructure queries that were missed * Tests namespace updates * Admin and Events namespace updates * Remove unused usings * Remove extra CiphersController usings * Rename folder * Fix CipherDetails namespace * Sqlproj fixes * Move stored procs into folders by table * using order fix
40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Core.Utilities;
|
|
using Bit.Core.Vault.Models.Data;
|
|
|
|
namespace Bit.Api.Vault.Models;
|
|
|
|
public class CipherCardModel
|
|
{
|
|
public CipherCardModel() { }
|
|
|
|
public CipherCardModel(CipherCardData data)
|
|
{
|
|
CardholderName = data.CardholderName;
|
|
Brand = data.Brand;
|
|
Number = data.Number;
|
|
ExpMonth = data.ExpMonth;
|
|
ExpYear = data.ExpYear;
|
|
Code = data.Code;
|
|
}
|
|
|
|
[EncryptedString]
|
|
[EncryptedStringLength(1000)]
|
|
public string CardholderName { get; set; }
|
|
[EncryptedString]
|
|
[EncryptedStringLength(1000)]
|
|
public string Brand { get; set; }
|
|
[EncryptedString]
|
|
[EncryptedStringLength(1000)]
|
|
public string Number { get; set; }
|
|
[EncryptedString]
|
|
[EncryptedStringLength(1000)]
|
|
public string ExpMonth { get; set; }
|
|
[EncryptedString]
|
|
[StringLength(1000)]
|
|
public string ExpYear { get; set; }
|
|
[EncryptedString]
|
|
[EncryptedStringLength(1000)]
|
|
public string Code { get; set; }
|
|
}
|