feat: fase 2 - services externos (dte, transbank, email)

- New solution ServicesExternos.slnx with standalone API project
- DteService + DteController (LibreDTE: emitir, generar PDF, consultar folio)
- TransbankService + TransbankController (crear transacción, confirmar, voucher SP)
- EmailService + EmailController (MailKit: send with HTML + attachments)
- Models for DTE, Transbank, Email requests/responses
- Dockerfile + appsettings.json with all service configs
- HttpClient factory for Transbank and LibreDTE
- Build: 0 errors
This commit is contained in:
2026-07-08 10:33:21 -04:00
parent 202a59326b
commit c43dbcce8b
17 changed files with 580 additions and 7 deletions
@@ -0,0 +1,26 @@
namespace ServicesExternos.API.Models;
public class TransbankTransactionRequest
{
public string? BuyOrder { get; set; }
public string? SessionId { get; set; }
public int Amount { get; set; }
public string? ReturnUrl { get; set; }
}
public class TransbankConfirmRequest
{
public string? TokenWs { get; set; }
}
public class VoucherRequest
{
public string Token { get; set; } = string.Empty;
public string AccountingDate { get; set; } = string.Empty;
public string BuyOrder { get; set; } = string.Empty;
public string CardNumber { get; set; } = string.Empty;
public string AuthorizationCode { get; set; } = string.Empty;
public string PaymentType { get; set; } = string.Empty;
public string SharesNumber { get; set; } = string.Empty;
public int Amount { get; set; }
}