Aprouver le paiement

This commit is contained in:
Paul Schneider 2017-05-15 13:36:14 +02:00
commit 3cf200cfc7
22 changed files with 4608 additions and 39 deletions

View file

@ -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; }
}
}

View file

@ -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; }
}
}

View 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; }
}
}