yavsc/Yavsc/Models/Payment/PaypalPayment.cs

50 lines
1.2 KiB
C#
Raw Normal View History

2017-05-07 22:12:04 +02:00
using System;
2017-05-15 13:36:14 +02:00
using System.Collections.Generic;
2017-05-07 22:12:04 +02:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Payment {
using YavscLib;
2017-05-15 13:36:14 +02:00
using Relationship;
2017-05-07 22:12:04 +02:00
public class PaypalPayment : IBaseTrackedEntity
{
2017-05-12 12:15:57 +02:00
[Required,Key]
public string PaypalPaymentId { get; set; }
2017-05-07 22:12:04 +02:00
[Required]
2017-05-12 12:15:57 +02:00
public string ExecutorId { get; set; }
2017-05-07 22:12:04 +02:00
[ForeignKey("ExecutorId")]
public virtual ApplicationUser Executor { get; set; }
2017-05-12 12:15:57 +02:00
public string PaypalPayerId { get; set; }
public string OrderReference { get; set; }
2017-05-07 22:12:04 +02:00
[Display(Name="Date de création")]
public DateTime DateCreated
{
get; set;
}
[Display(Name="Createur")]
public string UserCreated
{
get; set;
}
[Display(Name="Date de dernière modification")]
public DateTime DateModified
{
get; set;
}
[Display(Name="Utilisateur ayant modifié le dernier")]
public string UserModified
{
get; set;
}
2017-05-15 13:36:14 +02:00
public string State { get; set; }
2017-05-07 22:12:04 +02:00
2017-05-15 13:36:14 +02:00
public virtual List<Link> Links { get; set; }
}
}