br_nfe 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/Gemfile +1 -0
- data/Gemfile.lock +12 -2
- data/README.markdown +3 -1
- data/Rakefile +20 -1
- data/lib/br_nfe/active_model/associations.rb +11 -0
- data/lib/br_nfe/active_model/has_many.rb +65 -0
- data/lib/br_nfe/active_model/has_one.rb +57 -0
- data/lib/br_nfe/active_model_base.rb +38 -1
- data/lib/br_nfe/base.rb +9 -0
- data/lib/br_nfe/calculos/fatores_de_multiplicacao.rb +67 -0
- data/lib/br_nfe/calculos/modulo11.rb +54 -0
- data/lib/br_nfe/calculos/modulo11_fator_de2a9.rb +83 -0
- data/lib/br_nfe/calculos/modulo11_fator_de2a9_resto_zero.rb +29 -0
- data/lib/br_nfe/constants.rb +46 -1
- data/lib/br_nfe/endereco.rb +6 -2
- data/lib/br_nfe/helper/cpf_cnpj.rb +8 -1
- data/lib/br_nfe/person.rb +32 -3
- data/lib/br_nfe/product/destinatario.rb +45 -0
- data/lib/br_nfe/product/emitente.rb +14 -1
- data/lib/br_nfe/product/evento/base.rb +146 -0
- data/lib/br_nfe/product/evento/cancelamento.rb +46 -0
- data/lib/br_nfe/product/gateway/base.rb +16 -43
- data/lib/br_nfe/product/gateway/web_service_am.rb +140 -0
- data/lib/br_nfe/product/gateway/web_service_ba.rb +140 -0
- data/lib/br_nfe/product/gateway/web_service_ce.rb +162 -0
- data/lib/br_nfe/product/gateway/web_service_go.rb +140 -0
- data/lib/br_nfe/product/gateway/web_service_mg.rb +140 -0
- data/lib/br_nfe/product/gateway/web_service_ms.rb +140 -0
- data/lib/br_nfe/product/gateway/web_service_mt.rb +140 -0
- data/lib/br_nfe/product/gateway/web_service_pe.rb +140 -0
- data/lib/br_nfe/product/gateway/web_service_pr.rb +140 -0
- data/lib/br_nfe/product/gateway/web_service_rs.rb +140 -0
- data/lib/br_nfe/product/gateway/web_service_sp.rb +140 -0
- data/lib/br_nfe/product/gateway/web_service_svan.rb +162 -0
- data/lib/br_nfe/product/gateway/web_service_svc_an.rb +131 -0
- data/lib/br_nfe/product/gateway/web_service_svc_rs.rb +20 -0
- data/lib/br_nfe/product/gateway/web_service_svrs.rb +111 -10
- data/lib/br_nfe/product/nf_xml_value.rb +278 -0
- data/lib/br_nfe/product/nfe/adicao_importacao.rb +76 -0
- data/lib/br_nfe/product/nfe/cobranca/duplicata.rb +44 -0
- data/lib/br_nfe/product/nfe/cobranca/fatura.rb +64 -0
- data/lib/br_nfe/product/nfe/cobranca/pagamento.rb +99 -0
- data/lib/br_nfe/product/nfe/declaracao_importacao.rb +221 -0
- data/lib/br_nfe/product/nfe/detalhe_exportacao.rb +89 -0
- data/lib/br_nfe/product/nfe/item.rb +678 -0
- data/lib/br_nfe/product/nfe/item_tax/cofins.rb +138 -0
- data/lib/br_nfe/product/nfe/item_tax/cofins_st.rb +68 -0
- data/lib/br_nfe/product/nfe/item_tax/icms.rb +593 -0
- data/lib/br_nfe/product/nfe/item_tax/icms_uf_destino.rb +169 -0
- data/lib/br_nfe/product/nfe/item_tax/importacao.rb +62 -0
- data/lib/br_nfe/product/nfe/item_tax/ipi.rb +179 -0
- data/lib/br_nfe/product/nfe/item_tax/issqn.rb +256 -0
- data/lib/br_nfe/product/nfe/item_tax/pis.rb +138 -0
- data/lib/br_nfe/product/nfe/item_tax/pis_st.rb +68 -0
- data/lib/br_nfe/product/nfe/processo_referencia.rb +48 -0
- data/lib/br_nfe/product/nfe/transporte/base.rb +264 -0
- data/lib/br_nfe/product/nfe/transporte/transportador.rb +15 -0
- data/lib/br_nfe/product/nfe/transporte/veiculo.rb +53 -0
- data/lib/br_nfe/product/nfe/transporte/volume.rb +89 -0
- data/lib/br_nfe/product/nota_fiscal.rb +1173 -0
- data/lib/br_nfe/product/operation/base.rb +255 -0
- data/lib/br_nfe/product/operation/nfe_autorizacao.rb +118 -0
- data/lib/br_nfe/product/operation/nfe_consulta_protocolo.rb +61 -0
- data/lib/br_nfe/product/operation/nfe_download_nf.rb +86 -0
- data/lib/br_nfe/product/operation/nfe_inutilizacao.rb +168 -0
- data/lib/br_nfe/product/operation/nfe_recepcao_evento.rb +70 -0
- data/lib/br_nfe/product/operation/nfe_ret_autorizacao.rb +63 -0
- data/lib/br_nfe/product/operation/nfe_status_servico.rb +46 -0
- data/lib/br_nfe/product/response/base.rb +97 -0
- data/lib/br_nfe/product/response/build/base.rb +287 -0
- data/lib/br_nfe/product/response/build/nfe_autorizacao.rb +102 -0
- data/lib/br_nfe/product/response/build/nfe_consulta_protocolo.rb +133 -0
- data/lib/br_nfe/product/response/build/nfe_inutilizacao.rb +53 -0
- data/lib/br_nfe/product/response/build/nfe_ret_autorizacao.rb +65 -0
- data/lib/br_nfe/product/response/build/nfe_status_servico.rb +43 -0
- data/lib/br_nfe/product/response/event.rb +89 -0
- data/lib/br_nfe/product/response/nfe_autorizacao.rb +12 -0
- data/lib/br_nfe/product/response/nfe_consulta_protocolo.rb +13 -0
- data/lib/br_nfe/product/response/nfe_inutilizacao.rb +89 -0
- data/lib/br_nfe/product/response/nfe_ret_autorizacao.rb +9 -0
- data/lib/br_nfe/product/response/nfe_status_servico.rb +31 -0
- data/lib/br_nfe/product/xml/_signed_info_sh1.xml.slim +9 -0
- data/lib/br_nfe/product/xml/_tc_cpf_cnpj.xml.slim +7 -0
- data/lib/br_nfe/product/xml/signature_sh1.xml.slim +12 -0
- data/lib/br_nfe/product/xml/v1_00/evento/infEventoCancelamento.xml.slim +19 -0
- data/lib/br_nfe/product/xml/v1_00/root/NfeDownloadNf.xml.slim +5 -0
- data/lib/br_nfe/product/xml/v1_00/root/NfeRecepcaoEvento.xml.slim +7 -0
- data/lib/br_nfe/product/xml/v2_00/_tc_endereco.xml.slim +19 -0
- data/lib/br_nfe/product/xml/v2_00/_tc_infNFe.xml.slim +39 -0
- data/lib/br_nfe/product/xml/v2_00/infInut.xml.slim +12 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/NFe.xml.slim +4 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_cobr.xml.slim +19 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_dest.xml.slim +14 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_det.xml.slim +7 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_emit.xml.slim +19 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_entrega.xml.slim +11 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_exporta.xml.slim +2 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_ide.xml.slim +24 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_infAdic.xml.slim +13 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_retirada.xml.slim +11 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_total.xml.slim +50 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_transp.xml.slim +35 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/_tc_imposto.xml.slim +31 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/_tc_prod.xml.slim +37 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS00.xml.slim +6 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS10.xml.slim +16 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS101.xml.slim +4 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS102.xml.slim +3 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS20.xml.slim +6 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS201.xml.slim +15 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS202.xml.slim +14 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS30.xml.slim +12 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS40.xml.slim +7 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS500.xml.slim +6 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS51.xml.slim +13 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS60.xml.slim +5 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS70.xml.slim +18 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS90.xml.slim +21 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS900.xml.slim +25 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_COFINS.xml.slim +26 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_COFINS_ST.xml.slim +7 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_ICMS.xml.slim +45 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_II.xml.slim +4 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_IPI.xml.slim +30 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_PIS.xml.slim +26 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_PIS_ST.xml.slim +7 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/det/prod/_tc_di.xml.slim +13 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_retTransp.xml.slim +6 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_transporta.xml.slim +17 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_vol.xml.slim +15 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe.xml.slim +3 -0
- data/lib/br_nfe/product/xml/v2_00/root/NfeAutorizacao.xml.slim +5 -0
- data/lib/br_nfe/product/xml/v2_00/root/NfeInutilizacao.xml.slim +4 -0
- data/lib/br_nfe/product/xml/v2_00/root/NfeRetAutorizacao.xml.slim +3 -0
- data/lib/br_nfe/product/xml/v2_00/root/NfeStatusServico.xml.slim +4 -0
- data/lib/br_nfe/product/xml/v2_01/root/NfeConsultaProtocolo.xml.slim +4 -0
- data/lib/br_nfe/product/xml/v3_10/_tc_infNFe.xml.slim +44 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_dest.xml.slim +25 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_det.xml.slim +14 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_exporta.xml.slim +4 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_ide.xml.slim +26 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_pag.xml.slim +7 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_total.xml.slim +78 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/_tc_imposto.xml.slim +37 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/_tc_prod.xml.slim +48 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS20.xml.slim +12 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS30.xml.slim +17 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS40.xml.slim +7 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS51.xml.slim +19 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS70.xml.slim +23 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS90.xml.slim +26 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/_tc_ICMSUFDest.xml.slim +8 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/_tc_ISSQN.xml.slim +35 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/prod/_tc_det_export.xml.slim +8 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/prod/_tc_di.xml.slim +28 -0
- data/lib/br_nfe/product/xml/v3_10/root/NfeAutorizacao.xml.slim +6 -0
- data/lib/br_nfe/service/base.rb +1 -105
- data/lib/br_nfe/service/betha/v1/cancela_nfse.rb +1 -1
- data/lib/br_nfe/service/response/default.rb +1 -1
- data/lib/br_nfe/service/simpliss/v1/base.rb +2 -0
- data/lib/br_nfe/version.rb +2 -2
- data/lib/br_nfe.rb +180 -22
- data/lib/config/locales/br_nfe/en/product/nfe/cobranca/fatura.yml +6 -0
- data/lib/config/locales/br_nfe/en/product/nfe/declaracao_importacao.yml +10 -0
- data/lib/config/locales/br_nfe/en/product/nfe/item.yml +20 -0
- data/lib/config/locales/br_nfe/en/product/nfe/item_tax/icms_uf_destino.yml +8 -0
- data/lib/config/locales/br_nfe/en/product/nfe/transporte/base.yml +9 -0
- data/lib/config/locales/br_nfe/en/product/nota_fiscal.yml +21 -0
- data/lib/config/locales/br_nfe/en/product/operation/nfe_autorizacao.yml +10 -0
- data/lib/config/locales/br_nfe/en/product/operation/nfe_recepcao_evento.yml +6 -0
- data/lib/config/locales/br_nfe/pt-BR/product/nfe/cobranca/fatura.yml +6 -0
- data/lib/config/locales/br_nfe/pt-BR/product/nfe/declaracao_importacao.yml +10 -0
- data/lib/config/locales/br_nfe/pt-BR/product/nfe/item.yml +20 -0
- data/lib/config/locales/br_nfe/pt-BR/product/nfe/item_tax/icms_uf_destino.yml +8 -0
- data/lib/config/locales/br_nfe/pt-BR/product/nfe/transporte/base.yml +9 -0
- data/lib/config/locales/br_nfe/pt-BR/product/nota_fiscal.yml +21 -0
- data/lib/config/locales/br_nfe/pt-BR/product/operation/nfe_autorizacao.yml +10 -0
- data/lib/config/locales/br_nfe/pt-BR/product/operation/nfe_recepcao_evento.yml +6 -0
- data/test/br_nfe/association/have_destinatario_test.rb +8 -8
- data/test/br_nfe/association/have_emitente_test.rb +6 -6
- data/test/br_nfe/base_test.rb +15 -4
- data/test/br_nfe/endereco_test.rb +15 -0
- data/test/br_nfe/person_test.rb +55 -6
- data/test/br_nfe/product/destinatario_test.rb +26 -0
- data/test/br_nfe/product/emitente_test.rb +1 -2
- data/test/br_nfe/product/evento/base_test.rb +58 -0
- data/test/br_nfe/product/evento/cancelamento_test.rb +32 -0
- data/test/br_nfe/product/gateway/web_service_am_test.rb +242 -0
- data/test/br_nfe/product/gateway/web_service_ba_test.rb +242 -0
- data/test/br_nfe/product/gateway/web_service_ce_test.rb +242 -0
- data/test/br_nfe/product/gateway/web_service_go_test.rb +242 -0
- data/test/br_nfe/product/gateway/web_service_mg_test.rb +242 -0
- data/test/br_nfe/product/gateway/web_service_ms_test.rb +242 -0
- data/test/br_nfe/product/gateway/web_service_mt_test.rb +408 -0
- data/test/br_nfe/product/gateway/web_service_pe_test.rb +408 -0
- data/test/br_nfe/product/gateway/web_service_pr_test.rb +408 -0
- data/test/br_nfe/product/gateway/web_service_rs_test.rb +407 -0
- data/test/br_nfe/product/gateway/web_service_sp_test.rb +408 -0
- data/test/br_nfe/product/gateway/web_service_svan_test.rb +242 -0
- data/test/br_nfe/product/gateway/web_service_svc_an_test.rb +185 -0
- data/test/br_nfe/product/gateway/web_service_svc_rs_test.rb +185 -0
- data/test/br_nfe/product/gateway/web_service_svrs_test.rb +208 -2
- data/test/br_nfe/product/nfe/adicao_importacao_test.rb +19 -0
- data/test/br_nfe/product/nfe/cobranca/duplicata_test.rb +19 -0
- data/test/br_nfe/product/nfe/cobranca/fatura_test.rb +32 -0
- data/test/br_nfe/product/nfe/cobranca/pagamento_test.rb +105 -0
- data/test/br_nfe/product/nfe/declaracao_importacao_test.rb +116 -0
- data/test/br_nfe/product/nfe/detalhe_exportacao_test.rb +97 -0
- data/test/br_nfe/product/nfe/item_tax/cofins_st_test.rb +22 -0
- data/test/br_nfe/product/nfe/item_tax/cofins_test.rb +113 -0
- data/test/br_nfe/product/nfe/item_tax/icms_test.rb +1011 -0
- data/test/br_nfe/product/nfe/item_tax/icms_uf_destino_test.rb +99 -0
- data/test/br_nfe/product/nfe/item_tax/importacao_test.rb +23 -0
- data/test/br_nfe/product/nfe/item_tax/ipi_test.rb +160 -0
- data/test/br_nfe/product/nfe/item_tax/issqn_test.rb +84 -0
- data/test/br_nfe/product/nfe/item_tax/pis_st_test.rb +22 -0
- data/test/br_nfe/product/nfe/item_tax/pis_test.rb +113 -0
- data/test/br_nfe/product/nfe/item_test.rb +381 -0
- data/test/br_nfe/product/nfe/processo_referencia_test.rb +30 -0
- data/test/br_nfe/product/nfe/transporte/base_test.rb +182 -0
- data/test/br_nfe/product/nfe/transporte/transportador_test.rb +13 -0
- data/test/br_nfe/product/nfe/transporte/veiculo_test.rb +13 -0
- data/test/br_nfe/product/nfe/transporte/volume_test.rb +42 -0
- data/test/br_nfe/product/nota_fiscal_test.rb +662 -0
- data/test/br_nfe/product/operation/base_test.rb +538 -0
- data/test/br_nfe/product/operation/nfe_autorizacao_test.rb +378 -0
- data/test/br_nfe/product/operation/nfe_consulta_protocolo_test.rb +349 -0
- data/test/br_nfe/product/operation/nfe_download_nf_test.rb +93 -0
- data/test/br_nfe/product/operation/nfe_inutilizacao_test.rb +210 -0
- data/test/br_nfe/product/operation/nfe_recepcao_evento_test.rb +84 -0
- data/test/br_nfe/product/operation/nfe_ret_autorizacao_test.rb +309 -0
- data/test/br_nfe/product/operation/nfe_status_servico_test.rb +122 -0
- data/test/br_nfe/product/response/base_test.rb +75 -0
- data/test/br_nfe/product/response/build/base_test.rb +34 -0
- data/test/br_nfe/product/response/nfe_ret_autorizacao_test.rb +14 -0
- data/test/br_nfe/service/association/have_intermediario_test.rb +10 -10
- data/test/br_nfe/service/base_test.rb +9 -206
- data/test/br_nfe/service/betha/v1/cancela_nfse_test.rb +8 -6
- data/test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb +6 -3
- data/test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb +6 -3
- data/test/br_nfe/service/betha/v1/consulta_nfse_test.rb +7 -4
- data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +12 -9
- data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +6 -3
- data/test/br_nfe/service/rps_test.rb +2 -2
- data/test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb +6 -3
- data/test/br_nfe/service/simpliss/v1/consulta_lote_rps_test.rb +7 -4
- data/test/br_nfe/service/simpliss/v1/consulta_nfs_por_rps_test.rb +7 -4
- data/test/br_nfe/service/simpliss/v1/consulta_nfse_test.rb +8 -5
- data/test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb +9 -6
- data/test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb +6 -3
- data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +6 -3
- data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +6 -3
- data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +6 -3
- data/test/br_nfe/service/thema/v1/consulta_nfse_test.rb +8 -5
- data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +9 -6
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb +6 -3
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +6 -3
- data/test/factories/person.rb +1 -1
- data/test/factories/product/destinatario.rb +11 -0
- data/test/factories/product/emitente.rb +1 -1
- data/test/factories/product/evento/base.rb +9 -0
- data/test/factories/product/evento/cancelamento.rb +10 -0
- data/test/factories/product/gateway/web_service_am.rb +5 -0
- data/test/factories/product/gateway/web_service_ba.rb +5 -0
- data/test/factories/product/nfe/adicao_importacao.rb +7 -0
- data/test/factories/product/nfe/cobranca/duplicata.rb +7 -0
- data/test/factories/product/nfe/cobranca/fatura.rb +8 -0
- data/test/factories/product/nfe/cobranca/pagamento.rb +9 -0
- data/test/factories/product/nfe/declaracao_importacao.rb +10 -0
- data/test/factories/product/nfe/detalhe_exportacao.rb +5 -0
- data/test/factories/product/nfe/item.rb +24 -0
- data/test/factories/product/nfe/item_tax/cofins.rb +5 -0
- data/test/factories/product/nfe/item_tax/cofins_st.rb +5 -0
- data/test/factories/product/nfe/item_tax/icms.rb +9 -0
- data/test/factories/product/nfe/item_tax/icms_uf_destino.rb +11 -0
- data/test/factories/product/nfe/item_tax/importacao.rb +8 -0
- data/test/factories/product/nfe/item_tax/ipi.rb +6 -0
- data/test/factories/product/nfe/item_tax/issqn.rb +9 -0
- data/test/factories/product/nfe/item_tax/pis.rb +5 -0
- data/test/factories/product/nfe/item_tax/pis_st.rb +5 -0
- data/test/factories/product/nfe/processo_referencia.rb +6 -0
- data/test/factories/product/nfe/transporte/base.rb +5 -0
- data/test/factories/product/nfe/transporte/transportador.rb +7 -0
- data/test/factories/product/nfe/transporte/veiculo.rb +7 -0
- data/test/factories/product/nfe/transporte/volume.rb +5 -0
- data/test/factories/product/nota_fiscal.rb +22 -0
- data/test/factories/product/{base.rb → operation/base.rb} +1 -1
- data/test/factories/product/operation/nfe_autorizacao.rb +590 -0
- data/test/factories/product/operation/nfe_consulta_protocolo.rb +13 -0
- data/test/factories/product/operation/nfe_download_nf.rb +15 -0
- data/test/factories/product/operation/nfe_inutilizacao.rb +19 -0
- data/test/factories/product/operation/nfe_recepcao_evento.rb +14 -0
- data/test/factories/product/operation/nfe_ret_autorizacao.rb +13 -0
- data/test/factories/product/{consulta_status_servico.rb → operation/nfe_status_servico.rb} +1 -1
- data/test/factories/product/response/base.rb +12 -0
- data/test/factories/product/response/build/base.rb +6 -0
- data/test/factories/product/response/nfe_ret_autorizacao.rb +13 -0
- data/test/factories/service/emitente.rb +1 -1
- data/test/fixtures/product/operation/nfe_autorizacao/nfe_signed.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/async_fail.xml +21 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/async_success.xml +25 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/nfe/with_proc.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/nfe/without_proc.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/original_xml.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/sync_fail.xml +32 -0
- data/test/fixtures/product/response/v3.10/nfe_autorizacao/sync_success.xml +33 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_1.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_2.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_3.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_cancel.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/one_event.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/fail.xml +22 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/nfe_original/with_proc.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/nfe_original/without_proc.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_many_with_cancel.xml +198 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_many_without_cancel.xml +199 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_one.xml +89 -0
- data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_without.xml +34 -0
- data/test/fixtures/product/response/v3.10/nfe_inutilizacao/fail.xml +29 -0
- data/test/fixtures/product/response/v3.10/nfe_inutilizacao/success.xml +30 -0
- data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/fail.xml +34 -0
- data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/success.xml +36 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_fail.xml +22 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_fail.xml +33 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_fail_and_one_ok.xml +46 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_ok.xml +34 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_two_invoice_fail.xml +46 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_two_invoice_ok.xml +46 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_2_with_protocol.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_2_without_protocol.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_3_with_protocol.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_3_without_protocol.xml +1 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/lot.xml +2 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/nfe.xml +2 -0
- data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/nfeProc.xml +4 -0
- data/test/fixtures/product/response/v3.10/nfe_status_servico/fail.xml +23 -0
- data/test/fixtures/product/response/v3.10/nfe_status_servico/success.xml +22 -0
- data/test/fixtures/product/schemas/CCe_v1.00.xsd +11 -0
- data/test/fixtures/product/schemas/EPEC_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/LeiauteCadastroEmissorDFe_v1.01.xsd +234 -0
- data/test/fixtures/product/schemas/SuframaInternaliza_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/SuframaVistoria_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/atuCadEmiDFe_v1.01.xsd +9 -0
- data/test/fixtures/product/schemas/cabecMsg_v1.02.xsd +29 -0
- data/test/fixtures/product/schemas/cadEmiDFe_v1.01.xsd +9 -0
- data/test/fixtures/product/schemas/cancNFe_v2.00.xsd +9 -0
- data/test/fixtures/product/schemas/confRecebto_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/consCad_v2.00.xsd +9 -0
- data/test/fixtures/product/schemas/consDPEC_v1.01.xsd +9 -0
- data/test/fixtures/product/schemas/consNFeDest_v1.01.xsd +10 -0
- data/test/fixtures/product/schemas/consReciNFe_v2.00.xsd +9 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/consReciNFe_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/consSitNFe_v2.01.xsd +10 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/consSitNFe_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/consStatServ_v2.00.xsd +9 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/consStatServ_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/distDFeInt_v1.00.xsd +71 -0
- data/test/fixtures/product/schemas/downloadNFe_v1.00.xsd +10 -0
- data/test/fixtures/product/schemas/e110110_v1.00.xsd +58 -0
- data/test/fixtures/product/schemas/e110111_v1.00.xsd +42 -0
- data/test/fixtures/product/schemas/e110140_v1.00.xsd +124 -0
- data/test/fixtures/product/schemas/e111500_v1.00.xsd +69 -0
- data/test/fixtures/product/schemas/e111501_v1.00.xsd +69 -0
- data/test/fixtures/product/schemas/e111502_v1.00.xsd +50 -0
- data/test/fixtures/product/schemas/e111503_v1.00.xsd +50 -0
- data/test/fixtures/product/schemas/e210200_v1.00.xsd +32 -0
- data/test/fixtures/product/schemas/e210210_v1.00.xsd +32 -0
- data/test/fixtures/product/schemas/e210220_v1.00.xsd +45 -0
- data/test/fixtures/product/schemas/e210240_v1.00.xsd +44 -0
- data/test/fixtures/product/schemas/e411500_v1.00.xsd +134 -0
- data/test/fixtures/product/schemas/e411501_v1.00.xsd +134 -0
- data/test/fixtures/product/schemas/e411502_v1.00.xsd +95 -0
- data/test/fixtures/product/schemas/e411503_v1.00.xsd +95 -0
- data/test/fixtures/product/schemas/e990900_v1.00.xsd +87 -0
- data/test/fixtures/product/schemas/e990910_v1.00.xsd +81 -0
- data/test/fixtures/product/schemas/envCCe_v1.00.xsd +10 -0
- data/test/fixtures/product/schemas/envCancelPProrrogNFe_v1.0.xsd +50 -0
- data/test/fixtures/product/schemas/envConfRecebto_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/envDPEC_v1.01.xsd +9 -0
- data/test/fixtures/product/schemas/envEPEC_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/envEventoCancNFe_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/envEvento_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/envFiscoNfe_v1.0.xsd +179 -0
- data/test/fixtures/product/schemas/envPProrrogNFe_v1.0.xsd +65 -0
- data/test/fixtures/product/schemas/envRemIndus_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/envSuframaInternaliza_v1.00.xsd +10 -0
- data/test/fixtures/product/schemas/envSuframaVistoria_v1.00.xsd +10 -0
- data/test/fixtures/product/schemas/enviNFe_v2.00.xsd +9 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/enviNFe_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/eventoCancNFe_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/eventoEPEC_v0.01.xsd +267 -0
- data/test/fixtures/product/schemas/eventoEPEC_v1.00.xsd +267 -0
- data/test/fixtures/product/schemas/eventoRemIndus_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/inutNFe_v2.00.xsd +9 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/inutNFe_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/leiauteCCe_v1.00.xsd +418 -0
- data/test/fixtures/product/schemas/leiauteCancNFe_v2.00.xsd +143 -0
- data/test/fixtures/product/schemas/leiauteConfRecebto_v1.00.xsd +406 -0
- data/test/fixtures/product/schemas/leiauteConsNFeDest_v1.01.xsd +483 -0
- data/test/fixtures/product/schemas/leiauteConsSitNFe_v2.01.xsd +548 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/leiauteConsSitNFe_v3.10.xsd +502 -502
- data/test/fixtures/product/schemas/leiauteConsStatServ_v2.00.xsd +98 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/leiauteConsStatServ_v3.10.xsd +97 -97
- data/test/fixtures/product/schemas/leiauteConsultaCadastro_v1.01.xsd +355 -0
- data/test/fixtures/product/schemas/leiauteConsultaCadastro_v2.00.xsd +404 -0
- data/test/fixtures/product/schemas/leiauteDPEC_v1.01.xsd +464 -0
- data/test/fixtures/product/schemas/leiauteDownloadNFe_v1.00.xsd +149 -0
- data/test/fixtures/product/schemas/leiauteEPEC_v1.00.xsd +459 -0
- data/test/fixtures/product/schemas/leiauteEventoCancNFe_v1.00.xsd +394 -0
- data/test/fixtures/product/schemas/leiauteEvento_v1.00.xsd +373 -0
- data/test/fixtures/product/schemas/leiauteInutNFe_v2.00.xsd +193 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/leiauteInutNFe_v3.10.xsd +192 -192
- data/test/fixtures/product/schemas/leiauteNFe_v2.00.xsd +6661 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/leiauteNFe_v3.10.xsd +6060 -6060
- data/test/fixtures/product/schemas/leiauteRemIndus_v1.00.xsd +382 -0
- data/test/fixtures/product/schemas/leiauteSRE_v1.00.xsd +372 -0
- data/test/fixtures/product/schemas/leiauteSuframaInternaliza_v1.00.xsd +642 -0
- data/test/fixtures/product/schemas/leiauteSuframaVistoria_v1.00.xsd +648 -0
- data/test/fixtures/product/schemas/nfe_v2.00.xsd +9 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/nfe_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/procCCeNFe_v1.00.xsd +10 -0
- data/test/fixtures/product/schemas/procCancNFe_v2.00.xsd +9 -0
- data/test/fixtures/product/schemas/procConfRecebtoNFe_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/procEPEC_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/procEventoCancNFe_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/procEventoNFe_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/procEventoNFe_v99.99.xsd +37 -0
- data/test/fixtures/product/schemas/procInutNFe_v2.00.xsd +9 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/procInutNFe_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/procNFe_v2.00.xsd +9 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/procNFe_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/procRemIndus_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/resEvento_v1.00.xsd +94 -0
- data/test/fixtures/product/schemas/resNFe_v1.00.xsd +110 -0
- data/test/fixtures/product/schemas/retAtuCadEmiDFe_v1.01.xsd +9 -0
- data/test/fixtures/product/schemas/retCancNFe_v2.00.xsd +9 -0
- data/test/fixtures/product/schemas/retConsCad_v2.00.xsd +9 -0
- data/test/fixtures/product/schemas/retConsDPEC_v1.01.xsd +9 -0
- data/test/fixtures/product/schemas/retConsReciNFe_v2.00.xsd +9 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retConsReciNFe_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/retConsSitNFe_v2.01.xsd +10 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retConsSitNFe_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/retConsStatServ_v2.00.xsd +9 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retConsStatServ_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/retDPEC_v1.01.xsd +9 -0
- data/test/fixtures/product/schemas/retDistDFeInt_v1.00.xsd +84 -0
- data/test/fixtures/product/schemas/retDownloadNFe_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/retEnvCCe_v1.00.xsd +10 -0
- data/test/fixtures/product/schemas/retEnvCancelPProrrogNFe_v1.0.xsd +231 -0
- data/test/fixtures/product/schemas/retEnvConfRecebto_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/retEnvEPEC_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/retEnvEventoCancNFe_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/retEnvEvento_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/retEnvFiscoNFe_v1.0.xsd +234 -0
- data/test/fixtures/product/schemas/retEnvRemIndus_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/retEnvSuframaInternaliza_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/retEnvSuframaVistoria_v1.00.xsd +9 -0
- data/test/fixtures/product/schemas/retEnviNFe_v2.00.xsd +9 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retEnviNFe_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/retEventoEPEC_v0.01.xsd +207 -0
- data/test/fixtures/product/schemas/retInutNFe_v2.00.xsd +9 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retInutNFe_v3.10.xsd +8 -8
- data/test/fixtures/product/schemas/retPProrrogNFe_v1.0.xsd +233 -0
- data/test/fixtures/product/schemas/retconsNFeDest_v1.01.xsd +9 -0
- data/test/fixtures/product/schemas/tiposBasico_v1.03.xsd +816 -0
- data/test/fixtures/product/schemas/tiposBasico_v1.03_OPENSSL.xsd +816 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/tiposBasico_v3.10.xsd +571 -571
- data/test/fixtures/product/schemas/tiposBasico_v3.10_OPENSSL.xsd +877 -0
- data/test/fixtures/product/schemas/tiposDistDFe_v1.00.xsd +217 -0
- data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/xmldsig-core-schema_v1.01.xsd +97 -97
- data/test/fixtures/product/wsdl/NFeRetAutorizacao.xml +80 -0
- data/test/fixtures/product/wsdl/NfeAutorizacao.xml +107 -0
- data/test/fixtures/product/wsdl/NfeConsulta2.xml +80 -0
- data/test/fixtures/product/wsdl/NfeStatusServico2.xml +70 -0
- data/test/fixtures/product/wsdl/nfeinutilizacao2.xml +80 -0
- data/test/fixtures/service/wsdl/betha/v1/cancelar_nfse.xml +178 -0
- data/test/fixtures/service/wsdl/betha/v1/consultar_lote_rps.xml +339 -0
- data/test/fixtures/service/wsdl/betha/v1/consultar_nfse.xml +348 -0
- data/test/fixtures/service/wsdl/betha/v1/consultar_nfse_por_rps.xml +365 -0
- data/test/fixtures/service/wsdl/betha/v1/consultar_situacao_lote_rps.xml +74 -0
- data/test/fixtures/service/wsdl/betha/v1/recepcionar_lote_rps.xml +299 -0
- data/test/fixtures/service/wsdl/simpliss/v1/nfseservice.xml +1 -0
- data/test/fixtures/service/wsdl/thema/v1/nfse_cancelamento.xml +82 -0
- data/test/fixtures/service/wsdl/thema/v1/nfse_consulta.xml +235 -0
- data/test/fixtures/service/wsdl/thema/v1/nfse_remessa.xml +185 -0
- data/test/test_helper.rb +369 -1
- metadata +711 -33
- data/lib/br_nfe/product/base.rb +0 -82
- data/lib/br_nfe/product/consulta_status_servico.rb +0 -35
- data/lib/br_nfe/product/value_nf.rb +0 -9
- data/lib/br_nfe/product/xml/v3_10/consulta_status_servico.xml.slim +0 -4
- data/test/br_nfe/product/base_test.rb +0 -150
- data/test/br_nfe/product/consulta_status_servico_test.rb +0 -59
@@ -0,0 +1,373 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
3
|
+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
|
4
|
+
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
|
5
|
+
<xs:complexType name="TEvento">
|
6
|
+
<xs:annotation>
|
7
|
+
<xs:documentation>Tipo Evento</xs:documentation>
|
8
|
+
</xs:annotation>
|
9
|
+
<xs:sequence>
|
10
|
+
<xs:element name="infEvento">
|
11
|
+
<xs:complexType>
|
12
|
+
<xs:sequence>
|
13
|
+
<xs:element name="cOrgao" type="TCOrgaoIBGE">
|
14
|
+
<xs:annotation>
|
15
|
+
<xs:documentation>Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 90 para identificar o Ambiente Nacional</xs:documentation>
|
16
|
+
</xs:annotation>
|
17
|
+
</xs:element>
|
18
|
+
<xs:element name="tpAmb" type="TAmb">
|
19
|
+
<xs:annotation>
|
20
|
+
<xs:documentation>Identificação do Ambiente:
|
21
|
+
1 - Produção
|
22
|
+
2 - Homologação</xs:documentation>
|
23
|
+
</xs:annotation>
|
24
|
+
</xs:element>
|
25
|
+
<xs:choice>
|
26
|
+
<xs:annotation>
|
27
|
+
<xs:documentation>Identificação do autor do evento</xs:documentation>
|
28
|
+
</xs:annotation>
|
29
|
+
<xs:element name="CNPJ" type="TCnpjOpc">
|
30
|
+
<xs:annotation>
|
31
|
+
<xs:documentation>CNPJ</xs:documentation>
|
32
|
+
</xs:annotation>
|
33
|
+
</xs:element>
|
34
|
+
<xs:element name="CPF" type="TCpf">
|
35
|
+
<xs:annotation>
|
36
|
+
<xs:documentation>CPF</xs:documentation>
|
37
|
+
</xs:annotation>
|
38
|
+
</xs:element>
|
39
|
+
</xs:choice>
|
40
|
+
<xs:element name="chNFe" type="TChNFe">
|
41
|
+
<xs:annotation>
|
42
|
+
<xs:documentation>Chave de Acesso da NF-e vinculada ao evento</xs:documentation>
|
43
|
+
</xs:annotation>
|
44
|
+
</xs:element>
|
45
|
+
<xs:element name="dhEvento" type="TDateTimeUTC">
|
46
|
+
<xs:annotation>
|
47
|
+
<xs:documentation>Data e Hora do Evento, formato UTC (AAAA-MM-DDThh:mm:ssTZD, onde TZD = +hh:mm ou -hh:mm)</xs:documentation>
|
48
|
+
</xs:annotation>
|
49
|
+
</xs:element>
|
50
|
+
<xs:element name="tpEvento">
|
51
|
+
<xs:annotation>
|
52
|
+
<xs:documentation>Tipo do Evento</xs:documentation>
|
53
|
+
</xs:annotation>
|
54
|
+
<xs:simpleType>
|
55
|
+
<xs:restriction base="xs:string">
|
56
|
+
<xs:whiteSpace value="preserve"/>
|
57
|
+
<xs:pattern value="[0-9]{6}"/>
|
58
|
+
</xs:restriction>
|
59
|
+
</xs:simpleType>
|
60
|
+
</xs:element>
|
61
|
+
<xs:element name="nSeqEvento">
|
62
|
+
<xs:annotation>
|
63
|
+
<xs:documentation>Seqüencial do evento para o mesmo tipo de evento. Para maioria dos eventos será 1, nos casos em que possa existir mais de um evento, como é o caso da carta de correção, o autor do evento deve numerar de forma seqüencial.</xs:documentation>
|
64
|
+
</xs:annotation>
|
65
|
+
<xs:simpleType>
|
66
|
+
<xs:restriction base="xs:string">
|
67
|
+
<xs:whiteSpace value="preserve"/>
|
68
|
+
<xs:pattern value="[1-9][0-9]{0,1}"/>
|
69
|
+
</xs:restriction>
|
70
|
+
</xs:simpleType>
|
71
|
+
</xs:element>
|
72
|
+
<xs:element name="verEvento">
|
73
|
+
<xs:annotation>
|
74
|
+
<xs:documentation>Versão do Tipo do Evento</xs:documentation>
|
75
|
+
</xs:annotation>
|
76
|
+
<xs:simpleType>
|
77
|
+
<xs:restriction base="xs:string">
|
78
|
+
<xs:whiteSpace value="preserve"/>
|
79
|
+
</xs:restriction>
|
80
|
+
</xs:simpleType>
|
81
|
+
</xs:element>
|
82
|
+
<xs:element name="detEvento">
|
83
|
+
<xs:complexType>
|
84
|
+
<xs:sequence>
|
85
|
+
<xs:any processContents="skip" maxOccurs="unbounded">
|
86
|
+
<xs:annotation>
|
87
|
+
<xs:documentation>informações específicas do evento</xs:documentation>
|
88
|
+
</xs:annotation>
|
89
|
+
</xs:any>
|
90
|
+
</xs:sequence>
|
91
|
+
<xs:anyAttribute processContents="skip"/>
|
92
|
+
</xs:complexType>
|
93
|
+
</xs:element>
|
94
|
+
</xs:sequence>
|
95
|
+
<xs:attribute name="Id" use="required">
|
96
|
+
<xs:annotation>
|
97
|
+
<xs:documentation>Identificador da TAG a ser assinada, a regra de formação do Id é:
|
98
|
+
“ID” + tpEvento + chave da NF-e + nSeqEvento</xs:documentation>
|
99
|
+
</xs:annotation>
|
100
|
+
<xs:simpleType>
|
101
|
+
<xs:restriction base="xs:ID">
|
102
|
+
<xs:pattern value="ID[0-9]{52}"/>
|
103
|
+
</xs:restriction>
|
104
|
+
</xs:simpleType>
|
105
|
+
</xs:attribute>
|
106
|
+
</xs:complexType>
|
107
|
+
</xs:element>
|
108
|
+
<xs:element ref="ds:Signature"/>
|
109
|
+
</xs:sequence>
|
110
|
+
<xs:attribute name="versao" type="TVerEvento" use="required"/>
|
111
|
+
</xs:complexType>
|
112
|
+
<xs:complexType name="TRetEvento">
|
113
|
+
<xs:annotation>
|
114
|
+
<xs:documentation>Tipo retorno do Evento</xs:documentation>
|
115
|
+
</xs:annotation>
|
116
|
+
<xs:sequence>
|
117
|
+
<xs:element name="infEvento">
|
118
|
+
<xs:complexType>
|
119
|
+
<xs:sequence>
|
120
|
+
<xs:element name="tpAmb" type="TAmb">
|
121
|
+
<xs:annotation>
|
122
|
+
<xs:documentation>Identificação do Ambiente:
|
123
|
+
1 - Produção
|
124
|
+
2 - Homologação</xs:documentation>
|
125
|
+
</xs:annotation>
|
126
|
+
</xs:element>
|
127
|
+
<xs:element name="verAplic" type="TVerAplic">
|
128
|
+
<xs:annotation>
|
129
|
+
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
|
130
|
+
</xs:annotation>
|
131
|
+
</xs:element>
|
132
|
+
<xs:element name="cOrgao" type="TCOrgaoIBGE">
|
133
|
+
<xs:annotation>
|
134
|
+
<xs:documentation>Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 90 para identificar o Ambiente Nacional</xs:documentation>
|
135
|
+
</xs:annotation>
|
136
|
+
</xs:element>
|
137
|
+
<xs:element name="cStat" type="TStat">
|
138
|
+
<xs:annotation>
|
139
|
+
<xs:documentation>Código do status da registro do Evento</xs:documentation>
|
140
|
+
</xs:annotation>
|
141
|
+
</xs:element>
|
142
|
+
<xs:element name="xMotivo" type="TMotivo">
|
143
|
+
<xs:annotation>
|
144
|
+
<xs:documentation>Descrição literal do status do registro do Evento</xs:documentation>
|
145
|
+
</xs:annotation>
|
146
|
+
</xs:element>
|
147
|
+
<xs:element name="chNFe" type="TChNFe" minOccurs="0">
|
148
|
+
<xs:annotation>
|
149
|
+
<xs:documentation>Chave de Acesso NF-e vinculada</xs:documentation>
|
150
|
+
</xs:annotation>
|
151
|
+
</xs:element>
|
152
|
+
<xs:element name="tpEvento" minOccurs="0">
|
153
|
+
<xs:annotation>
|
154
|
+
<xs:documentation>Tipo do Evento vinculado</xs:documentation>
|
155
|
+
</xs:annotation>
|
156
|
+
<xs:simpleType>
|
157
|
+
<xs:restriction base="xs:string">
|
158
|
+
<xs:whiteSpace value="preserve"/>
|
159
|
+
<xs:pattern value="[0-9]{6}"/>
|
160
|
+
</xs:restriction>
|
161
|
+
</xs:simpleType>
|
162
|
+
</xs:element>
|
163
|
+
<xs:element name="xEvento" minOccurs="0">
|
164
|
+
<xs:annotation>
|
165
|
+
<xs:documentation>Descrição do Evento</xs:documentation>
|
166
|
+
</xs:annotation>
|
167
|
+
<xs:simpleType>
|
168
|
+
<xs:restriction base="TString">
|
169
|
+
<xs:minLength value="5"/>
|
170
|
+
<xs:maxLength value="60"/>
|
171
|
+
</xs:restriction>
|
172
|
+
</xs:simpleType>
|
173
|
+
</xs:element>
|
174
|
+
<xs:element name="nSeqEvento" minOccurs="0">
|
175
|
+
<xs:annotation>
|
176
|
+
<xs:documentation>Seqüencial do evento</xs:documentation>
|
177
|
+
</xs:annotation>
|
178
|
+
<xs:simpleType>
|
179
|
+
<xs:restriction base="xs:string">
|
180
|
+
<xs:whiteSpace value="preserve"/>
|
181
|
+
<xs:pattern value="[1-9][0-9]{0,1}"/>
|
182
|
+
</xs:restriction>
|
183
|
+
</xs:simpleType>
|
184
|
+
</xs:element>
|
185
|
+
<xs:element name="cOrgaoAutor" type="TCOrgaoIBGE" minOccurs="0">
|
186
|
+
<xs:annotation>
|
187
|
+
<xs:documentation>Código do órgão de autor do Evento. Utilizar a Tabela do IBGE extendida, utilizar 90 para identificar o Ambiente Nacional</xs:documentation>
|
188
|
+
</xs:annotation>
|
189
|
+
</xs:element>
|
190
|
+
<xs:choice minOccurs="0">
|
191
|
+
<xs:annotation>
|
192
|
+
<xs:documentation>Identificação do destinatpario da NF-e</xs:documentation>
|
193
|
+
</xs:annotation>
|
194
|
+
<xs:element name="CNPJDest" type="TCnpjOpc">
|
195
|
+
<xs:annotation>
|
196
|
+
<xs:documentation>CNPJ Destinatário</xs:documentation>
|
197
|
+
</xs:annotation>
|
198
|
+
</xs:element>
|
199
|
+
<xs:element name="CPFDest" type="TCpf">
|
200
|
+
<xs:annotation>
|
201
|
+
<xs:documentation>CPF Destiantário</xs:documentation>
|
202
|
+
</xs:annotation>
|
203
|
+
</xs:element>
|
204
|
+
</xs:choice>
|
205
|
+
<xs:element name="emailDest" minOccurs="0">
|
206
|
+
<xs:annotation>
|
207
|
+
<xs:documentation>email do destinatário</xs:documentation>
|
208
|
+
</xs:annotation>
|
209
|
+
<xs:simpleType>
|
210
|
+
<xs:restriction base="TString">
|
211
|
+
<xs:minLength value="1"/>
|
212
|
+
<xs:maxLength value="60"/>
|
213
|
+
</xs:restriction>
|
214
|
+
</xs:simpleType>
|
215
|
+
</xs:element>
|
216
|
+
<xs:element name="dhRegEvento">
|
217
|
+
<xs:annotation>
|
218
|
+
<xs:documentation>Data e Hora de registro do evento formato UTC AAAA-MM-DDTHH:MM:SSTZD</xs:documentation>
|
219
|
+
</xs:annotation>
|
220
|
+
<xs:simpleType>
|
221
|
+
<xs:restriction base="xs:string">
|
222
|
+
<xs:whiteSpace value="preserve"/>
|
223
|
+
<xs:pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d[\-,\+](0[0-9]|10|11|12):00"/>
|
224
|
+
</xs:restriction>
|
225
|
+
</xs:simpleType>
|
226
|
+
</xs:element>
|
227
|
+
<xs:element name="nProt" type="TProt" minOccurs="0">
|
228
|
+
<xs:annotation>
|
229
|
+
<xs:documentation>Número do protocolo de registro do evento</xs:documentation>
|
230
|
+
</xs:annotation>
|
231
|
+
</xs:element>
|
232
|
+
</xs:sequence>
|
233
|
+
<xs:attribute name="Id" use="optional">
|
234
|
+
<xs:simpleType>
|
235
|
+
<xs:restriction base="xs:ID">
|
236
|
+
<xs:pattern value="ID[0-9]{15}"/>
|
237
|
+
</xs:restriction>
|
238
|
+
</xs:simpleType>
|
239
|
+
</xs:attribute>
|
240
|
+
</xs:complexType>
|
241
|
+
</xs:element>
|
242
|
+
<xs:element ref="ds:Signature" minOccurs="0"/>
|
243
|
+
</xs:sequence>
|
244
|
+
<xs:attribute name="versao" type="TVerEvento" use="required"/>
|
245
|
+
</xs:complexType>
|
246
|
+
<xs:complexType name="TEnvEvento">
|
247
|
+
<xs:annotation>
|
248
|
+
<xs:documentation> Tipo Lote de Envio</xs:documentation>
|
249
|
+
</xs:annotation>
|
250
|
+
<xs:sequence>
|
251
|
+
<xs:element name="idLote">
|
252
|
+
<xs:simpleType>
|
253
|
+
<xs:restriction base="xs:string">
|
254
|
+
<xs:whiteSpace value="preserve"/>
|
255
|
+
<xs:pattern value="[0-9]{1,15}"/>
|
256
|
+
</xs:restriction>
|
257
|
+
</xs:simpleType>
|
258
|
+
</xs:element>
|
259
|
+
<xs:element name="evento" type="TEvento" maxOccurs="20"/>
|
260
|
+
</xs:sequence>
|
261
|
+
<xs:attribute name="versao" type="TVerEnvEvento" use="required"/>
|
262
|
+
</xs:complexType>
|
263
|
+
<xs:complexType name="TRetEnvEvento">
|
264
|
+
<xs:annotation>
|
265
|
+
<xs:documentation> Tipo Retorno de Lote de Envio</xs:documentation>
|
266
|
+
</xs:annotation>
|
267
|
+
<xs:sequence>
|
268
|
+
<xs:element name="idLote">
|
269
|
+
<xs:simpleType>
|
270
|
+
<xs:restriction base="xs:string">
|
271
|
+
<xs:whiteSpace value="preserve"/>
|
272
|
+
<xs:pattern value="[0-9]{1,15}"/>
|
273
|
+
</xs:restriction>
|
274
|
+
</xs:simpleType>
|
275
|
+
</xs:element>
|
276
|
+
<xs:element name="tpAmb" type="TAmb">
|
277
|
+
<xs:annotation>
|
278
|
+
<xs:documentation>Identificação do Ambiente:
|
279
|
+
1 - Produção
|
280
|
+
2 - Homologação</xs:documentation>
|
281
|
+
</xs:annotation>
|
282
|
+
</xs:element>
|
283
|
+
<xs:element name="verAplic" type="TVerAplic">
|
284
|
+
<xs:annotation>
|
285
|
+
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
|
286
|
+
</xs:annotation>
|
287
|
+
</xs:element>
|
288
|
+
<xs:element name="cOrgao" type="TCOrgaoIBGE">
|
289
|
+
<xs:annotation>
|
290
|
+
<xs:documentation>Código do òrgao que registrou o Evento</xs:documentation>
|
291
|
+
</xs:annotation>
|
292
|
+
</xs:element>
|
293
|
+
<xs:element name="cStat" type="TStat">
|
294
|
+
<xs:annotation>
|
295
|
+
<xs:documentation>Código do status da registro do Evento</xs:documentation>
|
296
|
+
</xs:annotation>
|
297
|
+
</xs:element>
|
298
|
+
<xs:element name="xMotivo" type="TMotivo">
|
299
|
+
<xs:annotation>
|
300
|
+
<xs:documentation>Descrição literal do status do registro do Evento</xs:documentation>
|
301
|
+
</xs:annotation>
|
302
|
+
</xs:element>
|
303
|
+
<xs:element name="retEvento" type="TRetEvento" minOccurs="0" maxOccurs="20"/>
|
304
|
+
</xs:sequence>
|
305
|
+
<xs:attribute name="versao" type="TVerEnvEvento" use="required"/>
|
306
|
+
</xs:complexType>
|
307
|
+
<xs:complexType name="TProcEvento">
|
308
|
+
<xs:annotation>
|
309
|
+
<xs:documentation>Tipo procEvento</xs:documentation>
|
310
|
+
</xs:annotation>
|
311
|
+
<xs:sequence>
|
312
|
+
<xs:element name="evento" type="TEvento"/>
|
313
|
+
<xs:element name="retEvento" type="TRetEvento"/>
|
314
|
+
</xs:sequence>
|
315
|
+
<xs:attribute name="versao" type="TVerEvento" use="required"/>
|
316
|
+
</xs:complexType>
|
317
|
+
<xs:simpleType name="TVerEnvEvento">
|
318
|
+
<xs:annotation>
|
319
|
+
<xs:documentation>Tipo Versão do EnvEvento</xs:documentation>
|
320
|
+
</xs:annotation>
|
321
|
+
<xs:restriction base="xs:string">
|
322
|
+
<xs:whiteSpace value="preserve"/>
|
323
|
+
<xs:pattern value="1\.00"/>
|
324
|
+
</xs:restriction>
|
325
|
+
</xs:simpleType>
|
326
|
+
<xs:simpleType name="TVerEvento">
|
327
|
+
<xs:annotation>
|
328
|
+
<xs:documentation>Tipo Versão do Evento</xs:documentation>
|
329
|
+
</xs:annotation>
|
330
|
+
<xs:restriction base="xs:string">
|
331
|
+
<xs:whiteSpace value="preserve"/>
|
332
|
+
<xs:pattern value="1\.00"/>
|
333
|
+
</xs:restriction>
|
334
|
+
</xs:simpleType>
|
335
|
+
<xs:simpleType name="TCOrgaoIBGE">
|
336
|
+
<xs:annotation>
|
337
|
+
<xs:documentation>Tipo Código de orgão (UF da tabela do IBGE + 90 RFB)</xs:documentation>
|
338
|
+
</xs:annotation>
|
339
|
+
<xs:restriction base="xs:string">
|
340
|
+
<xs:whiteSpace value="preserve"/>
|
341
|
+
<xs:enumeration value="11"/>
|
342
|
+
<xs:enumeration value="12"/>
|
343
|
+
<xs:enumeration value="13"/>
|
344
|
+
<xs:enumeration value="14"/>
|
345
|
+
<xs:enumeration value="15"/>
|
346
|
+
<xs:enumeration value="16"/>
|
347
|
+
<xs:enumeration value="17"/>
|
348
|
+
<xs:enumeration value="21"/>
|
349
|
+
<xs:enumeration value="22"/>
|
350
|
+
<xs:enumeration value="23"/>
|
351
|
+
<xs:enumeration value="24"/>
|
352
|
+
<xs:enumeration value="25"/>
|
353
|
+
<xs:enumeration value="26"/>
|
354
|
+
<xs:enumeration value="27"/>
|
355
|
+
<xs:enumeration value="28"/>
|
356
|
+
<xs:enumeration value="29"/>
|
357
|
+
<xs:enumeration value="31"/>
|
358
|
+
<xs:enumeration value="32"/>
|
359
|
+
<xs:enumeration value="33"/>
|
360
|
+
<xs:enumeration value="35"/>
|
361
|
+
<xs:enumeration value="41"/>
|
362
|
+
<xs:enumeration value="42"/>
|
363
|
+
<xs:enumeration value="43"/>
|
364
|
+
<xs:enumeration value="50"/>
|
365
|
+
<xs:enumeration value="51"/>
|
366
|
+
<xs:enumeration value="52"/>
|
367
|
+
<xs:enumeration value="53"/>
|
368
|
+
<xs:enumeration value="90"/>
|
369
|
+
<xs:enumeration value="91"/>
|
370
|
+
<xs:enumeration value="92"/>
|
371
|
+
</xs:restriction>
|
372
|
+
</xs:simpleType>
|
373
|
+
</xs:schema>
|
@@ -0,0 +1,193 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!-- PL_006f versao com correcoes no xServ para tornar a literal INUTILIZAR obrigatoria 21/05/2010 -->
|
3
|
+
<!-- PL_006c versao com correcoes 24/12/2009 -->
|
4
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
5
|
+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
|
6
|
+
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
|
7
|
+
<xs:complexType name="TInutNFe">
|
8
|
+
<xs:annotation>
|
9
|
+
<xs:documentation>Tipo Pedido de Inutilização de Numeração da Nota Fiscal Eletrônica</xs:documentation>
|
10
|
+
</xs:annotation>
|
11
|
+
<xs:sequence>
|
12
|
+
<xs:element name="infInut">
|
13
|
+
<xs:annotation>
|
14
|
+
<xs:documentation>Dados do Pedido de Inutilização de Numeração da Nota Fiscal Eletrônica</xs:documentation>
|
15
|
+
</xs:annotation>
|
16
|
+
<xs:complexType>
|
17
|
+
<xs:sequence>
|
18
|
+
<xs:element name="tpAmb" type="TAmb">
|
19
|
+
<xs:annotation>
|
20
|
+
<xs:documentation>Identificação do Ambiente:
|
21
|
+
1 - Produção
|
22
|
+
2 - Homologação</xs:documentation>
|
23
|
+
</xs:annotation>
|
24
|
+
</xs:element>
|
25
|
+
<xs:element name="xServ">
|
26
|
+
<xs:annotation>
|
27
|
+
<xs:documentation>Serviço Solicitado</xs:documentation>
|
28
|
+
</xs:annotation>
|
29
|
+
<xs:simpleType>
|
30
|
+
<xs:restriction base="TServ">
|
31
|
+
<xs:enumeration value="INUTILIZAR"/>
|
32
|
+
</xs:restriction>
|
33
|
+
</xs:simpleType>
|
34
|
+
</xs:element>
|
35
|
+
<xs:element name="cUF" type="TCodUfIBGE">
|
36
|
+
<xs:annotation>
|
37
|
+
<xs:documentation>Código da UF do emitente</xs:documentation>
|
38
|
+
</xs:annotation>
|
39
|
+
</xs:element>
|
40
|
+
<xs:element name="ano" type="Tano">
|
41
|
+
<xs:annotation>
|
42
|
+
<xs:documentation>Ano de inutilização da numeração</xs:documentation>
|
43
|
+
</xs:annotation>
|
44
|
+
</xs:element>
|
45
|
+
<xs:element name="CNPJ" type="TCnpj">
|
46
|
+
<xs:annotation>
|
47
|
+
<xs:documentation>CNPJ do emitente</xs:documentation>
|
48
|
+
</xs:annotation>
|
49
|
+
</xs:element>
|
50
|
+
<xs:element name="mod" type="TMod">
|
51
|
+
<xs:annotation>
|
52
|
+
<xs:documentation>Modelo da NF-e (55, etc.)</xs:documentation>
|
53
|
+
</xs:annotation>
|
54
|
+
</xs:element>
|
55
|
+
<xs:element name="serie" type="TSerie">
|
56
|
+
<xs:annotation>
|
57
|
+
<xs:documentation>Série da NF-e</xs:documentation>
|
58
|
+
</xs:annotation>
|
59
|
+
</xs:element>
|
60
|
+
<xs:element name="nNFIni" type="TNF">
|
61
|
+
<xs:annotation>
|
62
|
+
<xs:documentation>Número da NF-e inicial</xs:documentation>
|
63
|
+
</xs:annotation>
|
64
|
+
</xs:element>
|
65
|
+
<xs:element name="nNFFin" type="TNF">
|
66
|
+
<xs:annotation>
|
67
|
+
<xs:documentation>Número da NF-e final</xs:documentation>
|
68
|
+
</xs:annotation>
|
69
|
+
</xs:element>
|
70
|
+
<xs:element name="xJust" type="TJust">
|
71
|
+
<xs:annotation>
|
72
|
+
<xs:documentation>Justificativa do pedido de inutilização</xs:documentation>
|
73
|
+
</xs:annotation>
|
74
|
+
</xs:element>
|
75
|
+
</xs:sequence>
|
76
|
+
<xs:attribute name="Id" use="required">
|
77
|
+
<xs:simpleType>
|
78
|
+
<xs:restriction base="xs:ID">
|
79
|
+
<xs:pattern value="ID[0-9]{41}"/>
|
80
|
+
</xs:restriction>
|
81
|
+
</xs:simpleType>
|
82
|
+
</xs:attribute>
|
83
|
+
</xs:complexType>
|
84
|
+
</xs:element>
|
85
|
+
<xs:element ref="ds:Signature"/>
|
86
|
+
</xs:sequence>
|
87
|
+
<xs:attribute name="versao" type="TVerInutNFe" use="required"/>
|
88
|
+
</xs:complexType>
|
89
|
+
<xs:complexType name="TRetInutNFe">
|
90
|
+
<xs:annotation>
|
91
|
+
<xs:documentation>Tipo retorno do Pedido de Inutilização de Numeração da Nota Fiscal Eletrônica</xs:documentation>
|
92
|
+
</xs:annotation>
|
93
|
+
<xs:sequence>
|
94
|
+
<xs:element name="infInut">
|
95
|
+
<xs:annotation>
|
96
|
+
<xs:documentation>Dados do Retorno do Pedido de Inutilização de Numeração da Nota Fiscal Eletrônica</xs:documentation>
|
97
|
+
</xs:annotation>
|
98
|
+
<xs:complexType>
|
99
|
+
<xs:sequence>
|
100
|
+
<xs:element name="tpAmb" type="TAmb">
|
101
|
+
<xs:annotation>
|
102
|
+
<xs:documentation>Identificação do Ambiente:
|
103
|
+
1 - Produção
|
104
|
+
2 - Homologação</xs:documentation>
|
105
|
+
</xs:annotation>
|
106
|
+
</xs:element>
|
107
|
+
<xs:element name="verAplic" type="TVerAplic">
|
108
|
+
<xs:annotation>
|
109
|
+
<xs:documentation>Versão do Aplicativo que processou a NF-e</xs:documentation>
|
110
|
+
</xs:annotation>
|
111
|
+
</xs:element>
|
112
|
+
<xs:element name="cStat" type="TStat">
|
113
|
+
<xs:annotation>
|
114
|
+
<xs:documentation>Código do status da mensagem enviada.</xs:documentation>
|
115
|
+
</xs:annotation>
|
116
|
+
</xs:element>
|
117
|
+
<xs:element name="xMotivo" type="TMotivo">
|
118
|
+
<xs:annotation>
|
119
|
+
<xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation>
|
120
|
+
</xs:annotation>
|
121
|
+
</xs:element>
|
122
|
+
<xs:element name="cUF" type="TCodUfIBGE">
|
123
|
+
<xs:annotation>
|
124
|
+
<xs:documentation>Código da UF que atendeu a solicitação</xs:documentation>
|
125
|
+
</xs:annotation>
|
126
|
+
</xs:element>
|
127
|
+
<xs:element name="ano" type="Tano" minOccurs="0">
|
128
|
+
<xs:annotation>
|
129
|
+
<xs:documentation>Ano de inutilização da numeração</xs:documentation>
|
130
|
+
</xs:annotation>
|
131
|
+
</xs:element>
|
132
|
+
<xs:element name="CNPJ" type="TCnpj" minOccurs="0">
|
133
|
+
<xs:annotation>
|
134
|
+
<xs:documentation>CNPJ do emitente</xs:documentation>
|
135
|
+
</xs:annotation>
|
136
|
+
</xs:element>
|
137
|
+
<xs:element name="mod" type="TMod" minOccurs="0">
|
138
|
+
<xs:annotation>
|
139
|
+
<xs:documentation>Modelo da NF-e (55, etc.)</xs:documentation>
|
140
|
+
</xs:annotation>
|
141
|
+
</xs:element>
|
142
|
+
<xs:element name="serie" type="TSerie" minOccurs="0">
|
143
|
+
<xs:annotation>
|
144
|
+
<xs:documentation>Série da NF-e</xs:documentation>
|
145
|
+
</xs:annotation>
|
146
|
+
</xs:element>
|
147
|
+
<xs:element name="nNFIni" type="TNF" minOccurs="0">
|
148
|
+
<xs:annotation>
|
149
|
+
<xs:documentation>Número da NF-e inicial</xs:documentation>
|
150
|
+
</xs:annotation>
|
151
|
+
</xs:element>
|
152
|
+
<xs:element name="nNFFin" type="TNF" minOccurs="0">
|
153
|
+
<xs:annotation>
|
154
|
+
<xs:documentation>Número da NF-e final</xs:documentation>
|
155
|
+
</xs:annotation>
|
156
|
+
</xs:element>
|
157
|
+
<xs:element name="dhRecbto" type="xs:dateTime" minOccurs="0">
|
158
|
+
<xs:annotation>
|
159
|
+
<xs:documentation>Data e hora de recebimento, no formato AAAA-MM-DDTHH:MM:SS. Deve ser preenchida com data e hora da gravação no Banco em caso de Confirmação. Em caso de Rejeição, com data e hora do recebimento do Pedido de Inutilização.</xs:documentation>
|
160
|
+
</xs:annotation>
|
161
|
+
</xs:element>
|
162
|
+
<xs:element name="nProt" type="TProt" minOccurs="0">
|
163
|
+
<xs:annotation>
|
164
|
+
<xs:documentation>Número do Protocolo de Status da NF-e. 1 posição (1 – Secretaria de Fazenda Estadual 2 – Receita Federal); 2 - código da UF - 2 posições ano; 10 seqüencial no ano.</xs:documentation>
|
165
|
+
</xs:annotation>
|
166
|
+
</xs:element>
|
167
|
+
</xs:sequence>
|
168
|
+
<xs:attribute name="Id" type="xs:ID" use="optional"/>
|
169
|
+
</xs:complexType>
|
170
|
+
</xs:element>
|
171
|
+
<xs:element ref="ds:Signature" minOccurs="0"/>
|
172
|
+
</xs:sequence>
|
173
|
+
<xs:attribute name="versao" type="TVerInutNFe" use="required"/>
|
174
|
+
</xs:complexType>
|
175
|
+
<xs:complexType name="TProcInutNFe">
|
176
|
+
<xs:annotation>
|
177
|
+
<xs:documentation>Tipo Pedido de inutilzação de númeração de NF-e processado</xs:documentation>
|
178
|
+
</xs:annotation>
|
179
|
+
<xs:sequence>
|
180
|
+
<xs:element name="inutNFe" type="TInutNFe"/>
|
181
|
+
<xs:element name="retInutNFe" type="TRetInutNFe"/>
|
182
|
+
</xs:sequence>
|
183
|
+
<xs:attribute name="versao" type="TVerInutNFe" use="required"/>
|
184
|
+
</xs:complexType>
|
185
|
+
<xs:simpleType name="TVerInutNFe">
|
186
|
+
<xs:annotation>
|
187
|
+
<xs:documentation>Tipo Versão do leiaute de Inutilização 2.00</xs:documentation>
|
188
|
+
</xs:annotation>
|
189
|
+
<xs:restriction base="xs:token">
|
190
|
+
<xs:pattern value="2\.00"/>
|
191
|
+
</xs:restriction>
|
192
|
+
</xs:simpleType>
|
193
|
+
</xs:schema>
|