Paypal paiment model

This commit is contained in:
Paul Schneider 2017-05-07 22:12:04 +02:00
commit 7b9078c6da
9 changed files with 2305 additions and 14 deletions

View file

@ -0,0 +1,45 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Payment {
using YavscLib;
public class PaypalPayment : IBaseTrackedEntity
{
[Required]
public string ExecutorId { get; set; }
[ForeignKey("ExecutorId")]
public virtual ApplicationUser Executor { get; set; }
[Key,Required]
string PaypalPayerId { get; set; }
[Required]
string PaypalPaymentId { get; set; }
string orderReference { get; set; }
[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;
}
}
}