Paypal paiment model
This commit is contained in:
parent
3e6ac9aba7
commit
7b9078c6da
9 changed files with 2305 additions and 14 deletions
|
|
@ -26,8 +26,9 @@ namespace Yavsc.Models
|
|||
using Musical.Profiles;
|
||||
using Workflow.Profiles;
|
||||
using Drawing;
|
||||
using Yavsc.Attributes;
|
||||
using Yavsc.Models.Bank;
|
||||
using Attributes;
|
||||
using Bank;
|
||||
using Payment;
|
||||
|
||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
|
||||
{
|
||||
|
|
@ -306,5 +307,7 @@ namespace Yavsc.Models
|
|||
public DbSet<BrusherProfile> BrusherProfile { get; set; }
|
||||
|
||||
public DbSet<BankIdentity> BankIdentity { get; set; }
|
||||
|
||||
public DbSet<PaypalPayment> PaypalPayments { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
45
Yavsc/Models/Payment/PaypalPayment.cs
Normal file
45
Yavsc/Models/Payment/PaypalPayment.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue