br_nfe 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/.travis.yml +0 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +4 -4
- data/LICENSE +0 -0
- data/README.markdown +0 -0
- data/Rakefile +0 -0
- data/br_nfe.gemspec +2 -2
- data/lib/br_nfe.rb +22 -20
- data/lib/br_nfe/active_model/associations.rb +0 -0
- data/lib/br_nfe/active_model/has_many.rb +0 -0
- data/lib/br_nfe/active_model/has_one.rb +0 -0
- data/lib/br_nfe/active_model_base.rb +0 -0
- data/lib/br_nfe/association/have_address.rb +0 -0
- data/lib/br_nfe/association/have_condicao_pagamento.rb +0 -0
- data/lib/br_nfe/association/have_destinatario.rb +0 -0
- data/lib/br_nfe/association/have_emitente.rb +0 -0
- data/lib/br_nfe/base.rb +10 -22
- data/lib/br_nfe/calculos/fatores_de_multiplicacao.rb +0 -0
- data/lib/br_nfe/calculos/modulo11.rb +0 -0
- data/lib/br_nfe/calculos/modulo11_fator_de2a9.rb +0 -0
- data/lib/br_nfe/calculos/modulo11_fator_de2a9_resto_zero.rb +0 -0
- data/lib/br_nfe/condicao_pagamento.rb +0 -0
- data/lib/br_nfe/constants.rb +0 -2
- data/lib/br_nfe/endereco.rb +4 -0
- data/lib/br_nfe/helper/cpf_cnpj.rb +0 -0
- data/lib/br_nfe/helper/string_methods.rb +0 -0
- data/lib/br_nfe/person.rb +1 -0
- data/lib/br_nfe/product/destinatario.rb +3 -0
- data/lib/br_nfe/product/emitente.rb +0 -0
- data/lib/br_nfe/product/evento/base.rb +0 -0
- data/lib/br_nfe/product/evento/cancelamento.rb +0 -0
- data/lib/br_nfe/product/nf_xml_value.rb +1 -1
- data/lib/br_nfe/product/nfe/adicao_importacao.rb +0 -0
- data/lib/br_nfe/product/nfe/cobranca/duplicata.rb +0 -0
- data/lib/br_nfe/product/nfe/cobranca/fatura.rb +0 -0
- data/lib/br_nfe/product/nfe/cobranca/pagamento.rb +13 -0
- data/lib/br_nfe/product/nfe/declaracao_importacao.rb +0 -0
- data/lib/br_nfe/product/nfe/detalhe_exportacao.rb +0 -0
- data/lib/br_nfe/product/nfe/item.rb +0 -0
- data/lib/br_nfe/product/nfe/item_tax/cofins.rb +0 -0
- data/lib/br_nfe/product/nfe/item_tax/cofins_st.rb +0 -0
- data/lib/br_nfe/product/nfe/item_tax/icms.rb +0 -0
- data/lib/br_nfe/product/nfe/item_tax/icms_uf_destino.rb +0 -0
- data/lib/br_nfe/product/nfe/item_tax/importacao.rb +0 -0
- data/lib/br_nfe/product/nfe/item_tax/ipi.rb +0 -0
- data/lib/br_nfe/product/nfe/item_tax/issqn.rb +0 -0
- data/lib/br_nfe/product/nfe/item_tax/pis.rb +0 -0
- data/lib/br_nfe/product/nfe/item_tax/pis_st.rb +0 -0
- data/lib/br_nfe/product/nfe/processo_referencia.rb +0 -0
- data/lib/br_nfe/product/nfe/transporte/base.rb +0 -0
- data/lib/br_nfe/product/nfe/transporte/transportador.rb +0 -0
- data/lib/br_nfe/product/nfe/transporte/veiculo.rb +0 -0
- data/lib/br_nfe/product/nfe/transporte/volume.rb +0 -0
- data/lib/br_nfe/product/nota_fiscal.rb +5 -0
- data/lib/br_nfe/product/operation/base.rb +118 -44
- data/lib/br_nfe/product/operation/nfe_autorizacao.rb +3 -29
- data/lib/br_nfe/product/operation/nfe_consulta_protocolo.rb +2 -27
- data/lib/br_nfe/product/operation/nfe_download_nf.rb +6 -28
- data/lib/br_nfe/product/operation/nfe_inutilizacao.rb +2 -27
- data/lib/br_nfe/product/operation/nfe_recepcao_evento.rb +6 -27
- data/lib/br_nfe/product/operation/nfe_ret_autorizacao.rb +2 -27
- data/lib/br_nfe/product/operation/nfe_status_servico.rb +2 -27
- data/lib/br_nfe/product/reader/destinatario.rb +39 -0
- data/lib/br_nfe/product/reader/emitente.rb +39 -0
- data/lib/br_nfe/product/reader/endereco_retirada_entrega.rb +27 -0
- data/lib/br_nfe/product/reader/fatura.rb +41 -0
- data/lib/br_nfe/product/reader/item.rb +236 -0
- data/lib/br_nfe/product/reader/nfe.rb +200 -0
- data/lib/br_nfe/product/reader/transporte.rb +79 -0
- data/lib/br_nfe/product/response/base.rb +1 -1
- data/lib/br_nfe/product/response/build/base.rb +19 -9
- data/lib/br_nfe/product/response/build/nfe_autorizacao.rb +27 -15
- data/lib/br_nfe/product/response/build/nfe_consulta_protocolo.rb +35 -38
- data/lib/br_nfe/product/response/build/nfe_inutilizacao.rb +18 -16
- data/lib/br_nfe/product/response/build/nfe_recepcao_evento.rb +96 -0
- data/lib/br_nfe/product/response/build/nfe_ret_autorizacao.rb +11 -8
- data/lib/br_nfe/product/response/build/nfe_status_servico.rb +13 -10
- data/lib/br_nfe/product/response/event.rb +24 -3
- data/lib/br_nfe/product/response/nfe_autorizacao.rb +3 -2
- data/lib/br_nfe/product/response/nfe_consulta_protocolo.rb +1 -0
- data/lib/br_nfe/product/response/nfe_inutilizacao.rb +0 -0
- data/lib/br_nfe/product/response/nfe_recepcao_evento.rb +20 -0
- data/lib/br_nfe/product/response/nfe_ret_autorizacao.rb +0 -0
- data/lib/br_nfe/product/response/nfe_status_servico.rb +0 -0
- data/lib/br_nfe/product/xml/_signed_info_sh1.xml.slim +0 -0
- data/lib/br_nfe/product/xml/_tc_cpf_cnpj.xml.slim +0 -0
- data/lib/br_nfe/product/xml/signature_sh1.xml.slim +0 -0
- data/lib/br_nfe/product/xml/soap_env.xml.slim +1 -1
- data/lib/br_nfe/product/xml/v1_00/evento/infEventoCancelamento.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v1_00/root/NfeDownloadNf.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v1_00/root/NfeRecepcaoEvento.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/_tc_endereco.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/_tc_infNFe.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infInut.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/NFe.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_cobr.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_dest.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_det.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_emit.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_entrega.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_exporta.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_ide.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_infAdic.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_retirada.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_total.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_transp.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/_tc_imposto.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/_tc_prod.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS00.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS10.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS101.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS102.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS20.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS201.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS202.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS30.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS40.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS500.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS51.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS60.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS70.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS90.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS900.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_COFINS.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_COFINS_ST.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_ICMS.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_II.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_IPI.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_PIS.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_PIS_ST.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/prod/_tc_di.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_retTransp.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_transporta.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_vol.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/root/NfeAutorizacao.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/root/NfeInutilizacao.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/root/NfeRetAutorizacao.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/root/NfeStatusServico.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_01/root/NfeConsultaProtocolo.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/_tc_infNFe.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_dest.xml.slim +1 -1
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_det.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_exporta.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_ide.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_pag.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_total.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/_tc_imposto.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/_tc_prod.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS20.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS30.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS40.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS51.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS70.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS90.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/_tc_ICMSUFDest.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/_tc_ISSQN.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/prod/_tc_det_export.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/prod/_tc_di.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/root/NfeAutorizacao.xml.slim +0 -0
- data/lib/br_nfe/service/association/have_intermediario.rb +0 -0
- data/lib/br_nfe/service/association/have_rps.rb +0 -0
- data/lib/br_nfe/service/base.rb +0 -0
- data/lib/br_nfe/service/betha/base.rb +0 -0
- data/lib/br_nfe/service/betha/v1/cancela_nfse.rb +1 -1
- data/lib/br_nfe/service/betha/v1/consulta_lote_rps.rb +1 -1
- data/lib/br_nfe/service/betha/v1/consulta_nfs_por_rps.rb +1 -1
- data/lib/br_nfe/service/betha/v1/consulta_nfse.rb +1 -1
- data/lib/br_nfe/service/betha/v1/consulta_situacao_lote_rps.rb +1 -1
- data/lib/br_nfe/service/betha/v1/gateway.rb +0 -0
- data/lib/br_nfe/service/betha/v1/recepcao_lote_rps.rb +1 -1
- data/lib/br_nfe/service/betha/v1/xml/_tc_identificacao_prestador.xml.slim +0 -0
- data/lib/br_nfe/service/betha/v1/xml/_tc_pedido_cancelamento.xml.slim +0 -0
- data/lib/br_nfe/service/concerns/rules/cancelamento_nfs.rb +0 -0
- data/lib/br_nfe/service/concerns/rules/consulta_nfs_por_rps.rb +0 -0
- data/lib/br_nfe/service/concerns/rules/consulta_nfse.rb +0 -0
- data/lib/br_nfe/service/concerns/rules/recepcao_lote_rps.rb +0 -0
- data/lib/br_nfe/service/concerns/values_ts/service_v1.rb +0 -0
- data/lib/br_nfe/service/destinatario.rb +0 -0
- data/lib/br_nfe/service/emitente.rb +0 -0
- data/lib/br_nfe/service/intermediario.rb +0 -0
- data/lib/br_nfe/service/item.rb +0 -0
- data/lib/br_nfe/service/response/build/base.rb +0 -0
- data/lib/br_nfe/service/response/build/cancelamento.rb +0 -0
- data/lib/br_nfe/service/response/build/consulta_lote_rps.rb +0 -0
- data/lib/br_nfe/service/response/build/consulta_nfs_por_rps.rb +0 -0
- data/lib/br_nfe/service/response/build/consulta_nfse.rb +0 -0
- data/lib/br_nfe/service/response/build/consulta_situacao_lote_rps.rb +0 -0
- data/lib/br_nfe/service/response/build/invoice_build.rb +0 -0
- data/lib/br_nfe/service/response/build/recepcao_lote_rps.rb +0 -0
- data/lib/br_nfe/service/response/cancelamento.rb +0 -0
- data/lib/br_nfe/service/response/consulta_lote_rps.rb +0 -0
- data/lib/br_nfe/service/response/consulta_nfs_por_rps.rb +0 -0
- data/lib/br_nfe/service/response/consulta_nfse.rb +0 -0
- data/lib/br_nfe/service/response/consulta_situacao_lote_rps.rb +0 -0
- data/lib/br_nfe/service/response/default.rb +0 -0
- data/lib/br_nfe/service/response/nota_fiscal.rb +0 -0
- data/lib/br_nfe/service/response/paths/v1/tc_nfse.rb +0 -0
- data/lib/br_nfe/service/response/recepcao_lote_rps.rb +0 -0
- data/lib/br_nfe/service/rps.rb +0 -0
- data/lib/br_nfe/service/sc/florianopolis/base.rb +0 -0
- data/lib/br_nfe/service/sc/florianopolis/cancellation.rb +0 -0
- data/lib/br_nfe/service/sc/florianopolis/emission_rps.rb +0 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/_address.xml.slim +0 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/_contact.xml.slim +0 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/_service_item.xml.slim +0 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/cancellation.xml.slim +0 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/inf_requisicao.xml.slim +0 -0
- data/lib/br_nfe/service/simpliss/v1/base.rb +1 -1
- data/lib/br_nfe/service/simpliss/v1/cancela_nfse.rb +0 -0
- data/lib/br_nfe/service/simpliss/v1/consulta_lote_rps.rb +0 -0
- data/lib/br_nfe/service/simpliss/v1/consulta_nfs_por_rps.rb +0 -0
- data/lib/br_nfe/service/simpliss/v1/consulta_nfse.rb +0 -0
- data/lib/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps.rb +0 -0
- data/lib/br_nfe/service/simpliss/v1/recepcao_lote_rps.rb +0 -0
- data/lib/br_nfe/service/simpliss/v1/xml/_login.xml.slim +0 -0
- data/lib/br_nfe/service/simpliss/v1/xml/_tc_dados_servico.xml.slim +0 -0
- data/lib/br_nfe/service/simpliss/v1/xml/_tc_item_servico.xml.slim +0 -0
- data/lib/br_nfe/service/simpliss/v1/xml/servico_cancelar_nfse_envio.xml.slim +0 -0
- data/lib/br_nfe/service/simpliss/v1/xml/servico_consultar_lote_rps_envio.xml.slim +0 -0
- data/lib/br_nfe/service/simpliss/v1/xml/servico_consultar_nfse_envio.xml.slim +0 -0
- data/lib/br_nfe/service/simpliss/v1/xml/servico_consultar_nfse_rps_envio.xml.slim +0 -0
- data/lib/br_nfe/service/simpliss/v1/xml/servico_consultar_situacao_lote_rps_envio.xml.slim +0 -0
- data/lib/br_nfe/service/simpliss/v1/xml/servico_enviar_lote_rps_envio.xml.slim +0 -0
- data/lib/br_nfe/service/thema/v1/base.rb +0 -0
- data/lib/br_nfe/service/thema/v1/cancela_nfse.rb +1 -1
- data/lib/br_nfe/service/thema/v1/consulta_lote_rps.rb +1 -1
- data/lib/br_nfe/service/thema/v1/consulta_nfs_por_rps.rb +1 -1
- data/lib/br_nfe/service/thema/v1/consulta_nfse.rb +1 -1
- data/lib/br_nfe/service/thema/v1/consulta_situacao_lote_rps.rb +0 -0
- data/lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb +1 -1
- data/lib/br_nfe/service/thema/v1/recepcao_lote_rps_limitado.rb +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_contato.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_cpf_cnpj.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_construcao_civil.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_prestador.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_servico.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_tomador.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_endereco.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_intermediario_servico.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_nfse.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_orgao_gerador.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_prestador.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_rps.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_tomador.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_inf_pedido_cancelamento.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_inf_rps.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_lote_rps.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_pedido_cancelamento.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_rps.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_valores.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/servico_cancelar_nfse_envio.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/servico_consultar_lote_rps_envio.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/servico_consultar_nfse_envio.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/servico_consultar_nfse_rps_envio.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/servico_consultar_situacao_lote_rps_envio.xml.slim +0 -0
- data/lib/br_nfe/service/xml/v1/servico_enviar_lote_rps_envio.xml.slim +0 -0
- data/lib/br_nfe/version.rb +1 -1
- data/lib/br_nfe/xml/_signed_info_sh1.xml.slim +0 -0
- data/lib/br_nfe/xml/signature_sh1.xml.slim +0 -0
- data/lib/br_nfe/xml/soap_env.xml.slim +0 -0
- data/lib/config/locales/br_nfe/en/product/nfe/cobranca/fatura.yml +0 -0
- data/lib/config/locales/br_nfe/en/product/nfe/declaracao_importacao.yml +0 -0
- data/lib/config/locales/br_nfe/en/product/nfe/item.yml +0 -0
- data/lib/config/locales/br_nfe/en/product/nfe/item_tax/icms_uf_destino.yml +0 -0
- data/lib/config/locales/br_nfe/en/product/nfe/transporte/base.yml +0 -0
- data/lib/config/locales/br_nfe/en/product/nota_fiscal.yml +0 -0
- data/lib/config/locales/br_nfe/en/product/operation/nfe_autorizacao.yml +0 -0
- data/lib/config/locales/br_nfe/en/product/operation/nfe_recepcao_evento.yml +0 -0
- data/lib/config/locales/br_nfe/pt-BR/product/nfe/cobranca/fatura.yml +0 -0
- data/lib/config/locales/br_nfe/pt-BR/product/nfe/declaracao_importacao.yml +0 -0
- data/lib/config/locales/br_nfe/pt-BR/product/nfe/item.yml +0 -0
- data/lib/config/locales/br_nfe/pt-BR/product/nfe/item_tax/icms_uf_destino.yml +0 -0
- data/lib/config/locales/br_nfe/pt-BR/product/nfe/transporte/base.yml +0 -0
- data/lib/config/locales/br_nfe/pt-BR/product/nota_fiscal.yml +0 -0
- data/lib/config/locales/br_nfe/pt-BR/product/operation/nfe_autorizacao.yml +0 -0
- data/lib/config/locales/br_nfe/pt-BR/product/operation/nfe_recepcao_evento.yml +0 -0
- data/lib/config/settings/nfe/reader_xml_paths.yml +372 -0
- data/lib/config/settings/nfe/v3_10/operation.yml +843 -0
- data/lib/config/settings/nfe/v3_10/soap_client.yml +804 -0
- data/lib/config/settings/nfe/v3_10/xml_paths.yml +577 -0
- data/lib/config/settings/nfse.yml +3 -0
- data/test/br_nfe/association/have_address_test.rb +0 -0
- data/test/br_nfe/association/have_condicao_pagamento_test.rb +0 -0
- data/test/br_nfe/association/have_destinatario_test.rb +0 -0
- data/test/br_nfe/association/have_emitente_test.rb +0 -0
- data/test/br_nfe/base_test.rb +26 -65
- data/test/br_nfe/condicao_pagamento_test.rb +0 -0
- data/test/br_nfe/endereco_test.rb +0 -0
- data/test/br_nfe/helper/cpf_cnpj_test.rb +0 -0
- data/test/br_nfe/person_test.rb +0 -0
- data/test/br_nfe/product/destinatario_test.rb +0 -0
- data/test/br_nfe/product/emitente_test.rb +0 -0
- data/test/br_nfe/product/evento/base_test.rb +0 -0
- data/test/br_nfe/product/evento/cancelamento_test.rb +0 -0
- data/test/br_nfe/product/nfe/adicao_importacao_test.rb +0 -0
- data/test/br_nfe/product/nfe/cobranca/duplicata_test.rb +0 -0
- data/test/br_nfe/product/nfe/cobranca/fatura_test.rb +0 -0
- data/test/br_nfe/product/nfe/cobranca/pagamento_test.rb +0 -0
- data/test/br_nfe/product/nfe/declaracao_importacao_test.rb +0 -0
- data/test/br_nfe/product/nfe/detalhe_exportacao_test.rb +0 -0
- data/test/br_nfe/product/nfe/item_tax/cofins_st_test.rb +0 -0
- data/test/br_nfe/product/nfe/item_tax/cofins_test.rb +0 -0
- data/test/br_nfe/product/nfe/item_tax/icms_test.rb +0 -0
- data/test/br_nfe/product/nfe/item_tax/icms_uf_destino_test.rb +0 -0
- data/test/br_nfe/product/nfe/item_tax/importacao_test.rb +0 -0
- data/test/br_nfe/product/nfe/item_tax/ipi_test.rb +0 -0
- data/test/br_nfe/product/nfe/item_tax/issqn_test.rb +0 -0
- data/test/br_nfe/product/nfe/item_tax/pis_st_test.rb +0 -0
- data/test/br_nfe/product/nfe/item_tax/pis_test.rb +0 -0
- data/test/br_nfe/product/nfe/item_test.rb +0 -0
- data/test/br_nfe/product/nfe/processo_referencia_test.rb +0 -0
- data/test/br_nfe/product/nfe/transporte/base_test.rb +0 -0
- data/test/br_nfe/product/nfe/transporte/transportador_test.rb +0 -0
- data/test/br_nfe/product/nfe/transporte/veiculo_test.rb +0 -0
- data/test/br_nfe/product/nfe/transporte/volume_test.rb +0 -0
- data/test/br_nfe/product/nota_fiscal_test.rb +0 -0
- data/test/br_nfe/product/operation/base_test.rb +197 -175
- data/test/br_nfe/product/operation/nfe_autorizacao_test.rb +719 -282
- data/test/br_nfe/product/operation/nfe_consulta_protocolo_test.rb +745 -305
- data/test/br_nfe/product/operation/nfe_download_nf_test.rb +0 -51
- data/test/br_nfe/product/operation/nfe_inutilizacao_test.rb +505 -88
- data/test/br_nfe/product/operation/nfe_recepcao_evento_test.rb +83 -36
- data/test/br_nfe/product/operation/nfe_ret_autorizacao_test.rb +683 -244
- data/test/br_nfe/product/operation/nfe_status_servico_test.rb +515 -74
- data/test/br_nfe/product/reader/nfe_test.rb +2535 -0
- data/test/br_nfe/product/response/base_test.rb +0 -0
- data/test/br_nfe/product/response/build/base_test.rb +0 -0
- data/test/br_nfe/product/response/nfe_ret_autorizacao_test.rb +0 -0
- data/test/br_nfe/service/association/have_intermediario_test.rb +0 -0
- data/test/br_nfe/service/association/have_rps_test.rb +0 -0
- data/test/br_nfe/service/base_test.rb +1 -1
- data/test/br_nfe/service/betha/base_test.rb +0 -0
- data/test/br_nfe/service/betha/v1/cancela_nfse_test.rb +4 -4
- data/test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb +4 -4
- data/test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb +4 -4
- data/test/br_nfe/service/betha/v1/consulta_nfse_test.rb +4 -4
- data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +4 -4
- data/test/br_nfe/service/betha/v1/gateway_test.rb +0 -0
- data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +4 -4
- data/test/br_nfe/service/betha/v1/xsd/TiposNFe_v01.xsd +0 -0
- data/test/br_nfe/service/betha/v1/xsd/nfse_v01.xsd +0 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_cancelar_nfse_envio_v01.xsd +0 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_consultar_lote_rps_envio_v01.xsd +0 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_consultar_nfse_envio_v01.xsd +0 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_consultar_nfse_rps_envio_v01.xsd +0 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_consultar_situacao_lote_rps_envio_v01.xsd +0 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_enviar_lote_rps_envio_v01.xsd +0 -0
- data/test/br_nfe/service/betha/v1/xsd/xmldsig-core-schema.xsd +0 -0
- data/test/br_nfe/service/betha/v1/xsd/xmldsig-core-schema_v01.xsd +0 -0
- data/test/br_nfe/service/concerns/rules/cancelamento_nfs_test.rb +0 -0
- data/test/br_nfe/service/concerns/rules/consulta_nfs_por_rps_test.rb +0 -0
- data/test/br_nfe/service/concerns/rules/consulta_nfse_test.rb +0 -0
- data/test/br_nfe/service/concerns/rules/recepcao_lote_rps_test.rb +0 -0
- data/test/br_nfe/service/concerns/values_ts/service_v1_test.rb +0 -0
- data/test/br_nfe/service/destinatario_test.rb +0 -0
- data/test/br_nfe/service/emitente_test.rb +0 -0
- data/test/br_nfe/service/intermediario_test.rb +0 -0
- data/test/br_nfe/service/item_test.rb +0 -0
- data/test/br_nfe/service/response/build/base_test.rb +0 -0
- data/test/br_nfe/service/response/default_test.rb +0 -0
- data/test/br_nfe/service/response/nota_fiscal_test.rb +0 -0
- data/test/br_nfe/service/response/paths/v1/tc_nfse_test.rb +0 -0
- data/test/br_nfe/service/rps_test.rb +0 -0
- data/test/br_nfe/service/sc/florianopolis/XSD/TiposNFSe_v2.0.xsd +0 -0
- data/test/br_nfe/service/sc/florianopolis/XSD/xmldsig-core-schema.xsd +0 -0
- data/test/br_nfe/service/sc/florianopolis/base_test.rb +0 -0
- data/test/br_nfe/service/sc/florianopolis/cancellation_test.rb +0 -0
- data/test/br_nfe/service/sc/florianopolis/emission_rps_test.rb +0 -0
- data/test/br_nfe/service/simpliss/v1/base_test.rb +3 -3
- data/test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb +1 -1
- data/test/br_nfe/service/simpliss/v1/consulta_lote_rps_test.rb +1 -1
- data/test/br_nfe/service/simpliss/v1/consulta_nfs_por_rps_test.rb +1 -1
- data/test/br_nfe/service/simpliss/v1/consulta_nfse_test.rb +1 -1
- data/test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb +1 -1
- data/test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb +1 -1
- data/test/br_nfe/service/simpliss/v1/xsd/nfse_3.xsd +0 -0
- data/test/br_nfe/service/simpliss/v1/xsd/xmldsig-core-schema20020212.xsd +0 -0
- data/test/br_nfe/service/thema/v1/base_test.rb +0 -0
- data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +6 -6
- data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +6 -6
- data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +6 -6
- data/test/br_nfe/service/thema/v1/consulta_nfse_test.rb +6 -6
- data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +6 -6
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb +6 -6
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +6 -6
- data/test/br_nfe/service/thema/v1/xsd/nfse.xsd +0 -0
- data/test/br_nfe/service/thema/v1/xsd/xmldsig-core-schema20020212.xsd +0 -0
- data/test/br_nfe/service/xsd/v1/nfse.xsd +0 -0
- data/test/br_nfe/service/xsd/v1/xmldsig-core-schema20020212.xsd +0 -0
- data/test/cert.pfx +0 -0
- data/test/factories/base.rb +0 -0
- data/test/factories/condicao_pagamento.rb +0 -0
- data/test/factories/endereco.rb +0 -0
- data/test/factories/person.rb +0 -0
- data/test/factories/product/destinatario.rb +0 -0
- data/test/factories/product/emitente.rb +0 -0
- data/test/factories/product/evento/base.rb +0 -0
- data/test/factories/product/evento/cancelamento.rb +0 -0
- data/test/factories/product/nfe/adicao_importacao.rb +0 -0
- data/test/factories/product/nfe/cobranca/duplicata.rb +0 -0
- data/test/factories/product/nfe/cobranca/fatura.rb +0 -0
- data/test/factories/product/nfe/cobranca/pagamento.rb +0 -0
- data/test/factories/product/nfe/declaracao_importacao.rb +0 -0
- data/test/factories/product/nfe/detalhe_exportacao.rb +0 -0
- data/test/factories/product/nfe/item.rb +0 -0
- data/test/factories/product/nfe/item_tax/cofins.rb +0 -0
- data/test/factories/product/nfe/item_tax/cofins_st.rb +0 -0
- data/test/factories/product/nfe/item_tax/icms.rb +0 -0
- data/test/factories/product/nfe/item_tax/icms_uf_destino.rb +0 -0
- data/test/factories/product/nfe/item_tax/importacao.rb +0 -0
- data/test/factories/product/nfe/item_tax/ipi.rb +0 -0
- data/test/factories/product/nfe/item_tax/issqn.rb +0 -0
- data/test/factories/product/nfe/item_tax/pis.rb +0 -0
- data/test/factories/product/nfe/item_tax/pis_st.rb +0 -0
- data/test/factories/product/nfe/processo_referencia.rb +0 -0
- data/test/factories/product/nfe/transporte/base.rb +0 -0
- data/test/factories/product/nfe/transporte/transportador.rb +0 -0
- data/test/factories/product/nfe/transporte/veiculo.rb +0 -0
- data/test/factories/product/nfe/transporte/volume.rb +0 -0
- data/test/factories/product/nota_fiscal.rb +0 -0
- data/test/factories/product/operation/base.rb +0 -0
- data/test/factories/product/operation/nfe_autorizacao.rb +0 -0
- data/test/factories/product/operation/nfe_consulta_protocolo.rb +0 -0
- data/test/factories/product/operation/nfe_download_nf.rb +0 -0
- data/test/factories/product/operation/nfe_inutilizacao.rb +0 -0
- data/test/factories/product/operation/nfe_recepcao_evento.rb +0 -0
- data/test/factories/product/operation/nfe_ret_autorizacao.rb +0 -0
- data/test/factories/product/operation/nfe_status_servico.rb +0 -0
- data/test/factories/product/response/base.rb +0 -0
- data/test/factories/product/response/build/base.rb +0 -0
- data/test/factories/product/response/nfe_ret_autorizacao.rb +0 -0
- data/test/factories/service/base.rb +0 -0
- data/test/factories/service/betha/base.rb +0 -0
- data/test/factories/service/betha/v1/cancela_nfse.rb +0 -0
- data/test/factories/service/betha/v1/consulta_lote_rps.rb +0 -0
- data/test/factories/service/betha/v1/consulta_nfs_por_rps.rb +0 -0
- data/test/factories/service/betha/v1/consulta_nfse.rb +0 -0
- data/test/factories/service/betha/v1/consulta_situacao_lote_rps.rb +0 -0
- data/test/factories/service/betha/v1/gateway.rb +0 -0
- data/test/factories/service/betha/v1/recepcao_lote_rps.rb +0 -0
- data/test/factories/service/destinatario.rb +0 -0
- data/test/factories/service/emitente.rb +0 -0
- data/test/factories/service/intermediario.rb +0 -0
- data/test/factories/service/item.rb +0 -0
- data/test/factories/service/response/build_response.rb +0 -0
- data/test/factories/service/response/default.rb +0 -0
- data/test/factories/service/response/nota_fiscal.rb +0 -0
- data/test/factories/service/rps.rb +0 -0
- data/test/factories/service/sc/florianopolis/base.rb +0 -0
- data/test/factories/service/sc/florianopolis/cancellation.rb +0 -0
- data/test/factories/service/sc/florianopolis/emission_rps.rb +0 -0
- data/test/factories/service/simpliss/v1/base.rb +0 -0
- data/test/factories/service/simpliss/v1/cancela_nfse.rb +0 -0
- data/test/factories/service/simpliss/v1/consulta_lote_rps.rb +0 -0
- data/test/factories/service/simpliss/v1/consulta_nfs_por_rps.rb +0 -0
- data/test/factories/service/simpliss/v1/consulta_nfse.rb +0 -0
- data/test/factories/service/simpliss/v1/consulta_situacao_lote_rps.rb +0 -0
- data/test/factories/service/simpliss/v1/recepcao_lote_rps.rb +0 -0
- data/test/factories/service/thema/v1/base.rb +0 -0
- data/test/factories/service/thema/v1/cancela_nfse.rb +0 -0
- data/test/factories/service/thema/v1/consulta_lote_rps.rb +0 -0
- data/test/factories/service/thema/v1/consulta_nfs_por_rps.rb +0 -0
- data/test/factories/service/thema/v1/consulta_nfse.rb +0 -0
- data/test/factories/service/thema/v1/consulta_situacao_lote_rps.rb +0 -0
- data/test/factories/service/thema/v1/recepcao_lote_rps.rb +0 -0
- data/test/factories/service/thema/v1/recepcao_lote_rps_limitado.rb +0 -0
- data/test/fixtures/product/nfe/v3_10/cancelada.xml +246 -0
- data/test/fixtures/product/nfe/v3_10/completa.xml +1650 -0
- data/test/fixtures/product/nfe/v3_10/without_proc.xml +264 -0
- data/test/fixtures/product/operation/nfe_autorizacao/nfe_signed.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/async_fail.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/async_success.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/nfe/with_proc.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/nfe/without_proc.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/original_xml.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/sync_fail.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/sync_success.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_1.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_2.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_3.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_cancel.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/one_event.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/fail.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/nfe_original/with_proc.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/nfe_original/without_proc.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_many_with_cancel.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_many_without_cancel.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_one.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_without.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_inutilizacao/fail.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_inutilizacao/success.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/fail.xml +2 -2
- data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/success.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/xml_result_fail_formatted.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/xml_result_success_formatted.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_fail.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_fail.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_fail_and_one_ok.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_ok.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_two_invoice_fail.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_two_invoice_ok.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_2_with_protocol.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_2_without_protocol.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_3_with_protocol.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_3_without_protocol.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/lot.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/nfe.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/nfeProc.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_status_servico/fail.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_status_servico/success.xml +0 -0
- data/test/fixtures/product/schemas/CCe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/EPEC_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/LeiauteCadastroEmissorDFe_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/SuframaInternaliza_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/SuframaVistoria_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/atuCadEmiDFe_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/cabecMsg_v1.02.xsd +0 -0
- data/test/fixtures/product/schemas/cadEmiDFe_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/cancNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/confRecebto_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/consCad_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/consDPEC_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/consNFeDest_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/consReciNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/consReciNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/consSitNFe_v2.01.xsd +0 -0
- data/test/fixtures/product/schemas/consSitNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/consStatServ_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/consStatServ_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/distDFeInt_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/downloadNFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e110110_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e110111_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e110140_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e111500_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e111501_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e111502_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e111503_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e210200_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e210210_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e210220_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e210240_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e411500_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e411501_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e411502_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e411503_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e990900_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/e990910_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/envCCe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/envCancelPProrrogNFe_v1.0.xsd +0 -0
- data/test/fixtures/product/schemas/envConfRecebto_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/envDPEC_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/envEPEC_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/envEventoCancNFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/envEvento_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/envFiscoNfe_v1.0.xsd +0 -0
- data/test/fixtures/product/schemas/envPProrrogNFe_v1.0.xsd +0 -0
- data/test/fixtures/product/schemas/envRemIndus_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/envSuframaInternaliza_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/envSuframaVistoria_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/enviNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/enviNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/eventoCancNFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/eventoEPEC_v0.01.xsd +0 -0
- data/test/fixtures/product/schemas/eventoEPEC_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/eventoRemIndus_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/inutNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/inutNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteCCe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteCancNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteConfRecebto_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteConsNFeDest_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteConsSitNFe_v2.01.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteConsSitNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteConsStatServ_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteConsStatServ_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteConsultaCadastro_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteConsultaCadastro_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteDPEC_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteDownloadNFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteEPEC_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteEventoCancNFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteEvento_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteInutNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteInutNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteRemIndus_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteSRE_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteSuframaInternaliza_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/leiauteSuframaVistoria_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/nfe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/nfe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/procCCeNFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/procCancNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/procConfRecebtoNFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/procEPEC_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/procEventoCancNFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/procEventoNFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/procEventoNFe_v99.99.xsd +0 -0
- data/test/fixtures/product/schemas/procInutNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/procInutNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/procNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/procNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/procRemIndus_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/resEvento_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/resNFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/retAtuCadEmiDFe_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/retCancNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/retConsCad_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/retConsDPEC_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/retConsReciNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/retConsReciNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/retConsSitNFe_v2.01.xsd +0 -0
- data/test/fixtures/product/schemas/retConsSitNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/retConsStatServ_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/retConsStatServ_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/retDPEC_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/retDistDFeInt_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/retDownloadNFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/retEnvCCe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/retEnvCancelPProrrogNFe_v1.0.xsd +0 -0
- data/test/fixtures/product/schemas/retEnvConfRecebto_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/retEnvEPEC_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/retEnvEventoCancNFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/retEnvEvento_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/retEnvFiscoNFe_v1.0.xsd +0 -0
- data/test/fixtures/product/schemas/retEnvRemIndus_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/retEnvSuframaInternaliza_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/retEnvSuframaVistoria_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/retEnviNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/retEnviNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/retEventoEPEC_v0.01.xsd +0 -0
- data/test/fixtures/product/schemas/retInutNFe_v2.00.xsd +0 -0
- data/test/fixtures/product/schemas/retInutNFe_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/retPProrrogNFe_v1.0.xsd +0 -0
- data/test/fixtures/product/schemas/retconsNFeDest_v1.01.xsd +0 -0
- data/test/fixtures/product/schemas/tiposBasico_v1.03.xsd +0 -0
- data/test/fixtures/product/schemas/tiposBasico_v1.03_OPENSSL.xsd +0 -0
- data/test/fixtures/product/schemas/tiposBasico_v3.10.xsd +0 -0
- data/test/fixtures/product/schemas/tiposBasico_v3.10_OPENSSL.xsd +0 -0
- data/test/fixtures/product/schemas/tiposDistDFe_v1.00.xsd +0 -0
- data/test/fixtures/product/schemas/xmldsig-core-schema_v1.01.xsd +0 -0
- data/test/fixtures/product/wsdl/NFeRetAutorizacao.xml +0 -0
- data/test/fixtures/product/wsdl/NfeAutorizacao.xml +0 -0
- data/test/fixtures/product/wsdl/NfeConsulta2.xml +0 -0
- data/test/fixtures/product/wsdl/NfeStatusServico2.xml +0 -0
- data/test/fixtures/product/wsdl/RecepcaoEvento.xml +78 -0
- data/test/fixtures/product/wsdl/nfeinutilizacao2.xml +0 -0
- data/test/fixtures/service/response/betha/v1/cancela_nfse/fault.xml +0 -0
- data/test/fixtures/service/response/betha/v1/cancela_nfse/success.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_lote_rps/fault.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_lote_rps/success.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse/fault.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse/nfs_empty.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse/success.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse_por_rps/fault.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse_por_rps/success.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/error.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/fault.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/success.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unprocessed.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unprocessed_by_code_error.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unreceived.xml +0 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unreceived_by_code_error.xml +0 -0
- data/test/fixtures/service/response/betha/v1/recepcao_lote_rps/error.xml +0 -0
- data/test/fixtures/service/response/betha/v1/recepcao_lote_rps/success.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/cancela_nfse/fault.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/cancela_nfse/success.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_lote_rps/fault.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_lote_rps/nfse_complete.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_lote_rps/nfse_simple.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_nfse/fault.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_nfse/nfs_empty.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_nfse/nfse_complete.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_nfse/nfse_simple.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/fault.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/nfse_complete.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/nfse_simple.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/error.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/fault.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/success.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/unprocessed.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/unreceived.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/recepcao_lote_rps/error.xml +0 -0
- data/test/fixtures/service/response/simpliss/v1/recepcao_lote_rps/success.xml +0 -0
- data/test/fixtures/service/response/thema/v1/cancela_nfse/fault.xml +0 -0
- data/test/fixtures/service/response/thema/v1/cancela_nfse/success.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_lote_rps/fault.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_lote_rps/nfse_complete.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_nfse/fault.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_nfse/nfs_empty.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_nfse/nfse_complete.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_nfse/nfse_simple.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_nfse_por_rps/fault.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_nfse_por_rps/nfse_complete.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/error.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/fault.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/success.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/unprocessed.xml +0 -0
- data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/unreceived.xml +0 -0
- data/test/fixtures/service/response/thema/v1/recepcao_lote_rps/error.xml +0 -0
- data/test/fixtures/service/response/thema/v1/recepcao_lote_rps/success.xml +0 -0
- data/test/fixtures/service/response/thema/v1/recepcao_lote_rps_limitado/error.xml +0 -0
- data/test/fixtures/service/response/thema/v1/recepcao_lote_rps_limitado/success.xml +0 -0
- data/test/fixtures/service/thema/v1/cancelar_nfse_envio.xml +0 -0
- data/test/fixtures/service/thema/v1/cancelar_nfse_envio_signed.xml +0 -0
- data/test/fixtures/service/thema/v1/enviar_lote_rps.xml +0 -0
- data/test/fixtures/service/thema/v1/enviar_lote_rps_signed.xml +0 -0
- data/test/fixtures/service/wsdl/betha/v1/cancelar_nfse.xml +0 -0
- data/test/fixtures/service/wsdl/betha/v1/consultar_lote_rps.xml +0 -0
- data/test/fixtures/service/wsdl/betha/v1/consultar_nfse.xml +0 -0
- data/test/fixtures/service/wsdl/betha/v1/consultar_nfse_por_rps.xml +0 -0
- data/test/fixtures/service/wsdl/betha/v1/consultar_situacao_lote_rps.xml +0 -0
- data/test/fixtures/service/wsdl/betha/v1/recepcionar_lote_rps.xml +0 -0
- data/test/fixtures/service/wsdl/simpliss/v1/nfseservice.xml +0 -0
- data/test/fixtures/service/wsdl/thema/v1/nfse_cancelamento.xml +0 -0
- data/test/fixtures/service/wsdl/thema/v1/nfse_consulta.xml +0 -0
- data/test/fixtures/service/wsdl/thema/v1/nfse_remessa.xml +0 -0
- data/test/test_helper.rb +0 -0
- metadata +35 -63
- data/lib/br_nfe/product/gateway/base.rb +0 -35
- data/lib/br_nfe/product/gateway/web_service_am.rb +0 -140
- data/lib/br_nfe/product/gateway/web_service_ba.rb +0 -140
- data/lib/br_nfe/product/gateway/web_service_ce.rb +0 -162
- data/lib/br_nfe/product/gateway/web_service_go.rb +0 -140
- data/lib/br_nfe/product/gateway/web_service_mg.rb +0 -140
- data/lib/br_nfe/product/gateway/web_service_ms.rb +0 -140
- data/lib/br_nfe/product/gateway/web_service_mt.rb +0 -140
- data/lib/br_nfe/product/gateway/web_service_pe.rb +0 -140
- data/lib/br_nfe/product/gateway/web_service_pr.rb +0 -140
- data/lib/br_nfe/product/gateway/web_service_rs.rb +0 -140
- data/lib/br_nfe/product/gateway/web_service_sp.rb +0 -140
- data/lib/br_nfe/product/gateway/web_service_svan.rb +0 -162
- data/lib/br_nfe/product/gateway/web_service_svc_an.rb +0 -131
- data/lib/br_nfe/product/gateway/web_service_svc_rs.rb +0 -20
- data/lib/br_nfe/product/gateway/web_service_svrs.rb +0 -140
- data/test/br_nfe/product/gateway/base_test.rb +0 -16
- data/test/br_nfe/product/gateway/web_service_am_test.rb +0 -242
- data/test/br_nfe/product/gateway/web_service_ba_test.rb +0 -242
- data/test/br_nfe/product/gateway/web_service_ce_test.rb +0 -242
- data/test/br_nfe/product/gateway/web_service_go_test.rb +0 -242
- data/test/br_nfe/product/gateway/web_service_mg_test.rb +0 -242
- data/test/br_nfe/product/gateway/web_service_ms_test.rb +0 -242
- data/test/br_nfe/product/gateway/web_service_mt_test.rb +0 -408
- data/test/br_nfe/product/gateway/web_service_pe_test.rb +0 -408
- data/test/br_nfe/product/gateway/web_service_pr_test.rb +0 -408
- data/test/br_nfe/product/gateway/web_service_rs_test.rb +0 -407
- data/test/br_nfe/product/gateway/web_service_sp_test.rb +0 -408
- data/test/br_nfe/product/gateway/web_service_svan_test.rb +0 -242
- data/test/br_nfe/product/gateway/web_service_svc_an_test.rb +0 -185
- data/test/br_nfe/product/gateway/web_service_svc_rs_test.rb +0 -185
- data/test/br_nfe/product/gateway/web_service_svrs_test.rb +0 -242
- data/test/factories/product/gateway/base.rb +0 -5
- data/test/factories/product/gateway/web_service_am.rb +0 -5
- data/test/factories/product/gateway/web_service_ba.rb +0 -5
- data/test/factories/product/gateway/web_service_svrs.rb +0 -5
@@ -1,185 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
describe BrNfe::Product::Gateway::WebServiceSvcAN do
|
4
|
-
subject { BrNfe::Product::Gateway::WebServiceSvcAN.new(env: :test) }
|
5
|
-
|
6
|
-
it "deve herdar da class base" do
|
7
|
-
subject.class.superclass.must_equal BrNfe::Product::Gateway::Base
|
8
|
-
end
|
9
|
-
|
10
|
-
describe 'STATUS SERVIÇO' do
|
11
|
-
describe '#wsdl_status_servico' do
|
12
|
-
it "para ambiente de produção" do
|
13
|
-
subject.env = :production
|
14
|
-
subject.wsdl_status_servico.must_equal 'https://www.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx?wsdl'
|
15
|
-
end
|
16
|
-
it "para ambiente de homologação" do
|
17
|
-
subject.env = :test
|
18
|
-
subject.wsdl_status_servico.must_equal 'https://hom.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx?wsdl'
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
describe '#operation_status_servico' do
|
23
|
-
it { subject.operation_status_servico.must_equal :nfe_status_servico_nf2 }
|
24
|
-
end
|
25
|
-
|
26
|
-
describe '#version_xml_status_servico' do
|
27
|
-
it { subject.version_xml_status_servico.must_equal :v3_10 }
|
28
|
-
end
|
29
|
-
|
30
|
-
describe '#url_xmlns_status_servico' do
|
31
|
-
it { subject.url_xmlns_status_servico.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2' }
|
32
|
-
end
|
33
|
-
|
34
|
-
describe '#ssl_version_status_servico' do
|
35
|
-
it { subject.ssl_version_status_servico.must_equal :TLSv1 }
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
describe 'AUTORIZAÇÃO' do
|
40
|
-
describe '#wsdl_autorizacao' do
|
41
|
-
it "para ambiente de produção" do
|
42
|
-
subject.env = :production
|
43
|
-
subject.wsdl_autorizacao.must_equal 'https://www.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx?wsdl'
|
44
|
-
end
|
45
|
-
it "para ambiente de homologação" do
|
46
|
-
subject.env = :test
|
47
|
-
subject.wsdl_autorizacao.must_equal 'https://hom.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx?wsdl'
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
describe '#operation_autorizacao' do
|
52
|
-
it { subject.operation_autorizacao.must_equal :nfe_autorizacao_lote }
|
53
|
-
end
|
54
|
-
|
55
|
-
describe '#version_xml_autorizacao' do
|
56
|
-
it { subject.version_xml_autorizacao.must_equal :v3_10 }
|
57
|
-
end
|
58
|
-
|
59
|
-
describe '#url_xmlns_autorizacao' do
|
60
|
-
it { subject.url_xmlns_autorizacao.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeAutorizacao' }
|
61
|
-
end
|
62
|
-
|
63
|
-
describe '#ssl_version_autorizacao' do
|
64
|
-
it { subject.ssl_version_autorizacao.must_equal :TLSv1 }
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
describe 'RETORNO AUTORIZAÇÃO' do
|
69
|
-
describe '#wsdl_retorno_autorizacao' do
|
70
|
-
it "para ambiente de produção" do
|
71
|
-
subject.env = :production
|
72
|
-
subject.wsdl_retorno_autorizacao.must_equal 'https://www.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx?wsdl'
|
73
|
-
end
|
74
|
-
it "para ambiente de homologação" do
|
75
|
-
subject.env = :test
|
76
|
-
subject.wsdl_retorno_autorizacao.must_equal 'https://hom.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx?wsdl'
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
describe '#operation_retorno_autorizacao' do
|
81
|
-
it { subject.operation_retorno_autorizacao.must_equal :nfe_ret_autorizacao_lote }
|
82
|
-
end
|
83
|
-
|
84
|
-
describe '#version_xml_retorno_autorizacao' do
|
85
|
-
it { subject.version_xml_retorno_autorizacao.must_equal :v3_10 }
|
86
|
-
end
|
87
|
-
|
88
|
-
describe '#url_xmlns_retorno_autorizacao' do
|
89
|
-
it { subject.url_xmlns_retorno_autorizacao.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeRetAutorizacao' }
|
90
|
-
end
|
91
|
-
|
92
|
-
describe '#ssl_version_retorno_autorizacao' do
|
93
|
-
it { subject.ssl_version_retorno_autorizacao.must_equal :TLSv1 }
|
94
|
-
end
|
95
|
-
end
|
96
|
-
|
97
|
-
describe 'CONSULTA PROTOCOLO' do
|
98
|
-
describe '#wsdl_consulta_protocolo' do
|
99
|
-
it "para ambiente de produção" do
|
100
|
-
subject.env = :production
|
101
|
-
subject.wsdl_consulta_protocolo.must_equal 'https://www.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx?wsdl'
|
102
|
-
end
|
103
|
-
it "para ambiente de homologação" do
|
104
|
-
subject.env = :test
|
105
|
-
subject.wsdl_consulta_protocolo.must_equal 'https://hom.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx?wsdl'
|
106
|
-
end
|
107
|
-
end
|
108
|
-
|
109
|
-
describe '#operation_consulta_protocolo' do
|
110
|
-
it { subject.operation_consulta_protocolo.must_equal :nfe_consulta_nf2 }
|
111
|
-
end
|
112
|
-
|
113
|
-
describe '#version_xml_consulta_protocolo' do
|
114
|
-
it { subject.version_xml_consulta_protocolo.must_equal :v3_10 }
|
115
|
-
end
|
116
|
-
|
117
|
-
describe '#url_xmlns_consulta_protocolo' do
|
118
|
-
it { subject.url_xmlns_consulta_protocolo.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2' }
|
119
|
-
end
|
120
|
-
|
121
|
-
describe '#ssl_version_consulta_protocolo' do
|
122
|
-
it { subject.ssl_version_consulta_protocolo.must_equal :TLSv1 }
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
describe 'NFE INUTILIZAÇÃO' do
|
127
|
-
describe '#wsdl_inutilizacao' do
|
128
|
-
it "para ambiente de produção" do
|
129
|
-
subject.env = :production
|
130
|
-
subject.wsdl_inutilizacao.must_be_nil
|
131
|
-
end
|
132
|
-
it "para ambiente de homologação" do
|
133
|
-
subject.env = :test
|
134
|
-
subject.wsdl_inutilizacao.must_be_nil
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
describe '#operation_inutilizacao' do
|
139
|
-
it { subject.operation_inutilizacao.must_be_nil }
|
140
|
-
end
|
141
|
-
|
142
|
-
describe '#version_xml_inutilizacao' do
|
143
|
-
it { subject.version_xml_inutilizacao.must_be_nil }
|
144
|
-
end
|
145
|
-
|
146
|
-
describe '#url_xmlns_inutilizacao' do
|
147
|
-
it { subject.url_xmlns_inutilizacao.must_be_nil }
|
148
|
-
end
|
149
|
-
|
150
|
-
describe '#ssl_version_inutilizacao' do
|
151
|
-
it { subject.ssl_version_inutilizacao.must_be_nil }
|
152
|
-
end
|
153
|
-
end
|
154
|
-
|
155
|
-
describe 'RECEPÇÃO EVENTO' do
|
156
|
-
describe '#wsdl_recepcao_evento' do
|
157
|
-
it "para ambiente de produção" do
|
158
|
-
subject.env = :production
|
159
|
-
subject.wsdl_recepcao_evento.must_equal 'https://www.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx?wsdl'
|
160
|
-
end
|
161
|
-
it "para ambiente de homologação" do
|
162
|
-
subject.env = :test
|
163
|
-
subject.wsdl_recepcao_evento.must_equal 'https://hom.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx?wsdl'
|
164
|
-
end
|
165
|
-
end
|
166
|
-
|
167
|
-
describe '#operation_recepcao_evento' do
|
168
|
-
it { subject.operation_recepcao_evento.must_equal :nfe_recepcao_evento }
|
169
|
-
end
|
170
|
-
|
171
|
-
describe '#version_xml_recepcao_evento' do
|
172
|
-
it { subject.version_xml_recepcao_evento.must_equal :v1_00 }
|
173
|
-
end
|
174
|
-
|
175
|
-
describe '#url_xmlns_recepcao_evento' do
|
176
|
-
it { subject.url_xmlns_recepcao_evento.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/RecepcaoEvento' }
|
177
|
-
end
|
178
|
-
|
179
|
-
describe '#ssl_version_recepcao_evento' do
|
180
|
-
it { subject.ssl_version_recepcao_evento.must_equal :TLSv1 }
|
181
|
-
end
|
182
|
-
end
|
183
|
-
|
184
|
-
|
185
|
-
end
|
@@ -1,185 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
describe BrNfe::Product::Gateway::WebServiceSvcRS do
|
4
|
-
subject { BrNfe::Product::Gateway::WebServiceSvcRS.new(env: :test) }
|
5
|
-
|
6
|
-
it "deve herdar da class WebServiceSVRS" do
|
7
|
-
subject.class.superclass.must_equal BrNfe::Product::Gateway::WebServiceSVRS
|
8
|
-
end
|
9
|
-
|
10
|
-
describe 'STATUS SERVIÇO' do
|
11
|
-
describe '#wsdl_status_servico' do
|
12
|
-
it "para ambiente de produção" do
|
13
|
-
subject.env = :production
|
14
|
-
subject.wsdl_status_servico.must_equal 'https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx?wsdl'
|
15
|
-
end
|
16
|
-
it "para ambiente de homologação" do
|
17
|
-
subject.env = :test
|
18
|
-
subject.wsdl_status_servico.must_equal 'https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx?wsdl'
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
describe '#operation_status_servico' do
|
23
|
-
it { subject.operation_status_servico.must_equal :nfe_status_servico_nf2 }
|
24
|
-
end
|
25
|
-
|
26
|
-
describe '#version_xml_status_servico' do
|
27
|
-
it { subject.version_xml_status_servico.must_equal :v3_10 }
|
28
|
-
end
|
29
|
-
|
30
|
-
describe '#url_xmlns_status_servico' do
|
31
|
-
it { subject.url_xmlns_status_servico.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2' }
|
32
|
-
end
|
33
|
-
|
34
|
-
describe '#ssl_version_status_servico' do
|
35
|
-
it { subject.ssl_version_status_servico.must_equal :SSLv3 }
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
describe 'AUTORIZAÇÃO' do
|
40
|
-
describe '#wsdl_autorizacao' do
|
41
|
-
it "para ambiente de produção" do
|
42
|
-
subject.env = :production
|
43
|
-
subject.wsdl_autorizacao.must_equal 'https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx?wsdl'
|
44
|
-
end
|
45
|
-
it "para ambiente de homologação" do
|
46
|
-
subject.env = :test
|
47
|
-
subject.wsdl_autorizacao.must_equal 'https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx?wsdl'
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
describe '#operation_autorizacao' do
|
52
|
-
it { subject.operation_autorizacao.must_equal :nfe_autorizacao_lote }
|
53
|
-
end
|
54
|
-
|
55
|
-
describe '#version_xml_autorizacao' do
|
56
|
-
it { subject.version_xml_autorizacao.must_equal :v3_10 }
|
57
|
-
end
|
58
|
-
|
59
|
-
describe '#url_xmlns_autorizacao' do
|
60
|
-
it { subject.url_xmlns_autorizacao.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeAutorizacao' }
|
61
|
-
end
|
62
|
-
|
63
|
-
describe '#ssl_version_autorizacao' do
|
64
|
-
it { subject.ssl_version_autorizacao.must_equal :SSLv3 }
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
describe 'RETORNO AUTORIZAÇÃO' do
|
69
|
-
describe '#wsdl_retorno_autorizacao' do
|
70
|
-
it "para ambiente de produção" do
|
71
|
-
subject.env = :production
|
72
|
-
subject.wsdl_retorno_autorizacao.must_equal 'https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx?wsdl'
|
73
|
-
end
|
74
|
-
it "para ambiente de homologação" do
|
75
|
-
subject.env = :test
|
76
|
-
subject.wsdl_retorno_autorizacao.must_equal 'https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx?wsdl'
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
describe '#operation_retorno_autorizacao' do
|
81
|
-
it { subject.operation_retorno_autorizacao.must_equal :nfe_ret_autorizacao_lote }
|
82
|
-
end
|
83
|
-
|
84
|
-
describe '#version_xml_retorno_autorizacao' do
|
85
|
-
it { subject.version_xml_retorno_autorizacao.must_equal :v3_10 }
|
86
|
-
end
|
87
|
-
|
88
|
-
describe '#url_xmlns_retorno_autorizacao' do
|
89
|
-
it { subject.url_xmlns_retorno_autorizacao.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeRetAutorizacao' }
|
90
|
-
end
|
91
|
-
|
92
|
-
describe '#ssl_version_retorno_autorizacao' do
|
93
|
-
it { subject.ssl_version_retorno_autorizacao.must_equal :SSLv3 }
|
94
|
-
end
|
95
|
-
end
|
96
|
-
|
97
|
-
describe 'CONSULTA PROTOCOLO' do
|
98
|
-
describe '#wsdl_consulta_protocolo' do
|
99
|
-
it "para ambiente de produção" do
|
100
|
-
subject.env = :production
|
101
|
-
subject.wsdl_consulta_protocolo.must_equal 'https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx?wsdl'
|
102
|
-
end
|
103
|
-
it "para ambiente de homologação" do
|
104
|
-
subject.env = :test
|
105
|
-
subject.wsdl_consulta_protocolo.must_equal 'https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx?wsdl'
|
106
|
-
end
|
107
|
-
end
|
108
|
-
|
109
|
-
describe '#operation_consulta_protocolo' do
|
110
|
-
it { subject.operation_consulta_protocolo.must_equal :nfe_consulta_nf2 }
|
111
|
-
end
|
112
|
-
|
113
|
-
describe '#version_xml_consulta_protocolo' do
|
114
|
-
it { subject.version_xml_consulta_protocolo.must_equal :v3_10 }
|
115
|
-
end
|
116
|
-
|
117
|
-
describe '#url_xmlns_consulta_protocolo' do
|
118
|
-
it { subject.url_xmlns_consulta_protocolo.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2' }
|
119
|
-
end
|
120
|
-
|
121
|
-
describe '#ssl_version_consulta_protocolo' do
|
122
|
-
it { subject.ssl_version_consulta_protocolo.must_equal :SSLv3 }
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
describe 'NFE INUTILIZAÇÃO' do
|
127
|
-
describe '#wsdl_inutilizacao' do
|
128
|
-
it "para ambiente de produção" do
|
129
|
-
subject.env = :production
|
130
|
-
subject.wsdl_inutilizacao.must_be_nil
|
131
|
-
end
|
132
|
-
it "para ambiente de homologação" do
|
133
|
-
subject.env = :test
|
134
|
-
subject.wsdl_inutilizacao.must_be_nil
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
describe '#operation_inutilizacao' do
|
139
|
-
it { subject.operation_inutilizacao.must_be_nil }
|
140
|
-
end
|
141
|
-
|
142
|
-
describe '#version_xml_inutilizacao' do
|
143
|
-
it { subject.version_xml_inutilizacao.must_be_nil }
|
144
|
-
end
|
145
|
-
|
146
|
-
describe '#url_xmlns_inutilizacao' do
|
147
|
-
it { subject.url_xmlns_inutilizacao.must_be_nil }
|
148
|
-
end
|
149
|
-
|
150
|
-
describe '#ssl_version_inutilizacao' do
|
151
|
-
it { subject.ssl_version_inutilizacao.must_be_nil }
|
152
|
-
end
|
153
|
-
end
|
154
|
-
|
155
|
-
describe 'RECEPÇÃO EVENTO' do
|
156
|
-
describe '#wsdl_recepcao_evento' do
|
157
|
-
it "para ambiente de produção" do
|
158
|
-
subject.env = :production
|
159
|
-
subject.wsdl_recepcao_evento.must_equal 'https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx?wsdl'
|
160
|
-
end
|
161
|
-
it "para ambiente de homologação" do
|
162
|
-
subject.env = :test
|
163
|
-
subject.wsdl_recepcao_evento.must_equal 'https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx?wsdl'
|
164
|
-
end
|
165
|
-
end
|
166
|
-
|
167
|
-
describe '#operation_recepcao_evento' do
|
168
|
-
it { subject.operation_recepcao_evento.must_equal :nfe_recepcao_evento }
|
169
|
-
end
|
170
|
-
|
171
|
-
describe '#version_xml_recepcao_evento' do
|
172
|
-
it { subject.version_xml_recepcao_evento.must_equal :v1_00 }
|
173
|
-
end
|
174
|
-
|
175
|
-
describe '#url_xmlns_recepcao_evento' do
|
176
|
-
it { subject.url_xmlns_recepcao_evento.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/RecepcaoEvento' }
|
177
|
-
end
|
178
|
-
|
179
|
-
describe '#ssl_version_recepcao_evento' do
|
180
|
-
it { subject.ssl_version_recepcao_evento.must_equal :SSLv3 }
|
181
|
-
end
|
182
|
-
end
|
183
|
-
|
184
|
-
|
185
|
-
end
|
@@ -1,242 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
describe BrNfe::Product::Gateway::WebServiceSVRS do
|
4
|
-
subject { FactoryGirl.build(:product_gateway_web_service_svrs) }
|
5
|
-
|
6
|
-
it "deve herdar da class base" do
|
7
|
-
subject.class.superclass.must_equal BrNfe::Product::Gateway::Base
|
8
|
-
end
|
9
|
-
|
10
|
-
describe 'STATUS SERVIÇO' do
|
11
|
-
describe '#wsdl_status_servico' do
|
12
|
-
it "para ambiente de produção" do
|
13
|
-
subject.env = :production
|
14
|
-
subject.wsdl_status_servico.must_equal 'https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx?wsdl'
|
15
|
-
end
|
16
|
-
it "para ambiente de homologação" do
|
17
|
-
subject.env = :test
|
18
|
-
subject.wsdl_status_servico.must_equal 'https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx?wsdl'
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
describe '#operation_status_servico' do
|
23
|
-
it { subject.operation_status_servico.must_equal :nfe_status_servico_nf2 }
|
24
|
-
end
|
25
|
-
|
26
|
-
describe '#version_xml_status_servico' do
|
27
|
-
it { subject.version_xml_status_servico.must_equal :v3_10 }
|
28
|
-
end
|
29
|
-
|
30
|
-
describe '#url_xmlns_status_servico' do
|
31
|
-
it { subject.url_xmlns_status_servico.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2' }
|
32
|
-
end
|
33
|
-
|
34
|
-
describe '#ssl_version_status_servico' do
|
35
|
-
it { subject.ssl_version_status_servico.must_equal :SSLv3 }
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
describe 'AUTORIZAÇÃO' do
|
40
|
-
describe '#wsdl_autorizacao' do
|
41
|
-
it "para ambiente de produção" do
|
42
|
-
subject.env = :production
|
43
|
-
subject.wsdl_autorizacao.must_equal 'https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx?wsdl'
|
44
|
-
end
|
45
|
-
it "para ambiente de homologação" do
|
46
|
-
subject.env = :test
|
47
|
-
subject.wsdl_autorizacao.must_equal 'https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx?wsdl'
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
describe '#operation_autorizacao' do
|
52
|
-
it { subject.operation_autorizacao.must_equal :nfe_autorizacao_lote }
|
53
|
-
end
|
54
|
-
|
55
|
-
describe '#version_xml_autorizacao' do
|
56
|
-
it { subject.version_xml_autorizacao.must_equal :v3_10 }
|
57
|
-
end
|
58
|
-
|
59
|
-
describe '#url_xmlns_autorizacao' do
|
60
|
-
it { subject.url_xmlns_autorizacao.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeAutorizacao' }
|
61
|
-
end
|
62
|
-
|
63
|
-
describe '#ssl_version_autorizacao' do
|
64
|
-
it { subject.ssl_version_autorizacao.must_equal :SSLv3 }
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
describe 'RETORNO AUTORIZAÇÃO' do
|
69
|
-
describe '#wsdl_retorno_autorizacao' do
|
70
|
-
it "para ambiente de produção" do
|
71
|
-
subject.env = :production
|
72
|
-
subject.wsdl_retorno_autorizacao.must_equal 'https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx?wsdl'
|
73
|
-
end
|
74
|
-
it "para ambiente de homologação" do
|
75
|
-
subject.env = :test
|
76
|
-
subject.wsdl_retorno_autorizacao.must_equal 'https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx?wsdl'
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
describe '#operation_retorno_autorizacao' do
|
81
|
-
it { subject.operation_retorno_autorizacao.must_equal :nfe_ret_autorizacao_lote }
|
82
|
-
end
|
83
|
-
|
84
|
-
describe '#version_xml_retorno_autorizacao' do
|
85
|
-
it { subject.version_xml_retorno_autorizacao.must_equal :v3_10 }
|
86
|
-
end
|
87
|
-
|
88
|
-
describe '#url_xmlns_retorno_autorizacao' do
|
89
|
-
it { subject.url_xmlns_retorno_autorizacao.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeRetAutorizacao' }
|
90
|
-
end
|
91
|
-
|
92
|
-
describe '#ssl_version_retorno_autorizacao' do
|
93
|
-
it { subject.ssl_version_retorno_autorizacao.must_equal :SSLv3 }
|
94
|
-
end
|
95
|
-
end
|
96
|
-
|
97
|
-
describe 'CONSULTA PROTOCOLO' do
|
98
|
-
describe '#wsdl_consulta_protocolo' do
|
99
|
-
it "para ambiente de produção" do
|
100
|
-
subject.env = :production
|
101
|
-
subject.wsdl_consulta_protocolo.must_equal 'https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx?wsdl'
|
102
|
-
end
|
103
|
-
it "para ambiente de homologação" do
|
104
|
-
subject.env = :test
|
105
|
-
subject.wsdl_consulta_protocolo.must_equal 'https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx?wsdl'
|
106
|
-
end
|
107
|
-
end
|
108
|
-
|
109
|
-
describe '#operation_consulta_protocolo' do
|
110
|
-
it { subject.operation_consulta_protocolo.must_equal :nfe_consulta_nf2 }
|
111
|
-
end
|
112
|
-
|
113
|
-
describe '#version_xml_consulta_protocolo' do
|
114
|
-
it { subject.version_xml_consulta_protocolo.must_equal :v3_10 }
|
115
|
-
end
|
116
|
-
|
117
|
-
describe '#url_xmlns_consulta_protocolo' do
|
118
|
-
it { subject.url_xmlns_consulta_protocolo.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2' }
|
119
|
-
end
|
120
|
-
|
121
|
-
describe '#ssl_version_consulta_protocolo' do
|
122
|
-
it { subject.ssl_version_consulta_protocolo.must_equal :SSLv3 }
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
describe 'NFE INUTILIZAÇÃO' do
|
127
|
-
describe '#wsdl_inutilizacao' do
|
128
|
-
it "para ambiente de produção" do
|
129
|
-
subject.env = :production
|
130
|
-
subject.wsdl_inutilizacao.must_equal 'https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx?wsdl'
|
131
|
-
end
|
132
|
-
it "para ambiente de homologação" do
|
133
|
-
subject.env = :test
|
134
|
-
subject.wsdl_inutilizacao.must_equal 'https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx?wsdl'
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
describe '#operation_inutilizacao' do
|
139
|
-
it { subject.operation_inutilizacao.must_equal :nfe_inutilizacao_nf2 }
|
140
|
-
end
|
141
|
-
|
142
|
-
describe '#version_xml_inutilizacao' do
|
143
|
-
it { subject.version_xml_inutilizacao.must_equal :v3_10 }
|
144
|
-
end
|
145
|
-
|
146
|
-
describe '#url_xmlns_inutilizacao' do
|
147
|
-
it { subject.url_xmlns_inutilizacao.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeInutilizacao2' }
|
148
|
-
end
|
149
|
-
|
150
|
-
describe '#ssl_version_inutilizacao' do
|
151
|
-
it { subject.ssl_version_inutilizacao.must_equal :SSLv3 }
|
152
|
-
end
|
153
|
-
end
|
154
|
-
|
155
|
-
describe 'RECEPÇÃO EVENTO' do
|
156
|
-
describe '#wsdl_recepcao_evento' do
|
157
|
-
it "para ambiente de produção" do
|
158
|
-
subject.env = :production
|
159
|
-
subject.wsdl_recepcao_evento.must_equal 'https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx?wsdl'
|
160
|
-
end
|
161
|
-
it "para ambiente de homologação" do
|
162
|
-
subject.env = :test
|
163
|
-
subject.wsdl_recepcao_evento.must_equal 'https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx?wsdl'
|
164
|
-
end
|
165
|
-
end
|
166
|
-
|
167
|
-
describe '#operation_recepcao_evento' do
|
168
|
-
it { subject.operation_recepcao_evento.must_equal :nfe_recepcao_evento }
|
169
|
-
end
|
170
|
-
|
171
|
-
describe '#version_xml_recepcao_evento' do
|
172
|
-
it { subject.version_xml_recepcao_evento.must_equal :v1_00 }
|
173
|
-
end
|
174
|
-
|
175
|
-
describe '#url_xmlns_recepcao_evento' do
|
176
|
-
it { subject.url_xmlns_recepcao_evento.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/RecepcaoEvento' }
|
177
|
-
end
|
178
|
-
|
179
|
-
describe '#ssl_version_recepcao_evento' do
|
180
|
-
it { subject.ssl_version_recepcao_evento.must_equal :SSLv3 }
|
181
|
-
end
|
182
|
-
end
|
183
|
-
|
184
|
-
describe 'DOWNLOAD NF' do
|
185
|
-
describe '#wsdl_download_nf' do
|
186
|
-
it "para ambiente de produção" do
|
187
|
-
subject.env = :production
|
188
|
-
subject.wsdl_download_nf.must_equal 'https://www.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx?wsdl'
|
189
|
-
end
|
190
|
-
it "para ambiente de homologação" do
|
191
|
-
subject.env = :test
|
192
|
-
subject.wsdl_download_nf.must_equal 'https://hom.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx?wsdl'
|
193
|
-
end
|
194
|
-
end
|
195
|
-
|
196
|
-
describe '#operation_download_nf' do
|
197
|
-
it "para ambiente de produção" do
|
198
|
-
subject.env = :production
|
199
|
-
subject.operation_download_nf.must_equal :nfe_download_nf
|
200
|
-
end
|
201
|
-
it "para ambiente de homologação" do
|
202
|
-
subject.env = :test
|
203
|
-
subject.operation_download_nf.must_equal :nfe_download_nf
|
204
|
-
end
|
205
|
-
end
|
206
|
-
|
207
|
-
describe '#version_xml_download_nf' do
|
208
|
-
it "para ambiente de produção" do
|
209
|
-
subject.env = :production
|
210
|
-
subject.version_xml_download_nf.must_equal :v1_00
|
211
|
-
end
|
212
|
-
it "para ambiente de homologação" do
|
213
|
-
subject.env = :test
|
214
|
-
subject.version_xml_download_nf.must_equal :v1_00
|
215
|
-
end
|
216
|
-
end
|
217
|
-
|
218
|
-
describe '#url_xmlns_download_nf' do
|
219
|
-
it "para ambiente de produção" do
|
220
|
-
subject.env = :production
|
221
|
-
subject.url_xmlns_download_nf.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeDownloadNF'
|
222
|
-
end
|
223
|
-
it "para ambiente de homologação" do
|
224
|
-
subject.env = :test
|
225
|
-
subject.url_xmlns_download_nf.must_equal 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeDownloadNF'
|
226
|
-
end
|
227
|
-
end
|
228
|
-
|
229
|
-
describe '#ssl_version_download_nf' do
|
230
|
-
it "para ambiente de produção" do
|
231
|
-
subject.env = :production
|
232
|
-
subject.ssl_version_download_nf.must_equal :TLSv1
|
233
|
-
end
|
234
|
-
it "para ambiente de homologação" do
|
235
|
-
subject.env = :test
|
236
|
-
subject.ssl_version_download_nf.must_equal :TLSv1
|
237
|
-
end
|
238
|
-
end
|
239
|
-
end
|
240
|
-
|
241
|
-
|
242
|
-
end
|