-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
a1fb9e6
commit 32b895a
Showing
55 changed files
with
200 additions
and
204 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
using Bmb.Domain.Core.ValueObjects; | ||
|
||
namespace Bmb.Payment.Application.UseCases; | ||
|
||
public interface ICreatePaymentUseCase | ||
{ | ||
Task<Bmb.Domain.Core.Entities.Payment?> Execute(Guid orderId, PaymentType paymentType); | ||
Task<Domain.Entities.Payment?> Execute(Guid orderId, Domain.ValueObjects.PaymentType paymentType); | ||
} |
4 changes: 2 additions & 2 deletions
4
src/Bmb.Payment.Application/UseCases/IUpdatePaymentStatusUseCase.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,8 +1,8 @@ | ||
using Bmb.Domain.Core.ValueObjects; | ||
using Bmb.Payment.Domain.ValueObjects; | ||
|
||
namespace Bmb.Payment.Application.UseCases; | ||
|
||
public interface IUpdatePaymentStatusUseCase | ||
{ | ||
Task<bool> Execute(Bmb.Domain.Core.Entities.Payment? payment, PaymentStatus status); | ||
Task<bool> Execute(Domain.Entities.Payment? payment, PaymentStatus status); | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/Bmb.Payment.Controllers/Dto/CreateOrderPaymentRequestDto.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
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 was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/Bmb.Payment.Core/Contracts/IPaymentGatewayFactoryMethod.cs
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Bmb.Domain.Core.ValueObjects; | ||
using PaymentStatus = Bmb.Payment.Domain.ValueObjects.PaymentStatus; | ||
using ValueObjects_PaymentStatus = Bmb.Payment.Domain.ValueObjects.PaymentStatus; | ||
|
||
namespace Bmb.Payment.Domain.Contracts; | ||
|
||
public interface IPaymentGateway | ||
{ | ||
Task<Entities.Payment> CreatePaymentAsync(OrderDto order); | ||
|
||
Task<ValueObjects_PaymentStatus?> GetPaymentStatusAsync(string paymentId); | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Bmb.Payment.Domain/Contracts/IPaymentGatewayFactoryMethod.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 Bmb.Domain.Core.ValueObjects; | ||
using PaymentType = Bmb.Payment.Domain.ValueObjects.PaymentType; | ||
using ValueObjects_PaymentType = Bmb.Payment.Domain.ValueObjects.PaymentType; | ||
|
||
namespace Bmb.Payment.Domain.Contracts; | ||
|
||
public interface IPaymentGatewayFactoryMethod | ||
{ | ||
IPaymentGateway Create(ValueObjects_PaymentType paymentType); | ||
} |
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,16 @@ | ||
using Bmb.Domain.Core.ValueObjects; | ||
using PaymentType = Bmb.Payment.Domain.ValueObjects.PaymentType; | ||
using ValueObjects_PaymentType = Bmb.Payment.Domain.ValueObjects.PaymentType; | ||
|
||
namespace Bmb.Payment.Domain.Contracts; | ||
|
||
public interface IPaymentRepository | ||
{ | ||
Task<Entities.Payment> SaveAsync(Entities.Payment payment); | ||
|
||
Task<Entities.Payment?> GetPaymentAsync(PaymentId paymentId); | ||
|
||
Task<Entities.Payment?> GetPaymentAsync(string externalReference, ValueObjects_PaymentType paymentType); | ||
|
||
Task<bool> UpdatePaymentStatusAsync(Entities.Payment payment); | ||
} |
Oops, something went wrong.