Use NVP/SOAP Api from PayPal

This commit is contained in:
Paul Schneider 2017-05-24 23:36:49 +02:00
commit e415e78aaa
33 changed files with 2382 additions and 631 deletions

View file

@ -309,7 +309,7 @@ namespace Yavsc.Models
public DbSet<BankIdentity> BankIdentity { get; set; }
public DbSet<PaypalPayment> PaypalPayments { get; set; }
public DbSet<PayPalPayment> PayPalPayments { get; set; }
public DbSet<Link> Links { get; set; }
}

View file

@ -79,6 +79,6 @@ namespace Yavsc.Models.Billing
public string PaymentId { get; set; }
[ForeignKey("PaymentId"), Display(Name = "Acquittement de la facture")]
public virtual PaypalPayment Regularisation { get; set; }
public virtual PayPalPayment Regularisation { get; set; }
}
}

View file

@ -4,7 +4,6 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Billing;
using Yavsc.Models.Payment;
using Yavsc.Models.Relationship;
using YavscLib.Billing;
@ -56,10 +55,7 @@ namespace Yavsc.Models.Haircut
[DisplayFormat(ConvertEmptyStringToNull = true, NullDisplayText = "[pas d'informations complémentaires]")]
public string AdditionalInfo { get; set; }
public string PaymentId { get; set; }
[ForeignKey("PaymentId"), Display(Name = "Acquittement de la facture")]
public virtual PaypalPayment Regularisation { get; set; }
public override List<IBillItem> GetBillItems()
{

View file

@ -7,10 +7,10 @@ namespace Yavsc.Models.Payment {
using YavscLib;
using Relationship;
public class PaypalPayment : IBaseTrackedEntity
public class PayPalPayment : IBaseTrackedEntity
{
[Required,Key]
public string PaypalPaymentId { get; set; }
public string CreationToken { get; set; }
[Required]
public string ExecutorId { get; set; }