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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80696ac8940bce0f2a47e9bb39a4961cff396b4e
|
4
|
+
data.tar.gz: d42098edc7c7d84d6f2c6ea4a093816bbfd70b07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c9e451fcfa2ab498018eba404fd9659d9e03aa4a581249392906180725ecbe0a3c5cc3184fff5f3d11518481f1c6b889e7cc83b8231397306b723b8a4f3eb5c
|
7
|
+
data.tar.gz: f638d8c8e123db5f5bbc84ac5e2230730eaa89628e47bf7045bd2669f704e6aac9396944a45e7b7e273cb890c66492a5474040802d3c1821a839bb4f9626e5e3
|
data/.gitignore
CHANGED
File without changes
|
data/.travis.yml
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/Gemfile.lock
CHANGED
@@ -2,8 +2,8 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
br_nfe (2.2.0)
|
5
|
-
activemodel (~> 4)
|
6
|
-
activesupport (~> 4)
|
5
|
+
activemodel (~> 4.2)
|
6
|
+
activesupport (~> 4.2)
|
7
7
|
nokogiri (~> 1.6)
|
8
8
|
rake (~> 10)
|
9
9
|
savon (~> 2.11)
|
@@ -149,7 +149,7 @@ GEM
|
|
149
149
|
wasabi (~> 3.4)
|
150
150
|
shoulda-matchers (2.8.0)
|
151
151
|
activesupport (>= 3.0.0)
|
152
|
-
signer (1.
|
152
|
+
signer (1.5.0)
|
153
153
|
nokogiri (>= 1.5.1)
|
154
154
|
simplecov (0.10.0)
|
155
155
|
docile (~> 1.1.0)
|
@@ -164,7 +164,7 @@ GEM
|
|
164
164
|
railties (>= 3.1)
|
165
165
|
slim (~> 3.0)
|
166
166
|
slop (3.6.0)
|
167
|
-
socksify (1.7.
|
167
|
+
socksify (1.7.1)
|
168
168
|
sprockets (3.2.0)
|
169
169
|
rack (~> 1.0)
|
170
170
|
sprockets-rails (2.3.2)
|
data/LICENSE
CHANGED
File without changes
|
data/README.markdown
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/br_nfe.gemspec
CHANGED
@@ -22,8 +22,8 @@ Gem::Specification.new do |gem|
|
|
22
22
|
gem.required_ruby_version = ['~> 2.1', '~> 2.2', '~> 2.3']
|
23
23
|
|
24
24
|
gem.add_dependency "rake", '~> 10'
|
25
|
-
gem.add_dependency "activesupport", '~> 4'
|
26
|
-
gem.add_dependency "activemodel", '~> 4'
|
25
|
+
gem.add_dependency "activesupport", '~> 4.2'
|
26
|
+
gem.add_dependency "activemodel", '~> 4.2'
|
27
27
|
gem.add_dependency "nokogiri", "~> 1.6"
|
28
28
|
gem.add_dependency "savon", "~> 2.11"
|
29
29
|
gem.add_dependency "signer", "~> 1.4"
|
data/lib/br_nfe.rb
CHANGED
@@ -200,25 +200,6 @@ module BrNfe
|
|
200
200
|
autoload :IcmsUfDestino
|
201
201
|
end
|
202
202
|
end
|
203
|
-
module Gateway
|
204
|
-
extend ActiveSupport::Autoload
|
205
|
-
autoload :Base
|
206
|
-
autoload :WebServiceAM
|
207
|
-
autoload :WebServiceBA
|
208
|
-
autoload :WebServiceCE
|
209
|
-
autoload :WebServiceGO
|
210
|
-
autoload :WebServiceMG
|
211
|
-
autoload :WebServiceMS
|
212
|
-
autoload :WebServiceMT
|
213
|
-
autoload :WebServicePE
|
214
|
-
autoload :WebServicePR
|
215
|
-
autoload :WebServiceRS
|
216
|
-
autoload :WebServiceSP
|
217
|
-
autoload :WebServiceSVAN
|
218
|
-
autoload :WebServiceSvcAN
|
219
|
-
autoload :WebServiceSvcRS
|
220
|
-
autoload :WebServiceSVRS
|
221
|
-
end
|
222
203
|
|
223
204
|
module Evento
|
224
205
|
extend ActiveSupport::Autoload
|
@@ -250,6 +231,7 @@ module BrNfe
|
|
250
231
|
autoload :NfeConsultaProtocolo
|
251
232
|
autoload :NfeInutilizacao
|
252
233
|
autoload :NfeStatusServico
|
234
|
+
autoload :NfeRecepcaoEvento
|
253
235
|
autoload :Event
|
254
236
|
module Build
|
255
237
|
extend ActiveSupport::Autoload
|
@@ -259,8 +241,20 @@ module BrNfe
|
|
259
241
|
autoload :NfeConsultaProtocolo
|
260
242
|
autoload :NfeInutilizacao
|
261
243
|
autoload :NfeStatusServico
|
244
|
+
autoload :NfeRecepcaoEvento
|
262
245
|
end
|
263
246
|
end
|
247
|
+
|
248
|
+
module Reader
|
249
|
+
extend ActiveSupport::Autoload
|
250
|
+
autoload :Nfe
|
251
|
+
autoload :Emitente
|
252
|
+
autoload :Destinatario
|
253
|
+
autoload :Transporte
|
254
|
+
autoload :EnderecoRetiradaEntrega
|
255
|
+
autoload :Fatura
|
256
|
+
autoload :Item
|
257
|
+
end
|
264
258
|
end
|
265
259
|
|
266
260
|
|
@@ -360,11 +354,19 @@ module BrNfe
|
|
360
354
|
mattr_accessor :transportador_product_class
|
361
355
|
@@transportador_product_class = BrNfe::Product::Nfe::Transporte::Transportador
|
362
356
|
|
357
|
+
def self.load_settings
|
358
|
+
settings = {}
|
359
|
+
Dir[BrNfe.root+'/lib/config/settings/**/*.{yml}'].each do |file_path|
|
360
|
+
settings.deep_merge! YAML.load(File.open(file_path)).deep_symbolize_keys!
|
361
|
+
end
|
362
|
+
settings
|
363
|
+
end
|
364
|
+
mattr_accessor :settings
|
365
|
+
@@settings = BrNfe.load_settings
|
363
366
|
|
364
367
|
def self.setup
|
365
368
|
yield self
|
366
369
|
end
|
367
|
-
|
368
370
|
######################### END CONFIGURAÇÕES #########################
|
369
371
|
|
370
372
|
include Helper
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/br_nfe/base.rb
CHANGED
@@ -27,10 +27,6 @@ module BrNfe
|
|
27
27
|
false
|
28
28
|
end
|
29
29
|
|
30
|
-
def ssl_request?
|
31
|
-
false
|
32
|
-
end
|
33
|
-
|
34
30
|
def env
|
35
31
|
@env ||= :production
|
36
32
|
end
|
@@ -59,8 +55,9 @@ module BrNfe
|
|
59
55
|
end
|
60
56
|
|
61
57
|
# Deve conter o LINK do webservice a ser chamado
|
58
|
+
# TODO: Remover método quando reconfigurar a emissão das notas de serviço
|
62
59
|
#
|
63
|
-
def
|
60
|
+
def url_wsdl
|
64
61
|
raise "Não implementado."
|
65
62
|
end
|
66
63
|
|
@@ -167,29 +164,20 @@ module BrNfe
|
|
167
164
|
:v1
|
168
165
|
end
|
169
166
|
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
167
|
+
def client_wsdl_params
|
168
|
+
{
|
169
|
+
wsdl: url_wsdl,
|
170
|
+
log: BrNfe.client_wsdl_log,
|
171
|
+
pretty_print_xml: BrNfe.client_wsdl_pretty_print_xml,
|
172
|
+
ssl_verify_mode: :none
|
173
|
+
}
|
175
174
|
end
|
176
175
|
|
177
176
|
# Cliente WSDL utilizado para fazer a requisição.
|
178
177
|
# Utilizando a gem savon.
|
179
178
|
# Veja mais detalhes em http://savonrb.com/version2/client.html
|
180
179
|
def client_wsdl
|
181
|
-
@client_wsdl ||= Savon.client
|
182
|
-
global.wsdl wsdl
|
183
|
-
global.log BrNfe.client_wsdl_log
|
184
|
-
global.pretty_print_xml BrNfe.client_wsdl_pretty_print_xml
|
185
|
-
global.ssl_verify_mode :none
|
186
|
-
if ssl_request?
|
187
|
-
global.ssl_version ssl_version
|
188
|
-
global.ssl_cert certificate
|
189
|
-
global.ssl_cert_key certificate_key
|
190
|
-
global.ssl_cert_key_password certificate_pkcs12_password
|
191
|
-
end
|
192
|
-
end
|
180
|
+
@client_wsdl ||= Savon.client client_wsdl_params
|
193
181
|
end
|
194
182
|
|
195
183
|
# Caso não tenha o certificate_pkcs12 salvo em arquivo, pode setar a string do certificate_pkcs12 direto pelo atributo certificate_pkcs12_value
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/br_nfe/constants.rb
CHANGED
data/lib/br_nfe/endereco.rb
CHANGED
@@ -20,6 +20,10 @@ module BrNfe
|
|
20
20
|
attr_accessor :codigo_pais # defaul: 1058 (Brasil)
|
21
21
|
attr_accessor :nome_pais # defaul: BRASIL
|
22
22
|
|
23
|
+
# Descrição do endereço. Utilizado para a leitura da NF-e quando a pessoa
|
24
|
+
# possui um unico campo com todos os dados do endereço
|
25
|
+
attr_accessor :descricao
|
26
|
+
|
23
27
|
# Código IBGE do Estado (UF)
|
24
28
|
# Caso não seja setado um valor no atributo, irá pegar os primeiros 2
|
25
29
|
# dígitos do código IBGE do município.
|
File without changes
|
File without changes
|
data/lib/br_nfe/person.rb
CHANGED
@@ -13,6 +13,7 @@ module BrNfe
|
|
13
13
|
delegate :nome_municipio, :nome_municipio=, to: :endereco, prefix: :endereco
|
14
14
|
delegate :codigo_ibge_uf, :codigo_ibge_uf=, to: :endereco, prefix: :endereco
|
15
15
|
delegate :codigo_municipio,:codigo_municipio=, to: :endereco, prefix: :endereco
|
16
|
+
delegate :descricao, :descricao=, to: :endereco, prefix: :endereco
|
16
17
|
|
17
18
|
# Obrigatórios
|
18
19
|
attr_accessor :cpf_cnpj
|
File without changes
|
File without changes
|
File without changes
|
@@ -258,7 +258,7 @@ module BrNfe
|
|
258
258
|
if evento.codigo_orgao.present?
|
259
259
|
evento.codigo_orgao
|
260
260
|
else
|
261
|
-
if gateway
|
261
|
+
if gateway == :svan && evento.is_a?(BrNfe.cancelamento_product_class)
|
262
262
|
91
|
263
263
|
else
|
264
264
|
"#{evento.chave_nfe}"[0..1]
|
File without changes
|
File without changes
|
File without changes
|
@@ -34,6 +34,19 @@ module BrNfe
|
|
34
34
|
attr_accessor :total
|
35
35
|
alias_attribute :vPag, :total
|
36
36
|
|
37
|
+
# TIPO DE INTEGRAÇÃO COM O CARTÃO
|
38
|
+
# Tipo de Integração do processo de pagamento com o sistema de automação da empresa/
|
39
|
+
# 1 = Pagamento integrado com o sistema de automação da empresa Ex. equipamento TEF , Comercio Eletronico
|
40
|
+
# 2 = Pagamento não integrado com o sistema de automação da empresa Ex: equipamento POS
|
41
|
+
#
|
42
|
+
# <b>Type: </b> _Float_
|
43
|
+
# <b>Required: </b> _Yes_
|
44
|
+
# <b>Exemplo: </b> _1500.50_
|
45
|
+
# <b>tag: </b> tpIntegra
|
46
|
+
#
|
47
|
+
attr_accessor :tipo_integracao
|
48
|
+
alias_attribute :tpIntegra, :tipo_integracao
|
49
|
+
|
37
50
|
# CNPJ da Credenciadora de cartão de crédito e/ou débito
|
38
51
|
# Informar o CNPJ da Credenciadora de cartão de crédito / débito
|
39
52
|
#
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1033,6 +1033,11 @@ module BrNfe
|
|
1033
1033
|
end
|
1034
1034
|
end
|
1035
1035
|
|
1036
|
+
##################################################################################
|
1037
|
+
######################### DADOS SETADOS NA LEITURA DO XML #######################
|
1038
|
+
attr_accessor :tipo_ambiente
|
1039
|
+
alias_attribute :tbAmb, :tipo_ambiente
|
1040
|
+
|
1036
1041
|
def default_values
|
1037
1042
|
{
|
1038
1043
|
versao_aplicativo: 0,
|
@@ -4,6 +4,9 @@ module BrNfe
|
|
4
4
|
class Base < BrNfe::Base
|
5
5
|
include NfXmlValue
|
6
6
|
|
7
|
+
# Versão da NF-e que irá pegar as configurações
|
8
|
+
attr_accessor :nfe_version
|
9
|
+
|
7
10
|
# Serve para saber se vai usar o módo de contingência, e se usar,
|
8
11
|
# serve para saber qual o tipo de contingência será utilizado.
|
9
12
|
# Options: [:normal, :svc]
|
@@ -12,6 +15,17 @@ module BrNfe
|
|
12
15
|
# <b>Default: </b> _:normal_
|
13
16
|
#
|
14
17
|
attr_accessor :tipo_emissao
|
18
|
+
def tipo_emissao= value
|
19
|
+
if "#{value}" == '1'
|
20
|
+
@tipo_emissao = :normal
|
21
|
+
elsif "#{value}" == '9'
|
22
|
+
@tipo_emissao = :offline_nfce
|
23
|
+
elsif "#{value}".in?(%w[6 7])
|
24
|
+
@tipo_emissao = :svc
|
25
|
+
else
|
26
|
+
@tipo_emissao = value
|
27
|
+
end
|
28
|
+
end
|
15
29
|
|
16
30
|
# Informações que devem ser informadas quando a operação for em contingência.
|
17
31
|
#
|
@@ -41,6 +55,7 @@ module BrNfe
|
|
41
55
|
def default_values
|
42
56
|
{
|
43
57
|
tipo_emissao: :normal,
|
58
|
+
nfe_version: :v3_10,
|
44
59
|
}
|
45
60
|
end
|
46
61
|
|
@@ -48,97 +63,156 @@ module BrNfe
|
|
48
63
|
true
|
49
64
|
end
|
50
65
|
|
51
|
-
#
|
52
|
-
|
53
|
-
true
|
54
|
-
end
|
55
|
-
|
56
|
-
# O Gateway é responsável de identificar o Webservice de acordo com o Estado(UF).
|
57
|
-
# Irá identificar o webservice através do valor do método `ibge_code_of_issuer_uf`,
|
58
|
-
# na qual pode ser setado diretamente ou pego através do endereço do emissor.
|
59
|
-
# Para ver a lista de WebService por estado acesse: http://www.nfe.fazenda.gov.br/portal/webServices.aspx
|
66
|
+
# Método utilizado para saber qual Webservice será utilizado.
|
67
|
+
# Deve sempre retornar um symbol de acordo com as configurações dos gateways.
|
60
68
|
#
|
61
|
-
# <b>Tipo de retorno: </b>
|
69
|
+
# <b>Tipo de retorno: </b> _Symbol_
|
62
70
|
#
|
63
71
|
def gateway
|
64
72
|
@gateway ||= case tipo_emissao
|
65
73
|
when :normal
|
66
74
|
get_gateway_by_normal_operation
|
67
75
|
when :svc
|
68
|
-
get_gateway_by_svc_operation
|
76
|
+
get_gateway_by_svc_operation
|
69
77
|
end
|
70
78
|
end
|
71
79
|
|
80
|
+
# Configurações das operações da nota fiscal de acordo com a versão.
|
81
|
+
#
|
82
|
+
def nfe_settings
|
83
|
+
BrNfe.settings[:nfe][nfe_version]
|
84
|
+
end
|
85
|
+
|
86
|
+
# Método que retorna as configurações do Servidor da Sefaz a ser utilziada.
|
87
|
+
# Irá retornar um Hash com as seguntes chaves:
|
88
|
+
# - :operation => Contém qual a versão do XML que é utilizado, qual o método
|
89
|
+
# da operação e a url do xmlns raiz que será adicionado no XML
|
90
|
+
# - :soap_client => Contém as configurações para instanciar o client Soap com o Savon.
|
91
|
+
# - :xml_paths => Contém os caminhos com namespace para encontrar os valores dentro dos XMLS
|
92
|
+
#
|
93
|
+
# <b>Tipo de retorno: </b> _Symbol_
|
94
|
+
#
|
95
|
+
def gateway_settings
|
96
|
+
nfe_settings[:gateway][gateway]
|
97
|
+
end
|
98
|
+
|
99
|
+
|
72
100
|
# WebServices utilizados para contingência em SVC (Servidor Virtual de Contingência)
|
73
101
|
# Existe 2 servidores de contingência para SVC: O `SVC-AN` e `SVC-RS`
|
74
102
|
# Cada estado(UF) é autorizado a emitir notas em contingência em apenas 1 dos servidores.
|
75
103
|
# Esse método é responsável em setar qual o WebService será utilizado para cada UF.
|
76
104
|
#
|
77
|
-
# <b>Tipo de retorno: </b>
|
105
|
+
# <b>Tipo de retorno: </b> _Hash_
|
78
106
|
#
|
79
107
|
def get_gateway_by_svc_operation
|
80
108
|
case ibge_code_of_issuer_uf
|
81
109
|
# 'AM', 'BA', 'CE', 'GO', 'MA', 'MS', 'MT', 'PA', 'PE', 'PI', 'PR'
|
82
110
|
when '13', '29', '23', '52', '21', '50', '51', '15', '26', '22', '41'
|
83
|
-
|
111
|
+
:svc_rs
|
84
112
|
else # AC, AL, AP, DF, ES, MG, PB, RJ, RN, RO, RR, RS, SC, SE, SP, TO
|
85
|
-
|
113
|
+
:svc_an
|
86
114
|
end
|
87
115
|
end
|
88
116
|
|
89
117
|
# Seta o WebService quando o tipo de emissão for normal para cada UF
|
90
118
|
#
|
91
|
-
# <b>Tipo de retorno: </b>
|
119
|
+
# <b>Tipo de retorno: </b> _Hash_
|
92
120
|
#
|
93
121
|
def get_gateway_by_normal_operation
|
94
|
-
case ibge_code_of_issuer_uf
|
122
|
+
case "#{ibge_code_of_issuer_uf}"
|
95
123
|
when '13'
|
96
|
-
|
124
|
+
:am
|
97
125
|
when '29'
|
98
|
-
|
126
|
+
:ba
|
99
127
|
when '23'
|
100
|
-
|
128
|
+
:ce
|
101
129
|
when '52'
|
102
|
-
|
130
|
+
:go
|
103
131
|
when '31'
|
104
|
-
|
132
|
+
:mg
|
105
133
|
when '50'
|
106
|
-
|
134
|
+
:ms
|
107
135
|
when '51'
|
108
|
-
|
136
|
+
:mt
|
109
137
|
when '26'
|
110
|
-
|
138
|
+
:pe
|
111
139
|
when '41'
|
112
|
-
|
140
|
+
:pr
|
113
141
|
when '43'
|
114
|
-
|
142
|
+
:rs
|
115
143
|
when '35'
|
116
|
-
|
117
|
-
when '21', '15',
|
118
|
-
|
119
|
-
else
|
120
|
-
|
144
|
+
:sp
|
145
|
+
when '21', '15' # MA, PA
|
146
|
+
:svan
|
147
|
+
else
|
148
|
+
# AC, AL, AP, ES, DF, PB, RJ, RM, RO, RR, SC, PI
|
149
|
+
# 12, 27, 16, 32, 53, 25, 33, 24, 11, 14, 42, 22
|
150
|
+
:svrs
|
121
151
|
end
|
122
152
|
end
|
123
153
|
|
154
|
+
def operation_name
|
155
|
+
raise NotImplementedError.new("Not implemented #operation_name in #{self}.")
|
156
|
+
end
|
157
|
+
|
158
|
+
# Método SOAP que será chamado para enviar o XML
|
159
|
+
#
|
160
|
+
# <b>Tipo de retorno: </b> _Symbol_
|
161
|
+
#
|
162
|
+
def method_wsdl
|
163
|
+
gateway_settings[:operation][operation_name][env][:operation_method]
|
164
|
+
end
|
165
|
+
|
124
166
|
# Valor utilizado para inserir a url do xmlns nas tags nfeCabecMsg e nfeDadosMsg.
|
125
|
-
#
|
126
|
-
#
|
167
|
+
# URL que será setada no atribto xmlns do XML;
|
168
|
+
# Ex:
|
169
|
+
# nfeCabecMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2"
|
127
170
|
#
|
128
171
|
# <b>Tipo de retorno: </b> _String_
|
129
172
|
#
|
130
173
|
def url_xmlns
|
131
|
-
|
174
|
+
gateway_settings[:operation][operation_name][env][:url_xmlns]
|
132
175
|
end
|
133
176
|
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
177
|
+
# Versão utilizada pelo webservice do estado para determinada ação.
|
178
|
+
# Irá retornar a versão setada de acordo com o serviço e estado conforme
|
179
|
+
# descrito em: http://www.nfe.fazenda.gov.br/portal/webServices.aspx
|
137
180
|
#
|
138
181
|
# <b>Tipo de retorno: </b> _Symbol_
|
139
182
|
#
|
140
183
|
def gateway_xml_version
|
141
|
-
|
184
|
+
gateway_settings[:operation][operation_name][env][:xml_version]
|
185
|
+
end
|
186
|
+
|
187
|
+
# Retorna o xmlns utilizada para identificar o envelope da requisição SOAP
|
188
|
+
# Normalmente é http://www.w3.org/2003/05/soap-envelope
|
189
|
+
#
|
190
|
+
# <b>Tipo de retorno: </b> _String_
|
191
|
+
#
|
192
|
+
def xmlns_soap
|
193
|
+
gateway_settings[:operation][operation_name][env][:xmlns_soap]
|
194
|
+
end
|
195
|
+
|
196
|
+
# Parâmetros específicos para cada servidor de cada estado para
|
197
|
+
# que seja instanciado o Client WSDL savon.
|
198
|
+
#
|
199
|
+
# <b>Tipo de retorno: </b> _Hash_
|
200
|
+
#
|
201
|
+
def client_wsdl_params
|
202
|
+
super.merge({
|
203
|
+
ssl_version: :SSLv3, # Valores possíveis: [:TLSv1_2, :TLSv1_1, :TLSv1, :SSLv3, :SSLv23]
|
204
|
+
ssl_cert: certificate,
|
205
|
+
ssl_cert_key: certificate_key,
|
206
|
+
ssl_cert_key_password: certificate_pkcs12_password,
|
207
|
+
}).merge(gateway_settings[:soap_client][operation_name][env])
|
208
|
+
end
|
209
|
+
|
210
|
+
|
211
|
+
# Deve conter o LINK do webservice a ser chamado
|
212
|
+
# TODO: Remover método
|
213
|
+
#
|
214
|
+
def url_wsdl
|
215
|
+
''
|
142
216
|
end
|
143
217
|
|
144
218
|
# Versão do XML utilizado na requisição.
|
@@ -206,10 +280,10 @@ module BrNfe
|
|
206
280
|
when :normal
|
207
281
|
1
|
208
282
|
when :svc
|
209
|
-
if gateway
|
210
|
-
|
211
|
-
else
|
212
|
-
|
283
|
+
if gateway == :svc_rs
|
284
|
+
7 # SVC-RS
|
285
|
+
else
|
286
|
+
6 # SVC-AN
|
213
287
|
end
|
214
288
|
end
|
215
289
|
end
|
@@ -243,8 +317,8 @@ module BrNfe
|
|
243
317
|
|
244
318
|
def get_response
|
245
319
|
builder = response_class_builder.new do |builder|
|
246
|
-
builder.savon_response
|
247
|
-
builder.operation
|
320
|
+
builder.savon_response = @savon_response
|
321
|
+
builder.operation = self
|
248
322
|
end
|
249
323
|
builder.assign_attributes(builder_response_params)
|
250
324
|
builder.response
|