public IHttpActionResult Capturar(string hash, decimal?valor = null)
        {
            var pedido = pedidoServico.PrimeiroPor(p => p.ListaHistorico.Any(lh => lh.StatusPedido == StatusPedido.AguardandoPagamento && lh.CodigoRetornoTransacao == hash));

            if (pedido == null)
            {
                throw new BusinessRuleException("Pedido não encontrado.");
            }

            var response = _apiTransacaoEbanx.Capturar(pedido, valor);

            return(Ok(response));
        }