Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
EShop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
EShop
Commits
37d907ed
Commit
37d907ed
authored
May 06, 2020
by
gdlcf88
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed properties and removed EasyAbp.EShop.Payments.Abstractions
parent
f0eb205f
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
61 additions
and
65 deletions
+61
-65
EasyAbp.EShop.Payments.Abstractions.csproj
...s.Abstractions/EasyAbp.EShop.Payments.Abstractions.csproj
+0
-10
IPaymentServiceProvider.cs
...actions/EasyAbp/EShop/Payments/IPaymentServiceProvider.cs
+0
-7
FodyWeavers.xml
...s/src/EasyAbp.EShop.Payments.Abstractions/FodyWeavers.xml
+0
-3
FodyWeavers.xsd
...s/src/EasyAbp.EShop.Payments.Abstractions/FodyWeavers.xsd
+0
-30
FreePaymentServiceProvider.cs
...syAbp.EShop.Payments.Domain/FreePaymentServiceProvider.cs
+13
-3
IPaymentServiceProvider.cs
...EShop.Payments.Domain/Payments/IPaymentServiceProvider.cs
+11
-0
Payment.cs
...nts/src/EasyAbp.EShop.Payments.Domain/Payments/Payment.cs
+32
-0
PaymentOrder.cs
...rc/EasyAbp.EShop.Payments.Domain/Payments/PaymentOrder.cs
+5
-5
EasyMall.sln
samples/EasyMall/aspnet-core/EasyMall.sln
+0
-7
No files found.
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Abstractions/EasyAbp.EShop.Payments.Abstractions.csproj
deleted
100644 → 0
View file @
f0eb205f
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\common.props" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace />
</PropertyGroup>
</Project>
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Abstractions/EasyAbp/EShop/Payments/IPaymentServiceProvider.cs
deleted
100644 → 0
View file @
f0eb205f
namespace
EasyAbp.EShop.Payments
{
public
interface
IPaymentsServiceProvider
{
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Abstractions/FodyWeavers.xml
deleted
100644 → 0
View file @
f0eb205f
<Weavers
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"FodyWeavers.xsd"
>
<ConfigureAwait
ContinueOnCapturedContext=
"false"
/>
</Weavers>
\ No newline at end of file
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Abstractions/FodyWeavers.xsd
deleted
100644 → 0
View file @
f0eb205f
<?xml version="1.0" encoding="utf-8"?>
<xs:schema
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
>
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
<xs:element
name=
"Weavers"
>
<xs:complexType>
<xs:all>
<xs:element
name=
"ConfigureAwait"
minOccurs=
"0"
maxOccurs=
"1"
>
<xs:complexType>
<xs:attribute
name=
"ContinueOnCapturedContext"
type=
"xs:boolean"
/>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute
name=
"VerifyAssembly"
type=
"xs:boolean"
>
<xs:annotation>
<xs:documentation>
'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute
name=
"VerifyIgnoreCodes"
type=
"xs:string"
>
<xs:annotation>
<xs:documentation>
A comma-separated list of error codes that can be safely ignored in assembly verification.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute
name=
"GenerateXsd"
type=
"xs:boolean"
>
<xs:annotation>
<xs:documentation>
'false' to turn off automatic generation of the XML Schema file.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
\ No newline at end of file
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/FreePaymentServiceProvider.cs
View file @
37d907ed
namespace
EasyAbp.EShop.Payments
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
EasyAbp.EShop.Payments.Payments
;
using
Microsoft.Extensions.DependencyInjection
;
using
Volo.Abp.DependencyInjection
;
namespace
EasyAbp.EShop.Payments
{
public
class
FreePaymentsServiceProvider
:
IPaymentsServiceProvider
[
Dependency
(
ServiceLifetime
.
Transient
,
TryRegister
=
true
)]
public
class
FreePaymentServiceProvider
:
IPaymentServiceProvider
{
public
async
Task
<
Payment
>
PayForOrderAsync
(
Payment
payment
,
Dictionary
<
string
,
object
>
extraProperties
=
null
)
{
throw
new
System
.
NotImplementedException
();
}
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/Payments/IPaymentServiceProvider.cs
0 → 100644
View file @
37d907ed
using
System
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
namespace
EasyAbp.EShop.Payments.Payments
{
public
interface
IPaymentServiceProvider
{
Task
<
Payment
>
PayForOrderAsync
(
Payment
payment
,
Dictionary
<
string
,
object
>
extraProperties
=
null
);
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/Payment
Records/PaymentRecord
.cs
→
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/Payment
s/Payment
.cs
View file @
37d907ed
using
System
;
using
System.Collections.Generic
;
using
EasyAbp.EShop.Stores.Stores
;
using
JetBrains.Annotations
;
using
Volo.Abp.Domain.Entities.Auditing
;
using
Volo.Abp.MultiTenancy
;
namespace
EasyAbp.EShop.Payments.Payments
Records
namespace
EasyAbp.EShop.Payments.Payments
{
public
class
Payment
sRecord
:
FullAuditedAggregateRoot
<
Guid
>,
IMultiTenant
public
class
Payment
:
FullAuditedAggregateRoot
<
Guid
>,
IMultiTenant
{
public
virtual
Guid
?
TenantId
{
get
;
protected
set
;
}
[
NotNull
]
public
virtual
string
Payment
s
Method
{
get
;
protected
set
;
}
public
virtual
string
PaymentMethod
{
get
;
protected
set
;
}
[
NotNull
]
public
virtual
string
ExternalTradingCode
{
get
;
protected
set
;
}
...
...
@@ -20,14 +19,14 @@ namespace EasyAbp.EShop.Payments.PaymentsRecords
[
NotNull
]
public
virtual
string
Currency
{
get
;
protected
set
;
}
public
virtual
decimal
OriginalPayment
s
Amount
{
get
;
protected
set
;
}
public
virtual
decimal
OriginalPaymentAmount
{
get
;
protected
set
;
}
public
virtual
decimal
Payment
s
Discount
{
get
;
protected
set
;
}
public
virtual
decimal
PaymentDiscount
{
get
;
protected
set
;
}
public
virtual
decimal
ActualPayment
s
Amount
{
get
;
protected
set
;
}
public
virtual
decimal
ActualPaymentAmount
{
get
;
protected
set
;
}
public
virtual
decimal
RefundAmount
{
get
;
protected
set
;
}
public
virtual
List
<
Payment
sRecordOrder
>
PaymentsRecord
Orders
{
get
;
protected
set
;
}
public
virtual
List
<
Payment
Order
>
Payment
Orders
{
get
;
protected
set
;
}
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/Payment
Records/PaymentRecord
Order.cs
→
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/Payment
s/Payment
Order.cs
View file @
37d907ed
...
...
@@ -2,20 +2,20 @@
using
JetBrains.Annotations
;
using
Volo.Abp.Domain.Entities.Auditing
;
namespace
EasyAbp.EShop.Payments.Payments
Records
namespace
EasyAbp.EShop.Payments.Payments
{
public
class
Payment
sRecord
Order
:
FullAuditedEntity
<
Guid
>
public
class
PaymentOrder
:
FullAuditedEntity
<
Guid
>
{
public
virtual
Guid
OrderId
{
get
;
protected
set
;
}
[
NotNull
]
public
virtual
string
Currency
{
get
;
protected
set
;
}
public
virtual
decimal
OriginalPayment
s
Amount
{
get
;
protected
set
;
}
public
virtual
decimal
OriginalPaymentAmount
{
get
;
protected
set
;
}
public
virtual
decimal
Payment
s
Discount
{
get
;
protected
set
;
}
public
virtual
decimal
PaymentDiscount
{
get
;
protected
set
;
}
public
virtual
decimal
ActualPayment
s
Amount
{
get
;
protected
set
;
}
public
virtual
decimal
ActualPaymentAmount
{
get
;
protected
set
;
}
public
virtual
decimal
RefundAmount
{
get
;
protected
set
;
}
}
...
...
samples/EasyMall/aspnet-core/EasyMall.sln
View file @
37d907ed
...
...
@@ -221,8 +221,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyAbp.EShop.Stores.MongoD
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyAbp.EShop.Stores.TestBase", "..\..\..\modules\EasyAbp.EShop.Stores\test\EasyAbp.EShop.Stores.TestBase\EasyAbp.EShop.Stores.TestBase.csproj", "{F2A770E7-17A5-4009-9DE2-703940F34A3D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyAbp.EShop.Payments.Abstractions", "..\..\..\modules\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.Abstractions\EasyAbp.EShop.Payments.Abstractions.csproj", "{4813F498-8331-4C1D-9E6F-47E9CFB803C1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "provider", "provider", "{7D80E979-D0C3-4D6A-8FF0-22733CAA37A3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WeChatPay", "WeChatPay", "{4FF7000A-2CD2-40B9-B2B0-A1EFD501A5B1}"
...
...
@@ -631,10 +629,6 @@ Global
{F2A770E7-17A5-4009-9DE2-703940F34A3D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F2A770E7-17A5-4009-9DE2-703940F34A3D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F2A770E7-17A5-4009-9DE2-703940F34A3D}.Release|Any CPU.Build.0 = Release|Any CPU
{4813F498-8331-4C1D-9E6F-47E9CFB803C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4813F498-8331-4C1D-9E6F-47E9CFB803C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4813F498-8331-4C1D-9E6F-47E9CFB803C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4813F498-8331-4C1D-9E6F-47E9CFB803C1}.Release|Any CPU.Build.0 = Release|Any CPU
{B2C56EF7-AB4A-454B-BC77-0F2178BBD09F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B2C56EF7-AB4A-454B-BC77-0F2178BBD09F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B2C56EF7-AB4A-454B-BC77-0F2178BBD09F}.Release|Any CPU.ActiveCfg = Release|Any CPU
...
...
@@ -806,7 +800,6 @@ Global
{F9F30B96-B456-452A-843F-904E89BB1B58} = {AD00688C-1F70-4439-BCF5-8931989359E0}
{B64703AF-1554-4087-A638-E295444F2F86} = {AD00688C-1F70-4439-BCF5-8931989359E0}
{F2A770E7-17A5-4009-9DE2-703940F34A3D} = {AD00688C-1F70-4439-BCF5-8931989359E0}
{4813F498-8331-4C1D-9E6F-47E9CFB803C1} = {3D87E511-7315-4D3B-B994-A8CEDAF47CBF}
{7D80E979-D0C3-4D6A-8FF0-22733CAA37A3} = {CB8F4FFA-815A-426A-ADCD-C78FB35CBDA7}
{4FF7000A-2CD2-40B9-B2B0-A1EFD501A5B1} = {7D80E979-D0C3-4D6A-8FF0-22733CAA37A3}
{60986AC6-FDD9-4B57-942D-A006A83315CF} = {4FF7000A-2CD2-40B9-B2B0-A1EFD501A5B1}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment