nf-e 0.2.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.rspec +1 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +201 -0
- data/Guardfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +35 -0
- data/Rakefile +6 -0
- data/circle.yml +7 -0
- data/config/locales/commons.yml +15 -0
- data/config/locales/models/dest.yml +13 -0
- data/config/locales/models/emit.yml +14 -0
- data/config/locales/models/ender.yml +13 -0
- data/config/locales/models/envi_nfe.yml +7 -0
- data/config/locales/models/ide.yml +5 -0
- data/config/locales/models/nfe.yml +5 -0
- data/config/locales/operations/correction_letter.yml +4 -0
- data/config/locales/operations/nfe_cancel.yml +4 -0
- data/config/locales/operations/nfe_discard.yml +7 -0
- data/config/locales/pt-BR.yml +211 -0
- data/lib/nf-e.rb +20 -0
- data/lib/nfe/helpers/nfe_key.rb +103 -0
- data/lib/nfe/helpers/schema_validator.rb +24 -0
- data/lib/nfe/helpers/signer.rb +25 -0
- data/lib/nfe/helpers/uf_helper.rb +23 -0
- data/lib/nfe/helpers/xml_model/attribute_base.rb +60 -0
- data/lib/nfe/helpers/xml_model/attribute_bigdecimal.rb +16 -0
- data/lib/nfe/helpers/xml_model/attribute_collection.rb +37 -0
- data/lib/nfe/helpers/xml_model/attribute_date.rb +20 -0
- data/lib/nfe/helpers/xml_model/attribute_datetime.rb +20 -0
- data/lib/nfe/helpers/xml_model/attribute_enumerize.rb +12 -0
- data/lib/nfe/helpers/xml_model/attribute_float.rb +20 -0
- data/lib/nfe/helpers/xml_model/attribute_integer.rb +12 -0
- data/lib/nfe/helpers/xml_model/attribute_node.rb +17 -0
- data/lib/nfe/helpers/xml_model/attribute_nodeattribute.rb +16 -0
- data/lib/nfe/helpers/xml_model/attribute_text.rb +31 -0
- data/lib/nfe/helpers/xml_model/factory.rb +17 -0
- data/lib/nfe/helpers/xml_model/nfe_model.rb +120 -0
- data/lib/nfe/models/NFe.rb +47 -0
- data/lib/nfe/models/avulsa.rb +59 -0
- data/lib/nfe/models/bill/cobr.rb +23 -0
- data/lib/nfe/models/bill/dup.rb +23 -0
- data/lib/nfe/models/bill/fat.rb +36 -0
- data/lib/nfe/models/cane/bigdecimal_greater_than_validator.rb +11 -0
- data/lib/nfe/models/cane/bigdecimal_less_than_validator.rb +9 -0
- data/lib/nfe/models/cane/cana.rb +100 -0
- data/lib/nfe/models/cane/deduc.rb +24 -0
- data/lib/nfe/models/cane/forDia.rb +33 -0
- data/lib/nfe/models/compra.rb +21 -0
- data/lib/nfe/models/concerns/cnpj_cpf_validatable.rb +22 -0
- data/lib/nfe/models/concerns/ufable.rb +20 -0
- data/lib/nfe/models/det.rb +34 -0
- data/lib/nfe/models/emitter/emit.rb +56 -0
- data/lib/nfe/models/ender.rb +64 -0
- data/lib/nfe/models/entrega_retirada.rb +47 -0
- data/lib/nfe/models/evento.rb +71 -0
- data/lib/nfe/models/exporta.rb +19 -0
- data/lib/nfe/models/ide.rb +140 -0
- data/lib/nfe/models/infNFe.rb +82 -0
- data/lib/nfe/models/information/infAdic.rb +51 -0
- data/lib/nfe/models/information/obsContFisco.rb +21 -0
- data/lib/nfe/models/information/procRef.rb +25 -0
- data/lib/nfe/models/itens/CIDE.rb +32 -0
- data/lib/nfe/models/itens/DI.rb +55 -0
- data/lib/nfe/models/itens/adi.rb +34 -0
- data/lib/nfe/models/itens/arma.rb +31 -0
- data/lib/nfe/models/itens/comb.rb +41 -0
- data/lib/nfe/models/itens/med.rb +40 -0
- data/lib/nfe/models/itens/prod.rb +115 -0
- data/lib/nfe/models/itens/veicProd.rb +140 -0
- data/lib/nfe/models/nfeProc.rb +29 -0
- data/lib/nfe/models/procEventoNFe.rb +29 -0
- data/lib/nfe/models/procInutNFe.rb +28 -0
- data/lib/nfe/models/recipient/dest.rb +57 -0
- data/lib/nfe/models/referenced/NFref.rb +44 -0
- data/lib/nfe/models/referenced/refECF.rb +26 -0
- data/lib/nfe/models/referenced/refNF.rb +43 -0
- data/lib/nfe/models/referenced/refNFP.rb +40 -0
- data/lib/nfe/models/signature.rb +53 -0
- data/lib/nfe/models/taxes/ICMS.rb +100 -0
- data/lib/nfe/models/taxes/ICMS00.rb +39 -0
- data/lib/nfe/models/taxes/ICMS10.rb +82 -0
- data/lib/nfe/models/taxes/ICMS101.rb +26 -0
- data/lib/nfe/models/taxes/ICMS102.rb +10 -0
- data/lib/nfe/models/taxes/ICMS103.rb +13 -0
- data/lib/nfe/models/taxes/ICMS20.rb +46 -0
- data/lib/nfe/models/taxes/ICMS201.rb +67 -0
- data/lib/nfe/models/taxes/ICMS202.rb +53 -0
- data/lib/nfe/models/taxes/ICMS203.rb +13 -0
- data/lib/nfe/models/taxes/ICMS30.rb +55 -0
- data/lib/nfe/models/taxes/ICMS300.rb +13 -0
- data/lib/nfe/models/taxes/ICMS40.rb +24 -0
- data/lib/nfe/models/taxes/ICMS400.rb +13 -0
- data/lib/nfe/models/taxes/ICMS41.rb +13 -0
- data/lib/nfe/models/taxes/ICMS50.rb +13 -0
- data/lib/nfe/models/taxes/ICMS500.rb +28 -0
- data/lib/nfe/models/taxes/ICMS51.rb +48 -0
- data/lib/nfe/models/taxes/ICMS60.rb +28 -0
- data/lib/nfe/models/taxes/ICMS70.rb +89 -0
- data/lib/nfe/models/taxes/ICMS90.rb +90 -0
- data/lib/nfe/models/taxes/ICMS900.rb +100 -0
- data/lib/nfe/models/taxes/ICMSBase.rb +21 -0
- data/lib/nfe/models/taxes/ICMSNormalBase.rb +15 -0
- data/lib/nfe/models/taxes/ICMSPart.rb +112 -0
- data/lib/nfe/models/taxes/ICMSSNBase.rb +19 -0
- data/lib/nfe/models/taxes/ICMSST.rb +50 -0
- data/lib/nfe/models/taxes/ICMSTot.rb +124 -0
- data/lib/nfe/models/taxes/II.rb +39 -0
- data/lib/nfe/models/taxes/IPI.rb +133 -0
- data/lib/nfe/models/taxes/IPINT.rb +17 -0
- data/lib/nfe/models/taxes/IPITrib.rb +51 -0
- data/lib/nfe/models/taxes/ISSQN.rb +54 -0
- data/lib/nfe/models/taxes/ISSQNtot.rb +51 -0
- data/lib/nfe/models/taxes/PISCOFINS.rb +173 -0
- data/lib/nfe/models/taxes/PISCOFINSAliq.rb +62 -0
- data/lib/nfe/models/taxes/PISCOFINSNT.rb +20 -0
- data/lib/nfe/models/taxes/PISCOFINSOutr.rb +87 -0
- data/lib/nfe/models/taxes/PISCOFINSQtde.rb +56 -0
- data/lib/nfe/models/taxes/PISCOFINSST.rb +78 -0
- data/lib/nfe/models/taxes/imposto.rb +44 -0
- data/lib/nfe/models/taxes/retTrib.rb +67 -0
- data/lib/nfe/models/total.rb +23 -0
- data/lib/nfe/models/transport/lacres.rb +16 -0
- data/lib/nfe/models/transport/retTransp.rb +49 -0
- data/lib/nfe/models/transport/transp.rb +50 -0
- data/lib/nfe/models/transport/transporta.rb +42 -0
- data/lib/nfe/models/transport/veicTransp_reboque.rb +23 -0
- data/lib/nfe/models/transport/vol.rb +50 -0
- data/lib/nfe/operations/base.rb +101 -0
- data/lib/nfe/operations/consult_emitter.rb +62 -0
- data/lib/nfe/operations/correction_letter.rb +37 -0
- data/lib/nfe/operations/event.rb +117 -0
- data/lib/nfe/operations/nfe_cancel.rb +47 -0
- data/lib/nfe/operations/nfe_discard.rb +106 -0
- data/lib/nfe/operations/nfe_send.rb +125 -0
- data/lib/nfe/operations/nfe_situation.rb +46 -0
- data/lib/nfe/operations/service_status.rb +44 -0
- data/lib/nfe/schemas/CCe_v1.00.xsd +11 -0
- data/lib/nfe/schemas/consCad_v2.00.xsd +9 -0
- data/lib/nfe/schemas/consReciNFe_v3.10.xsd +9 -0
- data/lib/nfe/schemas/consSitNFe_v3.10.xsd +9 -0
- data/lib/nfe/schemas/consStatServ_v3.10.xsd +9 -0
- data/lib/nfe/schemas/envCCe_v1.00.xsd +10 -0
- data/lib/nfe/schemas/envEventoCancNFe_v1.00.xsd +9 -0
- data/lib/nfe/schemas/enviNFe_v3.10.xsd +9 -0
- data/lib/nfe/schemas/inutNFe_v3.10.xsd +9 -0
- data/lib/nfe/schemas/leiauteCCe_v1.00.xsd +423 -0
- data/lib/nfe/schemas/leiauteConsSitNFe_v3.10.xsd +502 -0
- data/lib/nfe/schemas/leiauteConsStatServ_v3.10.xsd +98 -0
- data/lib/nfe/schemas/leiauteConsultaCadastro_v2.00.xsd +404 -0
- data/lib/nfe/schemas/leiauteEventoCancNFe_v1.00.xsd +400 -0
- data/lib/nfe/schemas/leiauteInutNFe_v3.10.xsd +193 -0
- data/lib/nfe/schemas/leiauteNFe_v3.10.xsd +7212 -0
- data/lib/nfe/schemas/nfe_v3.10.xsd +9 -0
- data/lib/nfe/schemas/procInutNFe_v3.10.xsd +9 -0
- data/lib/nfe/schemas/procNFe_v3.10.xsd +9 -0
- data/lib/nfe/schemas/retConsReciNFe_v3.10.xsd +9 -0
- data/lib/nfe/schemas/retConsSitNFe_v3.10.xsd +9 -0
- data/lib/nfe/schemas/retConsStatServ_v3.10.xsd +9 -0
- data/lib/nfe/schemas/retEnviNFe_v3.10.xsd +9 -0
- data/lib/nfe/schemas/retInutNFe_v3.10.xsd +9 -0
- data/lib/nfe/schemas/tiposBasico_v1.03.xsd +791 -0
- data/lib/nfe/schemas/tiposBasico_v3.10.xsd +877 -0
- data/lib/nfe/schemas/xmldsig-core-schema_v1.01.xsd +98 -0
- data/lib/nfe/services/dispatch/consCad.rb +57 -0
- data/lib/nfe/services/dispatch/consSitNFe.rb +43 -0
- data/lib/nfe/services/dispatch/consStatServ.rb +42 -0
- data/lib/nfe/services/dispatch/detEventoCC.rb +55 -0
- data/lib/nfe/services/dispatch/detEventoCancel.rb +45 -0
- data/lib/nfe/services/dispatch/envEvento.rb +28 -0
- data/lib/nfe/services/dispatch/enviNFe.rb +45 -0
- data/lib/nfe/services/dispatch/inutNFe.rb +93 -0
- data/lib/nfe/services/regress/infCad.rb +34 -0
- data/lib/nfe/services/regress/protNFe.rb +54 -0
- data/lib/nfe/services/regress/retConsCad.rb +27 -0
- data/lib/nfe/services/regress/retConsSitNFe.rb +26 -0
- data/lib/nfe/services/regress/retConsStatServ.rb +25 -0
- data/lib/nfe/services/regress/retEnvEvento.rb +27 -0
- data/lib/nfe/services/regress/retEnviNFe.rb +23 -0
- data/lib/nfe/services/regress/retEvento.rb +60 -0
- data/lib/nfe/services/regress/retInutNFe.rb +56 -0
- data/lib/nfe/version.rb +3 -0
- data/lib/nfe/webservices/client_soap.rb +35 -0
- data/lib/nfe/webservices/sender.rb +42 -0
- data/lib/nfe/webservices/wsinfo/base.rb +35 -0
- data/lib/nfe/webservices/wsinfo/consult_emitter.rb +16 -0
- data/lib/nfe/webservices/wsinfo/event.rb +20 -0
- data/lib/nfe/webservices/wsinfo/factory.rb +31 -0
- data/lib/nfe/webservices/wsinfo/nfe_disenable.rb +16 -0
- data/lib/nfe/webservices/wsinfo/nfe_send.rb +16 -0
- data/lib/nfe/webservices/wsinfo/nfe_situation.rb +16 -0
- data/lib/nfe/webservices/wsinfo/production/am.rb +16 -0
- data/lib/nfe/webservices/wsinfo/production/ba.rb +21 -0
- data/lib/nfe/webservices/wsinfo/production/ce.rb +16 -0
- data/lib/nfe/webservices/wsinfo/production/go.rb +16 -0
- data/lib/nfe/webservices/wsinfo/production/mg.rb +16 -0
- data/lib/nfe/webservices/wsinfo/production/ms.rb +16 -0
- data/lib/nfe/webservices/wsinfo/production/mt.rb +16 -0
- data/lib/nfe/webservices/wsinfo/production/pe.rb +16 -0
- data/lib/nfe/webservices/wsinfo/production/pr.rb +22 -0
- data/lib/nfe/webservices/wsinfo/production/rs.rb +21 -0
- data/lib/nfe/webservices/wsinfo/production/sp.rb +21 -0
- data/lib/nfe/webservices/wsinfo/production/svan.rb +24 -0
- data/lib/nfe/webservices/wsinfo/production/svrs.rb +21 -0
- data/lib/nfe/webservices/wsinfo/service_status.rb +16 -0
- data/lib/nfe/webservices/wsinfo/test/am.rb +16 -0
- data/lib/nfe/webservices/wsinfo/test/ba.rb +16 -0
- data/lib/nfe/webservices/wsinfo/test/ce.rb +16 -0
- data/lib/nfe/webservices/wsinfo/test/go.rb +16 -0
- data/lib/nfe/webservices/wsinfo/test/mg.rb +16 -0
- data/lib/nfe/webservices/wsinfo/test/ms.rb +16 -0
- data/lib/nfe/webservices/wsinfo/test/mt.rb +16 -0
- data/lib/nfe/webservices/wsinfo/test/pe.rb +16 -0
- data/lib/nfe/webservices/wsinfo/test/pr.rb +16 -0
- data/lib/nfe/webservices/wsinfo/test/rs.rb +17 -0
- data/lib/nfe/webservices/wsinfo/test/sp.rb +16 -0
- data/lib/nfe/webservices/wsinfo/test/svan.rb +20 -0
- data/lib/nfe/webservices/wsinfo/test/svrs.rb +18 -0
- data/lib/nfe/webservices/wsinfo/wsdl_base.rb +46 -0
- data/lib/nfe/webservices/wsinfo/wsdl_finder.rb +31 -0
- data/lib/xmldsig/canonicalize.rb +22 -0
- data/lib/xmldsig/canonicalizer.rb +27 -0
- data/lib/xmldsig/enveloped_signature.rb +10 -0
- data/lib/xmldsig/namespaces.rb +6 -0
- data/lib/xmldsig/reference.rb +72 -0
- data/lib/xmldsig/signature.rb +106 -0
- data/lib/xmldsig/signed_document.rb +28 -0
- data/lib/xmldsig/transform.rb +10 -0
- data/lib/xmldsig/transforms.rb +28 -0
- data/lib/xmldsig/xmldsig.rb +12 -0
- data/nf-e.gemspec +42 -0
- data/spec/nfe/factories/models/NFe.rb +9 -0
- data/spec/nfe/factories/models/avulsa.rb +16 -0
- data/spec/nfe/factories/models/bill/cobr.rb +14 -0
- data/spec/nfe/factories/models/bill/dup.rb +9 -0
- data/spec/nfe/factories/models/bill/fat.rb +10 -0
- data/spec/nfe/factories/models/cane/cana.rb +26 -0
- data/spec/nfe/factories/models/cane/deduc.rb +6 -0
- data/spec/nfe/factories/models/cane/forDia.rb +8 -0
- data/spec/nfe/factories/models/compra.rb +7 -0
- data/spec/nfe/factories/models/det.rb +11 -0
- data/spec/nfe/factories/models/emitter/emit.rb +15 -0
- data/spec/nfe/factories/models/ender.rb +17 -0
- data/spec/nfe/factories/models/entrega_retirada.rb +14 -0
- data/spec/nfe/factories/models/evento.rb +15 -0
- data/spec/nfe/factories/models/exporta.rb +6 -0
- data/spec/nfe/factories/models/ide.rb +43 -0
- data/spec/nfe/factories/models/infNFe.rb +26 -0
- data/spec/nfe/factories/models/information/infAdic.rb +23 -0
- data/spec/nfe/factories/models/information/obsContFisco.rb +8 -0
- data/spec/nfe/factories/models/information/procRef.rb +8 -0
- data/spec/nfe/factories/models/itens/CIDE.rb +7 -0
- data/spec/nfe/factories/models/itens/DI.rb +17 -0
- data/spec/nfe/factories/models/itens/adi.rb +8 -0
- data/spec/nfe/factories/models/itens/arma.rb +8 -0
- data/spec/nfe/factories/models/itens/comb.rb +9 -0
- data/spec/nfe/factories/models/itens/med.rb +9 -0
- data/spec/nfe/factories/models/itens/prod.rb +48 -0
- data/spec/nfe/factories/models/itens/veicProd.rb +28 -0
- data/spec/nfe/factories/models/recipient/dest.rb +13 -0
- data/spec/nfe/factories/models/referenced/NFref.rb +13 -0
- data/spec/nfe/factories/models/referenced/refECF.rb +7 -0
- data/spec/nfe/factories/models/referenced/refNF.rb +10 -0
- data/spec/nfe/factories/models/referenced/refNFP.rb +12 -0
- data/spec/nfe/factories/models/signature.rb +10 -0
- data/spec/nfe/factories/models/taxes/ICMS.rb +203 -0
- data/spec/nfe/factories/models/taxes/ICMS00.rb +10 -0
- data/spec/nfe/factories/models/taxes/ICMS10.rb +16 -0
- data/spec/nfe/factories/models/taxes/ICMS101.rb +8 -0
- data/spec/nfe/factories/models/taxes/ICMS102.rb +6 -0
- data/spec/nfe/factories/models/taxes/ICMS103.rb +6 -0
- data/spec/nfe/factories/models/taxes/ICMS20.rb +11 -0
- data/spec/nfe/factories/models/taxes/ICMS201.rb +14 -0
- data/spec/nfe/factories/models/taxes/ICMS202.rb +12 -0
- data/spec/nfe/factories/models/taxes/ICMS203.rb +12 -0
- data/spec/nfe/factories/models/taxes/ICMS30.rb +12 -0
- data/spec/nfe/factories/models/taxes/ICMS300.rb +6 -0
- data/spec/nfe/factories/models/taxes/ICMS40.rb +8 -0
- data/spec/nfe/factories/models/taxes/ICMS400.rb +6 -0
- data/spec/nfe/factories/models/taxes/ICMS41.rb +8 -0
- data/spec/nfe/factories/models/taxes/ICMS50.rb +8 -0
- data/spec/nfe/factories/models/taxes/ICMS500.rb +8 -0
- data/spec/nfe/factories/models/taxes/ICMS51.rb +11 -0
- data/spec/nfe/factories/models/taxes/ICMS60.rb +8 -0
- data/spec/nfe/factories/models/taxes/ICMS70.rb +17 -0
- data/spec/nfe/factories/models/taxes/ICMS90.rb +17 -0
- data/spec/nfe/factories/models/taxes/ICMS900.rb +19 -0
- data/spec/nfe/factories/models/taxes/ICMSPart.rb +19 -0
- data/spec/nfe/factories/models/taxes/ICMSST.rb +9 -0
- data/spec/nfe/factories/models/taxes/ICMSTot.rb +20 -0
- data/spec/nfe/factories/models/taxes/II.rb +8 -0
- data/spec/nfe/factories/models/taxes/IPI.rb +24 -0
- data/spec/nfe/factories/models/taxes/IPINT.rb +5 -0
- data/spec/nfe/factories/models/taxes/IPITrib.rb +10 -0
- data/spec/nfe/factories/models/taxes/ISSQN.rb +10 -0
- data/spec/nfe/factories/models/taxes/ISSQNtot.rb +9 -0
- data/spec/nfe/factories/models/taxes/PISCOFINS.rb +72 -0
- data/spec/nfe/factories/models/taxes/PISCOFINSAliq.rb +21 -0
- data/spec/nfe/factories/models/taxes/PISCOFINSNT.rb +5 -0
- data/spec/nfe/factories/models/taxes/PISCOFINSOutr.rb +23 -0
- data/spec/nfe/factories/models/taxes/PISCOFINSQtde.rb +17 -0
- data/spec/nfe/factories/models/taxes/PISCOFINSST.rb +21 -0
- data/spec/nfe/factories/models/taxes/imposto.rb +15 -0
- data/spec/nfe/factories/models/taxes/retTrib.rb +11 -0
- data/spec/nfe/factories/models/total.rb +7 -0
- data/spec/nfe/factories/models/transport/lacres.rb +6 -0
- data/spec/nfe/factories/models/transport/retTransp.rb +10 -0
- data/spec/nfe/factories/models/transport/transp.rb +18 -0
- data/spec/nfe/factories/models/transport/transporta.rb +11 -0
- data/spec/nfe/factories/models/transport/veicTranspReboque.rb +8 -0
- data/spec/nfe/factories/models/transport/vol.rb +17 -0
- data/spec/nfe/factories/services/consCad.rb +10 -0
- data/spec/nfe/factories/services/consSitNFe.rb +12 -0
- data/spec/nfe/factories/services/consStatServ.rb +7 -0
- data/spec/nfe/factories/services/detEventoCC.rb +6 -0
- data/spec/nfe/factories/services/detEventoCancel.rb +7 -0
- data/spec/nfe/factories/services/envEvento.rb +7 -0
- data/spec/nfe/factories/services/enviNFe.rb +11 -0
- data/spec/nfe/factories/services/inutNFe.rb +15 -0
- data/spec/nfe/factories/services/protNFe.rb +14 -0
- data/spec/nfe/factories/services/retEvento.rb +15 -0
- data/spec/nfe/factories/services/retInutNFe.rb +19 -0
- data/spec/nfe/fixtures/cassettes/correction_letter/error_in_lot.yml +176 -0
- data/spec/nfe/fixtures/cassettes/correction_letter/invalid_response.yml +175 -0
- data/spec/nfe/fixtures/cassettes/correction_letter/rejected.yml +177 -0
- data/spec/nfe/fixtures/cassettes/correction_letter/success.yml +177 -0
- data/spec/nfe/fixtures/cassettes/nfe_cancel/error_in_lot.yml +176 -0
- data/spec/nfe/fixtures/cassettes/nfe_cancel/invalid_response.yml +174 -0
- data/spec/nfe/fixtures/cassettes/nfe_cancel/rejected.yml +177 -0
- data/spec/nfe/fixtures/cassettes/nfe_cancel/success.yml +177 -0
- data/spec/nfe/fixtures/cassettes/nfe_discard/invalid_response.yml +175 -0
- data/spec/nfe/fixtures/cassettes/nfe_discard/rejected.yml +176 -0
- data/spec/nfe/fixtures/cassettes/nfe_discard/success.yml +176 -0
- data/spec/nfe/fixtures/cassettes/nfe_send/authorized.yml +197 -0
- data/spec/nfe/fixtures/cassettes/nfe_send/denied.yml +198 -0
- data/spec/nfe/fixtures/cassettes/nfe_send/error_in_lot.yml +195 -0
- data/spec/nfe/fixtures/cassettes/nfe_send/invalid_response.yml +193 -0
- data/spec/nfe/fixtures/cassettes/nfe_send/rejected.yml +198 -0
- data/spec/nfe/fixtures/certificate.pem +16 -0
- data/spec/nfe/fixtures/invalid_nfe.xml +1 -0
- data/spec/nfe/fixtures/nfe.xml +1 -0
- data/spec/nfe/fixtures/private-key.pem +15 -0
- data/spec/nfe/helpers/nfe_key_spec.rb +87 -0
- data/spec/nfe/helpers/schema_validator_spec.rb +34 -0
- data/spec/nfe/helpers/signer_spec.rb +22 -0
- data/spec/nfe/helpers/uf_helper_spec.rb +331 -0
- data/spec/nfe/helpers/xml_model/attribute_base_spec.rb +63 -0
- data/spec/nfe/helpers/xml_model/attribute_bigdecimal_spec.rb +32 -0
- data/spec/nfe/helpers/xml_model/attribute_collection_spec.rb +46 -0
- data/spec/nfe/helpers/xml_model/attribute_date_spec.rb +40 -0
- data/spec/nfe/helpers/xml_model/attribute_datetime_spec.rb +41 -0
- data/spec/nfe/helpers/xml_model/attribute_enumerize_spec.rb +34 -0
- data/spec/nfe/helpers/xml_model/attribute_float_spec.rb +40 -0
- data/spec/nfe/helpers/xml_model/attribute_integer_spec.rb +33 -0
- data/spec/nfe/helpers/xml_model/attribute_node_spec.rb +44 -0
- data/spec/nfe/helpers/xml_model/attribute_nodeattribute_spec.rb +33 -0
- data/spec/nfe/helpers/xml_model/attribute_text_spec.rb +173 -0
- data/spec/nfe/helpers/xml_model/factory_spec.rb +102 -0
- data/spec/nfe/helpers/xml_model/nfe_model_spec.rb +225 -0
- data/spec/nfe/models/NFe_spec.rb +48 -0
- data/spec/nfe/models/avulsa_spec.rb +140 -0
- data/spec/nfe/models/bigdecimal_greater_than_validator_spec.rb +33 -0
- data/spec/nfe/models/bigdecimal_less_than_validator_spec.rb +33 -0
- data/spec/nfe/models/bill/cobr_spec.rb +98 -0
- data/spec/nfe/models/bill/dup_spec.rb +80 -0
- data/spec/nfe/models/bill/fat_spec.rb +129 -0
- data/spec/nfe/models/cane/cana_spec.rb +161 -0
- data/spec/nfe/models/cane/deduc_spec.rb +40 -0
- data/spec/nfe/models/cane/forDia_spec.rb +51 -0
- data/spec/nfe/models/compra_spec.rb +78 -0
- data/spec/nfe/models/det_spec.rb +94 -0
- data/spec/nfe/models/emitter/emit_spec.rb +150 -0
- data/spec/nfe/models/ender_spec.rb +129 -0
- data/spec/nfe/models/entrega_retirada_spec.rb +159 -0
- data/spec/nfe/models/evento_spec.rb +52 -0
- data/spec/nfe/models/exporta_spec.rb +54 -0
- data/spec/nfe/models/ide_spec.rb +215 -0
- data/spec/nfe/models/infNFe_spec.rb +292 -0
- data/spec/nfe/models/information/infAdic_spec.rb +126 -0
- data/spec/nfe/models/information/obsContFisco_spec.rb +37 -0
- data/spec/nfe/models/information/procRef_spec.rb +41 -0
- data/spec/nfe/models/itens/CIDE_spec.rb +57 -0
- data/spec/nfe/models/itens/DI_spec.rb +67 -0
- data/spec/nfe/models/itens/adi_spec.rb +79 -0
- data/spec/nfe/models/itens/arma_spec.rb +43 -0
- data/spec/nfe/models/itens/comb_spec.rb +103 -0
- data/spec/nfe/models/itens/med_spec.rb +52 -0
- data/spec/nfe/models/itens/prod_spec.rb +249 -0
- data/spec/nfe/models/itens/veicProd_spec.rb +173 -0
- data/spec/nfe/models/nfeProc_spec.rb +21 -0
- data/spec/nfe/models/procEventoNFe_spec.rb +21 -0
- data/spec/nfe/models/procInutNFe_spec.rb +21 -0
- data/spec/nfe/models/recipient/dest_spec.rb +152 -0
- data/spec/nfe/models/referenced/NFref_spec.rb +102 -0
- data/spec/nfe/models/referenced/refECF_spec.rb +59 -0
- data/spec/nfe/models/referenced/refNFP_spec.rb +115 -0
- data/spec/nfe/models/referenced/refNF_spec.rb +82 -0
- data/spec/nfe/models/shared_examples_for_tdec_0302.rb +35 -0
- data/spec/nfe/models/shared_examples_for_tdec_0803.rb +21 -0
- data/spec/nfe/models/shared_examples_for_tdec_1104.rb +38 -0
- data/spec/nfe/models/shared_examples_for_tdec_1204.rb +34 -0
- data/spec/nfe/models/shared_examples_for_tdec_1302.rb +34 -0
- data/spec/nfe/models/signature_spec.rb +56 -0
- data/spec/nfe/models/taxes/ICMS00_spec.rb +27 -0
- data/spec/nfe/models/taxes/ICMS101_spec.rb +21 -0
- data/spec/nfe/models/taxes/ICMS102_spec.rb +15 -0
- data/spec/nfe/models/taxes/ICMS103_spec.rb +15 -0
- data/spec/nfe/models/taxes/ICMS10_spec.rb +83 -0
- data/spec/nfe/models/taxes/ICMS201_spec.rb +67 -0
- data/spec/nfe/models/taxes/ICMS202_spec.rb +61 -0
- data/spec/nfe/models/taxes/ICMS203_spec.rb +61 -0
- data/spec/nfe/models/taxes/ICMS20_spec.rb +30 -0
- data/spec/nfe/models/taxes/ICMS300_spec.rb +16 -0
- data/spec/nfe/models/taxes/ICMS30_spec.rb +67 -0
- data/spec/nfe/models/taxes/ICMS400_spec.rb +15 -0
- data/spec/nfe/models/taxes/ICMS40_spec.rb +51 -0
- data/spec/nfe/models/taxes/ICMS41_spec.rb +51 -0
- data/spec/nfe/models/taxes/ICMS500_spec.rb +46 -0
- data/spec/nfe/models/taxes/ICMS50_spec.rb +51 -0
- data/spec/nfe/models/taxes/ICMS51_spec.rb +55 -0
- data/spec/nfe/models/taxes/ICMS60_spec.rb +52 -0
- data/spec/nfe/models/taxes/ICMS70_spec.rb +84 -0
- data/spec/nfe/models/taxes/ICMS900_spec.rb +80 -0
- data/spec/nfe/models/taxes/ICMS90_spec.rb +83 -0
- data/spec/nfe/models/taxes/ICMSPart_spec.rb +141 -0
- data/spec/nfe/models/taxes/ICMSST_spec.rb +60 -0
- data/spec/nfe/models/taxes/ICMSTot_spec.rb +119 -0
- data/spec/nfe/models/taxes/ICMS_spec.rb +159 -0
- data/spec/nfe/models/taxes/II_spec.rb +58 -0
- data/spec/nfe/models/taxes/IPINT_spec.rb +39 -0
- data/spec/nfe/models/taxes/IPITrib_spec.rb +55 -0
- data/spec/nfe/models/taxes/IPI_spec.rb +128 -0
- data/spec/nfe/models/taxes/ISSQN_spec.rb +62 -0
- data/spec/nfe/models/taxes/ISSQNtot_spec.rb +72 -0
- data/spec/nfe/models/taxes/PISCOFINSAliq_spec.rb +22 -0
- data/spec/nfe/models/taxes/PISCOFINSNT_spec.rb +12 -0
- data/spec/nfe/models/taxes/PISCOFINSOutr_spec.rb +37 -0
- data/spec/nfe/models/taxes/PISCOFINSQtde_spec.rb +21 -0
- data/spec/nfe/models/taxes/PISCOFINSST_spec.rb +60 -0
- data/spec/nfe/models/taxes/PISCOFINS_spec.rb +68 -0
- data/spec/nfe/models/taxes/imposto_spec.rb +159 -0
- data/spec/nfe/models/taxes/retTrib_spec.rb +78 -0
- data/spec/nfe/models/taxes/shared_examples_for_COFINSAliq.rb +41 -0
- data/spec/nfe/models/taxes/shared_examples_for_COFINSNT.rb +35 -0
- data/spec/nfe/models/taxes/shared_examples_for_COFINSOutr.rb +119 -0
- data/spec/nfe/models/taxes/shared_examples_for_COFINSQtde.rb +41 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS00.rb +45 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS10.rb +57 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS101.rb +41 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS102.rb +37 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS103.rb +37 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS20.rb +47 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS201.rb +53 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS202.rb +49 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS203.rb +49 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS30.rb +49 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS300.rb +37 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS40.rb +41 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS400.rb +37 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS41.rb +41 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS50.rb +41 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS500.rb +41 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS51.rb +47 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS60.rb +41 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS70.rb +59 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS90.rb +59 -0
- data/spec/nfe/models/taxes/shared_examples_for_ICMS900.rb +63 -0
- data/spec/nfe/models/taxes/shared_examples_for_PISAliq.rb +41 -0
- data/spec/nfe/models/taxes/shared_examples_for_PISNT.rb +35 -0
- data/spec/nfe/models/taxes/shared_examples_for_PISOutr.rb +119 -0
- data/spec/nfe/models/taxes/shared_examples_for_PISQtde.rb +41 -0
- data/spec/nfe/models/total_spec.rb +144 -0
- data/spec/nfe/models/transport/lacres_spec.rb +35 -0
- data/spec/nfe/models/transport/retTransp_spec.rb +69 -0
- data/spec/nfe/models/transport/transp_spec.rb +149 -0
- data/spec/nfe/models/transport/transporta_spec.rb +128 -0
- data/spec/nfe/models/transport/veicTranspReboque_spec.rb +83 -0
- data/spec/nfe/models/transport/vol_spec.rb +97 -0
- data/spec/nfe/operations/consult_emitter_spec.rb +31 -0
- data/spec/nfe/operations/correction_letter_spec.rb +198 -0
- data/spec/nfe/operations/nfe_cancel_spec.rb +223 -0
- data/spec/nfe/operations/nfe_discard_spec.rb +172 -0
- data/spec/nfe/operations/nfe_send_spec.rb +220 -0
- data/spec/nfe/operations/nfe_situation_spec.rb +14 -0
- data/spec/nfe/operations/service_status_spec.rb +11 -0
- data/spec/nfe/operations/shared_examples_for_operations.rb +84 -0
- data/spec/nfe/services/dispatch/consCad_spec.rb +80 -0
- data/spec/nfe/services/dispatch/consSitNFe_spec.rb +29 -0
- data/spec/nfe/services/dispatch/consStatServ_spec.rb +25 -0
- data/spec/nfe/services/dispatch/detEventoCC_spec.rb +45 -0
- data/spec/nfe/services/dispatch/detEventoCancel_spec.rb +39 -0
- data/spec/nfe/services/dispatch/envEvento_spec.rb +33 -0
- data/spec/nfe/services/dispatch/enviNFe_spec.rb +27 -0
- data/spec/nfe/services/dispatch/inutNFe_spec.rb +51 -0
- data/spec/nfe/services/regress/infCad_spec.rb +61 -0
- data/spec/nfe/services/regress/protNFe_spec.rb +56 -0
- data/spec/nfe/services/regress/retConsCad_spec.rb +67 -0
- data/spec/nfe/services/regress/retConsSitNFe_spec.rb +46 -0
- data/spec/nfe/services/regress/retConsStatServ_spec.rb +34 -0
- data/spec/nfe/services/regress/retEnvEvento_spec.rb +44 -0
- data/spec/nfe/services/regress/retEnviNFe_spec.rb +44 -0
- data/spec/nfe/services/regress/retEvento_spec.rb +66 -0
- data/spec/nfe/services/regress/retInutNFe_spec.rb +70 -0
- data/spec/nfe/webservices/client_soap_spec.rb +32 -0
- data/spec/nfe/webservices/fixtures/nfe_status_servico2.wsdl +62 -0
- data/spec/nfe/webservices/fixtures/retConsCad.xml +1 -0
- data/spec/nfe/webservices/fixtures/retConsSitNFe.xml +1 -0
- data/spec/nfe/webservices/fixtures/retConsStatServ.xml +1 -0
- data/spec/nfe/webservices/fixtures/retEnvEventoCancNFe.xml +1 -0
- data/spec/nfe/webservices/fixtures/retEnviNFe.xml +1 -0
- data/spec/nfe/webservices/fixtures/retInutNFe.xml +1 -0
- data/spec/nfe/webservices/sender_spec.rb +65 -0
- data/spec/nfe/webservices/wsinfo/consult_emitter_spec.rb +37 -0
- data/spec/nfe/webservices/wsinfo/event_spec.rb +50 -0
- data/spec/nfe/webservices/wsinfo/factory_spec.rb +50 -0
- data/spec/nfe/webservices/wsinfo/nfe_disenable_spec.rb +37 -0
- data/spec/nfe/webservices/wsinfo/nfe_send_spec.rb +37 -0
- data/spec/nfe/webservices/wsinfo/nfe_situation_spec.rb +37 -0
- data/spec/nfe/webservices/wsinfo/production/am_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/production/ba_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/production/ce_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/production/go_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/production/mg_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/production/ms_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/production/mt_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/production/pe_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/production/pr_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/production/rs_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/production/sp_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/production/svan_spec.rb +26 -0
- data/spec/nfe/webservices/wsinfo/production/svrs_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/service_status_spec.rb +37 -0
- data/spec/nfe/webservices/wsinfo/shared_examples_for_wsdl.rb +39 -0
- data/spec/nfe/webservices/wsinfo/test/am_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/test/ba_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/test/ce_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/test/go_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/test/mg_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/test/ms_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/test/mt_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/test/pe_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/test/pr_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/test/rs_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/test/sp_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/test/svan_spec.rb +26 -0
- data/spec/nfe/webservices/wsinfo/test/svrs_spec.rb +21 -0
- data/spec/nfe/webservices/wsinfo/wsdl_finder_spec.rb +56 -0
- data/spec/spec_helper.rb +33 -0
- data/spec/support/utilities.rb +3 -0
- data/spec/xmldsig/canonicalizer_spec.rb +43 -0
- data/spec/xmldsig/enveloped_signature_spec.rb +19 -0
- data/spec/xmldsig/fixtures/certificate.cer +16 -0
- data/spec/xmldsig/fixtures/certificate2.cer +16 -0
- data/spec/xmldsig/fixtures/key.pem +15 -0
- data/spec/xmldsig/fixtures/signed.xml +23 -0
- data/spec/xmldsig/fixtures/unsigned.xml +26 -0
- data/spec/xmldsig/fixtures/unsigned_multiple_references.xml +43 -0
- data/spec/xmldsig/fixtures/unsigned_nested_signature.xml +50 -0
- data/spec/xmldsig/reference_spec.rb +62 -0
- data/spec/xmldsig/signature_spec.rb +119 -0
- data/spec/xmldsig/signed_document_spec.rb +97 -0
- metadata +1201 -0
@@ -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="leiauteNFe_v3.10.xsd"/>
|
4
|
+
<xs:element name="enviNFe" type="TEnviNFe">
|
5
|
+
<xs:annotation>
|
6
|
+
<xs:documentation>Schema XML de validação do Pedido de Concessão de Autorização 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="leiauteInutNFe_v3.10.xsd"/>
|
4
|
+
<xs:element name="inutNFe" type="TInutNFe">
|
5
|
+
<xs:annotation>
|
6
|
+
<xs:documentation>Schema XML de validação do Pedido de Inutilização de Numeração da Nota Fiscal Eletrônica</xs:documentation>
|
7
|
+
</xs:annotation>
|
8
|
+
</xs:element>
|
9
|
+
</xs:schema>
|
@@ -0,0 +1,423 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!-- 13-05-2011 - correcao do pattern da data para aceitar -4:00 -->
|
3
|
+
<!-- 03-03-2011 - correcao do pattern da data -->
|
4
|
+
<!-- 03-03-2011 - correcao do pattern nSeq rejeitar zerno nao significativo -->
|
5
|
+
<!-- 03-03-2011 - acrescimo do xCondUso no detalhamento da carta de correcao -->
|
6
|
+
<!-- 03-03-2011 - correcao da literal versao no enumeration da versao -->
|
7
|
+
<!-- 03-03-2011 - correcao do nome da tag raiz da carta de correcao -->
|
8
|
+
<!-- PL_006CC leiauteCCe 30/08/2010 -->
|
9
|
+
<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">
|
10
|
+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
|
11
|
+
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
|
12
|
+
<xs:complexType name="TEvento">
|
13
|
+
<xs:annotation>
|
14
|
+
<xs:documentation>Tipo Evento</xs:documentation>
|
15
|
+
</xs:annotation>
|
16
|
+
<xs:sequence>
|
17
|
+
<xs:element name="infEvento">
|
18
|
+
<xs:complexType>
|
19
|
+
<xs:sequence>
|
20
|
+
<xs:element name="cOrgao" type="TCOrgaoIBGE">
|
21
|
+
<xs:annotation>
|
22
|
+
<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>
|
23
|
+
</xs:annotation>
|
24
|
+
</xs:element>
|
25
|
+
<xs:element name="tpAmb" type="TAmb">
|
26
|
+
<xs:annotation>
|
27
|
+
<xs:documentation>Identificação do Ambiente:
|
28
|
+
1 - Produção
|
29
|
+
2 - Homologação</xs:documentation>
|
30
|
+
</xs:annotation>
|
31
|
+
</xs:element>
|
32
|
+
<xs:choice>
|
33
|
+
<xs:annotation>
|
34
|
+
<xs:documentation>Identificação do autor do evento</xs:documentation>
|
35
|
+
</xs:annotation>
|
36
|
+
<xs:element name="CNPJ" type="TCnpjOpc">
|
37
|
+
<xs:annotation>
|
38
|
+
<xs:documentation>CNPJ</xs:documentation>
|
39
|
+
</xs:annotation>
|
40
|
+
</xs:element>
|
41
|
+
<xs:element name="CPF" type="TCpf">
|
42
|
+
<xs:annotation>
|
43
|
+
<xs:documentation>CPF</xs:documentation>
|
44
|
+
</xs:annotation>
|
45
|
+
</xs:element>
|
46
|
+
</xs:choice>
|
47
|
+
<xs:element name="chNFe" type="TChNFe">
|
48
|
+
<xs:annotation>
|
49
|
+
<xs:documentation>Chave de Acesso da NF-e vinculada ao evento</xs:documentation>
|
50
|
+
</xs:annotation>
|
51
|
+
</xs:element>
|
52
|
+
<xs:element name="dhEvento">
|
53
|
+
<xs:annotation>
|
54
|
+
<xs:documentation>Data e Hora do Evento, formato UTC (AAAA-MM-DDThh:mm:ssTZD, onde TZD = +hh:mm ou -hh:mm)</xs:documentation>
|
55
|
+
</xs:annotation>
|
56
|
+
<xs:simpleType>
|
57
|
+
<xs:restriction base="xs:string">
|
58
|
+
<xs:whiteSpace value="preserve"/>
|
59
|
+
<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[1-4]:00"/>
|
60
|
+
</xs:restriction>
|
61
|
+
</xs:simpleType>
|
62
|
+
</xs:element>
|
63
|
+
<xs:element name="tpEvento">
|
64
|
+
<xs:annotation>
|
65
|
+
<xs:documentation>Tipo do Evento</xs:documentation>
|
66
|
+
</xs:annotation>
|
67
|
+
<xs:simpleType>
|
68
|
+
<xs:restriction base="xs:string">
|
69
|
+
<xs:whiteSpace value="preserve"/>
|
70
|
+
<xs:pattern value="[0-9]{6}"/>
|
71
|
+
<xs:enumeration value="110110"/>
|
72
|
+
</xs:restriction>
|
73
|
+
</xs:simpleType>
|
74
|
+
</xs:element>
|
75
|
+
<xs:element name="nSeqEvento">
|
76
|
+
<xs:annotation>
|
77
|
+
<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>
|
78
|
+
</xs:annotation>
|
79
|
+
<xs:simpleType>
|
80
|
+
<xs:restriction base="xs:string">
|
81
|
+
<xs:whiteSpace value="preserve"/>
|
82
|
+
<xs:pattern value="[1-9]|[1][0-9]{0,1}"/>
|
83
|
+
</xs:restriction>
|
84
|
+
</xs:simpleType>
|
85
|
+
</xs:element>
|
86
|
+
<xs:element name="verEvento">
|
87
|
+
<xs:annotation>
|
88
|
+
<xs:documentation>Versão do Tipo do Evento</xs:documentation>
|
89
|
+
</xs:annotation>
|
90
|
+
<xs:simpleType>
|
91
|
+
<xs:restriction base="xs:string">
|
92
|
+
<xs:whiteSpace value="preserve"/>
|
93
|
+
<xs:enumeration value="1.00"/>
|
94
|
+
</xs:restriction>
|
95
|
+
</xs:simpleType>
|
96
|
+
</xs:element>
|
97
|
+
<xs:element name="detEvento">
|
98
|
+
<xs:annotation>
|
99
|
+
<xs:documentation>Evento do carta de correção e1101110</xs:documentation>
|
100
|
+
</xs:annotation>
|
101
|
+
<xs:complexType>
|
102
|
+
<xs:sequence>
|
103
|
+
<xs:element name="descEvento">
|
104
|
+
<xs:annotation>
|
105
|
+
<xs:documentation>Descrição do Evento - “Carta de Correção”</xs:documentation>
|
106
|
+
</xs:annotation>
|
107
|
+
<xs:simpleType>
|
108
|
+
<xs:restriction base="xs:string">
|
109
|
+
<xs:whiteSpace value="preserve"/>
|
110
|
+
<xs:enumeration value="Carta de Correção"/>
|
111
|
+
<xs:enumeration value="Carta de Correcao"/>
|
112
|
+
</xs:restriction>
|
113
|
+
</xs:simpleType>
|
114
|
+
</xs:element>
|
115
|
+
<xs:element name="xCorrecao">
|
116
|
+
<xs:annotation>
|
117
|
+
<xs:documentation>Correção a ser considerada</xs:documentation>
|
118
|
+
</xs:annotation>
|
119
|
+
<xs:simpleType>
|
120
|
+
<xs:restriction base="xs:string">
|
121
|
+
<xs:whiteSpace value="preserve"/>
|
122
|
+
<xs:minLength value="15"/>
|
123
|
+
<xs:maxLength value="1000"/>
|
124
|
+
<xs:pattern value="[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}"/>
|
125
|
+
</xs:restriction>
|
126
|
+
</xs:simpleType>
|
127
|
+
</xs:element>
|
128
|
+
<xs:element name="xCondUso">
|
129
|
+
<xs:annotation>
|
130
|
+
<xs:documentation>Texto Fixo com as condições de uso da Carta de Correção</xs:documentation>
|
131
|
+
</xs:annotation>
|
132
|
+
<xs:simpleType>
|
133
|
+
<xs:restriction base="xs:string">
|
134
|
+
<xs:whiteSpace value="preserve"/>
|
135
|
+
<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."/>
|
136
|
+
<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."/>
|
137
|
+
</xs:restriction>
|
138
|
+
</xs:simpleType>
|
139
|
+
</xs:element>
|
140
|
+
</xs:sequence>
|
141
|
+
<xs:attribute name="versao" use="required">
|
142
|
+
<xs:simpleType>
|
143
|
+
<xs:restriction base="xs:string">
|
144
|
+
<xs:whiteSpace value="preserve"/>
|
145
|
+
<xs:enumeration value="1.00"/>
|
146
|
+
</xs:restriction>
|
147
|
+
</xs:simpleType>
|
148
|
+
</xs:attribute>
|
149
|
+
</xs:complexType>
|
150
|
+
</xs:element>
|
151
|
+
</xs:sequence>
|
152
|
+
<xs:attribute name="Id" use="required">
|
153
|
+
<xs:annotation>
|
154
|
+
<xs:documentation>Identificador da TAG a ser assinada, a regra de formação do Id é:
|
155
|
+
“ID” + tpEvento + chave da NF-e + nSeqEvento</xs:documentation>
|
156
|
+
</xs:annotation>
|
157
|
+
<xs:simpleType>
|
158
|
+
<xs:restriction base="xs:ID">
|
159
|
+
<xs:pattern value="ID[0-9]{52}"/>
|
160
|
+
</xs:restriction>
|
161
|
+
</xs:simpleType>
|
162
|
+
</xs:attribute>
|
163
|
+
</xs:complexType>
|
164
|
+
</xs:element>
|
165
|
+
<xs:element ref="ds:Signature"/>
|
166
|
+
</xs:sequence>
|
167
|
+
<xs:attribute name="versao" type="TVerEvento" use="required"/>
|
168
|
+
</xs:complexType>
|
169
|
+
<xs:complexType name="TretEvento">
|
170
|
+
<xs:annotation>
|
171
|
+
<xs:documentation>Tipo retorno do Evento</xs:documentation>
|
172
|
+
</xs:annotation>
|
173
|
+
<xs:sequence>
|
174
|
+
<xs:element name="infEvento">
|
175
|
+
<xs:complexType>
|
176
|
+
<xs:sequence>
|
177
|
+
<xs:element name="tpAmb" type="TAmb">
|
178
|
+
<xs:annotation>
|
179
|
+
<xs:documentation>Identificação do Ambiente:
|
180
|
+
1 - Produção
|
181
|
+
2 - Homologação</xs:documentation>
|
182
|
+
</xs:annotation>
|
183
|
+
</xs:element>
|
184
|
+
<xs:element name="verAplic" type="TVerAplic">
|
185
|
+
<xs:annotation>
|
186
|
+
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
|
187
|
+
</xs:annotation>
|
188
|
+
</xs:element>
|
189
|
+
<xs:element name="cOrgao" type="TCOrgaoIBGE">
|
190
|
+
<xs:annotation>
|
191
|
+
<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>
|
192
|
+
</xs:annotation>
|
193
|
+
</xs:element>
|
194
|
+
<xs:element name="cStat" type="TStat">
|
195
|
+
<xs:annotation>
|
196
|
+
<xs:documentation>Código do status da registro do Evento</xs:documentation>
|
197
|
+
</xs:annotation>
|
198
|
+
</xs:element>
|
199
|
+
<xs:element name="xMotivo" type="TMotivo">
|
200
|
+
<xs:annotation>
|
201
|
+
<xs:documentation>Descrição literal do status do registro do Evento</xs:documentation>
|
202
|
+
</xs:annotation>
|
203
|
+
</xs:element>
|
204
|
+
<xs:element name="chNFe" type="TChNFe" minOccurs="0">
|
205
|
+
<xs:annotation>
|
206
|
+
<xs:documentation>Chave de Acesso NF-e vinculada</xs:documentation>
|
207
|
+
</xs:annotation>
|
208
|
+
</xs:element>
|
209
|
+
<xs:element name="tpEvento" minOccurs="0">
|
210
|
+
<xs:annotation>
|
211
|
+
<xs:documentation>Tipo do Evento vinculado</xs:documentation>
|
212
|
+
</xs:annotation>
|
213
|
+
<xs:simpleType>
|
214
|
+
<xs:restriction base="xs:string">
|
215
|
+
<xs:whiteSpace value="preserve"/>
|
216
|
+
<xs:pattern value="[0-9]{6}"/>
|
217
|
+
</xs:restriction>
|
218
|
+
</xs:simpleType>
|
219
|
+
</xs:element>
|
220
|
+
<xs:element name="xEvento" minOccurs="0">
|
221
|
+
<xs:annotation>
|
222
|
+
<xs:documentation>Descrição do Evento</xs:documentation>
|
223
|
+
</xs:annotation>
|
224
|
+
<xs:simpleType>
|
225
|
+
<xs:restriction base="TString">
|
226
|
+
<xs:minLength value="5"/>
|
227
|
+
<xs:maxLength value="60"/>
|
228
|
+
</xs:restriction>
|
229
|
+
</xs:simpleType>
|
230
|
+
</xs:element>
|
231
|
+
<xs:element name="nSeqEvento" minOccurs="0">
|
232
|
+
<xs:annotation>
|
233
|
+
<xs:documentation>Seqüencial do evento</xs:documentation>
|
234
|
+
</xs:annotation>
|
235
|
+
<xs:simpleType>
|
236
|
+
<xs:restriction base="xs:string">
|
237
|
+
<xs:whiteSpace value="preserve"/>
|
238
|
+
<xs:pattern value="[1-9][0-9]{0,1}"/>
|
239
|
+
</xs:restriction>
|
240
|
+
</xs:simpleType>
|
241
|
+
</xs:element>
|
242
|
+
<xs:choice minOccurs="0">
|
243
|
+
<xs:annotation>
|
244
|
+
<xs:documentation>Identificação do destinatário da NF-e</xs:documentation>
|
245
|
+
</xs:annotation>
|
246
|
+
<xs:element name="CNPJDest" type="TCnpjOpc">
|
247
|
+
<xs:annotation>
|
248
|
+
<xs:documentation>CNPJ Destinatário</xs:documentation>
|
249
|
+
</xs:annotation>
|
250
|
+
</xs:element>
|
251
|
+
<xs:element name="CPFDest" type="TCpf">
|
252
|
+
<xs:annotation>
|
253
|
+
<xs:documentation>CPF Destiantário</xs:documentation>
|
254
|
+
</xs:annotation>
|
255
|
+
</xs:element>
|
256
|
+
</xs:choice>
|
257
|
+
<xs:element name="emailDest" minOccurs="0">
|
258
|
+
<xs:annotation>
|
259
|
+
<xs:documentation>email do destinatário</xs:documentation>
|
260
|
+
</xs:annotation>
|
261
|
+
<xs:simpleType>
|
262
|
+
<xs:restriction base="TString">
|
263
|
+
<xs:minLength value="1"/>
|
264
|
+
<xs:maxLength value="60"/>
|
265
|
+
</xs:restriction>
|
266
|
+
</xs:simpleType>
|
267
|
+
</xs:element>
|
268
|
+
<xs:element name="dhRegEvento">
|
269
|
+
<xs:annotation>
|
270
|
+
<xs:documentation>Data e Hora de do recebimento do evento ou do registro do evento formato UTC AAAA-MM-DDThh:mm:ssTZD.</xs:documentation>
|
271
|
+
</xs:annotation>
|
272
|
+
<xs:simpleType>
|
273
|
+
<xs:restriction base="xs:string">
|
274
|
+
<xs:whiteSpace value="preserve"/>
|
275
|
+
<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[1-4]:00"/>
|
276
|
+
</xs:restriction>
|
277
|
+
</xs:simpleType>
|
278
|
+
</xs:element>
|
279
|
+
<xs:element name="nProt" type="TProt" minOccurs="0">
|
280
|
+
<xs:annotation>
|
281
|
+
<xs:documentation>Número do protocolo de registro do evento</xs:documentation>
|
282
|
+
</xs:annotation>
|
283
|
+
</xs:element>
|
284
|
+
</xs:sequence>
|
285
|
+
<xs:attribute name="Id" use="optional">
|
286
|
+
<xs:simpleType>
|
287
|
+
<xs:restriction base="xs:ID">
|
288
|
+
<xs:pattern value="ID[0-9]{15}"/>
|
289
|
+
</xs:restriction>
|
290
|
+
</xs:simpleType>
|
291
|
+
</xs:attribute>
|
292
|
+
</xs:complexType>
|
293
|
+
</xs:element>
|
294
|
+
<xs:element ref="ds:Signature" minOccurs="0"/>
|
295
|
+
</xs:sequence>
|
296
|
+
<xs:attribute name="versao" type="TVerEvento" use="required"/>
|
297
|
+
</xs:complexType>
|
298
|
+
<xs:complexType name="TEnvEvento">
|
299
|
+
<xs:annotation>
|
300
|
+
<xs:documentation> Tipo Lote de Envio</xs:documentation>
|
301
|
+
</xs:annotation>
|
302
|
+
<xs:sequence>
|
303
|
+
<xs:element name="idLote">
|
304
|
+
<xs:simpleType>
|
305
|
+
<xs:restriction base="xs:string">
|
306
|
+
<xs:whiteSpace value="preserve"/>
|
307
|
+
<xs:pattern value="[0-9]{1,15}"/>
|
308
|
+
</xs:restriction>
|
309
|
+
</xs:simpleType>
|
310
|
+
</xs:element>
|
311
|
+
<xs:element name="evento" type="TEvento" maxOccurs="20"/>
|
312
|
+
</xs:sequence>
|
313
|
+
<xs:attribute name="versao" type="TVerEnvEvento" use="required"/>
|
314
|
+
</xs:complexType>
|
315
|
+
<xs:complexType name="TRetEnvEvento">
|
316
|
+
<xs:annotation>
|
317
|
+
<xs:documentation> Tipo Retorno de Lote de Envio</xs:documentation>
|
318
|
+
</xs:annotation>
|
319
|
+
<xs:sequence>
|
320
|
+
<xs:element name="idLote">
|
321
|
+
<xs:simpleType>
|
322
|
+
<xs:restriction base="xs:string">
|
323
|
+
<xs:whiteSpace value="preserve"/>
|
324
|
+
<xs:pattern value="[0-9]{1,15}"/>
|
325
|
+
</xs:restriction>
|
326
|
+
</xs:simpleType>
|
327
|
+
</xs:element>
|
328
|
+
<xs:element name="tpAmb" type="TAmb">
|
329
|
+
<xs:annotation>
|
330
|
+
<xs:documentation>Identificação do Ambiente:
|
331
|
+
1 - Produção
|
332
|
+
2 - Homologação</xs:documentation>
|
333
|
+
</xs:annotation>
|
334
|
+
</xs:element>
|
335
|
+
<xs:element name="verAplic" type="TVerAplic">
|
336
|
+
<xs:annotation>
|
337
|
+
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
|
338
|
+
</xs:annotation>
|
339
|
+
</xs:element>
|
340
|
+
<xs:element name="cOrgao" type="TCOrgaoIBGE">
|
341
|
+
<xs:annotation>
|
342
|
+
<xs:documentation>Código do òrgao que registrou o Evento</xs:documentation>
|
343
|
+
</xs:annotation>
|
344
|
+
</xs:element>
|
345
|
+
<xs:element name="cStat" type="TStat">
|
346
|
+
<xs:annotation>
|
347
|
+
<xs:documentation>Código do status da registro do Evento</xs:documentation>
|
348
|
+
</xs:annotation>
|
349
|
+
</xs:element>
|
350
|
+
<xs:element name="xMotivo" type="TMotivo">
|
351
|
+
<xs:annotation>
|
352
|
+
<xs:documentation>Descrição literal do status do registro do Evento</xs:documentation>
|
353
|
+
</xs:annotation>
|
354
|
+
</xs:element>
|
355
|
+
<xs:element name="retEvento" type="TretEvento" minOccurs="0" maxOccurs="20"/>
|
356
|
+
</xs:sequence>
|
357
|
+
<xs:attribute name="versao" type="TVerEnvEvento" use="required"/>
|
358
|
+
</xs:complexType>
|
359
|
+
<xs:complexType name="TProcEvento">
|
360
|
+
<xs:annotation>
|
361
|
+
<xs:documentation>Tipo procEvento</xs:documentation>
|
362
|
+
</xs:annotation>
|
363
|
+
<xs:sequence>
|
364
|
+
<xs:element name="evento" type="TEvento"/>
|
365
|
+
<xs:element name="retEvento" type="TretEvento"/>
|
366
|
+
</xs:sequence>
|
367
|
+
<xs:attribute name="versao" type="TVerEvento" use="required"/>
|
368
|
+
</xs:complexType>
|
369
|
+
<xs:simpleType name="TVerEnvEvento">
|
370
|
+
<xs:annotation>
|
371
|
+
<xs:documentation>Tipo Versão do EnvEvento</xs:documentation>
|
372
|
+
</xs:annotation>
|
373
|
+
<xs:restriction base="xs:string">
|
374
|
+
<xs:whiteSpace value="preserve"/>
|
375
|
+
<xs:pattern value="1\.00"/>
|
376
|
+
</xs:restriction>
|
377
|
+
</xs:simpleType>
|
378
|
+
<xs:simpleType name="TVerEvento">
|
379
|
+
<xs:annotation>
|
380
|
+
<xs:documentation>Tipo Versão do Evento</xs:documentation>
|
381
|
+
</xs:annotation>
|
382
|
+
<xs:restriction base="xs:string">
|
383
|
+
<xs:whiteSpace value="preserve"/>
|
384
|
+
<xs:pattern value="1\.00"/>
|
385
|
+
</xs:restriction>
|
386
|
+
</xs:simpleType>
|
387
|
+
<xs:simpleType name="TCOrgaoIBGE">
|
388
|
+
<xs:annotation>
|
389
|
+
<xs:documentation>Tipo Código de orgão (UF da tabela do IBGE + 90 RFB)</xs:documentation>
|
390
|
+
</xs:annotation>
|
391
|
+
<xs:restriction base="xs:string">
|
392
|
+
<xs:whiteSpace value="preserve"/>
|
393
|
+
<xs:enumeration value="11"/>
|
394
|
+
<xs:enumeration value="12"/>
|
395
|
+
<xs:enumeration value="13"/>
|
396
|
+
<xs:enumeration value="14"/>
|
397
|
+
<xs:enumeration value="15"/>
|
398
|
+
<xs:enumeration value="16"/>
|
399
|
+
<xs:enumeration value="17"/>
|
400
|
+
<xs:enumeration value="21"/>
|
401
|
+
<xs:enumeration value="22"/>
|
402
|
+
<xs:enumeration value="23"/>
|
403
|
+
<xs:enumeration value="24"/>
|
404
|
+
<xs:enumeration value="25"/>
|
405
|
+
<xs:enumeration value="26"/>
|
406
|
+
<xs:enumeration value="27"/>
|
407
|
+
<xs:enumeration value="28"/>
|
408
|
+
<xs:enumeration value="29"/>
|
409
|
+
<xs:enumeration value="31"/>
|
410
|
+
<xs:enumeration value="32"/>
|
411
|
+
<xs:enumeration value="33"/>
|
412
|
+
<xs:enumeration value="35"/>
|
413
|
+
<xs:enumeration value="41"/>
|
414
|
+
<xs:enumeration value="42"/>
|
415
|
+
<xs:enumeration value="43"/>
|
416
|
+
<xs:enumeration value="50"/>
|
417
|
+
<xs:enumeration value="51"/>
|
418
|
+
<xs:enumeration value="52"/>
|
419
|
+
<xs:enumeration value="53"/>
|
420
|
+
<xs:enumeration value="90"/>
|
421
|
+
</xs:restriction>
|
422
|
+
</xs:simpleType>
|
423
|
+
</xs:schema>
|
@@ -0,0 +1,502 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!-- 13-05-2011 - correcao do pattern da data para aceitar -4:00 -->
|
3
|
+
<!-- 03-03-2011 - alteracoes na enumeracao das versoes e no detalhamento do evento -->
|
4
|
+
<!-- PL_006eventos versao alterada para consultar eventos 30/08/2010 -->
|
5
|
+
<!-- PL_006f versao com correcoes no xServ para tornar a literal CONSULTAR obrigatoria 21/05/2010 -->
|
6
|
+
<!-- PL_006c versao com correcoes 24/12/2009 -->
|
7
|
+
<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">
|
8
|
+
<xs:include schemaLocation="tiposBasico_v3.10.xsd"/>
|
9
|
+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
|
10
|
+
<xs:complexType name="TConsSitNFe">
|
11
|
+
<xs:annotation>
|
12
|
+
<xs:documentation>Tipo Pedido de Consulta da Situação Atual da Nota Fiscal Eletrônica</xs:documentation>
|
13
|
+
</xs:annotation>
|
14
|
+
<xs:sequence>
|
15
|
+
<xs:element name="tpAmb" type="TAmb">
|
16
|
+
<xs:annotation>
|
17
|
+
<xs:documentation>Identificação do Ambiente:
|
18
|
+
1 - Produção
|
19
|
+
2 - Homologação</xs:documentation>
|
20
|
+
</xs:annotation>
|
21
|
+
</xs:element>
|
22
|
+
<xs:element name="xServ">
|
23
|
+
<xs:annotation>
|
24
|
+
<xs:documentation>Serviço Solicitado</xs:documentation>
|
25
|
+
</xs:annotation>
|
26
|
+
<xs:simpleType>
|
27
|
+
<xs:restriction base="TServ">
|
28
|
+
<xs:enumeration value="CONSULTAR"/>
|
29
|
+
</xs:restriction>
|
30
|
+
</xs:simpleType>
|
31
|
+
</xs:element>
|
32
|
+
<xs:element name="chNFe" type="TChNFe">
|
33
|
+
<xs:annotation>
|
34
|
+
<xs:documentation>Chaves de acesso da NF-e, compostas por: UF do emitente, AAMM da emissão da NFe, CNPJ do emitente, modelo, série e número da NF-e e código numérico + DV.</xs:documentation>
|
35
|
+
</xs:annotation>
|
36
|
+
</xs:element>
|
37
|
+
</xs:sequence>
|
38
|
+
<xs:attribute name="versao" type="TVerConsSitNFe" use="required"/>
|
39
|
+
</xs:complexType>
|
40
|
+
<xs:complexType name="TRetConsSitNFe">
|
41
|
+
<xs:annotation>
|
42
|
+
<xs:documentation>Tipo Retorno de Pedido de Consulta da Situação Atual da Nota Fiscal Eletrônica </xs:documentation>
|
43
|
+
</xs:annotation>
|
44
|
+
<xs:sequence>
|
45
|
+
<xs:element name="tpAmb" type="TAmb">
|
46
|
+
<xs:annotation>
|
47
|
+
<xs:documentation>Identificação do Ambiente:
|
48
|
+
1 - Produção
|
49
|
+
2 - Homologação</xs:documentation>
|
50
|
+
</xs:annotation>
|
51
|
+
</xs:element>
|
52
|
+
<xs:element name="verAplic" type="TVerAplic">
|
53
|
+
<xs:annotation>
|
54
|
+
<xs:documentation>Versão do Aplicativo que processou a NF-e</xs:documentation>
|
55
|
+
</xs:annotation>
|
56
|
+
</xs:element>
|
57
|
+
<xs:element name="cStat" type="TStat">
|
58
|
+
<xs:annotation>
|
59
|
+
<xs:documentation>Código do status da mensagem enviada.</xs:documentation>
|
60
|
+
</xs:annotation>
|
61
|
+
</xs:element>
|
62
|
+
<xs:element name="xMotivo" type="TMotivo">
|
63
|
+
<xs:annotation>
|
64
|
+
<xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation>
|
65
|
+
</xs:annotation>
|
66
|
+
</xs:element>
|
67
|
+
<xs:element name="cUF" type="TCodUfIBGE">
|
68
|
+
<xs:annotation>
|
69
|
+
<xs:documentation>código da UF de atendimento</xs:documentation>
|
70
|
+
</xs:annotation>
|
71
|
+
</xs:element>
|
72
|
+
<xs:element name="dhRecbto" type="TDateTimeUTC">
|
73
|
+
<xs:annotation>
|
74
|
+
<xs:documentation>AAAA-MM-DDTHH:MM:SSTZD</xs:documentation>
|
75
|
+
</xs:annotation>
|
76
|
+
</xs:element>
|
77
|
+
<xs:element name="chNFe" type="TChNFe">
|
78
|
+
<xs:annotation>
|
79
|
+
<xs:documentation>Chaves de acesso da NF-e consultada</xs:documentation>
|
80
|
+
</xs:annotation>
|
81
|
+
</xs:element>
|
82
|
+
<xs:element name="protNFe" type="TProtNFe" minOccurs="0">
|
83
|
+
<xs:annotation>
|
84
|
+
<xs:documentation>Protocolo de autorização de uso da NF-e</xs:documentation>
|
85
|
+
</xs:annotation>
|
86
|
+
</xs:element>
|
87
|
+
<xs:element name="retCancNFe" type="TRetCancNFe" minOccurs="0">
|
88
|
+
<xs:annotation>
|
89
|
+
<xs:documentation>Protocolo de homologação de cancelamento de uso da NF-e</xs:documentation>
|
90
|
+
</xs:annotation>
|
91
|
+
</xs:element>
|
92
|
+
<xs:element name="procEventoNFe" type="TProcEvento" minOccurs="0" maxOccurs="unbounded">
|
93
|
+
<xs:annotation>
|
94
|
+
<xs:documentation>Protocolo de registro de evento da NF-e</xs:documentation>
|
95
|
+
</xs:annotation>
|
96
|
+
</xs:element>
|
97
|
+
</xs:sequence>
|
98
|
+
<xs:attribute name="versao" type="TVerConsSitNFe" use="required"/>
|
99
|
+
</xs:complexType>
|
100
|
+
<xs:complexType name="TProtNFe">
|
101
|
+
<xs:annotation>
|
102
|
+
<xs:documentation>Tipo Protocolo de status resultado do processamento da NF-e</xs:documentation>
|
103
|
+
</xs:annotation>
|
104
|
+
<xs:sequence>
|
105
|
+
<xs:element name="infProt">
|
106
|
+
<xs:annotation>
|
107
|
+
<xs:documentation>Dados do protocolo de status</xs:documentation>
|
108
|
+
</xs:annotation>
|
109
|
+
<xs:complexType>
|
110
|
+
<xs:sequence>
|
111
|
+
<xs:element name="tpAmb" type="TAmb">
|
112
|
+
<xs:annotation>
|
113
|
+
<xs:documentation>Identificação do Ambiente:
|
114
|
+
1 - Produção
|
115
|
+
2 - Homologação</xs:documentation>
|
116
|
+
</xs:annotation>
|
117
|
+
</xs:element>
|
118
|
+
<xs:element name="verAplic" type="TVerAplic">
|
119
|
+
<xs:annotation>
|
120
|
+
<xs:documentation>Versão do Aplicativo que processou a NF-e</xs:documentation>
|
121
|
+
</xs:annotation>
|
122
|
+
</xs:element>
|
123
|
+
<xs:element name="chNFe" type="TChNFe">
|
124
|
+
<xs:annotation>
|
125
|
+
<xs:documentation>Chaves de acesso da NF-e, compostas por: UF do emitente, AAMM da emissão da NFe, CNPJ do emitente, modelo, série e número da NF-e e código numérico+DV.</xs:documentation>
|
126
|
+
</xs:annotation>
|
127
|
+
</xs:element>
|
128
|
+
<xs:element name="dhRecbto" type="xs:dateTime">
|
129
|
+
<xs:annotation>
|
130
|
+
<xs:documentation>Data e hora de processamento, no formato AAAA-MM-DDTHH:MM:SS (ou AAAA-MM-DDTHH:MM:SSTZD, de acordo com versão). 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 Lote de NF-e enviado.</xs:documentation>
|
131
|
+
</xs:annotation>
|
132
|
+
</xs:element>
|
133
|
+
<xs:element name="nProt" type="TProt" minOccurs="0">
|
134
|
+
<xs:annotation>
|
135
|
+
<xs:documentation>Número do Protocolo de Status da NF-e. 1 posição (1 – Secretaria de Fazenda Estadual 2 – Receita Federal); 2 - códiga da UF - 2 posições ano; 10 seqüencial no ano.</xs:documentation>
|
136
|
+
</xs:annotation>
|
137
|
+
</xs:element>
|
138
|
+
<xs:element name="digVal" type="ds:DigestValueType" minOccurs="0">
|
139
|
+
<xs:annotation>
|
140
|
+
<xs:documentation>Digest Value da NF-e processada. Utilizado para conferir a integridade da NF-e original.</xs:documentation>
|
141
|
+
</xs:annotation>
|
142
|
+
</xs:element>
|
143
|
+
<xs:element name="cStat" type="TStat">
|
144
|
+
<xs:annotation>
|
145
|
+
<xs:documentation>Código do status da mensagem enviada.</xs:documentation>
|
146
|
+
</xs:annotation>
|
147
|
+
</xs:element>
|
148
|
+
<xs:element name="xMotivo" type="TMotivo">
|
149
|
+
<xs:annotation>
|
150
|
+
<xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation>
|
151
|
+
</xs:annotation>
|
152
|
+
</xs:element>
|
153
|
+
</xs:sequence>
|
154
|
+
<xs:attribute name="Id" type="xs:ID" use="optional"/>
|
155
|
+
</xs:complexType>
|
156
|
+
</xs:element>
|
157
|
+
<xs:element ref="ds:Signature" minOccurs="0"/>
|
158
|
+
</xs:sequence>
|
159
|
+
<xs:attribute name="versao" type="TVerNFe" use="required"/>
|
160
|
+
</xs:complexType>
|
161
|
+
<xs:complexType name="TRetCancNFe">
|
162
|
+
<xs:annotation>
|
163
|
+
<xs:documentation>Tipo retorno Pedido de Cancelamento da Nota Fiscal Eletrônica</xs:documentation>
|
164
|
+
</xs:annotation>
|
165
|
+
<xs:sequence>
|
166
|
+
<xs:element name="infCanc">
|
167
|
+
<xs:annotation>
|
168
|
+
<xs:documentation>Dados do Resultado do Pedido de Cancelamento da Nota Fiscal Eletrônica</xs:documentation>
|
169
|
+
</xs:annotation>
|
170
|
+
<xs:complexType>
|
171
|
+
<xs:sequence>
|
172
|
+
<xs:element name="tpAmb" type="TAmb">
|
173
|
+
<xs:annotation>
|
174
|
+
<xs:documentation>Identificação do Ambiente:
|
175
|
+
1 - Produção
|
176
|
+
2 - Homologação</xs:documentation>
|
177
|
+
</xs:annotation>
|
178
|
+
</xs:element>
|
179
|
+
<xs:element name="verAplic" type="TVerAplic">
|
180
|
+
<xs:annotation>
|
181
|
+
<xs:documentation>Versão do Aplicativo que processou o pedido de cancelamento</xs:documentation>
|
182
|
+
</xs:annotation>
|
183
|
+
</xs:element>
|
184
|
+
<xs:element name="cStat" type="TStat">
|
185
|
+
<xs:annotation>
|
186
|
+
<xs:documentation>Código do status da mensagem enviada.</xs:documentation>
|
187
|
+
</xs:annotation>
|
188
|
+
</xs:element>
|
189
|
+
<xs:element name="xMotivo" type="TMotivo">
|
190
|
+
<xs:annotation>
|
191
|
+
<xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation>
|
192
|
+
</xs:annotation>
|
193
|
+
</xs:element>
|
194
|
+
<xs:element name="cUF" type="TCodUfIBGE">
|
195
|
+
<xs:annotation>
|
196
|
+
<xs:documentation>código da UF de atendimento</xs:documentation>
|
197
|
+
</xs:annotation>
|
198
|
+
</xs:element>
|
199
|
+
<xs:element name="chNFe" type="TChNFe" minOccurs="0">
|
200
|
+
<xs:annotation>
|
201
|
+
<xs:documentation>Chaves de acesso da NF-e, compostas por: UF do emitente, AAMM da emissão da NFe, CNPJ do emitente, modelo, série e número da NF-e e código numérico + DV.</xs:documentation>
|
202
|
+
</xs:annotation>
|
203
|
+
</xs:element>
|
204
|
+
<xs:element name="dhRecbto" type="xs:dateTime" minOccurs="0">
|
205
|
+
<xs:annotation>
|
206
|
+
<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.</xs:documentation>
|
207
|
+
</xs:annotation>
|
208
|
+
</xs:element>
|
209
|
+
<xs:element name="nProt" type="TProt" minOccurs="0">
|
210
|
+
<xs:annotation>
|
211
|
+
<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>
|
212
|
+
</xs:annotation>
|
213
|
+
</xs:element>
|
214
|
+
</xs:sequence>
|
215
|
+
<xs:attribute name="Id" type="xs:ID" use="optional"/>
|
216
|
+
</xs:complexType>
|
217
|
+
</xs:element>
|
218
|
+
<xs:element ref="ds:Signature" minOccurs="0"/>
|
219
|
+
</xs:sequence>
|
220
|
+
<xs:attribute name="versao" type="TVerCancNFe" use="required"/>
|
221
|
+
</xs:complexType>
|
222
|
+
<xs:complexType name="TEvento">
|
223
|
+
<xs:annotation>
|
224
|
+
<xs:documentation>Tipo Evento</xs:documentation>
|
225
|
+
</xs:annotation>
|
226
|
+
<xs:sequence>
|
227
|
+
<xs:element name="infEvento">
|
228
|
+
<xs:complexType>
|
229
|
+
<xs:sequence>
|
230
|
+
<xs:element name="cOrgao" type="TCOrgaoIBGE">
|
231
|
+
<xs:annotation>
|
232
|
+
<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>
|
233
|
+
</xs:annotation>
|
234
|
+
</xs:element>
|
235
|
+
<xs:element name="tpAmb" type="TAmb">
|
236
|
+
<xs:annotation>
|
237
|
+
<xs:documentation>Identificação do Ambiente:
|
238
|
+
1 - Produção
|
239
|
+
2 - Homologação</xs:documentation>
|
240
|
+
</xs:annotation>
|
241
|
+
</xs:element>
|
242
|
+
<xs:choice>
|
243
|
+
<xs:annotation>
|
244
|
+
<xs:documentation>Identificação do autor do evento</xs:documentation>
|
245
|
+
</xs:annotation>
|
246
|
+
<xs:element name="CNPJ" type="TCnpjOpc">
|
247
|
+
<xs:annotation>
|
248
|
+
<xs:documentation>CNPJ</xs:documentation>
|
249
|
+
</xs:annotation>
|
250
|
+
</xs:element>
|
251
|
+
<xs:element name="CPF" type="TCpf">
|
252
|
+
<xs:annotation>
|
253
|
+
<xs:documentation>CPF</xs:documentation>
|
254
|
+
</xs:annotation>
|
255
|
+
</xs:element>
|
256
|
+
</xs:choice>
|
257
|
+
<xs:element name="chNFe" type="TChNFe">
|
258
|
+
<xs:annotation>
|
259
|
+
<xs:documentation>Chave de Acesso da NF-e vinculada ao evento</xs:documentation>
|
260
|
+
</xs:annotation>
|
261
|
+
</xs:element>
|
262
|
+
<xs:element name="dhEvento" type="TDateTimeUTC">
|
263
|
+
<xs:annotation>
|
264
|
+
<xs:documentation>Data e Hora do Evento, formato UTC (AAAA-MM-DDThh:mm:ssTZD, onde TZD = +hh:mm ou -hh:mm)</xs:documentation>
|
265
|
+
</xs:annotation>
|
266
|
+
</xs:element>
|
267
|
+
<xs:element name="tpEvento">
|
268
|
+
<xs:annotation>
|
269
|
+
<xs:documentation>Tipo do Evento</xs:documentation>
|
270
|
+
</xs:annotation>
|
271
|
+
<xs:simpleType>
|
272
|
+
<xs:restriction base="xs:string">
|
273
|
+
<xs:whiteSpace value="preserve"/>
|
274
|
+
<xs:pattern value="[0-9]{6}"/>
|
275
|
+
</xs:restriction>
|
276
|
+
</xs:simpleType>
|
277
|
+
</xs:element>
|
278
|
+
<xs:element name="nSeqEvento">
|
279
|
+
<xs:annotation>
|
280
|
+
<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>
|
281
|
+
</xs:annotation>
|
282
|
+
<xs:simpleType>
|
283
|
+
<xs:restriction base="xs:string">
|
284
|
+
<xs:whiteSpace value="preserve"/>
|
285
|
+
<xs:pattern value="[1-9][0-9]{0,1}"/>
|
286
|
+
</xs:restriction>
|
287
|
+
</xs:simpleType>
|
288
|
+
</xs:element>
|
289
|
+
<xs:element name="verEvento">
|
290
|
+
<xs:annotation>
|
291
|
+
<xs:documentation>Versão do Tipo do Evento</xs:documentation>
|
292
|
+
</xs:annotation>
|
293
|
+
<xs:simpleType>
|
294
|
+
<xs:restriction base="xs:string">
|
295
|
+
<xs:whiteSpace value="preserve"/>
|
296
|
+
</xs:restriction>
|
297
|
+
</xs:simpleType>
|
298
|
+
</xs:element>
|
299
|
+
<xs:element name="detEvento">
|
300
|
+
<xs:annotation>
|
301
|
+
<xs:documentation>Detalhe Específico do Evento</xs:documentation>
|
302
|
+
</xs:annotation>
|
303
|
+
<xs:complexType>
|
304
|
+
<xs:sequence>
|
305
|
+
<xs:any processContents="skip" maxOccurs="unbounded"/>
|
306
|
+
</xs:sequence>
|
307
|
+
<xs:anyAttribute processContents="skip"/>
|
308
|
+
</xs:complexType>
|
309
|
+
</xs:element>
|
310
|
+
</xs:sequence>
|
311
|
+
<xs:attribute name="Id" use="required">
|
312
|
+
<xs:annotation>
|
313
|
+
<xs:documentation>Identificador da TAG a ser assinada, a regra de formação do Id é:
|
314
|
+
“ID” + tpEvento + chave da NF-e + nSeqEvento</xs:documentation>
|
315
|
+
</xs:annotation>
|
316
|
+
<xs:simpleType>
|
317
|
+
<xs:restriction base="xs:ID">
|
318
|
+
<xs:pattern value="ID[0-9]{52}"/>
|
319
|
+
</xs:restriction>
|
320
|
+
</xs:simpleType>
|
321
|
+
</xs:attribute>
|
322
|
+
</xs:complexType>
|
323
|
+
</xs:element>
|
324
|
+
<xs:element ref="ds:Signature"/>
|
325
|
+
</xs:sequence>
|
326
|
+
<xs:attribute name="versao" type="TVerEvento" use="required"/>
|
327
|
+
</xs:complexType>
|
328
|
+
<xs:complexType name="TRetEvento">
|
329
|
+
<xs:annotation>
|
330
|
+
<xs:documentation>Tipo retorno do Evento</xs:documentation>
|
331
|
+
</xs:annotation>
|
332
|
+
<xs:sequence>
|
333
|
+
<xs:element name="infEvento">
|
334
|
+
<xs:complexType>
|
335
|
+
<xs:sequence>
|
336
|
+
<xs:element name="tpAmb" type="TAmb">
|
337
|
+
<xs:annotation>
|
338
|
+
<xs:documentation>Identificação do Ambiente:
|
339
|
+
1 - Produção
|
340
|
+
2 - Homologação</xs:documentation>
|
341
|
+
</xs:annotation>
|
342
|
+
</xs:element>
|
343
|
+
<xs:element name="verAplic" type="TVerAplic">
|
344
|
+
<xs:annotation>
|
345
|
+
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
|
346
|
+
</xs:annotation>
|
347
|
+
</xs:element>
|
348
|
+
<xs:element name="cOrgao" type="TCOrgaoIBGE">
|
349
|
+
<xs:annotation>
|
350
|
+
<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>
|
351
|
+
</xs:annotation>
|
352
|
+
</xs:element>
|
353
|
+
<xs:element name="cStat" type="TStat">
|
354
|
+
<xs:annotation>
|
355
|
+
<xs:documentation>Código do status da registro do Evento</xs:documentation>
|
356
|
+
</xs:annotation>
|
357
|
+
</xs:element>
|
358
|
+
<xs:element name="xMotivo" type="TMotivo">
|
359
|
+
<xs:annotation>
|
360
|
+
<xs:documentation>Descrição literal do status do registro do Evento</xs:documentation>
|
361
|
+
</xs:annotation>
|
362
|
+
</xs:element>
|
363
|
+
<xs:element name="chNFe" type="TChNFe" minOccurs="0">
|
364
|
+
<xs:annotation>
|
365
|
+
<xs:documentation>Chave de Acesso NF-e vinculada</xs:documentation>
|
366
|
+
</xs:annotation>
|
367
|
+
</xs:element>
|
368
|
+
<xs:element name="tpEvento" minOccurs="0">
|
369
|
+
<xs:annotation>
|
370
|
+
<xs:documentation>Tipo do Evento vinculado</xs:documentation>
|
371
|
+
</xs:annotation>
|
372
|
+
<xs:simpleType>
|
373
|
+
<xs:restriction base="xs:string">
|
374
|
+
<xs:whiteSpace value="preserve"/>
|
375
|
+
<xs:pattern value="[0-9]{6}"/>
|
376
|
+
</xs:restriction>
|
377
|
+
</xs:simpleType>
|
378
|
+
</xs:element>
|
379
|
+
<xs:element name="xEvento" minOccurs="0">
|
380
|
+
<xs:annotation>
|
381
|
+
<xs:documentation>Descrição do Evento</xs:documentation>
|
382
|
+
</xs:annotation>
|
383
|
+
<xs:simpleType>
|
384
|
+
<xs:restriction base="TString">
|
385
|
+
<xs:minLength value="5"/>
|
386
|
+
<xs:maxLength value="60"/>
|
387
|
+
</xs:restriction>
|
388
|
+
</xs:simpleType>
|
389
|
+
</xs:element>
|
390
|
+
<xs:element name="nSeqEvento" minOccurs="0">
|
391
|
+
<xs:annotation>
|
392
|
+
<xs:documentation>Seqüencial do evento</xs:documentation>
|
393
|
+
</xs:annotation>
|
394
|
+
<xs:simpleType>
|
395
|
+
<xs:restriction base="xs:string">
|
396
|
+
<xs:whiteSpace value="preserve"/>
|
397
|
+
<xs:pattern value="[1-9][0-9]{0,1}"/>
|
398
|
+
</xs:restriction>
|
399
|
+
</xs:simpleType>
|
400
|
+
</xs:element>
|
401
|
+
<xs:choice minOccurs="0">
|
402
|
+
<xs:annotation>
|
403
|
+
<xs:documentation>Identificação do destinatpario da NF-e</xs:documentation>
|
404
|
+
</xs:annotation>
|
405
|
+
<xs:element name="CNPJDest" type="TCnpjOpc">
|
406
|
+
<xs:annotation>
|
407
|
+
<xs:documentation>CNPJ Destinatário</xs:documentation>
|
408
|
+
</xs:annotation>
|
409
|
+
</xs:element>
|
410
|
+
<xs:element name="CPFDest" type="TCpf">
|
411
|
+
<xs:annotation>
|
412
|
+
<xs:documentation>CPF Destiantário</xs:documentation>
|
413
|
+
</xs:annotation>
|
414
|
+
</xs:element>
|
415
|
+
</xs:choice>
|
416
|
+
<xs:element name="emailDest" minOccurs="0">
|
417
|
+
<xs:annotation>
|
418
|
+
<xs:documentation>email do destinatário</xs:documentation>
|
419
|
+
</xs:annotation>
|
420
|
+
<xs:simpleType>
|
421
|
+
<xs:restriction base="TString">
|
422
|
+
<xs:minLength value="1"/>
|
423
|
+
<xs:maxLength value="60"/>
|
424
|
+
</xs:restriction>
|
425
|
+
</xs:simpleType>
|
426
|
+
</xs:element>
|
427
|
+
<xs:element name="dhRegEvento" type="TDateTimeUTC">
|
428
|
+
<xs:annotation>
|
429
|
+
<xs:documentation>Data e Hora de registro do evento formato UTC AAAA-MM-DDTHH:MM:SSTZD</xs:documentation>
|
430
|
+
</xs:annotation>
|
431
|
+
</xs:element>
|
432
|
+
<xs:element name="nProt" type="TProt" minOccurs="0">
|
433
|
+
<xs:annotation>
|
434
|
+
<xs:documentation>Número do protocolo de registro do evento</xs:documentation>
|
435
|
+
</xs:annotation>
|
436
|
+
</xs:element>
|
437
|
+
</xs:sequence>
|
438
|
+
<xs:attribute name="Id" use="optional">
|
439
|
+
<xs:simpleType>
|
440
|
+
<xs:restriction base="xs:ID">
|
441
|
+
<xs:pattern value="ID[0-9]{15}"/>
|
442
|
+
</xs:restriction>
|
443
|
+
</xs:simpleType>
|
444
|
+
</xs:attribute>
|
445
|
+
</xs:complexType>
|
446
|
+
</xs:element>
|
447
|
+
<xs:element ref="ds:Signature" minOccurs="0"/>
|
448
|
+
</xs:sequence>
|
449
|
+
<xs:attribute name="versao" type="TRetVerEvento" use="required"/>
|
450
|
+
</xs:complexType>
|
451
|
+
<xs:complexType name="TProcEvento">
|
452
|
+
<xs:annotation>
|
453
|
+
<xs:documentation>Tipo procEvento</xs:documentation>
|
454
|
+
</xs:annotation>
|
455
|
+
<xs:sequence>
|
456
|
+
<xs:element name="evento" type="TEvento"/>
|
457
|
+
<xs:element name="retEvento" type="TRetEvento"/>
|
458
|
+
</xs:sequence>
|
459
|
+
<xs:attribute name="versao" type="TVerEvento" use="required"/>
|
460
|
+
</xs:complexType>
|
461
|
+
<xs:simpleType name="TVerNFe">
|
462
|
+
<xs:annotation>
|
463
|
+
<xs:documentation> Tipo Versão da NF-e</xs:documentation>
|
464
|
+
</xs:annotation>
|
465
|
+
<xs:restriction base="TString">
|
466
|
+
<xs:pattern value="[1-9]{1}\.[0-9]{2}"/>
|
467
|
+
</xs:restriction>
|
468
|
+
</xs:simpleType>
|
469
|
+
<xs:simpleType name="TVerCancNFe">
|
470
|
+
<xs:annotation>
|
471
|
+
<xs:documentation>Tipo Versão do leiaute de Cancelamento de NF-e - 2.00/1.07</xs:documentation>
|
472
|
+
</xs:annotation>
|
473
|
+
<xs:restriction base="TString">
|
474
|
+
<xs:pattern value="[1-9]{1}\.[0-9]{2}"/>
|
475
|
+
</xs:restriction>
|
476
|
+
</xs:simpleType>
|
477
|
+
<xs:simpleType name="TVerEvento">
|
478
|
+
<xs:annotation>
|
479
|
+
<xs:documentation>Tipo Versão do Evento 1.00</xs:documentation>
|
480
|
+
</xs:annotation>
|
481
|
+
<xs:restriction base="TString">
|
482
|
+
<xs:pattern value="[1-9]{1}\.[0-9]{2}"/>
|
483
|
+
</xs:restriction>
|
484
|
+
</xs:simpleType>
|
485
|
+
<xs:simpleType name="TRetVerEvento">
|
486
|
+
<xs:annotation>
|
487
|
+
<xs:documentation>Tipo Versão do Evento</xs:documentation>
|
488
|
+
</xs:annotation>
|
489
|
+
<xs:restriction base="TString">
|
490
|
+
<xs:pattern value="[1-9]{1}\.[0-9]{2}"/>
|
491
|
+
</xs:restriction>
|
492
|
+
</xs:simpleType>
|
493
|
+
<xs:simpleType name="TVerConsSitNFe">
|
494
|
+
<xs:annotation>
|
495
|
+
<xs:documentation>Tipo Versão do Leiaute da Cosulta situação NF-e - 3.10</xs:documentation>
|
496
|
+
</xs:annotation>
|
497
|
+
<xs:restriction base="xs:string">
|
498
|
+
<xs:whiteSpace value="preserve"/>
|
499
|
+
<xs:enumeration value="3.10"/>
|
500
|
+
</xs:restriction>
|
501
|
+
</xs:simpleType>
|
502
|
+
</xs:schema>
|