2017-08-29 12:12:45 +02:00
|
|
|
|
using Microsoft.AspNetCore.Identity;
|
2016-11-24 15:31:33 +01:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
2017-01-30 11:35:16 +01:00
|
|
|
|
namespace Identity.API.Models
|
2016-11-24 15:31:33 +01:00
|
|
|
|
{
|
|
|
|
|
// Add profile data for application users by adding properties to the ApplicationUser class
|
|
|
|
|
public class ApplicationUser : IdentityUser
|
|
|
|
|
{
|
2016-12-17 14:41:16 +01:00
|
|
|
|
[Required]
|
2016-11-24 15:31:33 +01:00
|
|
|
|
public string CardNumber { get; set; }
|
2016-12-17 14:41:16 +01:00
|
|
|
|
[Required]
|
2016-11-24 15:31:33 +01:00
|
|
|
|
public string SecurityNumber { get; set; }
|
2016-12-17 14:41:16 +01:00
|
|
|
|
[Required]
|
|
|
|
|
[RegularExpression(@"(0[1-9]|1[0-2])\/[0-9]{2}", ErrorMessage = "Expiration should match a valid MM/YY value")]
|
2016-11-24 15:31:33 +01:00
|
|
|
|
public string Expiration { get; set; }
|
2016-12-17 14:41:16 +01:00
|
|
|
|
[Required]
|
2016-11-24 15:31:33 +01:00
|
|
|
|
public string CardHolderName { get; set; }
|
|
|
|
|
public int CardType { get; set; }
|
2016-12-17 14:41:16 +01:00
|
|
|
|
[Required]
|
2016-11-24 15:31:33 +01:00
|
|
|
|
public string Street { get; set; }
|
2016-12-17 14:41:16 +01:00
|
|
|
|
[Required]
|
2016-11-24 15:31:33 +01:00
|
|
|
|
public string City { get; set; }
|
2016-12-17 14:41:16 +01:00
|
|
|
|
[Required]
|
2016-11-24 15:31:33 +01:00
|
|
|
|
public string State { get; set; }
|
2016-12-17 14:41:16 +01:00
|
|
|
|
[Required]
|
2016-11-24 15:31:33 +01:00
|
|
|
|
public string Country { get; set; }
|
2016-12-17 14:41:16 +01:00
|
|
|
|
[Required]
|
2016-11-24 15:31:33 +01:00
|
|
|
|
public string ZipCode { get; set; }
|
2016-12-17 14:41:16 +01:00
|
|
|
|
[Required]
|
2016-11-24 15:31:33 +01:00
|
|
|
|
public string Name { get; set; }
|
2016-12-17 14:41:16 +01:00
|
|
|
|
[Required]
|
2016-11-24 15:31:33 +01:00
|
|
|
|
public string LastName { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|