diff --git a/src/TechLanches/TechLanches.API/Program.cs b/src/TechLanches/TechLanches.API/Program.cs index 89878bf9..97a90bce 100644 --- a/src/TechLanches/TechLanches.API/Program.cs +++ b/src/TechLanches/TechLanches.API/Program.cs @@ -18,6 +18,7 @@ config.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection"))); // mover para extensão +builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); diff --git a/src/TechLanches/TechLanches.Application/IPagamentoService.cs b/src/TechLanches/TechLanches.Application/IPagamentoService.cs new file mode 100644 index 00000000..e214c9b2 --- /dev/null +++ b/src/TechLanches/TechLanches.Application/IPagamentoService.cs @@ -0,0 +1,20 @@ +namespace TechLanches.Application; + +public interface IPagamentoService +{ + Task RealizarPagamento(int pedidoId, FormaPagamento formaPagamento, decimal valor); +} + +public class FakeCheckoutService : IPagamentoService +{ + public Task RealizarPagamento(int pedidoId, FormaPagamento formaPagamento, decimal valor) + { + //salvar informação de pagamento + return Task.FromResult(true); + } +} + +public enum FormaPagamento +{ + QrCodeMercadoPago +} \ No newline at end of file