br_nfe 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +0 -1
- data/Gemfile.lock +1 -1
- data/README.markdown +264 -106
- data/lib/br_nfe/{helper → association}/have_address.rb +1 -1
- data/lib/br_nfe/{helper → association}/have_condicao_pagamento.rb +1 -1
- data/lib/br_nfe/association/have_destinatario.rb +22 -0
- data/lib/br_nfe/association/have_emitente.rb +24 -0
- data/lib/br_nfe/base.rb +37 -27
- data/lib/br_nfe/condicao_pagamento.rb +2 -0
- data/lib/br_nfe/constants.rb +33 -0
- data/lib/br_nfe/endereco.rb +10 -0
- data/lib/br_nfe/helper/string_methods.rb +4 -0
- data/lib/br_nfe/{emitente.rb → person.rb} +11 -7
- data/lib/br_nfe/product/base.rb +82 -0
- data/lib/br_nfe/product/consulta_status_servico.rb +35 -0
- data/lib/br_nfe/product/emitente.rb +8 -0
- data/lib/br_nfe/product/gateway/base.rb +62 -0
- data/lib/br_nfe/product/gateway/web_service_svrs.rb +39 -0
- data/lib/br_nfe/product/value_nf.rb +9 -0
- data/lib/br_nfe/product/xml/soap_env.xml.slim +8 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/consReciNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/consSitNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/consStatServ_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/enviNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/inutNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/leiauteConsSitNFe_v3.10.xsd +502 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/leiauteConsStatServ_v3.10.xsd +98 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/leiauteInutNFe_v3.10.xsd +193 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/leiauteNFe_v3.10.xsd +6060 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/nfe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/procInutNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/procNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/retConsReciNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/retConsSitNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/retConsStatServ_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/retEnviNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/retInutNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/tiposBasico_v3.10.xsd +571 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/xmldsig-core-schema_v1.01.xsd +98 -0
- data/lib/br_nfe/product/xml/v3_10/consulta_status_servico.xml.slim +4 -0
- data/lib/br_nfe/service/association/have_intermediario.rb +26 -0
- data/lib/br_nfe/service/association/have_rps.rb +36 -0
- data/lib/br_nfe/service/base.rb +24 -20
- data/lib/br_nfe/service/betha/v1/cancela_nfse.rb +43 -0
- data/lib/br_nfe/service/betha/v1/consulta_lote_rps.rb +20 -6
- data/lib/br_nfe/service/betha/v1/consulta_nfs_por_rps.rb +17 -6
- data/lib/br_nfe/service/betha/v1/consulta_nfse.rb +16 -5
- data/lib/br_nfe/service/betha/v1/consulta_situacao_lote_rps.rb +15 -6
- data/lib/br_nfe/service/betha/v1/gateway.rb +4 -0
- data/lib/br_nfe/service/betha/v1/recepcao_lote_rps.rb +13 -5
- data/lib/br_nfe/service/betha/v1/xml/_tc_identificacao_prestador.xml.slim +3 -0
- data/lib/br_nfe/service/betha/v1/xml/_tc_pedido_cancelamento.xml.slim +4 -0
- data/lib/br_nfe/service/concerns/rules/cancelamento_nfs.rb +8 -0
- data/lib/br_nfe/service/concerns/rules/consulta_nfs_por_rps.rb +1 -1
- data/lib/br_nfe/service/concerns/rules/consulta_nfse.rb +5 -2
- data/lib/br_nfe/service/concerns/values_ts/service_v1.rb +319 -0
- data/lib/br_nfe/service/destinatario.rb +7 -0
- data/lib/br_nfe/service/emitente.rb +8 -0
- data/lib/br_nfe/service/intermediario.rb +1 -12
- data/lib/br_nfe/service/item.rb +7 -7
- data/lib/br_nfe/service/response/build/base.rb +166 -0
- data/lib/br_nfe/service/response/build/cancelamento.rb +62 -0
- data/lib/br_nfe/service/response/build/consulta_lote_rps.rb +25 -0
- data/lib/br_nfe/service/response/build/consulta_nfs_por_rps.rb +25 -0
- data/lib/br_nfe/service/response/build/consulta_nfse.rb +24 -0
- data/lib/br_nfe/service/response/build/consulta_situacao_lote_rps.rb +56 -0
- data/lib/br_nfe/service/response/build/invoice_build.rb +359 -0
- data/lib/br_nfe/service/response/build/recepcao_lote_rps.rb +69 -0
- data/lib/br_nfe/service/response/cancelamento.rb +22 -0
- data/lib/br_nfe/service/response/consulta_lote_rps.rb +18 -0
- data/lib/br_nfe/service/response/consulta_nfs_por_rps.rb +10 -0
- data/lib/br_nfe/service/response/consulta_nfse.rb +10 -0
- data/lib/br_nfe/service/response/consulta_situacao_lote_rps.rb +74 -0
- data/lib/br_nfe/service/response/default.rb +93 -0
- data/lib/br_nfe/{response/service → service/response}/nota_fiscal.rb +19 -12
- data/lib/br_nfe/service/response/paths/v1/tc_nfse.rb +275 -0
- data/lib/br_nfe/service/response/recepcao_lote_rps.rb +35 -0
- data/lib/br_nfe/service/rps.rb +30 -27
- data/lib/br_nfe/service/sc/florianopolis/xml/_service_item.xml.slim +4 -4
- data/lib/br_nfe/service/sc/florianopolis/xml/inf_requisicao.xml.slim +4 -4
- data/lib/br_nfe/service/simpliss/v1/cancela_nfse.rb +16 -6
- data/lib/br_nfe/service/simpliss/v1/consulta_lote_rps.rb +20 -12
- data/lib/br_nfe/service/simpliss/v1/consulta_nfs_por_rps.rb +21 -6
- data/lib/br_nfe/service/simpliss/v1/consulta_nfse.rb +20 -6
- data/lib/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps.rb +17 -6
- data/lib/br_nfe/service/simpliss/v1/recepcao_lote_rps.rb +16 -4
- data/lib/br_nfe/service/simpliss/v1/xml/_tc_item_servico.xml.slim +2 -2
- data/lib/br_nfe/service/thema/v1/cancela_nfse.rb +21 -19
- data/lib/br_nfe/service/thema/v1/consulta_lote_rps.rb +21 -19
- data/lib/br_nfe/service/thema/v1/consulta_nfs_por_rps.rb +25 -18
- data/lib/br_nfe/service/thema/v1/consulta_nfse.rb +20 -20
- data/lib/br_nfe/service/thema/v1/consulta_situacao_lote_rps.rb +14 -20
- data/lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb +11 -16
- data/lib/br_nfe/service/thema/v1/recepcao_lote_rps_limitado.rb +8 -6
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_nfse.xml.slim +1 -1
- data/lib/br_nfe/service/xml/v1/_tc_pedido_cancelamento.xml.slim +1 -1
- data/lib/br_nfe/service/xml/v1/_tc_valores.xml.slim +11 -11
- data/lib/br_nfe/version.rb +1 -1
- data/lib/br_nfe.rb +62 -62
- data/test/br_nfe/association/have_address_test.rb +64 -0
- data/test/br_nfe/association/have_condicao_pagamento_test.rb +75 -0
- data/test/br_nfe/association/have_destinatario_test.rb +76 -0
- data/test/br_nfe/association/have_emitente_test.rb +80 -0
- data/test/br_nfe/base_test.rb +96 -61
- data/test/br_nfe/endereco_test.rb +21 -0
- data/test/br_nfe/person_test.rb +55 -0
- data/test/br_nfe/product/base_test.rb +150 -0
- data/test/br_nfe/product/consulta_status_servico_test.rb +59 -0
- data/test/br_nfe/product/emitente_test.rb +29 -0
- data/test/br_nfe/product/gateway/base_test.rb +16 -0
- data/test/br_nfe/product/gateway/web_service_svrs_test.rb +36 -0
- data/test/br_nfe/service/association/have_intermediario_test.rb +80 -0
- data/test/br_nfe/service/association/have_rps_test.rb +62 -0
- data/test/br_nfe/service/base_test.rb +42 -42
- data/test/br_nfe/service/betha/v1/cancela_nfse_test.rb +90 -0
- data/test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb +105 -5
- data/test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb +103 -5
- data/test/br_nfe/service/betha/v1/consulta_nfse_test.rb +114 -5
- data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +118 -5
- data/test/br_nfe/service/betha/v1/gateway_test.rb +1 -1
- data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +51 -5
- data/test/br_nfe/service/concerns/rules/cancelamento_nfs_test.rb +2 -2
- data/test/br_nfe/service/concerns/rules/consulta_nfs_por_rps_test.rb +2 -7
- data/test/br_nfe/service/concerns/rules/consulta_nfse_test.rb +24 -3
- data/test/br_nfe/service/concerns/rules/recepcao_lote_rps_test.rb +1 -1
- data/test/br_nfe/{helper → service/concerns}/values_ts/service_v1_test.rb +2 -2
- data/test/br_nfe/{destinatario_test.rb → service/destinatario_test.rb} +3 -4
- data/test/br_nfe/service/emitente_test.rb +29 -0
- data/test/br_nfe/service/item_test.rb +14 -14
- data/test/br_nfe/service/response/build/base_test.rb +80 -0
- data/test/br_nfe/{response/service → service/response}/default_test.rb +1 -82
- data/test/br_nfe/service/response/nota_fiscal_test.rb +59 -0
- data/test/br_nfe/{response/service → service/response}/paths/v1/tc_nfse_test.rb +10 -10
- data/test/br_nfe/service/rps_test.rb +107 -138
- data/test/br_nfe/service/sc/florianopolis/emission_rps_test.rb +9 -9
- data/test/br_nfe/service/simpliss/v1/base_test.rb +1 -1
- data/test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb +7 -10
- data/test/br_nfe/service/simpliss/v1/consulta_lote_rps_test.rb +11 -18
- data/test/br_nfe/service/simpliss/v1/consulta_nfs_por_rps_test.rb +11 -18
- data/test/br_nfe/service/simpliss/v1/consulta_nfse_test.rb +11 -18
- data/test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb +7 -11
- data/test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb +3 -9
- data/test/br_nfe/service/thema/v1/base_test.rb +1 -1
- data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +7 -14
- data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +6 -17
- data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +6 -13
- data/test/br_nfe/service/thema/v1/consulta_nfse_test.rb +11 -18
- data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +7 -11
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb +1 -5
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +3 -9
- data/test/factories/base.rb +0 -1
- data/test/factories/{emitente.rb → person.rb} +1 -1
- data/test/factories/product/base.rb +12 -0
- data/test/factories/product/consulta_status_servico.rb +12 -0
- data/test/factories/product/emitente.rb +15 -0
- data/test/factories/product/gateway/base.rb +5 -0
- data/test/factories/product/gateway/web_service_svrs.rb +5 -0
- data/test/factories/service/betha/v1/{cancelamento_nfs.rb → cancela_nfse.rb} +2 -1
- data/test/factories/service/betha/v1/consulta_lote_rps.rb +1 -1
- data/test/factories/service/betha/v1/consulta_nfs_por_rps.rb +1 -1
- data/test/factories/service/betha/v1/consulta_nfse.rb +1 -1
- data/test/factories/service/betha/v1/consulta_situacao_lote_rps.rb +1 -1
- data/test/factories/{destinatario.rb → service/destinatario.rb} +1 -1
- data/test/factories/service/emitente.rb +15 -0
- data/test/factories/service/item.rb +4 -4
- data/test/factories/service/response/build_response.rb +5 -0
- data/test/factories/service/response/default.rb +6 -0
- data/test/factories/{response/service → service/response}/nota_fiscal.rb +8 -8
- data/test/factories/service/rps.rb +11 -11
- data/test/factories/service/sc/florianopolis/base.rb +1 -1
- data/test/factories/service/sc/florianopolis/cancellation.rb +1 -1
- data/test/factories/service/sc/florianopolis/emission_rps.rb +1 -1
- data/test/factories/service/simpliss/v1/base.rb +1 -1
- data/test/factories/service/simpliss/v1/cancela_nfse.rb +1 -1
- data/test/factories/service/simpliss/v1/consulta_lote_rps.rb +1 -1
- data/test/factories/service/simpliss/v1/consulta_nfs_por_rps.rb +1 -1
- data/test/factories/service/simpliss/v1/consulta_nfse.rb +1 -1
- data/test/factories/service/simpliss/v1/consulta_situacao_lote_rps.rb +1 -1
- data/test/factories/service/simpliss/v1/recepcao_lote_rps.rb +1 -1
- data/test/factories/service/thema/v1/base.rb +1 -1
- data/test/factories/service/thema/v1/cancela_nfse.rb +1 -1
- data/test/factories/service/thema/v1/consulta_lote_rps.rb +1 -1
- data/test/factories/service/thema/v1/consulta_nfs_por_rps.rb +1 -1
- data/test/factories/service/thema/v1/consulta_nfse.rb +1 -1
- data/test/factories/service/thema/v1/consulta_situacao_lote_rps.rb +1 -1
- data/test/factories/service/thema/v1/recepcao_lote_rps.rb +1 -1
- data/test/fixtures/service/response/betha/v1/cancela_nfse/fault.xml +17 -0
- data/test/fixtures/service/response/betha/v1/cancela_nfse/success.xml +48 -0
- data/test/fixtures/service/response/betha/v1/consulta_lote_rps/fault.xml +18 -0
- data/test/fixtures/service/response/betha/v1/consulta_lote_rps/success.xml +108 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse/fault.xml +18 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse/nfs_empty.xml +12 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse/success.xml +115 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse_por_rps/fault.xml +18 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse_por_rps/success.xml +103 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/error.xml +13 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/fault.xml +17 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/success.xml +13 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unprocessed.xml +13 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unprocessed_by_code_error.xml +17 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unreceived.xml +13 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unreceived_by_code_error.xml +17 -0
- data/test/fixtures/service/response/betha/v1/recepcao_lote_rps/error.xml +17 -0
- data/test/fixtures/service/response/betha/v1/recepcao_lote_rps/success.xml +14 -0
- metadata +160 -94
- data/lib/br_nfe/destinatario.rb +0 -26
- data/lib/br_nfe/helper/have_destinatario.rb +0 -18
- data/lib/br_nfe/helper/have_emitente.rb +0 -20
- data/lib/br_nfe/helper/have_intermediario.rb +0 -24
- data/lib/br_nfe/helper/have_rps.rb +0 -34
- data/lib/br_nfe/helper/values_ts/service_v1.rb +0 -317
- data/lib/br_nfe/response/service/build_response.rb +0 -463
- data/lib/br_nfe/response/service/default.rb +0 -185
- data/lib/br_nfe/response/service/paths/base.rb +0 -127
- data/lib/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta.rb +0 -22
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta.rb +0 -25
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta.rb +0 -25
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta.rb +0 -25
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta.rb +0 -31
- data/lib/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta.rb +0 -36
- data/lib/br_nfe/response/service/paths/v1/tc_nfse.rb +0 -271
- data/lib/br_nfe/service/betha/v1/cancelamento_nfs.rb +0 -36
- data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta.rb +0 -23
- data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta.rb +0 -21
- data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +0 -21
- data/lib/br_nfe/service/simpliss/v1/response_paths/servico_cancelar_nfse_resposta.rb +0 -22
- data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_lote_rps_resposta.rb +0 -25
- data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_resposta.rb +0 -25
- data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +0 -25
- data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_situacao_lote_rps_resposta.rb +0 -31
- data/lib/br_nfe/service/simpliss/v1/response_paths/servico_enviar_lote_rps_resposta.rb +0 -36
- data/lib/br_nfe/service/thema/v1/response_paths/servico_cancelar_nfse_resposta.rb +0 -17
- data/lib/br_nfe/service/thema/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +0 -19
- data/test/br_nfe/emitente_test.rb +0 -46
- data/test/br_nfe/helper/have_address_test.rb +0 -62
- data/test/br_nfe/helper/have_condicao_pagamento_test.rb +0 -71
- data/test/br_nfe/helper/have_destinatario_test.rb +0 -64
- data/test/br_nfe/helper/have_emitente_test.rb +0 -63
- data/test/br_nfe/helper/have_intermediario_test.rb +0 -77
- data/test/br_nfe/helper/have_rps_test.rb +0 -59
- data/test/br_nfe/response/service/build_response_test.rb +0 -205
- data/test/br_nfe/response/service/nota_fiscal_test.rb +0 -41
- data/test/br_nfe/response/service/paths/base_test.rb +0 -196
- data/test/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta_test.rb +0 -25
- data/test/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta_test.rb +0 -30
- data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta_test.rb +0 -30
- data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta_test.rb +0 -30
- data/test/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta_test.rb +0 -30
- data/test/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta_test.rb +0 -34
- data/test/br_nfe/service/betha/v1/cancelamento_nfs_test.rb +0 -54
- data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta_test.rb +0 -16
- data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta_test.rb +0 -16
- data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta_test.rb +0 -16
- data/test/factories/response/service/build_response.rb +0 -5
- data/test/factories/response/service/default.rb +0 -10
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: 2.1.
|
4
|
+
version: 2.1.1
|
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: 2016-
|
11
|
+
date: 2016-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -154,49 +154,83 @@ files:
|
|
154
154
|
- br_nfe.gemspec
|
155
155
|
- lib/br_nfe.rb
|
156
156
|
- lib/br_nfe/active_model_base.rb
|
157
|
+
- lib/br_nfe/association/have_address.rb
|
158
|
+
- lib/br_nfe/association/have_condicao_pagamento.rb
|
159
|
+
- lib/br_nfe/association/have_destinatario.rb
|
160
|
+
- lib/br_nfe/association/have_emitente.rb
|
157
161
|
- lib/br_nfe/base.rb
|
158
162
|
- lib/br_nfe/condicao_pagamento.rb
|
159
|
-
- lib/br_nfe/
|
160
|
-
- lib/br_nfe/emitente.rb
|
163
|
+
- lib/br_nfe/constants.rb
|
161
164
|
- lib/br_nfe/endereco.rb
|
162
165
|
- lib/br_nfe/helper/cpf_cnpj.rb
|
163
|
-
- lib/br_nfe/helper/have_address.rb
|
164
|
-
- lib/br_nfe/helper/have_condicao_pagamento.rb
|
165
|
-
- lib/br_nfe/helper/have_destinatario.rb
|
166
|
-
- lib/br_nfe/helper/have_emitente.rb
|
167
|
-
- lib/br_nfe/helper/have_intermediario.rb
|
168
|
-
- lib/br_nfe/helper/have_rps.rb
|
169
166
|
- lib/br_nfe/helper/string_methods.rb
|
170
|
-
- lib/br_nfe/
|
171
|
-
- lib/br_nfe/
|
172
|
-
- lib/br_nfe/
|
173
|
-
- lib/br_nfe/
|
174
|
-
- lib/br_nfe/
|
175
|
-
- lib/br_nfe/
|
176
|
-
- lib/br_nfe/
|
177
|
-
- lib/br_nfe/
|
178
|
-
- lib/br_nfe/
|
179
|
-
- lib/br_nfe/
|
180
|
-
- lib/br_nfe/
|
181
|
-
- lib/br_nfe/
|
167
|
+
- lib/br_nfe/person.rb
|
168
|
+
- lib/br_nfe/product/base.rb
|
169
|
+
- lib/br_nfe/product/consulta_status_servico.rb
|
170
|
+
- lib/br_nfe/product/emitente.rb
|
171
|
+
- lib/br_nfe/product/gateway/base.rb
|
172
|
+
- lib/br_nfe/product/gateway/web_service_svrs.rb
|
173
|
+
- lib/br_nfe/product/value_nf.rb
|
174
|
+
- lib/br_nfe/product/xml/soap_env.xml.slim
|
175
|
+
- lib/br_nfe/product/xml/v3_10/XSD/consReciNFe_v3.10.xsd
|
176
|
+
- lib/br_nfe/product/xml/v3_10/XSD/consSitNFe_v3.10.xsd
|
177
|
+
- lib/br_nfe/product/xml/v3_10/XSD/consStatServ_v3.10.xsd
|
178
|
+
- lib/br_nfe/product/xml/v3_10/XSD/enviNFe_v3.10.xsd
|
179
|
+
- lib/br_nfe/product/xml/v3_10/XSD/inutNFe_v3.10.xsd
|
180
|
+
- lib/br_nfe/product/xml/v3_10/XSD/leiauteConsSitNFe_v3.10.xsd
|
181
|
+
- lib/br_nfe/product/xml/v3_10/XSD/leiauteConsStatServ_v3.10.xsd
|
182
|
+
- lib/br_nfe/product/xml/v3_10/XSD/leiauteInutNFe_v3.10.xsd
|
183
|
+
- lib/br_nfe/product/xml/v3_10/XSD/leiauteNFe_v3.10.xsd
|
184
|
+
- lib/br_nfe/product/xml/v3_10/XSD/nfe_v3.10.xsd
|
185
|
+
- lib/br_nfe/product/xml/v3_10/XSD/procInutNFe_v3.10.xsd
|
186
|
+
- lib/br_nfe/product/xml/v3_10/XSD/procNFe_v3.10.xsd
|
187
|
+
- lib/br_nfe/product/xml/v3_10/XSD/retConsReciNFe_v3.10.xsd
|
188
|
+
- lib/br_nfe/product/xml/v3_10/XSD/retConsSitNFe_v3.10.xsd
|
189
|
+
- lib/br_nfe/product/xml/v3_10/XSD/retConsStatServ_v3.10.xsd
|
190
|
+
- lib/br_nfe/product/xml/v3_10/XSD/retEnviNFe_v3.10.xsd
|
191
|
+
- lib/br_nfe/product/xml/v3_10/XSD/retInutNFe_v3.10.xsd
|
192
|
+
- lib/br_nfe/product/xml/v3_10/XSD/tiposBasico_v3.10.xsd
|
193
|
+
- lib/br_nfe/product/xml/v3_10/XSD/xmldsig-core-schema_v1.01.xsd
|
194
|
+
- lib/br_nfe/product/xml/v3_10/consulta_status_servico.xml.slim
|
195
|
+
- lib/br_nfe/service/association/have_intermediario.rb
|
196
|
+
- lib/br_nfe/service/association/have_rps.rb
|
182
197
|
- lib/br_nfe/service/base.rb
|
183
198
|
- lib/br_nfe/service/betha/base.rb
|
184
|
-
- lib/br_nfe/service/betha/v1/
|
199
|
+
- lib/br_nfe/service/betha/v1/cancela_nfse.rb
|
185
200
|
- lib/br_nfe/service/betha/v1/consulta_lote_rps.rb
|
186
201
|
- lib/br_nfe/service/betha/v1/consulta_nfs_por_rps.rb
|
187
202
|
- lib/br_nfe/service/betha/v1/consulta_nfse.rb
|
188
203
|
- lib/br_nfe/service/betha/v1/consulta_situacao_lote_rps.rb
|
189
204
|
- lib/br_nfe/service/betha/v1/gateway.rb
|
190
205
|
- lib/br_nfe/service/betha/v1/recepcao_lote_rps.rb
|
191
|
-
- lib/br_nfe/service/betha/v1/
|
192
|
-
- lib/br_nfe/service/betha/v1/
|
193
|
-
- lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta.rb
|
206
|
+
- lib/br_nfe/service/betha/v1/xml/_tc_identificacao_prestador.xml.slim
|
207
|
+
- lib/br_nfe/service/betha/v1/xml/_tc_pedido_cancelamento.xml.slim
|
194
208
|
- lib/br_nfe/service/concerns/rules/cancelamento_nfs.rb
|
195
209
|
- lib/br_nfe/service/concerns/rules/consulta_nfs_por_rps.rb
|
196
210
|
- lib/br_nfe/service/concerns/rules/consulta_nfse.rb
|
197
211
|
- lib/br_nfe/service/concerns/rules/recepcao_lote_rps.rb
|
212
|
+
- lib/br_nfe/service/concerns/values_ts/service_v1.rb
|
213
|
+
- lib/br_nfe/service/destinatario.rb
|
214
|
+
- lib/br_nfe/service/emitente.rb
|
198
215
|
- lib/br_nfe/service/intermediario.rb
|
199
216
|
- lib/br_nfe/service/item.rb
|
217
|
+
- lib/br_nfe/service/response/build/base.rb
|
218
|
+
- lib/br_nfe/service/response/build/cancelamento.rb
|
219
|
+
- lib/br_nfe/service/response/build/consulta_lote_rps.rb
|
220
|
+
- lib/br_nfe/service/response/build/consulta_nfs_por_rps.rb
|
221
|
+
- lib/br_nfe/service/response/build/consulta_nfse.rb
|
222
|
+
- lib/br_nfe/service/response/build/consulta_situacao_lote_rps.rb
|
223
|
+
- lib/br_nfe/service/response/build/invoice_build.rb
|
224
|
+
- lib/br_nfe/service/response/build/recepcao_lote_rps.rb
|
225
|
+
- lib/br_nfe/service/response/cancelamento.rb
|
226
|
+
- lib/br_nfe/service/response/consulta_lote_rps.rb
|
227
|
+
- lib/br_nfe/service/response/consulta_nfs_por_rps.rb
|
228
|
+
- lib/br_nfe/service/response/consulta_nfse.rb
|
229
|
+
- lib/br_nfe/service/response/consulta_situacao_lote_rps.rb
|
230
|
+
- lib/br_nfe/service/response/default.rb
|
231
|
+
- lib/br_nfe/service/response/nota_fiscal.rb
|
232
|
+
- lib/br_nfe/service/response/paths/v1/tc_nfse.rb
|
233
|
+
- lib/br_nfe/service/response/recepcao_lote_rps.rb
|
200
234
|
- lib/br_nfe/service/rps.rb
|
201
235
|
- lib/br_nfe/service/sc/florianopolis/base.rb
|
202
236
|
- lib/br_nfe/service/sc/florianopolis/cancellation.rb
|
@@ -213,12 +247,6 @@ files:
|
|
213
247
|
- lib/br_nfe/service/simpliss/v1/consulta_nfse.rb
|
214
248
|
- lib/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps.rb
|
215
249
|
- lib/br_nfe/service/simpliss/v1/recepcao_lote_rps.rb
|
216
|
-
- lib/br_nfe/service/simpliss/v1/response_paths/servico_cancelar_nfse_resposta.rb
|
217
|
-
- lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_lote_rps_resposta.rb
|
218
|
-
- lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_resposta.rb
|
219
|
-
- lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_rps_resposta.rb
|
220
|
-
- lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_situacao_lote_rps_resposta.rb
|
221
|
-
- lib/br_nfe/service/simpliss/v1/response_paths/servico_enviar_lote_rps_resposta.rb
|
222
250
|
- lib/br_nfe/service/simpliss/v1/xml/_login.xml.slim
|
223
251
|
- lib/br_nfe/service/simpliss/v1/xml/_tc_dados_servico.xml.slim
|
224
252
|
- lib/br_nfe/service/simpliss/v1/xml/_tc_item_servico.xml.slim
|
@@ -236,8 +264,6 @@ files:
|
|
236
264
|
- lib/br_nfe/service/thema/v1/consulta_situacao_lote_rps.rb
|
237
265
|
- lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb
|
238
266
|
- lib/br_nfe/service/thema/v1/recepcao_lote_rps_limitado.rb
|
239
|
-
- lib/br_nfe/service/thema/v1/response_paths/servico_cancelar_nfse_resposta.rb
|
240
|
-
- lib/br_nfe/service/thema/v1/response_paths/servico_consultar_nfse_rps_resposta.rb
|
241
267
|
- lib/br_nfe/service/xml/v1/_tc_contato.xml.slim
|
242
268
|
- lib/br_nfe/service/xml/v1/_tc_cpf_cnpj.xml.slim
|
243
269
|
- lib/br_nfe/service/xml/v1/_tc_dados_construcao_civil.xml.slim
|
@@ -267,42 +293,31 @@ files:
|
|
267
293
|
- lib/br_nfe/xml/_signed_info_sh1.xml.slim
|
268
294
|
- lib/br_nfe/xml/signature_sh1.xml.slim
|
269
295
|
- lib/br_nfe/xml/soap_env.xml.slim
|
296
|
+
- test/br_nfe/association/have_address_test.rb
|
297
|
+
- test/br_nfe/association/have_condicao_pagamento_test.rb
|
298
|
+
- test/br_nfe/association/have_destinatario_test.rb
|
299
|
+
- test/br_nfe/association/have_emitente_test.rb
|
270
300
|
- test/br_nfe/base_test.rb
|
271
301
|
- test/br_nfe/condicao_pagamento_test.rb
|
272
|
-
- test/br_nfe/destinatario_test.rb
|
273
|
-
- test/br_nfe/emitente_test.rb
|
274
302
|
- test/br_nfe/endereco_test.rb
|
275
303
|
- test/br_nfe/helper/cpf_cnpj_test.rb
|
276
|
-
- test/br_nfe/
|
277
|
-
- test/br_nfe/
|
278
|
-
- test/br_nfe/
|
279
|
-
- test/br_nfe/
|
280
|
-
- test/br_nfe/
|
281
|
-
- test/br_nfe/
|
282
|
-
- test/br_nfe/
|
283
|
-
- test/br_nfe/
|
284
|
-
- test/br_nfe/response/service/default_test.rb
|
285
|
-
- test/br_nfe/response/service/nota_fiscal_test.rb
|
286
|
-
- test/br_nfe/response/service/paths/base_test.rb
|
287
|
-
- test/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta_test.rb
|
288
|
-
- test/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta_test.rb
|
289
|
-
- test/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta_test.rb
|
290
|
-
- test/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta_test.rb
|
291
|
-
- test/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta_test.rb
|
292
|
-
- test/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta_test.rb
|
293
|
-
- test/br_nfe/response/service/paths/v1/tc_nfse_test.rb
|
304
|
+
- test/br_nfe/person_test.rb
|
305
|
+
- test/br_nfe/product/base_test.rb
|
306
|
+
- test/br_nfe/product/consulta_status_servico_test.rb
|
307
|
+
- test/br_nfe/product/emitente_test.rb
|
308
|
+
- test/br_nfe/product/gateway/base_test.rb
|
309
|
+
- test/br_nfe/product/gateway/web_service_svrs_test.rb
|
310
|
+
- test/br_nfe/service/association/have_intermediario_test.rb
|
311
|
+
- test/br_nfe/service/association/have_rps_test.rb
|
294
312
|
- test/br_nfe/service/base_test.rb
|
295
313
|
- test/br_nfe/service/betha/base_test.rb
|
296
|
-
- test/br_nfe/service/betha/v1/
|
314
|
+
- test/br_nfe/service/betha/v1/cancela_nfse_test.rb
|
297
315
|
- test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb
|
298
316
|
- test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb
|
299
317
|
- test/br_nfe/service/betha/v1/consulta_nfse_test.rb
|
300
318
|
- test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb
|
301
319
|
- test/br_nfe/service/betha/v1/gateway_test.rb
|
302
320
|
- test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb
|
303
|
-
- test/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta_test.rb
|
304
|
-
- test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta_test.rb
|
305
|
-
- test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta_test.rb
|
306
321
|
- test/br_nfe/service/betha/v1/xsd/TiposNFe_v01.xsd
|
307
322
|
- test/br_nfe/service/betha/v1/xsd/nfse_v01.xsd
|
308
323
|
- test/br_nfe/service/betha/v1/xsd/servico_cancelar_nfse_envio_v01.xsd
|
@@ -317,8 +332,15 @@ files:
|
|
317
332
|
- test/br_nfe/service/concerns/rules/consulta_nfs_por_rps_test.rb
|
318
333
|
- test/br_nfe/service/concerns/rules/consulta_nfse_test.rb
|
319
334
|
- test/br_nfe/service/concerns/rules/recepcao_lote_rps_test.rb
|
335
|
+
- test/br_nfe/service/concerns/values_ts/service_v1_test.rb
|
336
|
+
- test/br_nfe/service/destinatario_test.rb
|
337
|
+
- test/br_nfe/service/emitente_test.rb
|
320
338
|
- test/br_nfe/service/intermediario_test.rb
|
321
339
|
- test/br_nfe/service/item_test.rb
|
340
|
+
- test/br_nfe/service/response/build/base_test.rb
|
341
|
+
- test/br_nfe/service/response/default_test.rb
|
342
|
+
- test/br_nfe/service/response/nota_fiscal_test.rb
|
343
|
+
- test/br_nfe/service/response/paths/v1/tc_nfse_test.rb
|
322
344
|
- test/br_nfe/service/rps_test.rb
|
323
345
|
- test/br_nfe/service/sc/florianopolis/XSD/TiposNFSe_v2.0.xsd
|
324
346
|
- test/br_nfe/service/sc/florianopolis/XSD/xmldsig-core-schema.xsd
|
@@ -349,23 +371,29 @@ files:
|
|
349
371
|
- test/cert.pfx
|
350
372
|
- test/factories/base.rb
|
351
373
|
- test/factories/condicao_pagamento.rb
|
352
|
-
- test/factories/destinatario.rb
|
353
|
-
- test/factories/emitente.rb
|
354
374
|
- test/factories/endereco.rb
|
355
|
-
- test/factories/
|
356
|
-
- test/factories/
|
357
|
-
- test/factories/
|
375
|
+
- test/factories/person.rb
|
376
|
+
- test/factories/product/base.rb
|
377
|
+
- test/factories/product/consulta_status_servico.rb
|
378
|
+
- test/factories/product/emitente.rb
|
379
|
+
- test/factories/product/gateway/base.rb
|
380
|
+
- test/factories/product/gateway/web_service_svrs.rb
|
358
381
|
- test/factories/service/base.rb
|
359
382
|
- test/factories/service/betha/base.rb
|
360
|
-
- test/factories/service/betha/v1/
|
383
|
+
- test/factories/service/betha/v1/cancela_nfse.rb
|
361
384
|
- test/factories/service/betha/v1/consulta_lote_rps.rb
|
362
385
|
- test/factories/service/betha/v1/consulta_nfs_por_rps.rb
|
363
386
|
- test/factories/service/betha/v1/consulta_nfse.rb
|
364
387
|
- test/factories/service/betha/v1/consulta_situacao_lote_rps.rb
|
365
388
|
- test/factories/service/betha/v1/gateway.rb
|
366
389
|
- test/factories/service/betha/v1/recepcao_lote_rps.rb
|
390
|
+
- test/factories/service/destinatario.rb
|
391
|
+
- test/factories/service/emitente.rb
|
367
392
|
- test/factories/service/intermediario.rb
|
368
393
|
- test/factories/service/item.rb
|
394
|
+
- test/factories/service/response/build_response.rb
|
395
|
+
- test/factories/service/response/default.rb
|
396
|
+
- test/factories/service/response/nota_fiscal.rb
|
369
397
|
- test/factories/service/rps.rb
|
370
398
|
- test/factories/service/sc/florianopolis/base.rb
|
371
399
|
- test/factories/service/sc/florianopolis/cancellation.rb
|
@@ -385,6 +413,24 @@ files:
|
|
385
413
|
- test/factories/service/thema/v1/consulta_situacao_lote_rps.rb
|
386
414
|
- test/factories/service/thema/v1/recepcao_lote_rps.rb
|
387
415
|
- test/factories/service/thema/v1/recepcao_lote_rps_limitado.rb
|
416
|
+
- test/fixtures/service/response/betha/v1/cancela_nfse/fault.xml
|
417
|
+
- test/fixtures/service/response/betha/v1/cancela_nfse/success.xml
|
418
|
+
- test/fixtures/service/response/betha/v1/consulta_lote_rps/fault.xml
|
419
|
+
- test/fixtures/service/response/betha/v1/consulta_lote_rps/success.xml
|
420
|
+
- test/fixtures/service/response/betha/v1/consulta_nfse/fault.xml
|
421
|
+
- test/fixtures/service/response/betha/v1/consulta_nfse/nfs_empty.xml
|
422
|
+
- test/fixtures/service/response/betha/v1/consulta_nfse/success.xml
|
423
|
+
- test/fixtures/service/response/betha/v1/consulta_nfse_por_rps/fault.xml
|
424
|
+
- test/fixtures/service/response/betha/v1/consulta_nfse_por_rps/success.xml
|
425
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/error.xml
|
426
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/fault.xml
|
427
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/success.xml
|
428
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unprocessed.xml
|
429
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unprocessed_by_code_error.xml
|
430
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unreceived.xml
|
431
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unreceived_by_code_error.xml
|
432
|
+
- test/fixtures/service/response/betha/v1/recepcao_lote_rps/error.xml
|
433
|
+
- test/fixtures/service/response/betha/v1/recepcao_lote_rps/success.xml
|
388
434
|
- test/fixtures/service/response/simpliss/v1/cancela_nfse/fault.xml
|
389
435
|
- test/fixtures/service/response/simpliss/v1/cancela_nfse/success.xml
|
390
436
|
- test/fixtures/service/response/simpliss/v1/consulta_lote_rps/fault.xml
|
@@ -459,42 +505,31 @@ signing_key:
|
|
459
505
|
specification_version: 4
|
460
506
|
summary: Emissão de Notas Fiscais Eletrônicas em Ruby
|
461
507
|
test_files:
|
508
|
+
- test/br_nfe/association/have_address_test.rb
|
509
|
+
- test/br_nfe/association/have_condicao_pagamento_test.rb
|
510
|
+
- test/br_nfe/association/have_destinatario_test.rb
|
511
|
+
- test/br_nfe/association/have_emitente_test.rb
|
462
512
|
- test/br_nfe/base_test.rb
|
463
513
|
- test/br_nfe/condicao_pagamento_test.rb
|
464
|
-
- test/br_nfe/destinatario_test.rb
|
465
|
-
- test/br_nfe/emitente_test.rb
|
466
514
|
- test/br_nfe/endereco_test.rb
|
467
515
|
- test/br_nfe/helper/cpf_cnpj_test.rb
|
468
|
-
- test/br_nfe/
|
469
|
-
- test/br_nfe/
|
470
|
-
- test/br_nfe/
|
471
|
-
- test/br_nfe/
|
472
|
-
- test/br_nfe/
|
473
|
-
- test/br_nfe/
|
474
|
-
- test/br_nfe/
|
475
|
-
- test/br_nfe/
|
476
|
-
- test/br_nfe/response/service/default_test.rb
|
477
|
-
- test/br_nfe/response/service/nota_fiscal_test.rb
|
478
|
-
- test/br_nfe/response/service/paths/base_test.rb
|
479
|
-
- test/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta_test.rb
|
480
|
-
- test/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta_test.rb
|
481
|
-
- test/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta_test.rb
|
482
|
-
- test/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta_test.rb
|
483
|
-
- test/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta_test.rb
|
484
|
-
- test/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta_test.rb
|
485
|
-
- test/br_nfe/response/service/paths/v1/tc_nfse_test.rb
|
516
|
+
- test/br_nfe/person_test.rb
|
517
|
+
- test/br_nfe/product/base_test.rb
|
518
|
+
- test/br_nfe/product/consulta_status_servico_test.rb
|
519
|
+
- test/br_nfe/product/emitente_test.rb
|
520
|
+
- test/br_nfe/product/gateway/base_test.rb
|
521
|
+
- test/br_nfe/product/gateway/web_service_svrs_test.rb
|
522
|
+
- test/br_nfe/service/association/have_intermediario_test.rb
|
523
|
+
- test/br_nfe/service/association/have_rps_test.rb
|
486
524
|
- test/br_nfe/service/base_test.rb
|
487
525
|
- test/br_nfe/service/betha/base_test.rb
|
488
|
-
- test/br_nfe/service/betha/v1/
|
526
|
+
- test/br_nfe/service/betha/v1/cancela_nfse_test.rb
|
489
527
|
- test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb
|
490
528
|
- test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb
|
491
529
|
- test/br_nfe/service/betha/v1/consulta_nfse_test.rb
|
492
530
|
- test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb
|
493
531
|
- test/br_nfe/service/betha/v1/gateway_test.rb
|
494
532
|
- test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb
|
495
|
-
- test/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta_test.rb
|
496
|
-
- test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta_test.rb
|
497
|
-
- test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta_test.rb
|
498
533
|
- test/br_nfe/service/betha/v1/xsd/TiposNFe_v01.xsd
|
499
534
|
- test/br_nfe/service/betha/v1/xsd/nfse_v01.xsd
|
500
535
|
- test/br_nfe/service/betha/v1/xsd/servico_cancelar_nfse_envio_v01.xsd
|
@@ -509,8 +544,15 @@ test_files:
|
|
509
544
|
- test/br_nfe/service/concerns/rules/consulta_nfs_por_rps_test.rb
|
510
545
|
- test/br_nfe/service/concerns/rules/consulta_nfse_test.rb
|
511
546
|
- test/br_nfe/service/concerns/rules/recepcao_lote_rps_test.rb
|
547
|
+
- test/br_nfe/service/concerns/values_ts/service_v1_test.rb
|
548
|
+
- test/br_nfe/service/destinatario_test.rb
|
549
|
+
- test/br_nfe/service/emitente_test.rb
|
512
550
|
- test/br_nfe/service/intermediario_test.rb
|
513
551
|
- test/br_nfe/service/item_test.rb
|
552
|
+
- test/br_nfe/service/response/build/base_test.rb
|
553
|
+
- test/br_nfe/service/response/default_test.rb
|
554
|
+
- test/br_nfe/service/response/nota_fiscal_test.rb
|
555
|
+
- test/br_nfe/service/response/paths/v1/tc_nfse_test.rb
|
514
556
|
- test/br_nfe/service/rps_test.rb
|
515
557
|
- test/br_nfe/service/sc/florianopolis/XSD/TiposNFSe_v2.0.xsd
|
516
558
|
- test/br_nfe/service/sc/florianopolis/XSD/xmldsig-core-schema.xsd
|
@@ -541,23 +583,29 @@ test_files:
|
|
541
583
|
- test/cert.pfx
|
542
584
|
- test/factories/base.rb
|
543
585
|
- test/factories/condicao_pagamento.rb
|
544
|
-
- test/factories/destinatario.rb
|
545
|
-
- test/factories/emitente.rb
|
546
586
|
- test/factories/endereco.rb
|
547
|
-
- test/factories/
|
548
|
-
- test/factories/
|
549
|
-
- test/factories/
|
587
|
+
- test/factories/person.rb
|
588
|
+
- test/factories/product/base.rb
|
589
|
+
- test/factories/product/consulta_status_servico.rb
|
590
|
+
- test/factories/product/emitente.rb
|
591
|
+
- test/factories/product/gateway/base.rb
|
592
|
+
- test/factories/product/gateway/web_service_svrs.rb
|
550
593
|
- test/factories/service/base.rb
|
551
594
|
- test/factories/service/betha/base.rb
|
552
|
-
- test/factories/service/betha/v1/
|
595
|
+
- test/factories/service/betha/v1/cancela_nfse.rb
|
553
596
|
- test/factories/service/betha/v1/consulta_lote_rps.rb
|
554
597
|
- test/factories/service/betha/v1/consulta_nfs_por_rps.rb
|
555
598
|
- test/factories/service/betha/v1/consulta_nfse.rb
|
556
599
|
- test/factories/service/betha/v1/consulta_situacao_lote_rps.rb
|
557
600
|
- test/factories/service/betha/v1/gateway.rb
|
558
601
|
- test/factories/service/betha/v1/recepcao_lote_rps.rb
|
602
|
+
- test/factories/service/destinatario.rb
|
603
|
+
- test/factories/service/emitente.rb
|
559
604
|
- test/factories/service/intermediario.rb
|
560
605
|
- test/factories/service/item.rb
|
606
|
+
- test/factories/service/response/build_response.rb
|
607
|
+
- test/factories/service/response/default.rb
|
608
|
+
- test/factories/service/response/nota_fiscal.rb
|
561
609
|
- test/factories/service/rps.rb
|
562
610
|
- test/factories/service/sc/florianopolis/base.rb
|
563
611
|
- test/factories/service/sc/florianopolis/cancellation.rb
|
@@ -577,6 +625,24 @@ test_files:
|
|
577
625
|
- test/factories/service/thema/v1/consulta_situacao_lote_rps.rb
|
578
626
|
- test/factories/service/thema/v1/recepcao_lote_rps.rb
|
579
627
|
- test/factories/service/thema/v1/recepcao_lote_rps_limitado.rb
|
628
|
+
- test/fixtures/service/response/betha/v1/cancela_nfse/fault.xml
|
629
|
+
- test/fixtures/service/response/betha/v1/cancela_nfse/success.xml
|
630
|
+
- test/fixtures/service/response/betha/v1/consulta_lote_rps/fault.xml
|
631
|
+
- test/fixtures/service/response/betha/v1/consulta_lote_rps/success.xml
|
632
|
+
- test/fixtures/service/response/betha/v1/consulta_nfse/fault.xml
|
633
|
+
- test/fixtures/service/response/betha/v1/consulta_nfse/nfs_empty.xml
|
634
|
+
- test/fixtures/service/response/betha/v1/consulta_nfse/success.xml
|
635
|
+
- test/fixtures/service/response/betha/v1/consulta_nfse_por_rps/fault.xml
|
636
|
+
- test/fixtures/service/response/betha/v1/consulta_nfse_por_rps/success.xml
|
637
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/error.xml
|
638
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/fault.xml
|
639
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/success.xml
|
640
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unprocessed.xml
|
641
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unprocessed_by_code_error.xml
|
642
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unreceived.xml
|
643
|
+
- test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unreceived_by_code_error.xml
|
644
|
+
- test/fixtures/service/response/betha/v1/recepcao_lote_rps/error.xml
|
645
|
+
- test/fixtures/service/response/betha/v1/recepcao_lote_rps/success.xml
|
580
646
|
- test/fixtures/service/response/simpliss/v1/cancela_nfse/fault.xml
|
581
647
|
- test/fixtures/service/response/simpliss/v1/cancela_nfse/success.xml
|
582
648
|
- test/fixtures/service/response/simpliss/v1/consulta_lote_rps/fault.xml
|
data/lib/br_nfe/destinatario.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
class Destinatario < BrNfe::ActiveModelBase
|
3
|
-
include BrNfe::Helper::HaveAddress
|
4
|
-
|
5
|
-
attr_accessor :cpf_cnpj
|
6
|
-
attr_accessor :inscricao_municipal
|
7
|
-
attr_accessor :inscricao_estadual
|
8
|
-
attr_accessor :inscricao_suframa
|
9
|
-
attr_accessor :razao_social
|
10
|
-
attr_accessor :nome_fantasia
|
11
|
-
attr_accessor :telefone
|
12
|
-
attr_accessor :email
|
13
|
-
|
14
|
-
validates :cpf_cnpj, :razao_social, presence: true
|
15
|
-
validate :validar_endereco
|
16
|
-
|
17
|
-
def razao_social
|
18
|
-
"#{@razao_social}".to_valid_format_nf
|
19
|
-
end
|
20
|
-
|
21
|
-
def nome_fantasia
|
22
|
-
"#{@nome_fantasia}".to_valid_format_nf
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Helper
|
3
|
-
module HaveDestinatario
|
4
|
-
def destinatario
|
5
|
-
yield(destinatario) if block_given?
|
6
|
-
@destinatario.is_a?(BrNfe.destinatario_class) ? @destinatario : @destinatario = BrNfe.destinatario_class.new()
|
7
|
-
end
|
8
|
-
|
9
|
-
def destinatario=(value)
|
10
|
-
if value.is_a?(BrNfe.destinatario_class) || value.nil?
|
11
|
-
@destinatario = value
|
12
|
-
elsif value.is_a?(Hash)
|
13
|
-
destinatario.assign_attributes(value)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Helper
|
3
|
-
module HaveEmitente
|
4
|
-
|
5
|
-
def emitente
|
6
|
-
yield emitente if block_given?
|
7
|
-
@emitente.is_a?(BrNfe.emitente_class) ? @emitente : @emitente = BrNfe.emitente_class.new()
|
8
|
-
end
|
9
|
-
|
10
|
-
|
11
|
-
def emitente=(value)
|
12
|
-
if value.is_a?(BrNfe.emitente_class) || value.nil?
|
13
|
-
@emitente = value
|
14
|
-
elsif value.is_a?(Hash)
|
15
|
-
emitente.assign_attributes(value)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Helper
|
3
|
-
module HaveIntermediario
|
4
|
-
def intermediario
|
5
|
-
yield(intermediario || new_intermediario) if block_given?
|
6
|
-
@intermediario.is_a?(BrNfe.intermediario_class) ? @intermediario : nil
|
7
|
-
end
|
8
|
-
|
9
|
-
def intermediario=(value)
|
10
|
-
if value.is_a?(BrNfe.intermediario_class) || value.nil?
|
11
|
-
@intermediario = value
|
12
|
-
elsif value.is_a?(Hash)
|
13
|
-
intermediario ? intermediario.assign_attributes(value) : new_intermediario(value)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
protected
|
18
|
-
|
19
|
-
def new_intermediario(params={})
|
20
|
-
@intermediario = BrNfe.intermediario_class.new(params)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Helper
|
3
|
-
module HaveRps
|
4
|
-
def rps
|
5
|
-
yield rps if block_given?
|
6
|
-
@rps.is_a?(BrNfe.rps_class) ? @rps : @rps = BrNfe.rps_class.new
|
7
|
-
end
|
8
|
-
|
9
|
-
def rps=(value)
|
10
|
-
if value.is_a?(BrNfe.rps_class) || value.nil?
|
11
|
-
@rps = value
|
12
|
-
elsif value.is_a?(Hash)
|
13
|
-
rps.assign_attributes(value)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
protected
|
18
|
-
|
19
|
-
def validate_rps
|
20
|
-
if rps.invalid?
|
21
|
-
rps.errors.full_messages.map{|msg| errors.add(:rps, msg) }
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
def valida_rps_recepcao
|
26
|
-
rps.validar_recepcao_rps = true
|
27
|
-
if rps.invalid?
|
28
|
-
rps.errors.full_messages.map{|msg| errors.add(:base, "RPS: #{msg}") }
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|