Aprouver le paiement
This commit is contained in:
parent
b3d5233d90
commit
3cf200cfc7
22 changed files with 4608 additions and 39 deletions
|
|
@ -50,6 +50,7 @@ namespace Yavsc.Models
|
|||
builder.Entity<CircleMember>().HasKey(c=> new { MemberId = c.MemberId, CircleId = c.CircleId });
|
||||
builder.Entity<DimissClicked>().HasKey(c=>new { uid = c.UserId, notid = c.NotificationId});
|
||||
builder.Entity<HairTaintInstance>().HasKey(ti=>new { ti.TaintId, ti.PrestationId } );
|
||||
builder.Entity<Link>().HasKey(l=>new { l.HRef, l.Method });
|
||||
|
||||
foreach (var et in builder.Model.GetEntityTypes()) {
|
||||
if (et.ClrType.GetInterface("IBaseTrackedEntity")!=null)
|
||||
|
|
@ -307,7 +308,9 @@ namespace Yavsc.Models
|
|||
public DbSet<BrusherProfile> BrusherProfile { get; set; }
|
||||
|
||||
public DbSet<BankIdentity> BankIdentity { get; set; }
|
||||
|
||||
|
||||
public DbSet<PaypalPayment> PaypalPayments { get; set; }
|
||||
|
||||
public DbSet<Link> Links { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models.Payment {
|
||||
using YavscLib;
|
||||
using Relationship;
|
||||
|
||||
public class PaypalPayment : IBaseTrackedEntity
|
||||
{
|
||||
|
|
@ -15,7 +17,6 @@ namespace Yavsc.Models.Payment {
|
|||
[ForeignKey("ExecutorId")]
|
||||
public virtual ApplicationUser Executor { get; set; }
|
||||
|
||||
[Required]
|
||||
public string PaypalPayerId { get; set; }
|
||||
|
||||
public string OrderReference { get; set; }
|
||||
|
|
@ -41,8 +42,9 @@ namespace Yavsc.Models.Payment {
|
|||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public string State { get; set; }
|
||||
|
||||
public virtual List<Link> Links { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
11
Yavsc/Models/Relationship/Link.cs
Normal file
11
Yavsc/Models/Relationship/Link.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace Yavsc.Models.Relationship
|
||||
{
|
||||
public class Link
|
||||
{
|
||||
|
||||
public string HRef { get; set; }
|
||||
public string Rel { get; set; }
|
||||
public string Method { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue