Browse Source

Renamed RefundRecord

pull/49/head
gdlcf88 6 years ago
parent
commit
b95c9e7fdb
  1. 2
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/EShopPaymentDomainModule.cs
  2. 2
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/Payments/FreePaymentServiceProvider.cs
  3. 6
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/Refunds/Refund.cs

2
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/EShopPaymentDomainModule.cs

@ -16,7 +16,7 @@ namespace EasyAbp.EShop.Payments
{
var resolver = context.ServiceProvider.GetService<IPaymentServiceResolver>();
resolver.TryRegisterProviderAsync("Free", typeof(FreePaymentServiceProvider));
resolver.TryRegisterProviderAsync(FreePaymentServiceProvider.PaymentMethod, typeof(FreePaymentServiceProvider));
}
}
}

2
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/Payments/FreePaymentServiceProvider.cs

@ -8,6 +8,8 @@ namespace EasyAbp.EShop.Payments.Payments
[Dependency(ServiceLifetime.Transient, TryRegister = true)]
public class FreePaymentServiceProvider : IPaymentServiceProvider
{
public const string PaymentMethod = "Free";
public FreePaymentServiceProvider()
{

6
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/RefundRecords/RefundRecord.cs → modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/Refunds/Refund.cs

@ -4,9 +4,9 @@ using JetBrains.Annotations;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
namespace EasyAbp.EShop.Payments.RefundRecords
namespace EasyAbp.EShop.Payments.Refunds
{
public class RefundRecord : FullAuditedAggregateRoot<Guid>, IMultiTenant, IMultiStore
public class Refund : FullAuditedAggregateRoot<Guid>, IMultiTenant, IMultiStore
{
public virtual Guid? TenantId { get; protected set; }
@ -15,7 +15,7 @@ namespace EasyAbp.EShop.Payments.RefundRecords
public virtual Guid OrderId { get; protected set; }
[NotNull]
public virtual string RefundMethod { get; protected set; }
public virtual string RefundPaymentMethod { get; protected set; }
[NotNull]
public virtual string ExternalTradingCode { get; protected set; }
Loading…
Cancel
Save