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
@@ -1,127 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Service
|
3
|
-
module Response
|
4
|
-
module Paths
|
5
|
-
module Base
|
6
|
-
# Caminho referente ao caminho do número do lote
|
7
|
-
def response_lot_number_path; [] end
|
8
|
-
|
9
|
-
# Caminho para encontrar o número do protocolo
|
10
|
-
def response_protocol_path; [] end
|
11
|
-
|
12
|
-
# Caminho para encontrar a data de recebimento do lote/rps/nfe
|
13
|
-
def response_received_date_path; [] end
|
14
|
-
|
15
|
-
# Caminho para encontrar a situação
|
16
|
-
def response_situation_path; [] end
|
17
|
-
|
18
|
-
# Chaves para formatar a situação do Lote RPS
|
19
|
-
def response_situation_key_values
|
20
|
-
{
|
21
|
-
'1' => :unreceived, # Não Recebido
|
22
|
-
'2' => :unprocessed,# Não Processado
|
23
|
-
'3' => :error, # Processado com Erro
|
24
|
-
'4' => :success, # Processado com Sucesso
|
25
|
-
}
|
26
|
-
end
|
27
|
-
|
28
|
-
# Caminho para encontrar a data e hora do cancelamento da nF
|
29
|
-
def response_cancelation_date_time_path; [] end
|
30
|
-
|
31
|
-
def response_message_errors_path; [] end
|
32
|
-
def response_message_code_key; :codigo end
|
33
|
-
def response_message_msg_key; :mensagem end
|
34
|
-
def response_message_solution_key; :correcao end
|
35
|
-
|
36
|
-
# Caminho referente ao caminho onde se encontra as notas fiscais
|
37
|
-
# poderá encontrar apenas uma ou várias
|
38
|
-
def response_invoices_path; [] end
|
39
|
-
|
40
|
-
# Demais caminhos para encontrar os dados da NF-e
|
41
|
-
def response_invoice_numero_nf_path; [] end
|
42
|
-
def response_invoice_codigo_verificacao_path; [] end
|
43
|
-
def response_invoice_data_emissao_path; [] end
|
44
|
-
def response_invoice_url_nf_path; [] end
|
45
|
-
def response_invoice_rps_numero_path; [] end
|
46
|
-
def response_invoice_rps_serie_path; [] end
|
47
|
-
def response_invoice_rps_tipo_path; [] end
|
48
|
-
def response_invoice_rps_situacao_path; [] end
|
49
|
-
def response_invoice_rps_substituido_numero_path; [] end
|
50
|
-
def response_invoice_rps_substituido_serie_path; [] end
|
51
|
-
def response_invoice_rps_substituido_tipo_path; [] end
|
52
|
-
def response_invoice_data_emissao_rps_path; [] end
|
53
|
-
def response_invoice_competencia_path; [] end
|
54
|
-
def response_invoice_natureza_operacao_path; [] end
|
55
|
-
def response_invoice_regime_especial_tributacao_path;[] end
|
56
|
-
def response_invoice_optante_simples_nacional_path; [] end
|
57
|
-
def response_invoice_incentivador_cultural_path; [] end
|
58
|
-
def response_invoice_outras_informacoes_path; [] end
|
59
|
-
def response_invoice_item_lista_servico_path; [] end
|
60
|
-
def response_invoice_cnae_code_path; [] end
|
61
|
-
def response_invoice_description_path; [] end
|
62
|
-
def response_invoice_codigo_municipio_path; [] end
|
63
|
-
def response_invoice_total_services_path; [] end
|
64
|
-
def response_invoice_deductions_path; [] end
|
65
|
-
def response_invoice_valor_pis_path; [] end
|
66
|
-
def response_invoice_valor_cofins_path; [] end
|
67
|
-
def response_invoice_valor_inss_path; [] end
|
68
|
-
def response_invoice_valor_ir_path; [] end
|
69
|
-
def response_invoice_valor_csll_path; [] end
|
70
|
-
def response_invoice_iss_retained_path; [] end
|
71
|
-
def response_invoice_outras_retencoes_path; [] end
|
72
|
-
def response_invoice_total_iss_path; [] end
|
73
|
-
def response_invoice_base_calculation_path; [] end
|
74
|
-
def response_invoice_iss_tax_rate_path; [] end
|
75
|
-
def response_invoice_valor_liquido_path; [] end
|
76
|
-
def response_invoice_desconto_condicionado_path; [] end
|
77
|
-
def response_invoice_desconto_incondicionado_path; [] end
|
78
|
-
def response_invoice_responsavel_retencao_path; [] end
|
79
|
-
def response_invoice_numero_processo_path; [] end
|
80
|
-
def response_invoice_municipio_incidencia_path; [] end
|
81
|
-
def response_invoice_orgao_gerador_municipio_path; [] end
|
82
|
-
def response_invoice_orgao_gerador_uf_path; [] end
|
83
|
-
def response_invoice_cancelamento_codigo_path; [] end
|
84
|
-
def response_invoice_cancelamento_numero_nf_path; [] end
|
85
|
-
def response_invoice_cancelamento_cnpj_path; [] end
|
86
|
-
def response_invoice_cancelamento_municipio_path; [] end
|
87
|
-
def response_invoice_cancelamento_data_hora_path; [] end
|
88
|
-
def response_invoice_nfe_substituidora_path; [] end
|
89
|
-
def response_invoice_codigo_obra_path; [] end
|
90
|
-
def response_invoice_codigo_art_path; [] end
|
91
|
-
def response_invoice_cancelamento_inscricao_municipal_path; [] end
|
92
|
-
|
93
|
-
def response_invoice_emitente_cnpj_path; [] end
|
94
|
-
def response_invoice_emitente_inscricao_municipal_path; [] end
|
95
|
-
def response_invoice_emitente_razao_social_path; [] end
|
96
|
-
def response_invoice_emitente_nome_fantasia_path; [] end
|
97
|
-
def response_invoice_emitente_telefone_path; [] end
|
98
|
-
def response_invoice_emitente_email_path; [] end
|
99
|
-
def response_invoice_emitente_endereco_logradouro_path; [] end
|
100
|
-
def response_invoice_emitente_endereco_numero_path; [] end
|
101
|
-
def response_invoice_emitente_endereco_complemento_path; [] end
|
102
|
-
def response_invoice_emitente_endereco_bairro_path; [] end
|
103
|
-
def response_invoice_emitente_endereco_codigo_municipio_path; [] end
|
104
|
-
def response_invoice_emitente_endereco_uf_path; [] end
|
105
|
-
def response_invoice_emitente_endereco_cep_path; [] end
|
106
|
-
|
107
|
-
def response_invoice_destinatario_cpf_path ; end
|
108
|
-
def response_invoice_destinatario_cnpj_path ; end
|
109
|
-
def response_invoice_destinatario_inscricao_municipal_path ; end
|
110
|
-
def response_invoice_destinatario_inscricao_estadual_path ; end
|
111
|
-
def response_invoice_destinatario_inscricao_suframa_path ; end
|
112
|
-
def response_invoice_destinatario_razao_social_path ; end
|
113
|
-
def response_invoice_destinatario_telefone_path ; end
|
114
|
-
def response_invoice_destinatario_email_path ; end
|
115
|
-
def response_invoice_destinatario_endereco_logradouro_path ; end
|
116
|
-
def response_invoice_destinatario_endereco_numero_path ; end
|
117
|
-
def response_invoice_destinatario_endereco_complemento_path ; end
|
118
|
-
def response_invoice_destinatario_endereco_bairro_path ; end
|
119
|
-
def response_invoice_destinatario_endereco_codigo_municipio_path ; end
|
120
|
-
def response_invoice_destinatario_endereco_uf_path ; end
|
121
|
-
def response_invoice_destinatario_endereco_cep_path ; end
|
122
|
-
|
123
|
-
end
|
124
|
-
end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Service
|
3
|
-
module Response
|
4
|
-
module Paths
|
5
|
-
module V1
|
6
|
-
module ServicoCancelarNfseResposta
|
7
|
-
include BrNfe::Service::Response::Paths::Base
|
8
|
-
|
9
|
-
# def message_alerts_path; [] end
|
10
|
-
def response_message_errors_path
|
11
|
-
[:cancelar_nfse_resposta, :lista_mensagem_retorno, :mensagem_retorno]
|
12
|
-
end
|
13
|
-
|
14
|
-
def response_cancelation_date_time_path
|
15
|
-
[:cancelar_nfse_resposta, :cancelamento, :confirmacao, :inf_confirmacao_cancelamento, :data_hora]
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Service
|
3
|
-
module Response
|
4
|
-
module Paths
|
5
|
-
module V1
|
6
|
-
module ServicoConsultarLoteRpsResposta
|
7
|
-
include BrNfe::Service::Response::Paths::Base
|
8
|
-
include BrNfe::Service::Response::Paths::V1::TcNfse
|
9
|
-
|
10
|
-
# def message_alerts_path; [] end
|
11
|
-
def response_message_errors_path
|
12
|
-
[:consultar_lote_rps_resposta, :lista_mensagem_retorno, :mensagem_retorno]
|
13
|
-
end
|
14
|
-
|
15
|
-
# Caminho referente ao caminho onde se encontra as notas fiscais
|
16
|
-
# poderá encontrar apenas uma ou várias
|
17
|
-
def response_invoices_path
|
18
|
-
[:consultar_lote_rps_resposta, :lista_nfse, :comp_nfse]
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Service
|
3
|
-
module Response
|
4
|
-
module Paths
|
5
|
-
module V1
|
6
|
-
module ServicoConsultarNfseResposta
|
7
|
-
include BrNfe::Service::Response::Paths::Base
|
8
|
-
include BrNfe::Service::Response::Paths::V1::TcNfse
|
9
|
-
|
10
|
-
# def message_alerts_path; [] end
|
11
|
-
def response_message_errors_path
|
12
|
-
[:consultar_nfse_resposta, :lista_mensagem_retorno, :mensagem_retorno]
|
13
|
-
end
|
14
|
-
|
15
|
-
# Caminho referente ao caminho onde se encontra as notas fiscais
|
16
|
-
# poderá encontrar apenas uma ou várias
|
17
|
-
def response_invoices_path
|
18
|
-
[:consultar_nfse_resposta, :lista_nfse, :comp_nfse]
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Service
|
3
|
-
module Response
|
4
|
-
module Paths
|
5
|
-
module V1
|
6
|
-
module ServicoConsultarNfseRpsResposta
|
7
|
-
include BrNfe::Service::Response::Paths::Base
|
8
|
-
include BrNfe::Service::Response::Paths::V1::TcNfse
|
9
|
-
|
10
|
-
# def message_alerts_path; [] end
|
11
|
-
def response_message_errors_path
|
12
|
-
[:consultar_nfse_rps_resposta, :lista_mensagem_retorno, :mensagem_retorno]
|
13
|
-
end
|
14
|
-
|
15
|
-
# Caminho referente ao caminho onde se encontra as notas fiscais
|
16
|
-
# poderá encontrar apenas uma ou várias
|
17
|
-
def response_invoices_path
|
18
|
-
[:consultar_nfse_rps_resposta, :comp_nfse]
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Service
|
3
|
-
module Response
|
4
|
-
module Paths
|
5
|
-
module V1
|
6
|
-
module ServicoConsultarSituacaoLoteRpsResposta
|
7
|
-
include BrNfe::Service::Response::Paths::Base
|
8
|
-
|
9
|
-
# Caminho referente ao caminho do número do lote
|
10
|
-
def response_lot_number_path
|
11
|
-
[:consultar_situacao_lote_rps_resposta, :numero_lote]
|
12
|
-
end
|
13
|
-
|
14
|
-
# Caminho para encontrar o número do protocolo
|
15
|
-
def response_situation_path
|
16
|
-
[:consultar_situacao_lote_rps_resposta, :situacao]
|
17
|
-
end
|
18
|
-
|
19
|
-
# def response_message_alerts_path; [] end
|
20
|
-
def response_message_errors_path
|
21
|
-
[:consultar_situacao_lote_rps_resposta, :lista_mensagem_retorno, :mensagem_retorno]
|
22
|
-
end
|
23
|
-
# def message_code_key; :codigo end
|
24
|
-
# def message_msg_key; :mensagem end
|
25
|
-
# def message_solution_key; :correcao end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Service
|
3
|
-
module Response
|
4
|
-
module Paths
|
5
|
-
module V1
|
6
|
-
module ServicoEnviarLoteRpsResposta
|
7
|
-
include BrNfe::Service::Response::Paths::Base
|
8
|
-
|
9
|
-
# Caminho referente ao caminho do número do lote
|
10
|
-
def response_lot_number_path
|
11
|
-
[:enviar_lote_rps_resposta, :numero_lote]
|
12
|
-
end
|
13
|
-
|
14
|
-
# Caminho para encontrar o número do protocolo
|
15
|
-
def response_protocol_path
|
16
|
-
[:enviar_lote_rps_resposta, :protocolo]
|
17
|
-
end
|
18
|
-
|
19
|
-
# Caminho para encontrar a data de recebimento do lote/rps/nfe
|
20
|
-
def response_received_date_path
|
21
|
-
[:enviar_lote_rps_resposta, :data_recebimento]
|
22
|
-
end
|
23
|
-
|
24
|
-
# def response_message_alerts_path; [] end
|
25
|
-
def response_message_errors_path
|
26
|
-
[:enviar_lote_rps_resposta, :lista_mensagem_retorno, :mensagem_retorno]
|
27
|
-
end
|
28
|
-
# def response_message_code_key; :codigo end
|
29
|
-
# def response_message_msg_key; :mensagem end
|
30
|
-
# def response_message_solution_key; :correcao end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,271 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Service
|
3
|
-
module Response
|
4
|
-
module Paths
|
5
|
-
module V1
|
6
|
-
module TcNfse
|
7
|
-
def response_default_path_to_nf
|
8
|
-
[:nfse, :inf_nfse]
|
9
|
-
end
|
10
|
-
|
11
|
-
def response_invoice_numero_nf_path
|
12
|
-
response_default_path_to_nf + [:numero]
|
13
|
-
end
|
14
|
-
|
15
|
-
def response_invoice_codigo_verificacao_path
|
16
|
-
response_default_path_to_nf + [:codigo_verificacao]
|
17
|
-
end
|
18
|
-
|
19
|
-
def response_invoice_data_emissao_path
|
20
|
-
response_default_path_to_nf + [:data_emissao]
|
21
|
-
end
|
22
|
-
|
23
|
-
def response_invoice_rps_numero_path
|
24
|
-
response_default_path_to_nf + [:identificacao_rps, :numero]
|
25
|
-
end
|
26
|
-
|
27
|
-
def response_invoice_rps_serie_path
|
28
|
-
response_default_path_to_nf + [:identificacao_rps, :serie]
|
29
|
-
end
|
30
|
-
|
31
|
-
def response_invoice_rps_tipo_path
|
32
|
-
response_default_path_to_nf + [:identificacao_rps, :tipo]
|
33
|
-
end
|
34
|
-
|
35
|
-
def response_invoice_data_emissao_rps_path
|
36
|
-
response_default_path_to_nf + [:data_emissao_rps]
|
37
|
-
end
|
38
|
-
|
39
|
-
def response_invoice_natureza_operacao_path
|
40
|
-
response_default_path_to_nf + [:natureza_operacao]
|
41
|
-
end
|
42
|
-
|
43
|
-
def response_invoice_regime_especial_tributacao_path
|
44
|
-
response_default_path_to_nf + [:regime_especial_tributacao]
|
45
|
-
end
|
46
|
-
|
47
|
-
def response_invoice_optante_simples_nacional_path
|
48
|
-
response_default_path_to_nf + [:optante_simples_nacional]
|
49
|
-
end
|
50
|
-
|
51
|
-
def response_invoice_incentivador_cultural_path
|
52
|
-
response_default_path_to_nf + [:incentivador_cultural]
|
53
|
-
end
|
54
|
-
|
55
|
-
def response_invoice_competencia_path
|
56
|
-
response_default_path_to_nf + [:competencia]
|
57
|
-
end
|
58
|
-
|
59
|
-
def response_invoice_outras_informacoes_path
|
60
|
-
response_default_path_to_nf + [:outras_informacoes]
|
61
|
-
end
|
62
|
-
|
63
|
-
def response_invoice_item_lista_servico_path
|
64
|
-
response_default_path_to_nf + [:servico, :item_lista_servico]
|
65
|
-
end
|
66
|
-
|
67
|
-
def response_invoice_cnae_code_path
|
68
|
-
response_default_path_to_nf + [:servico, :codigo_cnae]
|
69
|
-
end
|
70
|
-
|
71
|
-
def response_invoice_description_path
|
72
|
-
response_default_path_to_nf + [:servico, :discriminacao]
|
73
|
-
end
|
74
|
-
|
75
|
-
def response_invoice_codigo_municipio_path
|
76
|
-
response_default_path_to_nf + [:servico, :codigo_municipio]
|
77
|
-
end
|
78
|
-
|
79
|
-
def response_invoice_total_services_path
|
80
|
-
response_default_path_to_nf + [:servico, :valores, :valor_servicos]
|
81
|
-
end
|
82
|
-
|
83
|
-
def response_invoice_deductions_path
|
84
|
-
response_default_path_to_nf + [:servico, :valores, :valor_deducoes]
|
85
|
-
end
|
86
|
-
|
87
|
-
def response_invoice_valor_pis_path
|
88
|
-
response_default_path_to_nf + [:servico, :valores, :valor_pis]
|
89
|
-
end
|
90
|
-
|
91
|
-
def response_invoice_valor_cofins_path
|
92
|
-
response_default_path_to_nf + [:servico, :valores, :valor_cofins]
|
93
|
-
end
|
94
|
-
|
95
|
-
def response_invoice_valor_inss_path
|
96
|
-
response_default_path_to_nf + [:servico, :valores, :valor_inss]
|
97
|
-
end
|
98
|
-
|
99
|
-
def response_invoice_valor_ir_path
|
100
|
-
response_default_path_to_nf + [:servico, :valores, :valor_ir]
|
101
|
-
end
|
102
|
-
|
103
|
-
def response_invoice_valor_csll_path
|
104
|
-
response_default_path_to_nf + [:servico, :valores, :valor_csll]
|
105
|
-
end
|
106
|
-
|
107
|
-
def response_invoice_iss_retained_path
|
108
|
-
response_default_path_to_nf + [:servico, :valores, :iss_retido]
|
109
|
-
end
|
110
|
-
|
111
|
-
def response_invoice_outras_retencoes_path
|
112
|
-
response_default_path_to_nf + [:servico, :valores, :outras_retencoes]
|
113
|
-
end
|
114
|
-
|
115
|
-
def response_invoice_total_iss_path
|
116
|
-
response_default_path_to_nf + [:servico, :valores, :valor_iss]
|
117
|
-
end
|
118
|
-
|
119
|
-
def response_invoice_base_calculation_path
|
120
|
-
response_default_path_to_nf + [:servico, :valores, :base_calculo]
|
121
|
-
end
|
122
|
-
|
123
|
-
def response_invoice_iss_tax_rate_path
|
124
|
-
response_default_path_to_nf + [:servico, :valores, :aliquota]
|
125
|
-
end
|
126
|
-
|
127
|
-
def response_invoice_valor_liquido_path
|
128
|
-
response_default_path_to_nf + [:servico, :valores, :valor_liquido_nfse]
|
129
|
-
end
|
130
|
-
|
131
|
-
def response_invoice_desconto_condicionado_path
|
132
|
-
response_default_path_to_nf + [:servico, :valores, :desconto_condicionado]
|
133
|
-
end
|
134
|
-
|
135
|
-
def response_invoice_desconto_incondicionado_path
|
136
|
-
response_default_path_to_nf + [:servico, :valores, :desconto_incondicionado]
|
137
|
-
end
|
138
|
-
|
139
|
-
def response_invoice_orgao_gerador_municipio_path
|
140
|
-
response_default_path_to_nf + [:orgao_gerador, :codigo_municipio]
|
141
|
-
end
|
142
|
-
|
143
|
-
def response_invoice_orgao_gerador_uf_path
|
144
|
-
response_default_path_to_nf + [:orgao_gerador, :uf]
|
145
|
-
end
|
146
|
-
|
147
|
-
def response_invoice_codigo_obra_path
|
148
|
-
response_default_path_to_nf + [:construcao_civil, :codigo_obra]
|
149
|
-
end
|
150
|
-
|
151
|
-
def response_invoice_codigo_art_path
|
152
|
-
response_default_path_to_nf + [:construcao_civil, :art]
|
153
|
-
end
|
154
|
-
|
155
|
-
def response_invoice_cancelamento_codigo_path
|
156
|
-
[:nfse_cancelamento, :confirmacao, :pedido, :inf_pedido_cancelamento, :codigo_cancelamento]
|
157
|
-
end
|
158
|
-
def response_invoice_cancelamento_numero_nf_path
|
159
|
-
[:nfse_cancelamento, :confirmacao, :pedido, :inf_pedido_cancelamento, :identificacao_nfse, :numero]
|
160
|
-
end
|
161
|
-
def response_invoice_cancelamento_cnpj_path
|
162
|
-
[:nfse_cancelamento, :confirmacao, :pedido, :inf_pedido_cancelamento, :identificacao_nfse, :cnpj]
|
163
|
-
end
|
164
|
-
def response_invoice_cancelamento_inscricao_municipal_path
|
165
|
-
[:nfse_cancelamento, :confirmacao, :pedido, :inf_pedido_cancelamento, :identificacao_nfse, :inscricao_municipal]
|
166
|
-
end
|
167
|
-
def response_invoice_cancelamento_municipio_path
|
168
|
-
[:nfse_cancelamento, :confirmacao, :pedido, :inf_pedido_cancelamento, :identificacao_nfse, :codigo_municipio]
|
169
|
-
end
|
170
|
-
def response_invoice_cancelamento_data_hora_path
|
171
|
-
[:nfse_cancelamento, :confirmacao, :data_hora_cancelamento]
|
172
|
-
end
|
173
|
-
def response_invoice_nfe_substituidora_path
|
174
|
-
[:nfse_substituicao, :substituicao_nfse, :nfse_substituidora]
|
175
|
-
end
|
176
|
-
|
177
|
-
############################## PATH PARA EMITENTE ##########################################
|
178
|
-
def response_invoice_emitente_path
|
179
|
-
response_default_path_to_nf+[:prestador_servico]
|
180
|
-
end
|
181
|
-
def response_invoice_emitente_cnpj_path
|
182
|
-
response_invoice_emitente_path + [:identificacao_prestador, :cnpj]
|
183
|
-
end
|
184
|
-
def response_invoice_emitente_inscricao_municipal_path
|
185
|
-
response_invoice_emitente_path + [:identificacao_prestador, :inscricao_municipal]
|
186
|
-
end
|
187
|
-
def response_invoice_emitente_razao_social_path
|
188
|
-
response_invoice_emitente_path + [:razao_social]
|
189
|
-
end
|
190
|
-
def response_invoice_emitente_nome_fantasia_path
|
191
|
-
response_invoice_emitente_path + [:nome_fantasia]
|
192
|
-
end
|
193
|
-
def response_invoice_emitente_telefone_path
|
194
|
-
response_invoice_emitente_path + [:contato, :telefone]
|
195
|
-
end
|
196
|
-
def response_invoice_emitente_email_path
|
197
|
-
response_invoice_emitente_path + [:contato, :email]
|
198
|
-
end
|
199
|
-
def response_invoice_emitente_endereco_logradouro_path
|
200
|
-
response_invoice_emitente_path + [:endereco, :endereco]
|
201
|
-
end
|
202
|
-
def response_invoice_emitente_endereco_numero_path
|
203
|
-
response_invoice_emitente_path + [:endereco, :numero]
|
204
|
-
end
|
205
|
-
def response_invoice_emitente_endereco_complemento_path
|
206
|
-
response_invoice_emitente_path + [:endereco, :complemento]
|
207
|
-
end
|
208
|
-
def response_invoice_emitente_endereco_bairro_path
|
209
|
-
response_invoice_emitente_path + [:endereco, :bairro]
|
210
|
-
end
|
211
|
-
def response_invoice_emitente_endereco_codigo_municipio_path
|
212
|
-
response_invoice_emitente_path + [:endereco, :codigo_municipio]
|
213
|
-
end
|
214
|
-
def response_invoice_emitente_endereco_uf_path
|
215
|
-
response_invoice_emitente_path + [:endereco, :uf]
|
216
|
-
end
|
217
|
-
def response_invoice_emitente_endereco_cep_path
|
218
|
-
response_invoice_emitente_path + [:endereco, :cep]
|
219
|
-
end
|
220
|
-
############################## PATH PARA DESTINATÁRIO ##########################################
|
221
|
-
def response_invoice_destinatario_cpf_path
|
222
|
-
response_default_path_to_nf+[:tomador_servico, :identificacao_tomador, :cpf_cnpj, :cpf]
|
223
|
-
end
|
224
|
-
def response_invoice_destinatario_cnpj_path
|
225
|
-
response_default_path_to_nf+[:tomador_servico, :identificacao_tomador, :cpf_cnpj, :cnpj]
|
226
|
-
end
|
227
|
-
def response_invoice_destinatario_inscricao_municipal_path
|
228
|
-
response_default_path_to_nf+[:tomador_servico, :identificacao_tomador, :inscricao_municipal]
|
229
|
-
end
|
230
|
-
def response_invoice_destinatario_inscricao_estadual_path
|
231
|
-
response_default_path_to_nf+[:tomador_servico, :identificacao_tomador, :inscricao_estadual]
|
232
|
-
end
|
233
|
-
def response_invoice_destinatario_inscricao_suframa_path
|
234
|
-
response_default_path_to_nf+[:tomador_servico, :identificacao_tomador, :inscricao_suframa]
|
235
|
-
end
|
236
|
-
def response_invoice_destinatario_razao_social_path
|
237
|
-
response_default_path_to_nf+[:tomador_servico, :razao_social]
|
238
|
-
end
|
239
|
-
def response_invoice_destinatario_telefone_path
|
240
|
-
response_default_path_to_nf+[:tomador_servico, :contato, :telefone]
|
241
|
-
end
|
242
|
-
def response_invoice_destinatario_email_path
|
243
|
-
response_default_path_to_nf+[:tomador_servico, :contato, :email]
|
244
|
-
end
|
245
|
-
def response_invoice_destinatario_endereco_logradouro_path
|
246
|
-
response_default_path_to_nf+[:tomador_servico, :endereco, :endereco]
|
247
|
-
end
|
248
|
-
def response_invoice_destinatario_endereco_numero_path
|
249
|
-
response_default_path_to_nf+[:tomador_servico, :endereco, :numero]
|
250
|
-
end
|
251
|
-
def response_invoice_destinatario_endereco_complemento_path
|
252
|
-
response_default_path_to_nf+[:tomador_servico, :endereco, :complemento]
|
253
|
-
end
|
254
|
-
def response_invoice_destinatario_endereco_bairro_path
|
255
|
-
response_default_path_to_nf+[:tomador_servico, :endereco, :bairro]
|
256
|
-
end
|
257
|
-
def response_invoice_destinatario_endereco_codigo_municipio_path
|
258
|
-
response_default_path_to_nf+[:tomador_servico, :endereco, :codigo_municipio]
|
259
|
-
end
|
260
|
-
def response_invoice_destinatario_endereco_uf_path
|
261
|
-
response_default_path_to_nf+[:tomador_servico, :endereco, :uf]
|
262
|
-
end
|
263
|
-
def response_invoice_destinatario_endereco_cep_path
|
264
|
-
response_default_path_to_nf+[:tomador_servico, :endereco, :cep]
|
265
|
-
end
|
266
|
-
end
|
267
|
-
end
|
268
|
-
end
|
269
|
-
end
|
270
|
-
end
|
271
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Service
|
3
|
-
module Betha
|
4
|
-
module V1
|
5
|
-
class CancelamentoNfs < BrNfe::Service::Betha::V1::Gateway
|
6
|
-
include BrNfe::Service::Concerns::Rules::CancelamentoNfs
|
7
|
-
include BrNfe::Service::Response::Paths::V1::ServicoCancelarNfseResposta
|
8
|
-
|
9
|
-
def certificado_obrigatorio?
|
10
|
-
true
|
11
|
-
end
|
12
|
-
|
13
|
-
def wsdl
|
14
|
-
"http://e-gov.betha.com.br/e-nota-contribuinte-#{'test-' if env == :test}ws/cancelarNfseV02?wsdl"
|
15
|
-
end
|
16
|
-
|
17
|
-
def method_wsdl
|
18
|
-
:cancelar_nfse_envio
|
19
|
-
end
|
20
|
-
|
21
|
-
def response_root_path
|
22
|
-
[:cancelar_nfse_envio_response]
|
23
|
-
end
|
24
|
-
|
25
|
-
def id_attribute?
|
26
|
-
false
|
27
|
-
end
|
28
|
-
|
29
|
-
def xml_builder
|
30
|
-
render_xml 'servico_cancelar_nfse_envio'
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Service
|
3
|
-
module Betha
|
4
|
-
module V1
|
5
|
-
module ResponsePaths
|
6
|
-
module ServicoConsultarLoteRpsResposta
|
7
|
-
include BrNfe::Service::Response::Paths::V1::ServicoConsultarLoteRpsResposta
|
8
|
-
|
9
|
-
# Caminho referente ao caminho onde se encontra as notas fiscais
|
10
|
-
# poderá encontrar apenas uma ou várias
|
11
|
-
def response_invoices_path
|
12
|
-
[:consultar_lote_rps_resposta, :lista_nfse, :compl_nfse]
|
13
|
-
end
|
14
|
-
|
15
|
-
def response_invoice_url_nf_path
|
16
|
-
response_default_path_to_nf + [:outras_informacoes]
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Service
|
3
|
-
module Betha
|
4
|
-
module V1
|
5
|
-
module ResponsePaths
|
6
|
-
module ServicoConsultarNfseResposta
|
7
|
-
include BrNfe::Service::Response::Paths::V1::ServicoConsultarNfseResposta
|
8
|
-
|
9
|
-
def response_invoices_path
|
10
|
-
[:consultar_nfse_resposta, :lista_nfse, :compl_nfse]
|
11
|
-
end
|
12
|
-
|
13
|
-
def response_invoice_url_nf_path
|
14
|
-
response_default_path_to_nf + [:outras_informacoes]
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module BrNfe
|
2
|
-
module Service
|
3
|
-
module Betha
|
4
|
-
module V1
|
5
|
-
module ResponsePaths
|
6
|
-
module ServicoConsultarNfseRpsResposta
|
7
|
-
include BrNfe::Service::Response::Paths::V1::ServicoConsultarNfseRpsResposta
|
8
|
-
|
9
|
-
def response_invoices_path
|
10
|
-
[:consultar_nfse_rps_resposta, :compl_nfse]
|
11
|
-
end
|
12
|
-
|
13
|
-
def response_invoice_url_nf_path
|
14
|
-
response_default_path_to_nf + [:outras_informacoes]
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|