From e60fdbbc7ff091d27abce13208ab0851a42dae90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Fri, 8 Oct 2021 11:46:42 +0300 Subject: [PATCH] added PaymentBackgroundServicesModule --- modules/payment/Payment.sln | 7 +++++++ .../Payment.BackgroundServices.csproj | 14 ++++++++++++++ .../PaymentBackgroundServicesModule.cs | 15 +++++++++++++++ .../PaymentRequests/PaymentRequest.cs | 4 +++- 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 modules/payment/src/Payment.BackgroundServices/Payment.BackgroundServices.csproj create mode 100644 modules/payment/src/Payment.BackgroundServices/PaymentBackgroundServicesModule.cs diff --git a/modules/payment/Payment.sln b/modules/payment/Payment.sln index 03efb75..0366988 100644 --- a/modules/payment/Payment.sln +++ b/modules/payment/Payment.sln @@ -43,6 +43,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "admin", "admin", "{FC718EF0 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Payment.HttpApi.Client", "src\Payment.HttpApi.Client\Payment.HttpApi.Client.csproj", "{3FF65447-69D5-4115-8398-8156FB381215}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Payment.BackgroundServices", "src\Payment.BackgroundServices\Payment.BackgroundServices.csproj", "{98CAA357-46A3-48EC-B5D9-27C706862351}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -97,6 +99,10 @@ Global {3FF65447-69D5-4115-8398-8156FB381215}.Debug|Any CPU.Build.0 = Debug|Any CPU {3FF65447-69D5-4115-8398-8156FB381215}.Release|Any CPU.ActiveCfg = Release|Any CPU {3FF65447-69D5-4115-8398-8156FB381215}.Release|Any CPU.Build.0 = Release|Any CPU + {98CAA357-46A3-48EC-B5D9-27C706862351}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {98CAA357-46A3-48EC-B5D9-27C706862351}.Debug|Any CPU.Build.0 = Debug|Any CPU + {98CAA357-46A3-48EC-B5D9-27C706862351}.Release|Any CPU.ActiveCfg = Release|Any CPU + {98CAA357-46A3-48EC-B5D9-27C706862351}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -120,6 +126,7 @@ Global {90CB5DC4-C040-45C7-8900-9688B26405BC} = {D3FD0217-A8C7-4BAF-BF77-962F1B055515} {FC718EF0-43EB-4767-9578-95FA0B3727A5} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D} {3FF65447-69D5-4115-8398-8156FB381215} = {4EF8B98A-E7A3-48A6-9C1F-10DE32001213} + {98CAA357-46A3-48EC-B5D9-27C706862351} = {E46CF089-D16A-4761-BE24-1B1B1D49225A} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {6AAFA1C6-603E-13FA-45E5-7910AA9F661D} diff --git a/modules/payment/src/Payment.BackgroundServices/Payment.BackgroundServices.csproj b/modules/payment/src/Payment.BackgroundServices/Payment.BackgroundServices.csproj new file mode 100644 index 0000000..b7c107a --- /dev/null +++ b/modules/payment/src/Payment.BackgroundServices/Payment.BackgroundServices.csproj @@ -0,0 +1,14 @@ + + + + + + netstandard2.0 + Payment + + + + + + + diff --git a/modules/payment/src/Payment.BackgroundServices/PaymentBackgroundServicesModule.cs b/modules/payment/src/Payment.BackgroundServices/PaymentBackgroundServicesModule.cs new file mode 100644 index 0000000..e64fb55 --- /dev/null +++ b/modules/payment/src/Payment.BackgroundServices/PaymentBackgroundServicesModule.cs @@ -0,0 +1,15 @@ +using Volo.Abp.Modularity; + +namespace Payment +{ + [DependsOn( + typeof(PaymentDomainModule) + )] + public class PaymentBackgroundServicesModule : AbpModule + { + public override void ConfigureServices(ServiceConfigurationContext context) + { + + } + } +} \ No newline at end of file diff --git a/modules/payment/src/Payment.Domain/PaymentRequests/PaymentRequest.cs b/modules/payment/src/Payment.Domain/PaymentRequests/PaymentRequest.cs index 80049b4..648a24e 100644 --- a/modules/payment/src/Payment.Domain/PaymentRequests/PaymentRequest.cs +++ b/modules/payment/src/Payment.Domain/PaymentRequests/PaymentRequest.cs @@ -5,7 +5,7 @@ using Volo.Abp.Domain.Entities.Auditing; namespace Payment.PaymentRequests { - public class PaymentRequest : CreationAuditedAggregateRoot + public class PaymentRequest : CreationAuditedAggregateRoot, ISoftDelete { [CanBeNull] public string CustomerId { get; private set; } @@ -20,6 +20,8 @@ namespace Payment.PaymentRequests public PaymentRequestState State { get; set; } + public bool IsDeleted { get; set; } + public PaymentRequest( Guid id, [CanBeNull] string customerId,