br_nfe 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +0 -1
- data/Gemfile.lock +1 -1
- data/README.markdown +264 -106
- data/lib/br_nfe/{helper → association}/have_address.rb +1 -1
- data/lib/br_nfe/{helper → association}/have_condicao_pagamento.rb +1 -1
- data/lib/br_nfe/association/have_destinatario.rb +22 -0
- data/lib/br_nfe/association/have_emitente.rb +24 -0
- data/lib/br_nfe/base.rb +37 -27
- data/lib/br_nfe/condicao_pagamento.rb +2 -0
- data/lib/br_nfe/constants.rb +33 -0
- data/lib/br_nfe/endereco.rb +10 -0
- data/lib/br_nfe/helper/string_methods.rb +4 -0
- data/lib/br_nfe/{emitente.rb → person.rb} +11 -7
- data/lib/br_nfe/product/base.rb +82 -0
- data/lib/br_nfe/product/consulta_status_servico.rb +35 -0
- data/lib/br_nfe/product/emitente.rb +8 -0
- data/lib/br_nfe/product/gateway/base.rb +62 -0
- data/lib/br_nfe/product/gateway/web_service_svrs.rb +39 -0
- data/lib/br_nfe/product/value_nf.rb +9 -0
- data/lib/br_nfe/product/xml/soap_env.xml.slim +8 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/consReciNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/consSitNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/consStatServ_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/enviNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/inutNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/leiauteConsSitNFe_v3.10.xsd +502 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/leiauteConsStatServ_v3.10.xsd +98 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/leiauteInutNFe_v3.10.xsd +193 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/leiauteNFe_v3.10.xsd +6060 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/nfe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/procInutNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/procNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/retConsReciNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/retConsSitNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/retConsStatServ_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/retEnviNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/retInutNFe_v3.10.xsd +9 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/tiposBasico_v3.10.xsd +571 -0
- data/lib/br_nfe/product/xml/v3_10/XSD/xmldsig-core-schema_v1.01.xsd +98 -0
- data/lib/br_nfe/product/xml/v3_10/consulta_status_servico.xml.slim +4 -0
- data/lib/br_nfe/service/association/have_intermediario.rb +26 -0
- data/lib/br_nfe/service/association/have_rps.rb +36 -0
- data/lib/br_nfe/service/base.rb +24 -20
- data/lib/br_nfe/service/betha/v1/cancela_nfse.rb +43 -0
- data/lib/br_nfe/service/betha/v1/consulta_lote_rps.rb +20 -6
- data/lib/br_nfe/service/betha/v1/consulta_nfs_por_rps.rb +17 -6
- data/lib/br_nfe/service/betha/v1/consulta_nfse.rb +16 -5
- data/lib/br_nfe/service/betha/v1/consulta_situacao_lote_rps.rb +15 -6
- data/lib/br_nfe/service/betha/v1/gateway.rb +4 -0
- data/lib/br_nfe/service/betha/v1/recepcao_lote_rps.rb +13 -5
- data/lib/br_nfe/service/betha/v1/xml/_tc_identificacao_prestador.xml.slim +3 -0
- data/lib/br_nfe/service/betha/v1/xml/_tc_pedido_cancelamento.xml.slim +4 -0
- data/lib/br_nfe/service/concerns/rules/cancelamento_nfs.rb +8 -0
- data/lib/br_nfe/service/concerns/rules/consulta_nfs_por_rps.rb +1 -1
- data/lib/br_nfe/service/concerns/rules/consulta_nfse.rb +5 -2
- data/lib/br_nfe/service/concerns/values_ts/service_v1.rb +319 -0
- data/lib/br_nfe/service/destinatario.rb +7 -0
- data/lib/br_nfe/service/emitente.rb +8 -0
- data/lib/br_nfe/service/intermediario.rb +1 -12
- data/lib/br_nfe/service/item.rb +7 -7
- data/lib/br_nfe/service/response/build/base.rb +166 -0
- data/lib/br_nfe/service/response/build/cancelamento.rb +62 -0
- data/lib/br_nfe/service/response/build/consulta_lote_rps.rb +25 -0
- data/lib/br_nfe/service/response/build/consulta_nfs_por_rps.rb +25 -0
- data/lib/br_nfe/service/response/build/consulta_nfse.rb +24 -0
- data/lib/br_nfe/service/response/build/consulta_situacao_lote_rps.rb +56 -0
- data/lib/br_nfe/service/response/build/invoice_build.rb +359 -0
- data/lib/br_nfe/service/response/build/recepcao_lote_rps.rb +69 -0
- data/lib/br_nfe/service/response/cancelamento.rb +22 -0
- data/lib/br_nfe/service/response/consulta_lote_rps.rb +18 -0
- data/lib/br_nfe/service/response/consulta_nfs_por_rps.rb +10 -0
- data/lib/br_nfe/service/response/consulta_nfse.rb +10 -0
- data/lib/br_nfe/service/response/consulta_situacao_lote_rps.rb +74 -0
- data/lib/br_nfe/service/response/default.rb +93 -0
- data/lib/br_nfe/{response/service → service/response}/nota_fiscal.rb +19 -12
- data/lib/br_nfe/service/response/paths/v1/tc_nfse.rb +275 -0
- data/lib/br_nfe/service/response/recepcao_lote_rps.rb +35 -0
- data/lib/br_nfe/service/rps.rb +30 -27
- data/lib/br_nfe/service/sc/florianopolis/xml/_service_item.xml.slim +4 -4
- data/lib/br_nfe/service/sc/florianopolis/xml/inf_requisicao.xml.slim +4 -4
- data/lib/br_nfe/service/simpliss/v1/cancela_nfse.rb +16 -6
- data/lib/br_nfe/service/simpliss/v1/consulta_lote_rps.rb +20 -12
- data/lib/br_nfe/service/simpliss/v1/consulta_nfs_por_rps.rb +21 -6
- data/lib/br_nfe/service/simpliss/v1/consulta_nfse.rb +20 -6
- data/lib/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps.rb +17 -6
- data/lib/br_nfe/service/simpliss/v1/recepcao_lote_rps.rb +16 -4
- data/lib/br_nfe/service/simpliss/v1/xml/_tc_item_servico.xml.slim +2 -2
- data/lib/br_nfe/service/thema/v1/cancela_nfse.rb +21 -19
- data/lib/br_nfe/service/thema/v1/consulta_lote_rps.rb +21 -19
- data/lib/br_nfe/service/thema/v1/consulta_nfs_por_rps.rb +25 -18
- data/lib/br_nfe/service/thema/v1/consulta_nfse.rb +20 -20
- data/lib/br_nfe/service/thema/v1/consulta_situacao_lote_rps.rb +14 -20
- data/lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb +11 -16
- data/lib/br_nfe/service/thema/v1/recepcao_lote_rps_limitado.rb +8 -6
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_nfse.xml.slim +1 -1
- data/lib/br_nfe/service/xml/v1/_tc_pedido_cancelamento.xml.slim +1 -1
- data/lib/br_nfe/service/xml/v1/_tc_valores.xml.slim +11 -11
- data/lib/br_nfe/version.rb +1 -1
- data/lib/br_nfe.rb +62 -62
- data/test/br_nfe/association/have_address_test.rb +64 -0
- data/test/br_nfe/association/have_condicao_pagamento_test.rb +75 -0
- data/test/br_nfe/association/have_destinatario_test.rb +76 -0
- data/test/br_nfe/association/have_emitente_test.rb +80 -0
- data/test/br_nfe/base_test.rb +96 -61
- data/test/br_nfe/endereco_test.rb +21 -0
- data/test/br_nfe/person_test.rb +55 -0
- data/test/br_nfe/product/base_test.rb +150 -0
- data/test/br_nfe/product/consulta_status_servico_test.rb +59 -0
- data/test/br_nfe/product/emitente_test.rb +29 -0
- data/test/br_nfe/product/gateway/base_test.rb +16 -0
- data/test/br_nfe/product/gateway/web_service_svrs_test.rb +36 -0
- data/test/br_nfe/service/association/have_intermediario_test.rb +80 -0
- data/test/br_nfe/service/association/have_rps_test.rb +62 -0
- data/test/br_nfe/service/base_test.rb +42 -42
- data/test/br_nfe/service/betha/v1/cancela_nfse_test.rb +90 -0
- data/test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb +105 -5
- data/test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb +103 -5
- data/test/br_nfe/service/betha/v1/consulta_nfse_test.rb +114 -5
- data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +118 -5
- data/test/br_nfe/service/betha/v1/gateway_test.rb +1 -1
- data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +51 -5
- data/test/br_nfe/service/concerns/rules/cancelamento_nfs_test.rb +2 -2
- data/test/br_nfe/service/concerns/rules/consulta_nfs_por_rps_test.rb +2 -7
- data/test/br_nfe/service/concerns/rules/consulta_nfse_test.rb +24 -3
- data/test/br_nfe/service/concerns/rules/recepcao_lote_rps_test.rb +1 -1
- data/test/br_nfe/{helper → service/concerns}/values_ts/service_v1_test.rb +2 -2
- data/test/br_nfe/{destinatario_test.rb → service/destinatario_test.rb} +3 -4
- data/test/br_nfe/service/emitente_test.rb +29 -0
- data/test/br_nfe/service/item_test.rb +14 -14
- data/test/br_nfe/service/response/build/base_test.rb +80 -0
- data/test/br_nfe/{response/service → service/response}/default_test.rb +1 -82
- data/test/br_nfe/service/response/nota_fiscal_test.rb +59 -0
- data/test/br_nfe/{response/service → service/response}/paths/v1/tc_nfse_test.rb +10 -10
- data/test/br_nfe/service/rps_test.rb +107 -138
- data/test/br_nfe/service/sc/florianopolis/emission_rps_test.rb +9 -9
- data/test/br_nfe/service/simpliss/v1/base_test.rb +1 -1
- data/test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb +7 -10
- data/test/br_nfe/service/simpliss/v1/consulta_lote_rps_test.rb +11 -18
- data/test/br_nfe/service/simpliss/v1/consulta_nfs_por_rps_test.rb +11 -18
- data/test/br_nfe/service/simpliss/v1/consulta_nfse_test.rb +11 -18
- data/test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb +7 -11
- data/test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb +3 -9
- data/test/br_nfe/service/thema/v1/base_test.rb +1 -1
- data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +7 -14
- data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +6 -17
- data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +6 -13
- data/test/br_nfe/service/thema/v1/consulta_nfse_test.rb +11 -18
- data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +7 -11
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb +1 -5
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +3 -9
- data/test/factories/base.rb +0 -1
- data/test/factories/{emitente.rb → person.rb} +1 -1
- data/test/factories/product/base.rb +12 -0
- data/test/factories/product/consulta_status_servico.rb +12 -0
- data/test/factories/product/emitente.rb +15 -0
- data/test/factories/product/gateway/base.rb +5 -0
- data/test/factories/product/gateway/web_service_svrs.rb +5 -0
- data/test/factories/service/betha/v1/{cancelamento_nfs.rb → cancela_nfse.rb} +2 -1
- data/test/factories/service/betha/v1/consulta_lote_rps.rb +1 -1
- data/test/factories/service/betha/v1/consulta_nfs_por_rps.rb +1 -1
- data/test/factories/service/betha/v1/consulta_nfse.rb +1 -1
- data/test/factories/service/betha/v1/consulta_situacao_lote_rps.rb +1 -1
- data/test/factories/{destinatario.rb → service/destinatario.rb} +1 -1
- data/test/factories/service/emitente.rb +15 -0
- data/test/factories/service/item.rb +4 -4
- data/test/factories/service/response/build_response.rb +5 -0
- data/test/factories/service/response/default.rb +6 -0
- data/test/factories/{response/service → service/response}/nota_fiscal.rb +8 -8
- data/test/factories/service/rps.rb +11 -11
- data/test/factories/service/sc/florianopolis/base.rb +1 -1
- data/test/factories/service/sc/florianopolis/cancellation.rb +1 -1
- data/test/factories/service/sc/florianopolis/emission_rps.rb +1 -1
- data/test/factories/service/simpliss/v1/base.rb +1 -1
- data/test/factories/service/simpliss/v1/cancela_nfse.rb +1 -1
- data/test/factories/service/simpliss/v1/consulta_lote_rps.rb +1 -1
- data/test/factories/service/simpliss/v1/consulta_nfs_por_rps.rb +1 -1
- data/test/factories/service/simpliss/v1/consulta_nfse.rb +1 -1
- data/test/factories/service/simpliss/v1/consulta_situacao_lote_rps.rb +1 -1
- data/test/factories/service/simpliss/v1/recepcao_lote_rps.rb +1 -1
- data/test/factories/service/thema/v1/base.rb +1 -1
- data/test/factories/service/thema/v1/cancela_nfse.rb +1 -1
- data/test/factories/service/thema/v1/consulta_lote_rps.rb +1 -1
- data/test/factories/service/thema/v1/consulta_nfs_por_rps.rb +1 -1
- data/test/factories/service/thema/v1/consulta_nfse.rb +1 -1
- data/test/factories/service/thema/v1/consulta_situacao_lote_rps.rb +1 -1
- data/test/factories/service/thema/v1/recepcao_lote_rps.rb +1 -1
- data/test/fixtures/service/response/betha/v1/cancela_nfse/fault.xml +17 -0
- data/test/fixtures/service/response/betha/v1/cancela_nfse/success.xml +48 -0
- data/test/fixtures/service/response/betha/v1/consulta_lote_rps/fault.xml +18 -0
- data/test/fixtures/service/response/betha/v1/consulta_lote_rps/success.xml +108 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse/fault.xml +18 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse/nfs_empty.xml +12 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse/success.xml +115 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse_por_rps/fault.xml +18 -0
- data/test/fixtures/service/response/betha/v1/consulta_nfse_por_rps/success.xml +103 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/error.xml +13 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/fault.xml +17 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/success.xml +13 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unprocessed.xml +13 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unprocessed_by_code_error.xml +17 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unreceived.xml +13 -0
- data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unreceived_by_code_error.xml +17 -0
- data/test/fixtures/service/response/betha/v1/recepcao_lote_rps/error.xml +17 -0
- data/test/fixtures/service/response/betha/v1/recepcao_lote_rps/success.xml +14 -0
- metadata +160 -94
- data/lib/br_nfe/destinatario.rb +0 -26
- data/lib/br_nfe/helper/have_destinatario.rb +0 -18
- data/lib/br_nfe/helper/have_emitente.rb +0 -20
- data/lib/br_nfe/helper/have_intermediario.rb +0 -24
- data/lib/br_nfe/helper/have_rps.rb +0 -34
- data/lib/br_nfe/helper/values_ts/service_v1.rb +0 -317
- data/lib/br_nfe/response/service/build_response.rb +0 -463
- data/lib/br_nfe/response/service/default.rb +0 -185
- data/lib/br_nfe/response/service/paths/base.rb +0 -127
- data/lib/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta.rb +0 -22
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta.rb +0 -25
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta.rb +0 -25
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta.rb +0 -25
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta.rb +0 -31
- data/lib/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta.rb +0 -36
- data/lib/br_nfe/response/service/paths/v1/tc_nfse.rb +0 -271
- data/lib/br_nfe/service/betha/v1/cancelamento_nfs.rb +0 -36
- data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta.rb +0 -23
- data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta.rb +0 -21
- data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +0 -21
- data/lib/br_nfe/service/simpliss/v1/response_paths/servico_cancelar_nfse_resposta.rb +0 -22
- data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_lote_rps_resposta.rb +0 -25
- data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_resposta.rb +0 -25
- data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +0 -25
- data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_situacao_lote_rps_resposta.rb +0 -31
- data/lib/br_nfe/service/simpliss/v1/response_paths/servico_enviar_lote_rps_resposta.rb +0 -36
- data/lib/br_nfe/service/thema/v1/response_paths/servico_cancelar_nfse_resposta.rb +0 -17
- data/lib/br_nfe/service/thema/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +0 -19
- data/test/br_nfe/emitente_test.rb +0 -46
- data/test/br_nfe/helper/have_address_test.rb +0 -62
- data/test/br_nfe/helper/have_condicao_pagamento_test.rb +0 -71
- data/test/br_nfe/helper/have_destinatario_test.rb +0 -64
- data/test/br_nfe/helper/have_emitente_test.rb +0 -63
- data/test/br_nfe/helper/have_intermediario_test.rb +0 -77
- data/test/br_nfe/helper/have_rps_test.rb +0 -59
- data/test/br_nfe/response/service/build_response_test.rb +0 -205
- data/test/br_nfe/response/service/nota_fiscal_test.rb +0 -41
- data/test/br_nfe/response/service/paths/base_test.rb +0 -196
- data/test/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta_test.rb +0 -25
- data/test/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta_test.rb +0 -30
- data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta_test.rb +0 -30
- data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta_test.rb +0 -30
- data/test/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta_test.rb +0 -30
- data/test/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta_test.rb +0 -34
- data/test/br_nfe/service/betha/v1/cancelamento_nfs_test.rb +0 -54
- data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta_test.rb +0 -16
- data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta_test.rb +0 -16
- data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta_test.rb +0 -16
- data/test/factories/response/service/build_response.rb +0 -5
- data/test/factories/response/service/default.rb +0 -10
@@ -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>
|
@@ -0,0 +1,98 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!-- PL_006f versao com correcoes no xServ para tornar a literal STATUS obrigatoria 21/05/2010 -->
|
3
|
+
<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">
|
4
|
+
<xs:include schemaLocation="tiposBasico_v3.10.xsd"/>
|
5
|
+
<xs:complexType name="TConsStatServ">
|
6
|
+
<xs:annotation>
|
7
|
+
<xs:documentation>Tipo Pedido de Consulta do Status do Serviço</xs:documentation>
|
8
|
+
</xs:annotation>
|
9
|
+
<xs:sequence>
|
10
|
+
<xs:element name="tpAmb" type="TAmb">
|
11
|
+
<xs:annotation>
|
12
|
+
<xs:documentation>Identificação do Ambiente:
|
13
|
+
1 - Produção
|
14
|
+
2 - Homologação</xs:documentation>
|
15
|
+
</xs:annotation>
|
16
|
+
</xs:element>
|
17
|
+
<xs:element name="cUF" type="TCodUfIBGE">
|
18
|
+
<xs:annotation>
|
19
|
+
<xs:documentation>Sigla da UF consultada</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="STATUS"/>
|
29
|
+
</xs:restriction>
|
30
|
+
</xs:simpleType>
|
31
|
+
</xs:element>
|
32
|
+
</xs:sequence>
|
33
|
+
<xs:attribute name="versao" type="TVerConsStatServ" use="required"/>
|
34
|
+
</xs:complexType>
|
35
|
+
<xs:complexType name="TRetConsStatServ">
|
36
|
+
<xs:annotation>
|
37
|
+
<xs:documentation>Tipo Resultado da Consulta do Status do Serviço</xs:documentation>
|
38
|
+
</xs:annotation>
|
39
|
+
<xs:sequence>
|
40
|
+
<xs:element name="tpAmb" type="TAmb">
|
41
|
+
<xs:annotation>
|
42
|
+
<xs:documentation>Identificação do Ambiente:
|
43
|
+
1 - Produção
|
44
|
+
2 - Homologação</xs:documentation>
|
45
|
+
</xs:annotation>
|
46
|
+
</xs:element>
|
47
|
+
<xs:element name="verAplic" type="TVerAplic">
|
48
|
+
<xs:annotation>
|
49
|
+
<xs:documentation>Versão do Aplicativo que processou a NF-e</xs:documentation>
|
50
|
+
</xs:annotation>
|
51
|
+
</xs:element>
|
52
|
+
<xs:element name="cStat" type="TStat">
|
53
|
+
<xs:annotation>
|
54
|
+
<xs:documentation>Código do status da mensagem enviada.</xs:documentation>
|
55
|
+
</xs:annotation>
|
56
|
+
</xs:element>
|
57
|
+
<xs:element name="xMotivo" type="TMotivo">
|
58
|
+
<xs:annotation>
|
59
|
+
<xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation>
|
60
|
+
</xs:annotation>
|
61
|
+
</xs:element>
|
62
|
+
<xs:element name="cUF" type="TCodUfIBGE">
|
63
|
+
<xs:annotation>
|
64
|
+
<xs:documentation>Código da UF responsável pelo serviço</xs:documentation>
|
65
|
+
</xs:annotation>
|
66
|
+
</xs:element>
|
67
|
+
<xs:element name="dhRecbto" type="TDateTimeUTC">
|
68
|
+
<xs:annotation>
|
69
|
+
<xs:documentation>Data e hora do recebimento da consulta no formato AAAA-MM-DDTHH:MM:SSTZD</xs:documentation>
|
70
|
+
</xs:annotation>
|
71
|
+
</xs:element>
|
72
|
+
<xs:element name="tMed" type="TMed" minOccurs="0">
|
73
|
+
<xs:annotation>
|
74
|
+
<xs:documentation>Tempo médio de resposta do serviço (em segundos) dos últimos 5 minutos</xs:documentation>
|
75
|
+
</xs:annotation>
|
76
|
+
</xs:element>
|
77
|
+
<xs:element name="dhRetorno" type="TDateTimeUTC" minOccurs="0">
|
78
|
+
<xs:annotation>
|
79
|
+
<xs:documentation>AAAA-MM-DDTHH:MM:SSDeve ser preenchida com data e hora previstas para o retorno dos serviços prestados.</xs:documentation>
|
80
|
+
</xs:annotation>
|
81
|
+
</xs:element>
|
82
|
+
<xs:element name="xObs" type="TMotivo" minOccurs="0">
|
83
|
+
<xs:annotation>
|
84
|
+
<xs:documentation>Campo observação utilizado para incluir informações ao contribuinte</xs:documentation>
|
85
|
+
</xs:annotation>
|
86
|
+
</xs:element>
|
87
|
+
</xs:sequence>
|
88
|
+
<xs:attribute name="versao" type="TVerConsStatServ" use="required"/>
|
89
|
+
</xs:complexType>
|
90
|
+
<xs:simpleType name="TVerConsStatServ">
|
91
|
+
<xs:annotation>
|
92
|
+
<xs:documentation>Tipo versão do leiuate da Consulta Status do Serviço 3.10</xs:documentation>
|
93
|
+
</xs:annotation>
|
94
|
+
<xs:restriction base="xs:token">
|
95
|
+
<xs:pattern value="3\.10"/>
|
96
|
+
</xs:restriction>
|
97
|
+
</xs:simpleType>
|
98
|
+
</xs:schema>
|