ACBr.Net.Sat.SatIntegradorMFe.AguardarResposta(string)

Here are the examples of the csharp api class ACBr.Net.Sat.SatIntegradorMFe.AguardarResposta(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

18 Examples 7

1. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string AssociarAssinatura(int numeroSessao, string codigoDeAtivacao, string cnpjValue, string assinaturacnpj)
        {
            try
            {
                var envio = NovoEnvio("AssociarAssinatura", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);
                parametros.AddParametro("cnpjValue", cnpjValue);
                parametros.AddParametro("assinaturaCNPJs", assinaturacnpj);

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

2. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string AtivarSAT(int numeroSessao, int subComando, string codigoDeAtivacao, string cnpj, int cUF)
        {
            try
            {
                var envio = NovoEnvio("AtivarMFe", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("subComando", subComando.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);
                parametros.AddParametro("CNPJ", cnpj);
                parametros.AddParametro("cUF", cUF.ToString());

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

3. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string AtualizarSoftwareSAT(int numeroSessao, string codigoDeAtivacao)
        {
            try
            {
                var envio = NovoEnvio("AtualizarSoftwareMFe", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

4. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string BloquearSAT(int numeroSessao, string codigoDeAtivacao)
        {
            try
            {
                var envio = NovoEnvio("BloquearMFe", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

5. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string CancelarUltimaVenda(int numeroSessao, string codigoDeAtivacao, string chave, string dadosCancelamento)
        {
            try
            {
                var envio = NovoEnvio("CancelarUltimaVenda", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);
                parametros.AddParametro("chave", chave);
                parametros.AddParametro("dadosCancelamento", $"<![CDATA[{dadosCancelamento}]]>");

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

6. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string ComunicarCertificadoIcpBrasil(int numeroSessao, string codigoDeAtivacao, string certificado)
        {
            try
            {
                var envio = NovoEnvio("ComunicarCertificadoICPBRASIL", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);
                parametros.AddParametro("certificado", certificado);

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

7. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string ConsultarNumeroSessao(int numeroSessao, string codigoDeAtivacao, int cNumeroDeSessao)
        {
            try
            {
                var envio = NovoEnvio("ConsultarNumeroSessao", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);
                parametros.AddParametro("cNumeroDeSessao", cNumeroDeSessao.ToString());

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

8. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string ConsultarSAT(int numeroSessao)
        {
            try
            {
                var envio = NovoEnvio("ConsultarMFe", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

9. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string ConsultarStatusOperacional(int numeroSessao, string codigoDeAtivacao)
        {
            try
            {
                var envio = NovoEnvio("ConsultarStatusOperacional", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

10. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string DesbloquearSAT(int numeroSessao, string codigoDeAtivacao)
        {
            try
            {
                var envio = NovoEnvio("DesbloquearMFe", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

11. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string EnviarDadosVenda(int numeroSessao, string codigoDeAtivacao, string dadosVenda)
        {
            try
            {
                var envio = NovoEnvio("EnviarDadosVenda", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);
                parametros.AddParametro("dadosVenda", $"<![CDATA[{dadosVenda}]]>");
                parametros.AddParametro("nrDocumento", numeroSessao.ToString());

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

12. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string ExtrairLogs(int numeroSessao, string codigoDeAtivacao)
        {
            try
            {
                var envio = NovoEnvio("ExtrairLogs", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

13. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string TesteFimAFim(int numeroSessao, string codigoDeAtivacao, string dadosVenda)
        {
            try
            {
                var envio = NovoEnvio("TesteFimAFim", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);
                parametros.AddParametro("dadosVenda", $"<![CDATA[{dadosVenda}]]>");

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

14. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override string TrocarCodigoDeAtivacao(int numeroSessao, string codigoDeAtivacao, int opcao, string novoCodigo, string confNovoCodigo)
        {
            try
            {
                var envio = NovoEnvio("TrocarCodigoDeAtivacao", numeroSessao.ToString());

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("numeroSessao", numeroSessao.ToString());
                parametros.AddParametro("codigoDeAtivacao", codigoDeAtivacao);
                parametros.AddParametro("opcao", opcao.ToString());
                parametros.AddParametro("novoCodigo", novoCodigo);
                parametros.AddParametro("confNovoCodigo", confNovoCodigo);

                EnviarComando(envio);

                var resposta = MFeIntegradorResp.Load(AguardarResposta(numeroSessao.ToString()));

                return resposta.Resposta.Retorno;
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

15. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override RetSatIntegradorMFe VerificarStatusValidador(int numeroSessao, string chaveAcessoValidador, int idFila, string cnpj)
        {
            try
            {
                var envio = NovoEnvio("VerificarStatusValidador", numeroSessao.ToString());

                envio.Componente.Nome = "VFP-e";
                envio.Componente.Metodo.Construtor = new MFeConstrutor();
                envio.Componente.Metodo.Construtor.Parametros.AddParametro("chaveAcessoValidador", chaveAcessoValidador);

                var parametros = envio.Componente.Metodo.Parametros;
                parametros.AddParametro("idFila", idFila.ToString());
                parametros.AddParametro("cnpj", cnpj);

                EnviarComando(envio);

                var xmlEnvio = envio.GetXml();
                var xmlRetorno = AguardarResposta(numeroSessao.ToString());

                return new RetSatIntegradorMFe
                {
                    XmlEnvio = xmlEnvio,
                    XmlRetorno = xmlRetorno
                };
            }
            catch (Exception exception)
            {
                throw new ACBrException(exception, exception.Message);
            }
        }

16. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override RetSatIntegradorMFe RespostaFiscal(int numeroSessao, string chaveAcessoValidador, in/n ..... /n //View Source file for more details /n }

17. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override RetSatIntegradorMFe EnviarPagamento(int numeroSessao, string chaveAcessoValidador, s/n ..... /n //View Source file for more details /n }

18. Example

Project: ACBr.Net.Sat
Source File: SatIntegradorMFe.cs
public override RetSatIntegradorMFe EnviarStatusPagamento(int numeroSessao, string chaveAcessoValida/n ..... /n //View Source file for more details /n }