public void FinalizaPagamento(EndPaymentCommand endPaymentCommand) { try { CheckPinPad(); // Se não foi lançada nenhuma exceção é porque a transação foi finalizada com sucesso CliSiTefMethods.FinalizaFuncaoSiTefInterativo(1, new StringBuilder(endPaymentCommand.CupomFiscal), new StringBuilder(endPaymentCommand.DataFiscal), new StringBuilder(endPaymentCommand.HoraFiscal), null); } catch (Exception e) { throw e; } }
public IActionResult Finaliza([FromBody] EndPaymentCommand endPaymentCommand) { _tefService.FinalizaPagamento(endPaymentCommand); return(Ok()); }