br_nfe 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,11 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- 03-03-2011 - correcao do nome da tag raiz -->
|
|
3
|
+
<!-- PL_006CC CCe 16/06/2010 -->
|
|
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:include schemaLocation="leiauteCCe_v1.00.xsd"/>
|
|
6
|
+
<xs:element name="evento" type="TEvento">
|
|
7
|
+
<xs:annotation>
|
|
8
|
+
<xs:documentation>Schema XML de validação do evento Carta de Correção</xs:documentation>
|
|
9
|
+
</xs:annotation>
|
|
10
|
+
</xs:element>
|
|
11
|
+
</xs:schema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<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">
|
|
3
|
+
<xs:include schemaLocation="leiauteEPEC_v1.00.xsd"/>
|
|
4
|
+
<xs:element name="evento" type="TEvento">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema XML de validação do Evento Prévio de Emissão em Contingência</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
|
+
</xs:schema>
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" 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.02.xsd"/>
|
|
5
|
+
<xs:complexType name="TAtuCadEmiDFe">
|
|
6
|
+
<xs:annotation>
|
|
7
|
+
<xs:documentation>Tipo Comunica atualização de cadastro de emissores de DF-e</xs:documentation>
|
|
8
|
+
</xs:annotation>
|
|
9
|
+
<xs:sequence>
|
|
10
|
+
<xs:element name="infAtuCadEmiDFe">
|
|
11
|
+
<xs:annotation>
|
|
12
|
+
<xs:documentation>Dados Comunica atualização de cadastro de emissores de DF-e</xs:documentation>
|
|
13
|
+
</xs:annotation>
|
|
14
|
+
<xs:complexType>
|
|
15
|
+
<xs:sequence>
|
|
16
|
+
<xs:element name="UF" type="TUf">
|
|
17
|
+
<xs:annotation>
|
|
18
|
+
<xs:documentation>sigla da UF solicitante</xs:documentation>
|
|
19
|
+
</xs:annotation>
|
|
20
|
+
</xs:element>
|
|
21
|
+
<xs:choice>
|
|
22
|
+
<xs:element name="inclui" type="TEmissor">
|
|
23
|
+
<xs:annotation>
|
|
24
|
+
<xs:documentation>Inclusão de novo Emissor</xs:documentation>
|
|
25
|
+
</xs:annotation>
|
|
26
|
+
</xs:element>
|
|
27
|
+
<xs:element name="exclui">
|
|
28
|
+
<xs:annotation>
|
|
29
|
+
<xs:documentation>Exclui emissor inserido indevidamente</xs:documentation>
|
|
30
|
+
</xs:annotation>
|
|
31
|
+
<xs:complexType>
|
|
32
|
+
<xs:sequence>
|
|
33
|
+
<xs:element name="UF" type="TUf">
|
|
34
|
+
<xs:annotation>
|
|
35
|
+
<xs:documentation>Sigla da UF onde o emissor está autorizado a emitir DF-e</xs:documentation>
|
|
36
|
+
</xs:annotation>
|
|
37
|
+
</xs:element>
|
|
38
|
+
<xs:element name="CNPJ">
|
|
39
|
+
<xs:annotation>
|
|
40
|
+
<xs:documentation>CNPJ do emissor a ser excluído</xs:documentation>
|
|
41
|
+
</xs:annotation>
|
|
42
|
+
</xs:element>
|
|
43
|
+
</xs:sequence>
|
|
44
|
+
</xs:complexType>
|
|
45
|
+
</xs:element>
|
|
46
|
+
</xs:choice>
|
|
47
|
+
</xs:sequence>
|
|
48
|
+
<xs:attribute name="Id" type="xs:ID" use="required"/>
|
|
49
|
+
</xs:complexType>
|
|
50
|
+
</xs:element>
|
|
51
|
+
<xs:element ref="ds:Signature"/>
|
|
52
|
+
</xs:sequence>
|
|
53
|
+
<xs:attribute name="versao" type="TVerCadEmi" use="required"/>
|
|
54
|
+
</xs:complexType>
|
|
55
|
+
<xs:complexType name="TRetAtuCadEmiDFe">
|
|
56
|
+
<xs:annotation>
|
|
57
|
+
<xs:documentation>Tipo Retorno da atualização de cadastro de emissores de DF-e</xs:documentation>
|
|
58
|
+
</xs:annotation>
|
|
59
|
+
<xs:sequence>
|
|
60
|
+
<xs:element name="infRetAtuCadEmiDFe">
|
|
61
|
+
<xs:annotation>
|
|
62
|
+
<xs:documentation>Dados do retorno do processamento daa Comunicção de atualização de cadastro de emissores de DF-e</xs:documentation>
|
|
63
|
+
</xs:annotation>
|
|
64
|
+
<xs:complexType>
|
|
65
|
+
<xs:sequence>
|
|
66
|
+
<xs:element name="UF" type="TUf">
|
|
67
|
+
<xs:annotation>
|
|
68
|
+
<xs:documentation>sigla da UF onde o emissor está autorizado a emitir DF-e</xs:documentation>
|
|
69
|
+
</xs:annotation>
|
|
70
|
+
</xs:element>
|
|
71
|
+
<xs:element name="CNPJ">
|
|
72
|
+
<xs:annotation>
|
|
73
|
+
<xs:documentation>CNPJ do emissor</xs:documentation>
|
|
74
|
+
</xs:annotation>
|
|
75
|
+
</xs:element>
|
|
76
|
+
<xs:element name="ope">
|
|
77
|
+
<xs:annotation>
|
|
78
|
+
<xs:documentation>operação solicitada:
|
|
79
|
+
0 - inclusão;
|
|
80
|
+
1 - exclusão.</xs:documentation>
|
|
81
|
+
</xs:annotation>
|
|
82
|
+
<xs:simpleType>
|
|
83
|
+
<xs:restriction base="xs:token">
|
|
84
|
+
<xs:enumeration value="0"/>
|
|
85
|
+
<xs:enumeration value="1"/>
|
|
86
|
+
</xs:restriction>
|
|
87
|
+
</xs:simpleType>
|
|
88
|
+
</xs:element>
|
|
89
|
+
<xs:element name="resOpe">
|
|
90
|
+
<xs:annotation>
|
|
91
|
+
<xs:documentation>Resultado da operação solicitada
|
|
92
|
+
0 - operação realizada com sucesso;
|
|
93
|
+
1 - Rejeição -mensagem inválida (erro de
|
|
94
|
+
Schema);
|
|
95
|
+
21- Rejeição - certificado digital não atende o
|
|
96
|
+
padrão estabelecido pelo projeto;
|
|
97
|
+
22 - Rejeição - certificado digital utilizado na
|
|
98
|
+
assinatura revogado;
|
|
99
|
+
23 - Rejeição - certificado digital utilizado na
|
|
100
|
+
assinatura expirado;
|
|
101
|
+
24 - Rejeição - certificado digital utilizado não
|
|
102
|
+
pertence a UF solicitante;
|
|
103
|
+
25 - Rejeição - assinatura digital inválida;
|
|
104
|
+
31 - Rejeição -CNPJ emissor inválido;
|
|
105
|
+
32 - Rejeição-CNPJ matriz inválido;
|
|
106
|
+
41 - Inclusão não atendida - Já existe um
|
|
107
|
+
emissor com o CNPJ informado;
|
|
108
|
+
42 - exclusão não atendida - não existe
|
|
109
|
+
emissor com CNPJ informado;</xs:documentation>
|
|
110
|
+
</xs:annotation>
|
|
111
|
+
<xs:simpleType>
|
|
112
|
+
<xs:restriction base="xs:token">
|
|
113
|
+
<xs:enumeration value="0"/>
|
|
114
|
+
<xs:enumeration value="1"/>
|
|
115
|
+
<xs:enumeration value="21"/>
|
|
116
|
+
<xs:enumeration value="22"/>
|
|
117
|
+
<xs:enumeration value="23"/>
|
|
118
|
+
<xs:enumeration value="25"/>
|
|
119
|
+
<xs:enumeration value="31"/>
|
|
120
|
+
<xs:enumeration value="32"/>
|
|
121
|
+
<xs:enumeration value="41"/>
|
|
122
|
+
<xs:enumeration value="42"/>
|
|
123
|
+
</xs:restriction>
|
|
124
|
+
</xs:simpleType>
|
|
125
|
+
</xs:element>
|
|
126
|
+
</xs:sequence>
|
|
127
|
+
<xs:attribute name="Id" type="xs:ID" use="required"/>
|
|
128
|
+
</xs:complexType>
|
|
129
|
+
</xs:element>
|
|
130
|
+
<xs:element ref="ds:Signature"/>
|
|
131
|
+
</xs:sequence>
|
|
132
|
+
<xs:attribute name="versao" type="TVerCadEmi" use="required"/>
|
|
133
|
+
</xs:complexType>
|
|
134
|
+
<xs:complexType name="TCadEmiDFe">
|
|
135
|
+
<xs:annotation>
|
|
136
|
+
<xs:documentation>Tipo Cadastro de emissores de DF-e</xs:documentation>
|
|
137
|
+
</xs:annotation>
|
|
138
|
+
<xs:sequence>
|
|
139
|
+
<xs:element name="infCadEmiDFe">
|
|
140
|
+
<xs:annotation>
|
|
141
|
+
<xs:documentation>Dados do cadastro de emissores de DF-e</xs:documentation>
|
|
142
|
+
</xs:annotation>
|
|
143
|
+
<xs:complexType>
|
|
144
|
+
<xs:sequence>
|
|
145
|
+
<xs:element name="dPubCad" type="xs:date">
|
|
146
|
+
<xs:annotation>
|
|
147
|
+
<xs:documentation>Data de publicação da Cadastro</xs:documentation>
|
|
148
|
+
</xs:annotation>
|
|
149
|
+
</xs:element>
|
|
150
|
+
<xs:element name="emissor" type="TEmissor" maxOccurs="unbounded"/>
|
|
151
|
+
</xs:sequence>
|
|
152
|
+
<xs:attribute name="Id" type="xs:ID" use="required"/>
|
|
153
|
+
</xs:complexType>
|
|
154
|
+
</xs:element>
|
|
155
|
+
<xs:element ref="ds:Signature"/>
|
|
156
|
+
</xs:sequence>
|
|
157
|
+
<xs:attribute name="versao" type="TVerCadEmi" use="required"/>
|
|
158
|
+
</xs:complexType>
|
|
159
|
+
<xs:complexType name="TEmissor">
|
|
160
|
+
<xs:annotation>
|
|
161
|
+
<xs:documentation>Tipo Emissor</xs:documentation>
|
|
162
|
+
</xs:annotation>
|
|
163
|
+
<xs:sequence>
|
|
164
|
+
<xs:element name="UF" type="TUf">
|
|
165
|
+
<xs:annotation>
|
|
166
|
+
<xs:documentation>sigla da UF onde o emissor está autorizado a emitir DF-e</xs:documentation>
|
|
167
|
+
</xs:annotation>
|
|
168
|
+
</xs:element>
|
|
169
|
+
<xs:element name="CNPJ" type="TCnpj">
|
|
170
|
+
<xs:annotation>
|
|
171
|
+
<xs:documentation>CNPJ do Emissor</xs:documentation>
|
|
172
|
+
</xs:annotation>
|
|
173
|
+
</xs:element>
|
|
174
|
+
<xs:element name="CNPJMatriz" type="TCnpj">
|
|
175
|
+
<xs:annotation>
|
|
176
|
+
<xs:documentation>CNPJ do Estabelecimento matriz</xs:documentation>
|
|
177
|
+
</xs:annotation>
|
|
178
|
+
</xs:element>
|
|
179
|
+
<xs:element name="IE" type="TIe">
|
|
180
|
+
<xs:annotation>
|
|
181
|
+
<xs:documentation>IE do emissor</xs:documentation>
|
|
182
|
+
</xs:annotation>
|
|
183
|
+
</xs:element>
|
|
184
|
+
<xs:element name="DFe" maxOccurs="unbounded">
|
|
185
|
+
<xs:annotation>
|
|
186
|
+
<xs:documentation>Documento Fiscal eletrônico autorizado</xs:documentation>
|
|
187
|
+
</xs:annotation>
|
|
188
|
+
<xs:complexType>
|
|
189
|
+
<xs:sequence>
|
|
190
|
+
<xs:element name="mod">
|
|
191
|
+
<xs:annotation>
|
|
192
|
+
<xs:documentation>Modelo do documento fiscal autorizado:
|
|
193
|
+
55 - NF-e;
|
|
194
|
+
99 - uso exclusivo do Fisco para inclusão de
|
|
195
|
+
qualquer órgão público no cadastro de
|
|
196
|
+
emissores de DFe com objetivo de permitir o
|
|
197
|
+
acesso ao WS - CadConsultaCadastro de
|
|
198
|
+
Consulta Cadastro de Contribuintes do ICMS
|
|
199
|
+
de qualquer unidade federada.</xs:documentation>
|
|
200
|
+
</xs:annotation>
|
|
201
|
+
<xs:simpleType>
|
|
202
|
+
<xs:restriction base="xs:token">
|
|
203
|
+
<xs:enumeration value="55"/>
|
|
204
|
+
<xs:enumeration value="99"/>
|
|
205
|
+
</xs:restriction>
|
|
206
|
+
</xs:simpleType>
|
|
207
|
+
</xs:element>
|
|
208
|
+
<xs:element name="sit">
|
|
209
|
+
<xs:annotation>
|
|
210
|
+
<xs:documentation>Situação do emissor:
|
|
211
|
+
0 - em homologação
|
|
212
|
+
1 - em produção</xs:documentation>
|
|
213
|
+
</xs:annotation>
|
|
214
|
+
<xs:simpleType>
|
|
215
|
+
<xs:restriction base="xs:token">
|
|
216
|
+
<xs:enumeration value="0"/>
|
|
217
|
+
<xs:enumeration value="1"/>
|
|
218
|
+
</xs:restriction>
|
|
219
|
+
</xs:simpleType>
|
|
220
|
+
</xs:element>
|
|
221
|
+
</xs:sequence>
|
|
222
|
+
</xs:complexType>
|
|
223
|
+
</xs:element>
|
|
224
|
+
</xs:sequence>
|
|
225
|
+
</xs:complexType>
|
|
226
|
+
<xs:simpleType name="TVerCadEmi">
|
|
227
|
+
<xs:annotation>
|
|
228
|
+
<xs:documentation>Tipo Versão do Leiaute 1.01</xs:documentation>
|
|
229
|
+
</xs:annotation>
|
|
230
|
+
<xs:restriction base="xs:token">
|
|
231
|
+
<xs:pattern value="1\.01"/>
|
|
232
|
+
</xs:restriction>
|
|
233
|
+
</xs:simpleType>
|
|
234
|
+
</xs:schema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<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">
|
|
3
|
+
<xs:include schemaLocation="leiauteSuframaInternaliza_v1.00.xsd"/>
|
|
4
|
+
<xs:element name="evento" type="TEvento">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema XML de validação do evento do Internalização SUFRAMA 990910</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
|
+
</xs:schema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<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">
|
|
3
|
+
<xs:include schemaLocation="leiauteSuframaVistoria_v1.00.xsd"/>
|
|
4
|
+
<xs:element name="evento" type="TEvento">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema XML de validação do evento de Vistoria SUFRAMA 990900</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
|
+
</xs:schema>
|
|
@@ -0,0 +1,9 @@
|
|
|
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:include schemaLocation="LeiauteCadastroEmissorDFe_v1.01.xsd"/>
|
|
4
|
+
<xs:element name="atuCadEmiDFe" type="TAtuCadEmiDFe">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Atualização de Emissor de DF-e</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
|
+
</xs:schema>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<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">
|
|
3
|
+
<xs:element name="cabecMsg">
|
|
4
|
+
<xs:annotation>
|
|
5
|
+
<xs:documentation>Schema XML de validação do cabeçalho da mensagem de Web Service</xs:documentation>
|
|
6
|
+
</xs:annotation>
|
|
7
|
+
<xs:complexType>
|
|
8
|
+
<xs:sequence>
|
|
9
|
+
<xs:element name="versaoDados">
|
|
10
|
+
<xs:annotation>
|
|
11
|
+
<xs:documentation>Versão da Leiaute XML da área de Dados</xs:documentation>
|
|
12
|
+
</xs:annotation>
|
|
13
|
+
<xs:simpleType>
|
|
14
|
+
<xs:restriction base="xs:token">
|
|
15
|
+
<xs:pattern value="[1-9]{1}[0-9]{0,1}\.[0-9]{2}"/>
|
|
16
|
+
</xs:restriction>
|
|
17
|
+
</xs:simpleType>
|
|
18
|
+
</xs:element>
|
|
19
|
+
</xs:sequence>
|
|
20
|
+
<xs:attribute name="versao" use="required">
|
|
21
|
+
<xs:simpleType>
|
|
22
|
+
<xs:restriction base="xs:token">
|
|
23
|
+
<xs:pattern value="1\.02"/>
|
|
24
|
+
</xs:restriction>
|
|
25
|
+
</xs:simpleType>
|
|
26
|
+
</xs:attribute>
|
|
27
|
+
</xs:complexType>
|
|
28
|
+
</xs:element>
|
|
29
|
+
</xs:schema>
|
|
@@ -0,0 +1,9 @@
|
|
|
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:include schemaLocation="LeiauteCadastroEmissorDFe_v1.01.xsd"/>
|
|
4
|
+
<xs:element name="cadEmiDFe" type="TCadEmiDFe">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Cadastro de Emissores de DF-e</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
|
+
</xs:schema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
|
3
|
+
<xs:include schemaLocation="leiauteCancNFe_v2.00.xsd"/>
|
|
4
|
+
<xs:element name="cancNFe" type="TCancNFe">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema XML de validação do Pedido de Cancelamento da Nota Fiscal Eletrônica</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
|
+
</xs:schema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<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">
|
|
3
|
+
<xs:include schemaLocation="leiauteConfRecebto_v1.00.xsd"/>
|
|
4
|
+
<xs:element name="evento" type="TEvento">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema XML de validação do evento Confirmação de recebimento</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
|
+
</xs:schema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
|
3
|
+
<xs:include schemaLocation="leiauteConsultaCadastro_v2.00.xsd"/>
|
|
4
|
+
<xs:element name="ConsCad" type="TConsCad">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema XML de validação do retorno da consulta cadastro contribuintes</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
|
+
</xs:schema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<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">
|
|
3
|
+
<xs:include schemaLocation="leiauteDPEC_v1.01.xsd"/>
|
|
4
|
+
<xs:element name="consDPEC" type="TConsDPEC">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema XML de validação do Pedido de Consulta de Declaração Prévia de Emissão em Contingência</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
|
+
</xs:schema>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
|
|
3
|
+
<xs:schema 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">
|
|
4
|
+
<xs:include schemaLocation="leiauteConsNFeDest_v1.01.xsd"/>
|
|
5
|
+
<xs:element name="consNFeDest" type="TConsNFeDest">
|
|
6
|
+
<xs:annotation>
|
|
7
|
+
<xs:documentation>Schema de validação XML dp Pedido de Consulta de NF-e</xs:documentation>
|
|
8
|
+
</xs:annotation>
|
|
9
|
+
</xs:element>
|
|
10
|
+
</xs:schema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
|
3
|
+
<xs:include schemaLocation="leiauteNFe_v2.00.xsd"/>
|
|
4
|
+
<xs:element name="consReciNFe" type="TConsReciNFe">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema XML de validação do Pedido de Consulta do Recido do Lote de Notas Fiscais Eletrônicas</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
|
+
</xs:schema>
|
data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/consReciNFe_v3.10.xsd
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
|
3
|
-
<xs:include schemaLocation="leiauteNFe_v3.10.xsd"/>
|
|
4
|
-
<xs:element name="consReciNFe" type="TConsReciNFe">
|
|
5
|
-
<xs:annotation>
|
|
6
|
-
<xs:documentation>Schema XML de validação do Pedido de Consulta do Recido do Lote de Notas Fiscais Eletrônicas</xs:documentation>
|
|
7
|
-
</xs:annotation>
|
|
8
|
-
</xs:element>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
|
3
|
+
<xs:include schemaLocation="leiauteNFe_v3.10.xsd"/>
|
|
4
|
+
<xs:element name="consReciNFe" type="TConsReciNFe">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema XML de validação do Pedido de Consulta do Recido do Lote de Notas Fiscais Eletrônicas</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
9
|
</xs:schema>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- PL_006eventos versao alterada para consultar eventos 16/06/2010 -->
|
|
3
|
+
<xs:schema 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">
|
|
4
|
+
<xs:include schemaLocation="leiauteConsSitNFe_v2.01.xsd"/>
|
|
5
|
+
<xs:element name="consSitNFe" type="TConsSitNFe">
|
|
6
|
+
<xs:annotation>
|
|
7
|
+
<xs:documentation>Schema de validação XML dp Pedido de Consulta da Situação Atual da Nota Fiscal Eletrônica</xs:documentation>
|
|
8
|
+
</xs:annotation>
|
|
9
|
+
</xs:element>
|
|
10
|
+
</xs:schema>
|
data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/consSitNFe_v3.10.xsd
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<xs:schema 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:include schemaLocation="leiauteConsSitNFe_v3.10.xsd"/>
|
|
4
|
-
<xs:element name="consSitNFe" type="TConsSitNFe">
|
|
5
|
-
<xs:annotation>
|
|
6
|
-
<xs:documentation>Schema de validação XML dp Pedido de Consulta da Situação Atual da Nota Fiscal Eletrônica</xs:documentation>
|
|
7
|
-
</xs:annotation>
|
|
8
|
-
</xs:element>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema 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:include schemaLocation="leiauteConsSitNFe_v3.10.xsd"/>
|
|
4
|
+
<xs:element name="consSitNFe" type="TConsSitNFe">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema de validação XML dp Pedido de Consulta da Situação Atual da Nota Fiscal Eletrônica</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
9
|
</xs:schema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
|
3
|
+
<xs:include schemaLocation="leiauteConsStatServ_v2.00.xsd"/>
|
|
4
|
+
<xs:element name="consStatServ" type="TConsStatServ">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema XML de validação do Pedido de Consulta do Status do Serviço</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
|
+
</xs:schema>
|
data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/consStatServ_v3.10.xsd
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
|
3
|
-
<xs:include schemaLocation="leiauteConsStatServ_v3.10.xsd"/>
|
|
4
|
-
<xs:element name="consStatServ" type="TConsStatServ">
|
|
5
|
-
<xs:annotation>
|
|
6
|
-
<xs:documentation>Schema XML de validação do Pedido de Consulta do Status do Serviço</xs:documentation>
|
|
7
|
-
</xs:annotation>
|
|
8
|
-
</xs:element>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
|
3
|
+
<xs:include schemaLocation="leiauteConsStatServ_v3.10.xsd"/>
|
|
4
|
+
<xs:element name="consStatServ" type="TConsStatServ">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema XML de validação do Pedido de Consulta do Status do Serviço</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
</xs:element>
|
|
9
9
|
</xs:schema>
|
|
@@ -0,0 +1,71 @@
|
|
|
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:include schemaLocation="tiposDistDFe_v1.00.xsd"/>
|
|
4
|
+
<xs:element name="distDFeInt">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema de pedido de distribuição de DF-e de interesse</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
<xs:complexType>
|
|
9
|
+
<xs:sequence>
|
|
10
|
+
<xs:element name="tpAmb" type="TAmb">
|
|
11
|
+
<xs:annotation>
|
|
12
|
+
<xs:documentation>
|
|
13
|
+
Identificação do Ambiente:
|
|
14
|
+
1 - Produção
|
|
15
|
+
2 - Homologação
|
|
16
|
+
</xs:documentation>
|
|
17
|
+
</xs:annotation>
|
|
18
|
+
</xs:element>
|
|
19
|
+
<xs:element name="cUFAutor" type="TCodUfIBGE">
|
|
20
|
+
<xs:annotation>
|
|
21
|
+
<xs:documentation>Código da UF do Autor</xs:documentation>
|
|
22
|
+
</xs:annotation>
|
|
23
|
+
</xs:element>
|
|
24
|
+
<xs:choice>
|
|
25
|
+
<xs:element name="CNPJ" type="TCnpj">
|
|
26
|
+
<xs:annotation>
|
|
27
|
+
<xs:documentation>CNPJ do interessado no DF-e</xs:documentation>
|
|
28
|
+
</xs:annotation>
|
|
29
|
+
</xs:element>
|
|
30
|
+
<xs:element name="CPF" type="TCpf">
|
|
31
|
+
<xs:annotation>
|
|
32
|
+
<xs:documentation>CPF do interessado no DF-e</xs:documentation>
|
|
33
|
+
</xs:annotation>
|
|
34
|
+
</xs:element>
|
|
35
|
+
</xs:choice>
|
|
36
|
+
<xs:choice>
|
|
37
|
+
<xs:element name="distNSU">
|
|
38
|
+
<xs:annotation>
|
|
39
|
+
<xs:documentation>Grupo para distribuir DF-e de interesse</xs:documentation>
|
|
40
|
+
</xs:annotation>
|
|
41
|
+
<xs:complexType>
|
|
42
|
+
<xs:sequence>
|
|
43
|
+
<xs:element name="ultNSU" type="TNSU">
|
|
44
|
+
<xs:annotation>
|
|
45
|
+
<xs:documentation>Último NSU recebido pelo ator. Caso seja informado com zero, ou com um NSU muito antigo, a consulta retornará unicamente as informações resumidas e documentos fiscais eletrônicos que tenham sido recepcionados pelo Ambiente Nacional nos últimos 3 meses.</xs:documentation>
|
|
46
|
+
</xs:annotation>
|
|
47
|
+
</xs:element>
|
|
48
|
+
</xs:sequence>
|
|
49
|
+
</xs:complexType>
|
|
50
|
+
</xs:element>
|
|
51
|
+
<xs:element name="consNSU">
|
|
52
|
+
<xs:annotation>
|
|
53
|
+
<xs:documentation>Grupo para consultar um DF-e a partir de um NSU específico</xs:documentation>
|
|
54
|
+
</xs:annotation>
|
|
55
|
+
<xs:complexType>
|
|
56
|
+
<xs:sequence>
|
|
57
|
+
<xs:element name="NSU" type="TNSU">
|
|
58
|
+
<xs:annotation>
|
|
59
|
+
<xs:documentation>Número Sequencial Único. Geralmente esta consulta será utilizada quando identificado pelo interessado um NSU faltante. O Web Service retornará o documento ou informará que o NSU não existe no Ambiente Nacional. Assim, esta consulta fechará a lacuna do NSU identificado como faltante.</xs:documentation>
|
|
60
|
+
</xs:annotation>
|
|
61
|
+
</xs:element>
|
|
62
|
+
</xs:sequence>
|
|
63
|
+
</xs:complexType>
|
|
64
|
+
</xs:element>
|
|
65
|
+
</xs:choice>
|
|
66
|
+
</xs:sequence>
|
|
67
|
+
<xs:attribute name="versao" type="TVerDistDFe" use="required"/>
|
|
68
|
+
</xs:complexType>
|
|
69
|
+
</xs:element>
|
|
70
|
+
</xs:schema>
|
|
71
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by admin (.) -->
|
|
3
|
+
<xs:schema 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">
|
|
4
|
+
<xs:include schemaLocation="leiauteDownloadNFe_v1.00.xsd"/>
|
|
5
|
+
<xs:element name="downloadNFe" type="TDownloadNFe">
|
|
6
|
+
<xs:annotation>
|
|
7
|
+
<xs:documentation>Schema de validação XML dp Pedido de download de NF-e</xs:documentation>
|
|
8
|
+
</xs:annotation>
|
|
9
|
+
</xs:element>
|
|
10
|
+
</xs:schema>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by admin (.) -->
|
|
3
|
+
<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">
|
|
4
|
+
<xs:element name="detEvento">
|
|
5
|
+
<xs:annotation>
|
|
6
|
+
<xs:documentation>Schema XML de validação do evento do carta de correção e1101110</xs:documentation>
|
|
7
|
+
</xs:annotation>
|
|
8
|
+
<xs:complexType>
|
|
9
|
+
<xs:sequence>
|
|
10
|
+
<xs:element name="descEvento">
|
|
11
|
+
<xs:annotation>
|
|
12
|
+
<xs:documentation>Descrição do Evento - “Carta de Correção”</xs:documentation>
|
|
13
|
+
</xs:annotation>
|
|
14
|
+
<xs:simpleType>
|
|
15
|
+
<xs:restriction base="xs:string">
|
|
16
|
+
<xs:whiteSpace value="preserve"/>
|
|
17
|
+
<xs:enumeration value="Carta de Correção"/>
|
|
18
|
+
<xs:enumeration value="Carta de Correcao"/>
|
|
19
|
+
</xs:restriction>
|
|
20
|
+
</xs:simpleType>
|
|
21
|
+
</xs:element>
|
|
22
|
+
<xs:element name="xCorrecao">
|
|
23
|
+
<xs:annotation>
|
|
24
|
+
<xs:documentation>Correção a ser considerada</xs:documentation>
|
|
25
|
+
</xs:annotation>
|
|
26
|
+
<xs:simpleType>
|
|
27
|
+
<xs:restriction base="xs:string">
|
|
28
|
+
<xs:whiteSpace value="preserve"/>
|
|
29
|
+
<xs:minLength value="15"/>
|
|
30
|
+
<xs:maxLength value="1000"/>
|
|
31
|
+
<xs:pattern value="[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}"/>
|
|
32
|
+
</xs:restriction>
|
|
33
|
+
</xs:simpleType>
|
|
34
|
+
</xs:element>
|
|
35
|
+
<xs:element name="xCondUso">
|
|
36
|
+
<xs:annotation>
|
|
37
|
+
<xs:documentation>Texto Fixo com as condições de uso da Carta de Correção</xs:documentation>
|
|
38
|
+
</xs:annotation>
|
|
39
|
+
<xs:simpleType>
|
|
40
|
+
<xs:restriction base="xs:string">
|
|
41
|
+
<xs:whiteSpace value="preserve"/>
|
|
42
|
+
<xs:enumeration value="A Carta de Correção é disciplinada pelo § 1º-A do art. 7º do Convênio S/N, de 15 de dezembro de 1970 e pode ser utilizada para regularização de erro ocorrido na emissão de documento fiscal, desde que o erro não esteja relacionado com: I - as variáveis que determinam o valor do imposto tais como: base de cálculo, alíquota, diferença de preço, quantidade, valor da operação ou da prestação; II - a correção de dados cadastrais que implique mudança do remetente ou do destinatário; III - a data de emissão ou de saída."/>
|
|
43
|
+
<xs:enumeration value="A Carta de Correcao e disciplinada pelo paragrafo 1o-A do art. 7o do Convenio S/N, de 15 de dezembro de 1970 e pode ser utilizada para regularizacao de erro ocorrido na emissao de documento fiscal, desde que o erro nao esteja relacionado com: I - as variaveis que determinam o valor do imposto tais como: base de calculo, aliquota, diferenca de preco, quantidade, valor da operacao ou da prestacao; II - a correcao de dados cadastrais que implique mudanca do remetente ou do destinatario; III - a data de emissao ou de saida."/>
|
|
44
|
+
</xs:restriction>
|
|
45
|
+
</xs:simpleType>
|
|
46
|
+
</xs:element>
|
|
47
|
+
</xs:sequence>
|
|
48
|
+
<xs:attribute name="versao" use="required">
|
|
49
|
+
<xs:simpleType>
|
|
50
|
+
<xs:restriction base="xs:string">
|
|
51
|
+
<xs:whiteSpace value="preserve"/>
|
|
52
|
+
<xs:enumeration value="1.00"/>
|
|
53
|
+
</xs:restriction>
|
|
54
|
+
</xs:simpleType>
|
|
55
|
+
</xs:attribute>
|
|
56
|
+
</xs:complexType>
|
|
57
|
+
</xs:element>
|
|
58
|
+
</xs:schema>
|