Skip to content

Commit

Permalink
Merge pull request #245 from EasyAbp/payment-service-2.5.1
Browse files Browse the repository at this point in the history
Upgrade to PaymentService v2.5.1
  • Loading branch information
gdlcf88 authored Apr 1, 2023
2 parents 1ee1eab + 717c7da commit bf91d41
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 51 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<AbpVersion>7.1.0</AbpVersion>
<EasyAbpAbpTreesModuleVersion>2.10.0</EasyAbpAbpTreesModuleVersion>
<EasyAbpPaymentServiceModuleVersion>2.4.0</EasyAbpPaymentServiceModuleVersion>
<EasyAbpPaymentServiceModuleVersion>2.5.1</EasyAbpPaymentServiceModuleVersion>
<EasyAbpAbpTagHelperPlusModuleVersion>1.4.0</EasyAbpAbpTagHelperPlusModuleVersion>
<EasyAbpBookingServiceModuleVersion>0.5.0</EasyAbpBookingServiceModuleVersion>
<DaprSdkVersion>1.9.0</DaprSdkVersion>
Expand Down
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>3.5.0</Version>
<Version>3.6.0</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public class PaymentDto : ExtensibleFullAuditedEntityDto<Guid>, IPayment
#region Base properties

public Guid UserId { get; set; }

public string PaymentMethod { get; set; }

public string PayeeAccount { get; set; }

public string ExternalTradingCode { get; set; }
Expand All @@ -27,15 +27,16 @@ public class PaymentDto : ExtensibleFullAuditedEntityDto<Guid>, IPayment
public decimal ActualPaymentAmount { get; set; }

public decimal RefundAmount { get; set; }

public decimal PendingRefundAmount { get; set; }

public DateTime? CompletionTime { get; set; }

public DateTime? CanceledTime { get; set; }

#endregion


IEnumerable<IPaymentItem> IPayment.PaymentItems => PaymentItems;
public List<PaymentItemDto> PaymentItems { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,20 @@ public class RefundDto : ExtensibleFullAuditedEntityDto<Guid>, IRefund
public string Currency { get; set; }

public decimal RefundAmount { get; set; }

public string DisplayReason { get; set; }

public string CustomerRemark { get; set; }

public string StaffRemark { get; set; }

public DateTime? CompletedTime { get; set; }

public DateTime? CanceledTime { get; set; }

#endregion


IEnumerable<IRefundItem> IRefund.RefundItems => RefundItems;
public List<RefundItemDto> RefundItems { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class EShopPaymentEto : ExtensibleObject, IPayment, IMultiTenant
public Guid Id { get; set; }

public Guid? TenantId { get; set; }

public Guid UserId { get; set; }

public string PaymentMethod { get; set; }
Expand All @@ -41,6 +41,7 @@ public class EShopPaymentEto : ExtensibleObject, IPayment, IMultiTenant

#endregion

public List<EShopPaymentItemEto> PaymentItems { get; set; } = new List<EShopPaymentItemEto>();
IEnumerable<IPaymentItem> IPayment.PaymentItems => PaymentItems;
public List<EShopPaymentItemEto> PaymentItems { get; set; } = new();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,28 @@ public class EShopRefundEto : ExtensibleObject, IRefund, IMultiTenant
public Guid? TenantId { get; set; }

public Guid PaymentId { get; set; }

public string RefundPaymentMethod { get; set; }

public string ExternalTradingCode { get; set; }

public string Currency { get; set; }

public decimal RefundAmount { get; set; }

public string DisplayReason { get; set; }

public string CustomerRemark { get; set; }

public string StaffRemark { get; set; }

public DateTime? CompletedTime { get; set; }

public DateTime? CanceledTime { get; set; }

#endregion

public List<EShopRefundItemEto> RefundItems { get; set; } = new List<EShopRefundItemEto>();
IEnumerable<IRefundItem> IRefund.RefundItems => RefundItems;
public List<EShopRefundItemEto> RefundItems { get; set; } = new();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,44 +10,44 @@ namespace EasyAbp.EShop.Payments.Payments
public class Payment : FullAuditedAggregateRoot<Guid>, IPayment, IMultiTenant
{
#region Base properties

public virtual Guid? TenantId { get; protected set; }

public virtual Guid UserId { get; protected set; }

[NotNull]
public virtual string PaymentMethod { get; protected set; }

[CanBeNull]
public virtual string PayeeAccount { get; protected set; }

[CanBeNull]
public virtual string ExternalTradingCode { get; protected set; }

[NotNull]
public virtual string Currency { get; protected set; }

public virtual decimal OriginalPaymentAmount { get; protected set; }

public virtual decimal PaymentDiscount { get; protected set; }

public virtual decimal ActualPaymentAmount { get; protected set; }

public virtual decimal RefundAmount { get; protected set; }

public virtual decimal PendingRefundAmount { get; protected set; }

public virtual DateTime? CompletionTime { get; protected set; }

public virtual DateTime? CanceledTime { get; protected set; }


IEnumerable<IPaymentItem> IPayment.PaymentItems => PaymentItems;
public virtual List<PaymentItem> PaymentItems { get; protected set; }

#endregion

protected Payment()
{

}

public void SetPaymentItems(List<PaymentItem> paymentItems)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,41 @@ public class Refund : FullAuditedAggregateRoot<Guid>, IRefund, IMultiTenant
#region Base properties

public virtual Guid? TenantId { get; protected set; }

public virtual Guid PaymentId { get; protected set; }

[NotNull]
public virtual string RefundPaymentMethod { get; protected set; }

[NotNull]
public virtual string ExternalTradingCode { get; protected set; }

[NotNull]
public virtual string Currency { get; protected set; }

public virtual decimal RefundAmount { get; protected set; }

public virtual string DisplayReason { get; protected set; }

[CanBeNull]
public virtual string CustomerRemark { get; protected set; }

[CanBeNull]
public virtual string StaffRemark { get; protected set; }

public virtual DateTime? CompletedTime { get; protected set; }

public virtual DateTime? CanceledTime { get; protected set; }

#endregion


IEnumerable<IRefundItem> IRefund.RefundItems => RefundItems;
public virtual List<RefundItem> RefundItems { get; protected set; }

protected Refund()
{

}

public void SetRefundItems(List<RefundItem> refundItems)
{
RefundItems = refundItems;
Expand Down

0 comments on commit bf91d41

Please sign in to comment.