-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
123 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...ntService.Application/EasyAbp/PaymentService/Payments/DuplicatePaymentRequestException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Volo.Abp; | ||
|
||
namespace EasyAbp.PaymentService.Payments | ||
{ | ||
public class DuplicatePaymentRequestException : BusinessException | ||
{ | ||
public DuplicatePaymentRequestException() : base(message: $"An payment item in the payment request is already in progress.") | ||
{ | ||
} | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
.../EasyAbp.PaymentService.Application/EasyAbp/PaymentService/Payments/IPaymentAuthorizer.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
...mentService.Application/EasyAbp/PaymentService/Payments/PaymentItemNotPayableException.cs
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...syAbp/PaymentService/Payments/IPayment.cs → ...syAbp/PaymentService/Payments/IPayment.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
.../src/EasyAbp.PaymentService.Domain.Shared/EasyAbp/PaymentService/Payments/IPaymentItem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using JetBrains.Annotations; | ||
|
||
namespace EasyAbp.PaymentService.Payments | ||
{ | ||
public interface IPaymentItem | ||
{ | ||
string ItemType { get; } | ||
|
||
Guid ItemKey { get; } | ||
|
||
string Currency { get; } | ||
|
||
decimal OriginalPaymentAmount { get; } | ||
|
||
decimal PaymentDiscount { get; } | ||
|
||
decimal ActualPaymentAmount { get; } | ||
|
||
decimal RefundAmount { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...EasyAbp/PaymentService/Refunds/IRefund.cs → ...EasyAbp/PaymentService/Refunds/IRefund.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...rvice/src/EasyAbp.PaymentService.Domain/EasyAbp/PaymentService/Payments/IPaymentEntity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using Volo.Abp.Domain.Entities; | ||
using Volo.Abp.MultiTenancy; | ||
|
||
namespace EasyAbp.PaymentService.Payments | ||
{ | ||
public interface IPaymentEntity : IPayment, IAggregateRoot<Guid>, IMultiTenant | ||
{ | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...e/src/EasyAbp.PaymentService.Domain/EasyAbp/PaymentService/Payments/IPaymentItemEntity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using Volo.Abp.Domain.Entities; | ||
|
||
namespace EasyAbp.PaymentService.Payments | ||
{ | ||
public interface IPaymentItemEntity : IPaymentItem, IEntity<Guid> | ||
{ | ||
|
||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...e/src/EasyAbp.PaymentService.Domain/EasyAbp/PaymentService/Payments/IPaymentRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Volo.Abp.Domain.Repositories; | ||
|
||
namespace EasyAbp.PaymentService.Payments | ||
{ | ||
public interface IPaymentRepository : IRepository<Payment, Guid> | ||
{ | ||
Task<Payment> FindPaymentInProgressByPaymentItem(string paymentItemType, Guid paymentItemKey); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...Service/src/EasyAbp.PaymentService.Domain/EasyAbp/PaymentService/Refunds/IRefundEntity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using Volo.Abp.Domain.Entities; | ||
using Volo.Abp.MultiTenancy; | ||
|
||
namespace EasyAbp.PaymentService.Refunds | ||
{ | ||
public interface IRefundEntity : IRefund, IAggregateRoot<Guid>, IMultiTenant | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters