br_nfe 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -0
- data/.travis.yml +8 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +27 -3
- data/LICENSE +1 -1
- data/README.markdown +10 -12
- data/Rakefile +13 -0
- data/br_nfe.gemspec +18 -21
- data/lib/br_nfe/active_model_base.rb +7 -1
- data/lib/br_nfe/base.rb +175 -37
- data/lib/br_nfe/endereco.rb +7 -1
- data/lib/br_nfe/helper/have_rps.rb +1 -1
- data/lib/br_nfe/helper/values_ts/service_v1.rb +313 -0
- data/lib/br_nfe/response/service/build_response.rb +286 -0
- data/lib/br_nfe/response/service/default.rb +185 -0
- data/lib/br_nfe/{servico/response → response/service}/nota_fiscal.rb +11 -10
- data/lib/br_nfe/response/service/paths/base.rb +93 -0
- data/lib/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta.rb +22 -0
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta.rb +25 -0
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta.rb +25 -0
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta.rb +25 -0
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta.rb +31 -0
- data/lib/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta.rb +36 -0
- data/lib/br_nfe/response/service/paths/v1/tc_nfse.rb +127 -0
- data/lib/br_nfe/service/base.rb +59 -0
- data/lib/br_nfe/service/betha/base.rb +8 -0
- data/lib/br_nfe/service/betha/v1/cancelamento_nfs.rb +39 -0
- data/lib/br_nfe/service/betha/v1/consulta_lote_rps.rb +34 -0
- data/lib/br_nfe/service/betha/v1/consulta_nfs_por_rps.rb +32 -0
- data/lib/br_nfe/service/betha/v1/consulta_nfse.rb +32 -0
- data/lib/br_nfe/service/betha/v1/consulta_situacao_lote_rps.rb +30 -0
- data/lib/br_nfe/service/betha/v1/gateway.rb +21 -0
- data/lib/br_nfe/service/betha/v1/recepcao_lote_rps.rb +37 -0
- data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta.rb +19 -0
- data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta.rb +17 -0
- data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +17 -0
- data/lib/br_nfe/service/concerns/rules/cancelamento_nfs.rb +20 -0
- data/lib/br_nfe/service/concerns/rules/consulta_nfs_por_rps.rb +18 -0
- data/lib/br_nfe/service/concerns/rules/consulta_nfse.rb +29 -0
- data/lib/br_nfe/service/concerns/rules/recepcao_lote_rps.rb +50 -0
- data/lib/br_nfe/{servico → service}/intermediario.rb +1 -1
- data/lib/br_nfe/service/item.rb +70 -0
- data/lib/br_nfe/service/rps.rb +231 -0
- data/lib/br_nfe/service/sc/florianopolis/base.rb +25 -0
- data/lib/br_nfe/service/sc/florianopolis/cancellation.rb +30 -0
- data/lib/br_nfe/service/sc/florianopolis/emission_rps.rb +19 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/_address.xml.slim +21 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/_contact.xml.slim +3 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/_service_item.xml.slim +9 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/cancellation.xml.slim +6 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/inf_requisicao.xml.slim +55 -0
- data/lib/br_nfe/service/sc/gaspar/cancela_nfse.rb +13 -0
- data/lib/br_nfe/service/sc/gaspar/consulta_lote_rps.rb +13 -0
- data/lib/br_nfe/service/sc/gaspar/consulta_nfs_por_rps.rb +13 -0
- data/lib/br_nfe/service/sc/gaspar/consulta_nfse.rb +17 -0
- data/lib/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps.rb +13 -0
- data/lib/br_nfe/service/sc/gaspar/recepcao_lote_rps.rb +13 -0
- data/lib/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado.rb +13 -0
- data/lib/br_nfe/service/thema/v1/base.rb +55 -0
- data/lib/br_nfe/service/thema/v1/cancela_nfse.rb +48 -0
- data/lib/br_nfe/service/thema/v1/consulta_lote_rps.rb +49 -0
- data/lib/br_nfe/service/thema/v1/consulta_nfs_por_rps.rb +48 -0
- data/lib/br_nfe/service/thema/v1/consulta_nfse.rb +47 -0
- data/lib/br_nfe/service/thema/v1/consulta_situacao_lote_rps.rb +46 -0
- data/lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb +51 -0
- data/lib/br_nfe/service/thema/v1/recepcao_lote_rps_limitado.rb +30 -0
- data/lib/br_nfe/service/xml/v1/_tc_contato.xml.slim +7 -0
- data/lib/br_nfe/service/xml/v1/_tc_cpf_cnpj.xml.slim +5 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_construcao_civil.xml.slim +2 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_prestador.xml.slim +15 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_servico.xml.slim +14 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_tomador.xml.slim +15 -0
- data/lib/br_nfe/service/xml/v1/_tc_endereco.xml.slim +13 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_intermediario_servico.xml.slim +7 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_nfse.xml.slim +7 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_orgao_gerador.xml.slim +8 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_prestador.xml.slim +3 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_rps.xml.slim +16 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_tomador.xml.slim +4 -0
- data/lib/br_nfe/service/xml/v1/_tc_inf_pedido_cancelamento.xml.slim +4 -0
- data/lib/br_nfe/service/xml/v1/_tc_inf_rps.xml.slim +47 -0
- data/lib/br_nfe/service/xml/v1/_tc_lote_rps.xml.slim +9 -0
- data/lib/br_nfe/service/xml/v1/_tc_pedido_cancelamento.xml.slim +4 -0
- data/lib/br_nfe/service/xml/v1/_tc_rps.xml.slim +8 -0
- data/lib/br_nfe/service/xml/v1/_tc_valores.xml.slim +48 -0
- data/lib/br_nfe/service/xml/v1/servico_cancelar_nfse_envio.xml.slim +9 -0
- data/lib/br_nfe/service/xml/v1/servico_consultar_lote_rps_envio.xml.slim +4 -0
- data/lib/br_nfe/service/xml/v1/servico_consultar_nfse_envio.xml.slim +19 -0
- data/lib/br_nfe/service/xml/v1/servico_consultar_nfse_rps_envio.xml.slim +5 -0
- data/lib/br_nfe/service/xml/v1/servico_consultar_situacao_lote_rps_envio.xml.slim +4 -0
- data/lib/br_nfe/service/xml/v1/servico_enviar_lote_rps_envio.xml.slim +9 -0
- data/lib/br_nfe/version.rb +2 -2
- data/lib/br_nfe/xml/_signed_info_sh1.xml.slim +9 -0
- data/lib/br_nfe/xml/signature_sh1.xml.slim +12 -0
- data/lib/br_nfe/xml/soap_env.xml.slim +3 -0
- data/lib/br_nfe.rb +72 -20
- data/test/br_nfe/base_test.rb +257 -108
- data/test/br_nfe/helper/have_intermediario_test.rb +2 -2
- data/test/br_nfe/helper/have_rps_test.rb +4 -4
- data/test/br_nfe/response/service/build_response_test.rb +377 -0
- data/test/br_nfe/response/service/default_test.rb +218 -0
- data/test/br_nfe/{servico/response → response/service}/nota_fiscal_test.rb +2 -2
- data/test/br_nfe/response/service/paths/base_test.rb +199 -0
- data/test/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta_test.rb +25 -0
- data/test/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta_test.rb +30 -0
- data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta_test.rb +30 -0
- data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta_test.rb +30 -0
- data/test/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta_test.rb +30 -0
- data/test/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta_test.rb +34 -0
- data/test/br_nfe/response/service/paths/v1/tc_nfse_test.rb +122 -0
- data/test/br_nfe/service/base_test.rb +138 -0
- data/test/br_nfe/service/betha/base_test.rb +9 -0
- data/test/br_nfe/service/betha/v1/cancelamento_nfs_test.rb +60 -0
- data/test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb +55 -0
- data/test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb +55 -0
- data/test/br_nfe/service/betha/v1/consulta_nfse_test.rb +53 -0
- data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +49 -0
- data/test/br_nfe/service/betha/v1/gateway_test.rb +35 -0
- data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +84 -0
- data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta_test.rb +16 -0
- data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta_test.rb +16 -0
- data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta_test.rb +16 -0
- data/test/br_nfe/service/betha/v1/xsd/TiposNFe_v01.xsd +583 -0
- data/test/br_nfe/service/betha/v1/xsd/nfse_v01.xsd +652 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_cancelar_nfse_envio_v01.xsd +17 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_consultar_lote_rps_envio_v01.xsd +16 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_consultar_nfse_envio_v01.xsd +28 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_consultar_nfse_rps_envio_v01.xsd +16 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_consultar_situacao_lote_rps_envio_v01.xsd +16 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_enviar_lote_rps_envio_v01.xsd +17 -0
- data/test/br_nfe/service/betha/v1/xsd/xmldsig-core-schema.xsd +308 -0
- data/test/br_nfe/service/betha/v1/xsd/xmldsig-core-schema_v01.xsd +95 -0
- data/test/br_nfe/service/concerns/rules/cancelamento_nfs_test.rb +15 -0
- data/test/br_nfe/service/concerns/rules/consulta_nfs_por_rps_test.rb +36 -0
- data/test/br_nfe/service/concerns/rules/consulta_nfse_test.rb +42 -0
- data/test/br_nfe/{servico/base_test.rb → service/concerns/rules/recepcao_lote_rps_test.rb} +12 -4
- data/test/br_nfe/{servico → service}/intermediario_test.rb +1 -1
- data/test/br_nfe/service/item_test.rb +34 -0
- data/test/br_nfe/{servico → service}/rps_test.rb +191 -43
- data/test/br_nfe/service/sc/florianopolis/XSD/TiposNFSe_v2.0.xsd +863 -0
- data/test/br_nfe/service/sc/florianopolis/XSD/xmldsig-core-schema.xsd +309 -0
- data/test/br_nfe/service/sc/florianopolis/base_test.rb +20 -0
- data/test/br_nfe/service/sc/florianopolis/cancellation_test.rb +36 -0
- data/test/br_nfe/service/sc/florianopolis/emission_rps_test.rb +145 -0
- data/test/br_nfe/service/sc/gaspar/cancela_nfse_test.rb +21 -0
- data/test/br_nfe/service/sc/gaspar/consulta_nfs_por_rps_test.rb +21 -0
- data/test/br_nfe/service/sc/gaspar/consulta_nfse_test.rb +21 -0
- data/test/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps_test.rb +21 -0
- data/test/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado_test.rb +22 -0
- data/test/br_nfe/service/sc/gaspar/recepcao_lote_rps_test.rb +22 -0
- data/test/br_nfe/service/thema/v1/base_test.rb +65 -0
- data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +56 -0
- data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +47 -0
- data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +50 -0
- data/test/br_nfe/service/thema/v1/consulta_nfse_test.rb +50 -0
- data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +47 -0
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +62 -0
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test_limitado.rb +50 -0
- data/test/br_nfe/service/thema/v1/xsd/nfse.xsd +656 -0
- data/test/br_nfe/service/thema/v1/xsd/xmldsig-core-schema20020212.xsd +318 -0
- data/test/br_nfe/service/xsd/v1/nfse.xsd +779 -0
- data/test/br_nfe/service/xsd/v1/xmldsig-core-schema20020212.xsd +316 -0
- data/test/cert.pfx +0 -0
- data/test/factories/base.rb +2 -0
- data/test/factories/destinatario.rb +3 -3
- data/test/factories/response/service/build_response.rb +5 -0
- data/test/factories/response/service/default.rb +10 -0
- data/test/factories/{servico/response → response/service}/nota_fiscal.rb +9 -9
- data/test/factories/service/base.rb +6 -0
- data/test/factories/service/betha/base.rb +4 -0
- data/test/factories/service/betha/v1/cancelamento_nfs.rb +9 -0
- data/test/factories/{servico → service}/betha/v1/consulta_lote_rps.rb +2 -2
- data/test/factories/{servico → service}/betha/v1/consulta_nfs_por_rps.rb +1 -1
- data/test/factories/service/betha/v1/consulta_nfse.rb +8 -0
- data/test/factories/{servico → service}/betha/v1/consulta_situacao_lote_rps.rb +2 -2
- data/test/factories/{servico → service}/betha/v1/gateway.rb +1 -1
- data/test/factories/service/betha/v1/recepcao_lote_rps.rb +8 -0
- data/test/factories/{servico → service}/intermediario.rb +2 -2
- data/test/factories/service/item.rb +12 -0
- data/test/factories/service/rps.rb +50 -0
- data/test/factories/service/sc/florianopolis/base.rb +5 -0
- data/test/factories/service/sc/florianopolis/cancellation.rb +7 -0
- data/test/factories/service/sc/florianopolis/emission_rps.rb +7 -0
- data/test/factories/service/sc/gaspar/cancela_nfse.rb +9 -0
- data/test/factories/service/sc/gaspar/consulta_lote_rps.rb +7 -0
- data/test/factories/service/sc/gaspar/consulta_nfs_por_rps.rb +6 -0
- data/test/factories/service/sc/gaspar/consulta_nfse.rb +8 -0
- data/test/factories/service/sc/gaspar/consulta_situacao_lote_rps.rb +6 -0
- data/test/factories/service/sc/gaspar/recepcao_lote_rps.rb +9 -0
- data/test/factories/service/sc/gaspar/recepcao_lote_rps_limitado.rb +9 -0
- data/test/factories/service/thema/v1/base.rb +7 -0
- data/test/factories/service/thema/v1/cancela_nfse.rb +9 -0
- data/test/factories/service/thema/v1/consulta_lote_rps.rb +7 -0
- data/test/factories/service/thema/v1/consulta_nfs_por_rps.rb +6 -0
- data/test/factories/service/thema/v1/consulta_nfse.rb +8 -0
- data/test/factories/service/thema/v1/consulta_situacao_lote_rps.rb +6 -0
- data/test/factories/service/thema/v1/recepcao_lote_rps.rb +9 -0
- data/test/factories/service/thema/v1/recepcao_lote_rps_limitado.rb +8 -0
- data/test/test_helper.rb +42 -0
- metadata +338 -121
- data/lib/br_nfe/servico/base.rb +0 -35
- data/lib/br_nfe/servico/betha/base.rb +0 -85
- data/lib/br_nfe/servico/betha/build_response.rb +0 -141
- data/lib/br_nfe/servico/betha/v1/build_response.rb +0 -121
- data/lib/br_nfe/servico/betha/v1/cancelamento_nfs.rb +0 -52
- data/lib/br_nfe/servico/betha/v1/consulta_lote_rps.rb +0 -33
- data/lib/br_nfe/servico/betha/v1/consulta_nfs_por_rps.rb +0 -37
- data/lib/br_nfe/servico/betha/v1/consulta_nfse.rb +0 -51
- data/lib/br_nfe/servico/betha/v1/consulta_situacao_lote_rps.rb +0 -18
- data/lib/br_nfe/servico/betha/v1/gateway.rb +0 -125
- data/lib/br_nfe/servico/betha/v1/recepcao_lote_rps.rb +0 -97
- data/lib/br_nfe/servico/betha/v2/build_response.rb +0 -159
- data/lib/br_nfe/servico/betha/v2/cancelamento_nfs.rb +0 -30
- data/lib/br_nfe/servico/betha/v2/consulta_lote_rps.rb +0 -30
- data/lib/br_nfe/servico/betha/v2/consulta_nfse_por_rps.rb +0 -27
- data/lib/br_nfe/servico/betha/v2/envio_lote_rps_sincrono.rb +0 -30
- data/lib/br_nfe/servico/betha/v2/gateway.rb +0 -230
- data/lib/br_nfe/servico/betha/v2/gera_nfse.rb +0 -30
- data/lib/br_nfe/servico/betha/v2/recepcao_lote_rps.rb +0 -52
- data/lib/br_nfe/servico/betha/v2/substituicao_nfse.rb +0 -43
- data/lib/br_nfe/servico/response/default.rb +0 -34
- data/lib/br_nfe/servico/rps.rb +0 -108
- data/test/br_nfe/servico/betha/base_test.rb +0 -135
- data/test/br_nfe/servico/betha/v1/build_response_test.rb +0 -557
- data/test/br_nfe/servico/betha/v1/cancelamento_nfs_test.rb +0 -72
- data/test/br_nfe/servico/betha/v1/consulta_lote_rps_test.rb +0 -46
- data/test/br_nfe/servico/betha/v1/consulta_nfs_por_rps_test.rb +0 -68
- data/test/br_nfe/servico/betha/v1/consulta_nfse_test.rb +0 -74
- data/test/br_nfe/servico/betha/v1/consulta_situacao_lote_rps_test.rb +0 -27
- data/test/br_nfe/servico/betha/v1/gateway_test.rb +0 -151
- data/test/br_nfe/servico/betha/v1/recepcao_lote_rps_test.rb +0 -249
- data/test/br_nfe/servico/betha/v2/cancelamento_nfs_test.rb +0 -44
- data/test/br_nfe/servico/betha/v2/consulta_lote_rps_test.rb +0 -38
- data/test/br_nfe/servico/betha/v2/consulta_nfse_por_rps_test.rb +0 -36
- data/test/br_nfe/servico/betha/v2/envio_lote_rps_sincrono_test.rb +0 -51
- data/test/br_nfe/servico/betha/v2/gateway_test.rb +0 -372
- data/test/br_nfe/servico/betha/v2/gera_nfse_test.rb +0 -62
- data/test/br_nfe/servico/betha/v2/recepcao_lote_rps_test.rb +0 -108
- data/test/br_nfe/servico/betha/v2/substituicao_nfse_test.rb +0 -84
- data/test/br_nfe/servico/response/default_test.rb +0 -54
- data/test/factories/servico/base.rb +0 -5
- data/test/factories/servico/betha/base.rb +0 -5
- data/test/factories/servico/betha/v1/build_response.rb +0 -6
- data/test/factories/servico/betha/v1/cancelamento_nfs.rb +0 -7
- data/test/factories/servico/betha/v1/consulta_nfse.rb +0 -8
- data/test/factories/servico/betha/v1/recepcao_lote_rps.rb +0 -6
- data/test/factories/servico/betha/v2/cancelamento_nfs.rb +0 -7
- data/test/factories/servico/betha/v2/consulta_lote_rps.rb +0 -6
- data/test/factories/servico/betha/v2/consulta_nfse_por_rps.rb +0 -6
- data/test/factories/servico/betha/v2/envio_lote_rps_sincrono.rb +0 -5
- data/test/factories/servico/betha/v2/gateway.rb +0 -5
- data/test/factories/servico/betha/v2/gera_nfse.rb +0 -6
- data/test/factories/servico/betha/v2/recepcao_lote_rps.rb +0 -5
- data/test/factories/servico/betha/v2/substituicao_nfse.rb +0 -8
- data/test/factories/servico/response/default.rb +0 -10
- data/test/factories/servico/rps.rb +0 -44
@@ -1,6 +1,6 @@
|
|
1
1
|
FactoryGirl.define do
|
2
|
-
factory :servico_betha_consulta_situacao_lote_rps, class: BrNfe::
|
3
|
-
protocolo '
|
2
|
+
factory :servico_betha_consulta_situacao_lote_rps, class: BrNfe::Service::Betha::V1::ConsultaSituacaoLoteRps do
|
3
|
+
protocolo '1234567890'
|
4
4
|
emitente { FactoryGirl.build(:emitente) }
|
5
5
|
end
|
6
6
|
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :br_nfe_servico_betha_recepcao_lote_rps, class: BrNfe::Service::Betha::V1::RecepcaoLoteRps do
|
3
|
+
numero_lote_rps '123'
|
4
|
+
operacao '1'
|
5
|
+
certificate_pkcs12_password 'associacao'
|
6
|
+
certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
|
7
|
+
end
|
8
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
FactoryGirl.define do
|
2
|
-
factory :intermediario, class: BrNfe::
|
2
|
+
factory :intermediario, class: BrNfe::Service::Intermediario do
|
3
3
|
cpf_cnpj '66.788.854/0001-92'
|
4
|
-
inscricao_municipal '
|
4
|
+
inscricao_municipal '51658'
|
5
5
|
razao_social 'RAZÃO SOCIAL'
|
6
6
|
end
|
7
7
|
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :br_nfe_rps, class: BrNfe::Service::Rps do
|
3
|
+
destinatario { FactoryGirl.build(:destinatario) }
|
4
|
+
numero 556
|
5
|
+
serie 'SN'
|
6
|
+
tipo '1'
|
7
|
+
data_emissao DateTime.now
|
8
|
+
status '1'
|
9
|
+
competencia Date.today
|
10
|
+
total_services '349.00'
|
11
|
+
total_iss '6.98'
|
12
|
+
iss_tax_rate '0.02'
|
13
|
+
base_calculation '349.00'
|
14
|
+
iss_retained '2'
|
15
|
+
item_lista_servico '0107'
|
16
|
+
description "MENSALIDADE PLANO PRO. 349,00 \n\nValor Aprox dos Tributos: R$ 6,59 Federal, R$ 0,00 Estadual e R$ 1,62 Municipal \n Fonte: IBPT/FECOMERCIO SC 5oi7eW"
|
17
|
+
codigo_municipio '4204202'
|
18
|
+
cnae_code '6202300'
|
19
|
+
|
20
|
+
trait :completo do
|
21
|
+
codigo_tributacao_municipio '6699'
|
22
|
+
condicao_pagamento { FactoryGirl.build(:condicao_pagamento, :a_prazo) }
|
23
|
+
intermediario { FactoryGirl.build(:intermediario) }
|
24
|
+
numero_substituicao '555'
|
25
|
+
serie_substituicao 'SN'
|
26
|
+
tipo_substituicao '1'
|
27
|
+
codigo_obra '66'
|
28
|
+
codigo_art '223'
|
29
|
+
outras_informacoes 'info a mais'
|
30
|
+
total_base_calculation_st 55.77
|
31
|
+
total_issqn_st 4.87
|
32
|
+
deductions 7.0
|
33
|
+
valor_pis 1.123
|
34
|
+
valor_cofins 2.123
|
35
|
+
valor_inss 3.123
|
36
|
+
valor_ir 4.123
|
37
|
+
valor_csll 5.123
|
38
|
+
outras_retencoes 6.123
|
39
|
+
desconto_incondicionado 7.123
|
40
|
+
desconto_condicionado 8.123
|
41
|
+
responsavel_retencao '1'
|
42
|
+
exigibilidade_iss '5'
|
43
|
+
numero_processo '6546'
|
44
|
+
iss_retained true
|
45
|
+
total_iss_retained 5.55
|
46
|
+
net_value 349.00
|
47
|
+
municipio_incidencia '111'
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :service_sc_gaspar_cancela_nfse, class: BrNfe::Service::SC::Gaspar::CancelaNfse do
|
3
|
+
nfe_number '3365'
|
4
|
+
codigo_cancelamento '1'
|
5
|
+
certificate_pkcs12_password 'associacao'
|
6
|
+
certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
|
7
|
+
emitente { FactoryGirl.build(:emitente) }
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :service_sc_gaspar_recepcao_lote_rps, class: BrNfe::Service::SC::Gaspar::RecepcaoLoteRps do
|
3
|
+
emitente { FactoryGirl.build(:emitente) }
|
4
|
+
numero_lote_rps '123'
|
5
|
+
operacao '1'
|
6
|
+
certificate_pkcs12_password 'associacao'
|
7
|
+
certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :service_sc_gaspar_recepcao_lote_rps_limitado, class: BrNfe::Service::SC::Gaspar::RecepcaoLoteRpsLimitado do
|
3
|
+
emitente { FactoryGirl.build(:emitente) }
|
4
|
+
numero_lote_rps '123'
|
5
|
+
operacao '1'
|
6
|
+
certificate_pkcs12_password 'associacao'
|
7
|
+
certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :service_thema_v1_cancela_nfse, class: BrNfe::Service::Thema::V1::CancelaNfse do
|
3
|
+
nfe_number '3365'
|
4
|
+
codigo_cancelamento '1'
|
5
|
+
certificate_pkcs12_password 'associacao'
|
6
|
+
certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
|
7
|
+
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :service_thema_v1_recepcao_lote_rps, class: BrNfe::Service::Thema::V1::RecepcaoLoteRps do
|
3
|
+
emitente { FactoryGirl.build(:emitente) }
|
4
|
+
numero_lote_rps '123'
|
5
|
+
operacao '1'
|
6
|
+
certificate_pkcs12_password 'associacao'
|
7
|
+
certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :service_thema_v1_recepcao_lote_rps_limitado, class: BrNfe::Service::Thema::V1::RecepcaoLoteRpsLimitado do
|
3
|
+
numero_lote_rps '123'
|
4
|
+
operacao '1'
|
5
|
+
certificate_pkcs12_password 'associacao'
|
6
|
+
certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
|
7
|
+
end
|
8
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
require 'bundler/setup'
|
3
|
+
Bundler.require(:default, :test)
|
4
|
+
|
5
|
+
ENV["RAILS_ENV"] = "test"
|
6
|
+
require "rails/test_help"
|
7
|
+
require 'minitest/autorun'
|
8
|
+
require "minitest/rails"
|
9
|
+
require 'minitest/matchers_vaccine'
|
10
|
+
|
11
|
+
require 'shoulda/matchers'
|
12
|
+
require "minitest/reporters"
|
13
|
+
require 'mocha/mini_test'
|
14
|
+
|
15
|
+
require "codeclimate-test-reporter"
|
16
|
+
CodeClimate::TestReporter.start
|
17
|
+
|
18
|
+
|
19
|
+
require 'factory_girl_rails'
|
20
|
+
|
21
|
+
Minitest::Reporters.use!
|
22
|
+
|
23
|
+
if ActiveSupport.version >= Gem::Version.new('4.2')
|
24
|
+
ActiveSupport::TestCase.test_order = :sorted
|
25
|
+
end
|
26
|
+
|
27
|
+
FactoryGirl.definition_file_paths = [File.expand_path('../factories', __FILE__)]
|
28
|
+
FactoryGirl.find_definitions
|
29
|
+
|
30
|
+
class Module
|
31
|
+
include Minitest::Spec::DSL
|
32
|
+
end
|
33
|
+
|
34
|
+
class Object
|
35
|
+
alias context describe
|
36
|
+
end
|
37
|
+
|
38
|
+
class MiniTest::Spec
|
39
|
+
include Shoulda::Matchers::ActiveModel
|
40
|
+
include FactoryGirl::Syntax::Methods
|
41
|
+
let(:sequence_1) { sequence('sequence_1') }
|
42
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: br_nfe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno M. Mergen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -94,16 +94,63 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.4'
|
97
|
-
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: slim
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: slim-rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.1'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.1'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.10'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.10'
|
139
|
+
description: BrNfe é uma gem para projetos Ruby on Rails que tem como objetifo facilitar
|
140
|
+
e padronizar a emissão de Notas Fiscais eletrônicas
|
98
141
|
email:
|
99
142
|
- brunomergen@gmail.com
|
100
143
|
executables: []
|
101
144
|
extensions: []
|
102
145
|
extra_rdoc_files: []
|
103
146
|
files:
|
147
|
+
- ".gitignore"
|
148
|
+
- ".travis.yml"
|
149
|
+
- Gemfile
|
104
150
|
- Gemfile.lock
|
105
151
|
- LICENSE
|
106
152
|
- README.markdown
|
153
|
+
- Rakefile
|
107
154
|
- br_nfe.gemspec
|
108
155
|
- lib/br_nfe.rb
|
109
156
|
- lib/br_nfe/active_model_base.rb
|
@@ -120,31 +167,89 @@ files:
|
|
120
167
|
- lib/br_nfe/helper/have_intermediario.rb
|
121
168
|
- lib/br_nfe/helper/have_rps.rb
|
122
169
|
- lib/br_nfe/helper/string_methods.rb
|
123
|
-
- lib/br_nfe/
|
124
|
-
- lib/br_nfe/
|
125
|
-
- lib/br_nfe/
|
126
|
-
- lib/br_nfe/
|
127
|
-
- lib/br_nfe/
|
128
|
-
- lib/br_nfe/
|
129
|
-
- lib/br_nfe/
|
130
|
-
- lib/br_nfe/
|
131
|
-
- lib/br_nfe/
|
132
|
-
- lib/br_nfe/
|
133
|
-
- lib/br_nfe/
|
134
|
-
- lib/br_nfe/
|
135
|
-
- lib/br_nfe/
|
136
|
-
- lib/br_nfe/
|
137
|
-
- lib/br_nfe/
|
138
|
-
- lib/br_nfe/
|
139
|
-
- lib/br_nfe/
|
140
|
-
- lib/br_nfe/
|
141
|
-
- lib/br_nfe/
|
142
|
-
- lib/br_nfe/
|
143
|
-
- lib/br_nfe/
|
144
|
-
- lib/br_nfe/
|
145
|
-
- lib/br_nfe/
|
146
|
-
- lib/br_nfe/
|
170
|
+
- lib/br_nfe/helper/values_ts/service_v1.rb
|
171
|
+
- lib/br_nfe/response/service/build_response.rb
|
172
|
+
- lib/br_nfe/response/service/default.rb
|
173
|
+
- lib/br_nfe/response/service/nota_fiscal.rb
|
174
|
+
- lib/br_nfe/response/service/paths/base.rb
|
175
|
+
- lib/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta.rb
|
176
|
+
- lib/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta.rb
|
177
|
+
- lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta.rb
|
178
|
+
- lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta.rb
|
179
|
+
- lib/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta.rb
|
180
|
+
- lib/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta.rb
|
181
|
+
- lib/br_nfe/response/service/paths/v1/tc_nfse.rb
|
182
|
+
- lib/br_nfe/service/base.rb
|
183
|
+
- lib/br_nfe/service/betha/base.rb
|
184
|
+
- lib/br_nfe/service/betha/v1/cancelamento_nfs.rb
|
185
|
+
- lib/br_nfe/service/betha/v1/consulta_lote_rps.rb
|
186
|
+
- lib/br_nfe/service/betha/v1/consulta_nfs_por_rps.rb
|
187
|
+
- lib/br_nfe/service/betha/v1/consulta_nfse.rb
|
188
|
+
- lib/br_nfe/service/betha/v1/consulta_situacao_lote_rps.rb
|
189
|
+
- lib/br_nfe/service/betha/v1/gateway.rb
|
190
|
+
- lib/br_nfe/service/betha/v1/recepcao_lote_rps.rb
|
191
|
+
- lib/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta.rb
|
192
|
+
- lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta.rb
|
193
|
+
- lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta.rb
|
194
|
+
- lib/br_nfe/service/concerns/rules/cancelamento_nfs.rb
|
195
|
+
- lib/br_nfe/service/concerns/rules/consulta_nfs_por_rps.rb
|
196
|
+
- lib/br_nfe/service/concerns/rules/consulta_nfse.rb
|
197
|
+
- lib/br_nfe/service/concerns/rules/recepcao_lote_rps.rb
|
198
|
+
- lib/br_nfe/service/intermediario.rb
|
199
|
+
- lib/br_nfe/service/item.rb
|
200
|
+
- lib/br_nfe/service/rps.rb
|
201
|
+
- lib/br_nfe/service/sc/florianopolis/base.rb
|
202
|
+
- lib/br_nfe/service/sc/florianopolis/cancellation.rb
|
203
|
+
- lib/br_nfe/service/sc/florianopolis/emission_rps.rb
|
204
|
+
- lib/br_nfe/service/sc/florianopolis/xml/_address.xml.slim
|
205
|
+
- lib/br_nfe/service/sc/florianopolis/xml/_contact.xml.slim
|
206
|
+
- lib/br_nfe/service/sc/florianopolis/xml/_service_item.xml.slim
|
207
|
+
- lib/br_nfe/service/sc/florianopolis/xml/cancellation.xml.slim
|
208
|
+
- lib/br_nfe/service/sc/florianopolis/xml/inf_requisicao.xml.slim
|
209
|
+
- lib/br_nfe/service/sc/gaspar/cancela_nfse.rb
|
210
|
+
- lib/br_nfe/service/sc/gaspar/consulta_lote_rps.rb
|
211
|
+
- lib/br_nfe/service/sc/gaspar/consulta_nfs_por_rps.rb
|
212
|
+
- lib/br_nfe/service/sc/gaspar/consulta_nfse.rb
|
213
|
+
- lib/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps.rb
|
214
|
+
- lib/br_nfe/service/sc/gaspar/recepcao_lote_rps.rb
|
215
|
+
- lib/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado.rb
|
216
|
+
- lib/br_nfe/service/thema/v1/base.rb
|
217
|
+
- lib/br_nfe/service/thema/v1/cancela_nfse.rb
|
218
|
+
- lib/br_nfe/service/thema/v1/consulta_lote_rps.rb
|
219
|
+
- lib/br_nfe/service/thema/v1/consulta_nfs_por_rps.rb
|
220
|
+
- lib/br_nfe/service/thema/v1/consulta_nfse.rb
|
221
|
+
- lib/br_nfe/service/thema/v1/consulta_situacao_lote_rps.rb
|
222
|
+
- lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb
|
223
|
+
- lib/br_nfe/service/thema/v1/recepcao_lote_rps_limitado.rb
|
224
|
+
- lib/br_nfe/service/xml/v1/_tc_contato.xml.slim
|
225
|
+
- lib/br_nfe/service/xml/v1/_tc_cpf_cnpj.xml.slim
|
226
|
+
- lib/br_nfe/service/xml/v1/_tc_dados_construcao_civil.xml.slim
|
227
|
+
- lib/br_nfe/service/xml/v1/_tc_dados_prestador.xml.slim
|
228
|
+
- lib/br_nfe/service/xml/v1/_tc_dados_servico.xml.slim
|
229
|
+
- lib/br_nfe/service/xml/v1/_tc_dados_tomador.xml.slim
|
230
|
+
- lib/br_nfe/service/xml/v1/_tc_endereco.xml.slim
|
231
|
+
- lib/br_nfe/service/xml/v1/_tc_identificacao_intermediario_servico.xml.slim
|
232
|
+
- lib/br_nfe/service/xml/v1/_tc_identificacao_nfse.xml.slim
|
233
|
+
- lib/br_nfe/service/xml/v1/_tc_identificacao_orgao_gerador.xml.slim
|
234
|
+
- lib/br_nfe/service/xml/v1/_tc_identificacao_prestador.xml.slim
|
235
|
+
- lib/br_nfe/service/xml/v1/_tc_identificacao_rps.xml.slim
|
236
|
+
- lib/br_nfe/service/xml/v1/_tc_identificacao_tomador.xml.slim
|
237
|
+
- lib/br_nfe/service/xml/v1/_tc_inf_pedido_cancelamento.xml.slim
|
238
|
+
- lib/br_nfe/service/xml/v1/_tc_inf_rps.xml.slim
|
239
|
+
- lib/br_nfe/service/xml/v1/_tc_lote_rps.xml.slim
|
240
|
+
- lib/br_nfe/service/xml/v1/_tc_pedido_cancelamento.xml.slim
|
241
|
+
- lib/br_nfe/service/xml/v1/_tc_rps.xml.slim
|
242
|
+
- lib/br_nfe/service/xml/v1/_tc_valores.xml.slim
|
243
|
+
- lib/br_nfe/service/xml/v1/servico_cancelar_nfse_envio.xml.slim
|
244
|
+
- lib/br_nfe/service/xml/v1/servico_consultar_lote_rps_envio.xml.slim
|
245
|
+
- lib/br_nfe/service/xml/v1/servico_consultar_nfse_envio.xml.slim
|
246
|
+
- lib/br_nfe/service/xml/v1/servico_consultar_nfse_rps_envio.xml.slim
|
247
|
+
- lib/br_nfe/service/xml/v1/servico_consultar_situacao_lote_rps_envio.xml.slim
|
248
|
+
- lib/br_nfe/service/xml/v1/servico_enviar_lote_rps_envio.xml.slim
|
147
249
|
- lib/br_nfe/version.rb
|
250
|
+
- lib/br_nfe/xml/_signed_info_sh1.xml.slim
|
251
|
+
- lib/br_nfe/xml/signature_sh1.xml.slim
|
252
|
+
- lib/br_nfe/xml/soap_env.xml.slim
|
148
253
|
- test/br_nfe/base_test.rb
|
149
254
|
- test/br_nfe/condicao_pagamento_test.rb
|
150
255
|
- test/br_nfe/destinatario_test.rb
|
@@ -157,58 +262,112 @@ files:
|
|
157
262
|
- test/br_nfe/helper/have_emitente_test.rb
|
158
263
|
- test/br_nfe/helper/have_intermediario_test.rb
|
159
264
|
- test/br_nfe/helper/have_rps_test.rb
|
160
|
-
- test/br_nfe/
|
161
|
-
- test/br_nfe/
|
162
|
-
- test/br_nfe/
|
163
|
-
- test/br_nfe/
|
164
|
-
- test/br_nfe/
|
165
|
-
- test/br_nfe/
|
166
|
-
- test/br_nfe/
|
167
|
-
- test/br_nfe/
|
168
|
-
- test/br_nfe/
|
169
|
-
- test/br_nfe/
|
170
|
-
- test/br_nfe/
|
171
|
-
- test/br_nfe/
|
172
|
-
- test/br_nfe/
|
173
|
-
- test/br_nfe/
|
174
|
-
- test/br_nfe/
|
175
|
-
- test/br_nfe/
|
176
|
-
- test/br_nfe/
|
177
|
-
- test/br_nfe/
|
178
|
-
- test/br_nfe/
|
179
|
-
- test/br_nfe/
|
180
|
-
- test/br_nfe/
|
181
|
-
- test/br_nfe/
|
265
|
+
- test/br_nfe/response/service/build_response_test.rb
|
266
|
+
- test/br_nfe/response/service/default_test.rb
|
267
|
+
- test/br_nfe/response/service/nota_fiscal_test.rb
|
268
|
+
- test/br_nfe/response/service/paths/base_test.rb
|
269
|
+
- test/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta_test.rb
|
270
|
+
- test/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta_test.rb
|
271
|
+
- test/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta_test.rb
|
272
|
+
- test/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta_test.rb
|
273
|
+
- test/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta_test.rb
|
274
|
+
- test/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta_test.rb
|
275
|
+
- test/br_nfe/response/service/paths/v1/tc_nfse_test.rb
|
276
|
+
- test/br_nfe/service/base_test.rb
|
277
|
+
- test/br_nfe/service/betha/base_test.rb
|
278
|
+
- test/br_nfe/service/betha/v1/cancelamento_nfs_test.rb
|
279
|
+
- test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb
|
280
|
+
- test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb
|
281
|
+
- test/br_nfe/service/betha/v1/consulta_nfse_test.rb
|
282
|
+
- test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb
|
283
|
+
- test/br_nfe/service/betha/v1/gateway_test.rb
|
284
|
+
- test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb
|
285
|
+
- test/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta_test.rb
|
286
|
+
- test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta_test.rb
|
287
|
+
- test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta_test.rb
|
288
|
+
- test/br_nfe/service/betha/v1/xsd/TiposNFe_v01.xsd
|
289
|
+
- test/br_nfe/service/betha/v1/xsd/nfse_v01.xsd
|
290
|
+
- test/br_nfe/service/betha/v1/xsd/servico_cancelar_nfse_envio_v01.xsd
|
291
|
+
- test/br_nfe/service/betha/v1/xsd/servico_consultar_lote_rps_envio_v01.xsd
|
292
|
+
- test/br_nfe/service/betha/v1/xsd/servico_consultar_nfse_envio_v01.xsd
|
293
|
+
- test/br_nfe/service/betha/v1/xsd/servico_consultar_nfse_rps_envio_v01.xsd
|
294
|
+
- test/br_nfe/service/betha/v1/xsd/servico_consultar_situacao_lote_rps_envio_v01.xsd
|
295
|
+
- test/br_nfe/service/betha/v1/xsd/servico_enviar_lote_rps_envio_v01.xsd
|
296
|
+
- test/br_nfe/service/betha/v1/xsd/xmldsig-core-schema.xsd
|
297
|
+
- test/br_nfe/service/betha/v1/xsd/xmldsig-core-schema_v01.xsd
|
298
|
+
- test/br_nfe/service/concerns/rules/cancelamento_nfs_test.rb
|
299
|
+
- test/br_nfe/service/concerns/rules/consulta_nfs_por_rps_test.rb
|
300
|
+
- test/br_nfe/service/concerns/rules/consulta_nfse_test.rb
|
301
|
+
- test/br_nfe/service/concerns/rules/recepcao_lote_rps_test.rb
|
302
|
+
- test/br_nfe/service/intermediario_test.rb
|
303
|
+
- test/br_nfe/service/item_test.rb
|
304
|
+
- test/br_nfe/service/rps_test.rb
|
305
|
+
- test/br_nfe/service/sc/florianopolis/XSD/TiposNFSe_v2.0.xsd
|
306
|
+
- test/br_nfe/service/sc/florianopolis/XSD/xmldsig-core-schema.xsd
|
307
|
+
- test/br_nfe/service/sc/florianopolis/base_test.rb
|
308
|
+
- test/br_nfe/service/sc/florianopolis/cancellation_test.rb
|
309
|
+
- test/br_nfe/service/sc/florianopolis/emission_rps_test.rb
|
310
|
+
- test/br_nfe/service/sc/gaspar/cancela_nfse_test.rb
|
311
|
+
- test/br_nfe/service/sc/gaspar/consulta_nfs_por_rps_test.rb
|
312
|
+
- test/br_nfe/service/sc/gaspar/consulta_nfse_test.rb
|
313
|
+
- test/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps_test.rb
|
314
|
+
- test/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado_test.rb
|
315
|
+
- test/br_nfe/service/sc/gaspar/recepcao_lote_rps_test.rb
|
316
|
+
- test/br_nfe/service/thema/v1/base_test.rb
|
317
|
+
- test/br_nfe/service/thema/v1/cancela_nfse_test.rb
|
318
|
+
- test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb
|
319
|
+
- test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb
|
320
|
+
- test/br_nfe/service/thema/v1/consulta_nfse_test.rb
|
321
|
+
- test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb
|
322
|
+
- test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb
|
323
|
+
- test/br_nfe/service/thema/v1/recepcao_lote_rps_test_limitado.rb
|
324
|
+
- test/br_nfe/service/thema/v1/xsd/nfse.xsd
|
325
|
+
- test/br_nfe/service/thema/v1/xsd/xmldsig-core-schema20020212.xsd
|
326
|
+
- test/br_nfe/service/xsd/v1/nfse.xsd
|
327
|
+
- test/br_nfe/service/xsd/v1/xmldsig-core-schema20020212.xsd
|
328
|
+
- test/cert.pfx
|
182
329
|
- test/factories/base.rb
|
183
330
|
- test/factories/condicao_pagamento.rb
|
184
331
|
- test/factories/destinatario.rb
|
185
332
|
- test/factories/emitente.rb
|
186
333
|
- test/factories/endereco.rb
|
187
|
-
- test/factories/
|
188
|
-
- test/factories/
|
189
|
-
- test/factories/
|
190
|
-
- test/factories/
|
191
|
-
- test/factories/
|
192
|
-
- test/factories/
|
193
|
-
- test/factories/
|
194
|
-
- test/factories/
|
195
|
-
- test/factories/
|
196
|
-
- test/factories/
|
197
|
-
- test/factories/
|
198
|
-
- test/factories/
|
199
|
-
- test/factories/
|
200
|
-
- test/factories/
|
201
|
-
- test/factories/
|
202
|
-
- test/factories/
|
203
|
-
- test/factories/
|
204
|
-
- test/factories/
|
205
|
-
- test/factories/
|
206
|
-
- test/factories/
|
207
|
-
- test/factories/
|
208
|
-
- test/factories/
|
334
|
+
- test/factories/response/service/build_response.rb
|
335
|
+
- test/factories/response/service/default.rb
|
336
|
+
- test/factories/response/service/nota_fiscal.rb
|
337
|
+
- test/factories/service/base.rb
|
338
|
+
- test/factories/service/betha/base.rb
|
339
|
+
- test/factories/service/betha/v1/cancelamento_nfs.rb
|
340
|
+
- test/factories/service/betha/v1/consulta_lote_rps.rb
|
341
|
+
- test/factories/service/betha/v1/consulta_nfs_por_rps.rb
|
342
|
+
- test/factories/service/betha/v1/consulta_nfse.rb
|
343
|
+
- test/factories/service/betha/v1/consulta_situacao_lote_rps.rb
|
344
|
+
- test/factories/service/betha/v1/gateway.rb
|
345
|
+
- test/factories/service/betha/v1/recepcao_lote_rps.rb
|
346
|
+
- test/factories/service/intermediario.rb
|
347
|
+
- test/factories/service/item.rb
|
348
|
+
- test/factories/service/rps.rb
|
349
|
+
- test/factories/service/sc/florianopolis/base.rb
|
350
|
+
- test/factories/service/sc/florianopolis/cancellation.rb
|
351
|
+
- test/factories/service/sc/florianopolis/emission_rps.rb
|
352
|
+
- test/factories/service/sc/gaspar/cancela_nfse.rb
|
353
|
+
- test/factories/service/sc/gaspar/consulta_lote_rps.rb
|
354
|
+
- test/factories/service/sc/gaspar/consulta_nfs_por_rps.rb
|
355
|
+
- test/factories/service/sc/gaspar/consulta_nfse.rb
|
356
|
+
- test/factories/service/sc/gaspar/consulta_situacao_lote_rps.rb
|
357
|
+
- test/factories/service/sc/gaspar/recepcao_lote_rps.rb
|
358
|
+
- test/factories/service/sc/gaspar/recepcao_lote_rps_limitado.rb
|
359
|
+
- test/factories/service/thema/v1/base.rb
|
360
|
+
- test/factories/service/thema/v1/cancela_nfse.rb
|
361
|
+
- test/factories/service/thema/v1/consulta_lote_rps.rb
|
362
|
+
- test/factories/service/thema/v1/consulta_nfs_por_rps.rb
|
363
|
+
- test/factories/service/thema/v1/consulta_nfse.rb
|
364
|
+
- test/factories/service/thema/v1/consulta_situacao_lote_rps.rb
|
365
|
+
- test/factories/service/thema/v1/recepcao_lote_rps.rb
|
366
|
+
- test/factories/service/thema/v1/recepcao_lote_rps_limitado.rb
|
367
|
+
- test/test_helper.rb
|
209
368
|
homepage: https://github.com/Brunomm/br_nfe
|
210
369
|
licenses:
|
211
|
-
-
|
370
|
+
- MIT
|
212
371
|
metadata: {}
|
213
372
|
post_install_message:
|
214
373
|
rdoc_options: []
|
@@ -216,9 +375,15 @@ require_paths:
|
|
216
375
|
- lib
|
217
376
|
required_ruby_version: !ruby/object:Gem::Requirement
|
218
377
|
requirements:
|
219
|
-
- - "
|
378
|
+
- - "~>"
|
220
379
|
- !ruby/object:Gem::Version
|
221
380
|
version: '2.1'
|
381
|
+
- - "~>"
|
382
|
+
- !ruby/object:Gem::Version
|
383
|
+
version: '2.2'
|
384
|
+
- - "~>"
|
385
|
+
- !ruby/object:Gem::Version
|
386
|
+
version: '2.3'
|
222
387
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
388
|
requirements:
|
224
389
|
- - ">="
|
@@ -226,11 +391,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
391
|
version: '0'
|
227
392
|
requirements: []
|
228
393
|
rubyforge_project:
|
229
|
-
rubygems_version: 2.
|
394
|
+
rubygems_version: 2.5.1
|
230
395
|
signing_key:
|
231
396
|
specification_version: 4
|
232
|
-
summary:
|
233
|
-
e padronizar a emissão de Notas Fiscais eletrônicas
|
397
|
+
summary: Emissão de Notas Fiscais Eletrônicas em Ruby
|
234
398
|
test_files:
|
235
399
|
- test/br_nfe/base_test.rb
|
236
400
|
- test/br_nfe/condicao_pagamento_test.rb
|
@@ -244,53 +408,106 @@ test_files:
|
|
244
408
|
- test/br_nfe/helper/have_emitente_test.rb
|
245
409
|
- test/br_nfe/helper/have_intermediario_test.rb
|
246
410
|
- test/br_nfe/helper/have_rps_test.rb
|
247
|
-
- test/br_nfe/
|
248
|
-
- test/br_nfe/
|
249
|
-
- test/br_nfe/
|
250
|
-
- test/br_nfe/
|
251
|
-
- test/br_nfe/
|
252
|
-
- test/br_nfe/
|
253
|
-
- test/br_nfe/
|
254
|
-
- test/br_nfe/
|
255
|
-
- test/br_nfe/
|
256
|
-
- test/br_nfe/
|
257
|
-
- test/br_nfe/
|
258
|
-
- test/br_nfe/
|
259
|
-
- test/br_nfe/
|
260
|
-
- test/br_nfe/
|
261
|
-
- test/br_nfe/
|
262
|
-
- test/br_nfe/
|
263
|
-
- test/br_nfe/
|
264
|
-
- test/br_nfe/
|
265
|
-
- test/br_nfe/
|
266
|
-
- test/br_nfe/
|
267
|
-
- test/br_nfe/
|
268
|
-
- test/br_nfe/
|
411
|
+
- test/br_nfe/response/service/build_response_test.rb
|
412
|
+
- test/br_nfe/response/service/default_test.rb
|
413
|
+
- test/br_nfe/response/service/nota_fiscal_test.rb
|
414
|
+
- test/br_nfe/response/service/paths/base_test.rb
|
415
|
+
- test/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta_test.rb
|
416
|
+
- test/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta_test.rb
|
417
|
+
- test/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta_test.rb
|
418
|
+
- test/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta_test.rb
|
419
|
+
- test/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta_test.rb
|
420
|
+
- test/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta_test.rb
|
421
|
+
- test/br_nfe/response/service/paths/v1/tc_nfse_test.rb
|
422
|
+
- test/br_nfe/service/base_test.rb
|
423
|
+
- test/br_nfe/service/betha/base_test.rb
|
424
|
+
- test/br_nfe/service/betha/v1/cancelamento_nfs_test.rb
|
425
|
+
- test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb
|
426
|
+
- test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb
|
427
|
+
- test/br_nfe/service/betha/v1/consulta_nfse_test.rb
|
428
|
+
- test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb
|
429
|
+
- test/br_nfe/service/betha/v1/gateway_test.rb
|
430
|
+
- test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb
|
431
|
+
- test/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta_test.rb
|
432
|
+
- test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta_test.rb
|
433
|
+
- test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta_test.rb
|
434
|
+
- test/br_nfe/service/betha/v1/xsd/TiposNFe_v01.xsd
|
435
|
+
- test/br_nfe/service/betha/v1/xsd/nfse_v01.xsd
|
436
|
+
- test/br_nfe/service/betha/v1/xsd/servico_cancelar_nfse_envio_v01.xsd
|
437
|
+
- test/br_nfe/service/betha/v1/xsd/servico_consultar_lote_rps_envio_v01.xsd
|
438
|
+
- test/br_nfe/service/betha/v1/xsd/servico_consultar_nfse_envio_v01.xsd
|
439
|
+
- test/br_nfe/service/betha/v1/xsd/servico_consultar_nfse_rps_envio_v01.xsd
|
440
|
+
- test/br_nfe/service/betha/v1/xsd/servico_consultar_situacao_lote_rps_envio_v01.xsd
|
441
|
+
- test/br_nfe/service/betha/v1/xsd/servico_enviar_lote_rps_envio_v01.xsd
|
442
|
+
- test/br_nfe/service/betha/v1/xsd/xmldsig-core-schema.xsd
|
443
|
+
- test/br_nfe/service/betha/v1/xsd/xmldsig-core-schema_v01.xsd
|
444
|
+
- test/br_nfe/service/concerns/rules/cancelamento_nfs_test.rb
|
445
|
+
- test/br_nfe/service/concerns/rules/consulta_nfs_por_rps_test.rb
|
446
|
+
- test/br_nfe/service/concerns/rules/consulta_nfse_test.rb
|
447
|
+
- test/br_nfe/service/concerns/rules/recepcao_lote_rps_test.rb
|
448
|
+
- test/br_nfe/service/intermediario_test.rb
|
449
|
+
- test/br_nfe/service/item_test.rb
|
450
|
+
- test/br_nfe/service/rps_test.rb
|
451
|
+
- test/br_nfe/service/sc/florianopolis/XSD/TiposNFSe_v2.0.xsd
|
452
|
+
- test/br_nfe/service/sc/florianopolis/XSD/xmldsig-core-schema.xsd
|
453
|
+
- test/br_nfe/service/sc/florianopolis/base_test.rb
|
454
|
+
- test/br_nfe/service/sc/florianopolis/cancellation_test.rb
|
455
|
+
- test/br_nfe/service/sc/florianopolis/emission_rps_test.rb
|
456
|
+
- test/br_nfe/service/sc/gaspar/cancela_nfse_test.rb
|
457
|
+
- test/br_nfe/service/sc/gaspar/consulta_nfs_por_rps_test.rb
|
458
|
+
- test/br_nfe/service/sc/gaspar/consulta_nfse_test.rb
|
459
|
+
- test/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps_test.rb
|
460
|
+
- test/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado_test.rb
|
461
|
+
- test/br_nfe/service/sc/gaspar/recepcao_lote_rps_test.rb
|
462
|
+
- test/br_nfe/service/thema/v1/base_test.rb
|
463
|
+
- test/br_nfe/service/thema/v1/cancela_nfse_test.rb
|
464
|
+
- test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb
|
465
|
+
- test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb
|
466
|
+
- test/br_nfe/service/thema/v1/consulta_nfse_test.rb
|
467
|
+
- test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb
|
468
|
+
- test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb
|
469
|
+
- test/br_nfe/service/thema/v1/recepcao_lote_rps_test_limitado.rb
|
470
|
+
- test/br_nfe/service/thema/v1/xsd/nfse.xsd
|
471
|
+
- test/br_nfe/service/thema/v1/xsd/xmldsig-core-schema20020212.xsd
|
472
|
+
- test/br_nfe/service/xsd/v1/nfse.xsd
|
473
|
+
- test/br_nfe/service/xsd/v1/xmldsig-core-schema20020212.xsd
|
474
|
+
- test/cert.pfx
|
269
475
|
- test/factories/base.rb
|
270
476
|
- test/factories/condicao_pagamento.rb
|
271
477
|
- test/factories/destinatario.rb
|
272
478
|
- test/factories/emitente.rb
|
273
479
|
- test/factories/endereco.rb
|
274
|
-
- test/factories/
|
275
|
-
- test/factories/
|
276
|
-
- test/factories/
|
277
|
-
- test/factories/
|
278
|
-
- test/factories/
|
279
|
-
- test/factories/
|
280
|
-
- test/factories/
|
281
|
-
- test/factories/
|
282
|
-
- test/factories/
|
283
|
-
- test/factories/
|
284
|
-
- test/factories/
|
285
|
-
- test/factories/
|
286
|
-
- test/factories/
|
287
|
-
- test/factories/
|
288
|
-
- test/factories/
|
289
|
-
- test/factories/
|
290
|
-
- test/factories/
|
291
|
-
- test/factories/
|
292
|
-
- test/factories/
|
293
|
-
- test/factories/
|
294
|
-
- test/factories/
|
295
|
-
- test/factories/
|
296
|
-
|
480
|
+
- test/factories/response/service/build_response.rb
|
481
|
+
- test/factories/response/service/default.rb
|
482
|
+
- test/factories/response/service/nota_fiscal.rb
|
483
|
+
- test/factories/service/base.rb
|
484
|
+
- test/factories/service/betha/base.rb
|
485
|
+
- test/factories/service/betha/v1/cancelamento_nfs.rb
|
486
|
+
- test/factories/service/betha/v1/consulta_lote_rps.rb
|
487
|
+
- test/factories/service/betha/v1/consulta_nfs_por_rps.rb
|
488
|
+
- test/factories/service/betha/v1/consulta_nfse.rb
|
489
|
+
- test/factories/service/betha/v1/consulta_situacao_lote_rps.rb
|
490
|
+
- test/factories/service/betha/v1/gateway.rb
|
491
|
+
- test/factories/service/betha/v1/recepcao_lote_rps.rb
|
492
|
+
- test/factories/service/intermediario.rb
|
493
|
+
- test/factories/service/item.rb
|
494
|
+
- test/factories/service/rps.rb
|
495
|
+
- test/factories/service/sc/florianopolis/base.rb
|
496
|
+
- test/factories/service/sc/florianopolis/cancellation.rb
|
497
|
+
- test/factories/service/sc/florianopolis/emission_rps.rb
|
498
|
+
- test/factories/service/sc/gaspar/cancela_nfse.rb
|
499
|
+
- test/factories/service/sc/gaspar/consulta_lote_rps.rb
|
500
|
+
- test/factories/service/sc/gaspar/consulta_nfs_por_rps.rb
|
501
|
+
- test/factories/service/sc/gaspar/consulta_nfse.rb
|
502
|
+
- test/factories/service/sc/gaspar/consulta_situacao_lote_rps.rb
|
503
|
+
- test/factories/service/sc/gaspar/recepcao_lote_rps.rb
|
504
|
+
- test/factories/service/sc/gaspar/recepcao_lote_rps_limitado.rb
|
505
|
+
- test/factories/service/thema/v1/base.rb
|
506
|
+
- test/factories/service/thema/v1/cancela_nfse.rb
|
507
|
+
- test/factories/service/thema/v1/consulta_lote_rps.rb
|
508
|
+
- test/factories/service/thema/v1/consulta_nfs_por_rps.rb
|
509
|
+
- test/factories/service/thema/v1/consulta_nfse.rb
|
510
|
+
- test/factories/service/thema/v1/consulta_situacao_lote_rps.rb
|
511
|
+
- test/factories/service/thema/v1/recepcao_lote_rps.rb
|
512
|
+
- test/factories/service/thema/v1/recepcao_lote_rps_limitado.rb
|
513
|
+
- test/test_helper.rb
|