Use NVP/SOAP Api from PayPal
This commit is contained in:
parent
ec6de91cf0
commit
e415e78aaa
33 changed files with 2382 additions and 631 deletions
|
|
@ -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; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue