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,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
3
|
+
<xs:include schemaLocation="leiauteNFe_v3.10.xsd"/>
|
4
|
+
<xs:element name="NFe" type="TNFe">
|
5
|
+
<xs:annotation>
|
6
|
+
<xs:documentation>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:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
3
|
+
<xs:include schemaLocation="leiauteInutNFe_v3.10.xsd"/>
|
4
|
+
<xs:element name="ProcInutNFe" type="TProcInutNFe">
|
5
|
+
<xs:annotation>
|
6
|
+
<xs:documentation>Pedido de inutilização de númeração de NF-e processado</xs:documentation>
|
7
|
+
</xs:annotation>
|
8
|
+
</xs:element>
|
9
|
+
</xs:schema>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
3
|
+
<xs:include schemaLocation="leiauteNFe_v3.10.xsd"/>
|
4
|
+
<xs:element name="nfeProc" type="TNfeProc">
|
5
|
+
<xs:annotation>
|
6
|
+
<xs:documentation>NF-e processada</xs:documentation>
|
7
|
+
</xs:annotation>
|
8
|
+
</xs:element>
|
9
|
+
</xs:schema>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
3
|
+
<xs:include schemaLocation="leiauteNFe_v3.10.xsd"/>
|
4
|
+
<xs:element name="retConsReciNFe" type="TRetConsReciNFe">
|
5
|
+
<xs:annotation>
|
6
|
+
<xs:documentation>Schema XML de validação do retorno do Pedido de Consulta do Recido do Lote de Notas Fiscais Eletrônicas</xs:documentation>
|
7
|
+
</xs:annotation>
|
8
|
+
</xs:element>
|
9
|
+
</xs:schema>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
3
|
+
<xs:include schemaLocation="leiauteConsSitNFe_v3.10.xsd"/>
|
4
|
+
<xs:element name="retConsSitNFe" type="TRetConsSitNFe">
|
5
|
+
<xs:annotation>
|
6
|
+
<xs:documentation>Schema XML de validação do retorno da consulta da situação atual da NF-e</xs:documentation>
|
7
|
+
</xs:annotation>
|
8
|
+
</xs:element>
|
9
|
+
</xs:schema>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
3
|
+
<xs:include schemaLocation="leiauteConsStatServ_v3.10.xsd"/>
|
4
|
+
<xs:element name="retConsStatServ" type="TRetConsStatServ">
|
5
|
+
<xs:annotation>
|
6
|
+
<xs:documentation>Schema XML de validação do Resultado da Consulta do Status do Serviço</xs:documentation>
|
7
|
+
</xs:annotation>
|
8
|
+
</xs:element>
|
9
|
+
</xs:schema>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
3
|
+
<xs:include schemaLocation="leiauteNFe_v3.10.xsd"/>
|
4
|
+
<xs:element name="retEnviNFe" type="TRetEnviNFe">
|
5
|
+
<xs:annotation>
|
6
|
+
<xs:documentation>Schema XML de validação do retorno 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:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
3
|
+
<xs:include schemaLocation="leiauteInutNFe_v3.10.xsd"/>
|
4
|
+
<xs:element name="retInutNFe" type="TRetInutNFe">
|
5
|
+
<xs:annotation>
|
6
|
+
<xs:documentation>Schema XML de validação do retorno 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,571 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!-- PL_008 - 30/07/2013- NT 2013/005 -->
|
3
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:nfe="http://www.portalfiscal.inf.br/nfe" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
4
|
+
<xs:simpleType name="TCodUfIBGE">
|
5
|
+
<xs:annotation>
|
6
|
+
<xs:documentation>Tipo Código da UF da tabela do IBGE</xs:documentation>
|
7
|
+
</xs:annotation>
|
8
|
+
<xs:restriction base="xs:string">
|
9
|
+
<xs:whiteSpace value="preserve"/>
|
10
|
+
<xs:enumeration value="11"/>
|
11
|
+
<xs:enumeration value="12"/>
|
12
|
+
<xs:enumeration value="13"/>
|
13
|
+
<xs:enumeration value="14"/>
|
14
|
+
<xs:enumeration value="15"/>
|
15
|
+
<xs:enumeration value="16"/>
|
16
|
+
<xs:enumeration value="17"/>
|
17
|
+
<xs:enumeration value="21"/>
|
18
|
+
<xs:enumeration value="22"/>
|
19
|
+
<xs:enumeration value="23"/>
|
20
|
+
<xs:enumeration value="24"/>
|
21
|
+
<xs:enumeration value="25"/>
|
22
|
+
<xs:enumeration value="26"/>
|
23
|
+
<xs:enumeration value="27"/>
|
24
|
+
<xs:enumeration value="28"/>
|
25
|
+
<xs:enumeration value="29"/>
|
26
|
+
<xs:enumeration value="31"/>
|
27
|
+
<xs:enumeration value="32"/>
|
28
|
+
<xs:enumeration value="33"/>
|
29
|
+
<xs:enumeration value="35"/>
|
30
|
+
<xs:enumeration value="41"/>
|
31
|
+
<xs:enumeration value="42"/>
|
32
|
+
<xs:enumeration value="43"/>
|
33
|
+
<xs:enumeration value="50"/>
|
34
|
+
<xs:enumeration value="51"/>
|
35
|
+
<xs:enumeration value="52"/>
|
36
|
+
<xs:enumeration value="53"/>
|
37
|
+
</xs:restriction>
|
38
|
+
</xs:simpleType>
|
39
|
+
<xs:simpleType name="TCodMunIBGE">
|
40
|
+
<xs:annotation>
|
41
|
+
<xs:documentation>Tipo Código do Município da tabela do IBGE</xs:documentation>
|
42
|
+
</xs:annotation>
|
43
|
+
<xs:restriction base="xs:string">
|
44
|
+
<xs:whiteSpace value="preserve"/>
|
45
|
+
<xs:pattern value="[0-9]{7}"/>
|
46
|
+
</xs:restriction>
|
47
|
+
</xs:simpleType>
|
48
|
+
<xs:simpleType name="TChNFe">
|
49
|
+
<xs:annotation>
|
50
|
+
<xs:documentation>Tipo Chave da Nota Fiscal Eletrônica</xs:documentation>
|
51
|
+
</xs:annotation>
|
52
|
+
<xs:restriction base="xs:string">
|
53
|
+
<xs:whiteSpace value="preserve"/>
|
54
|
+
<xs:maxLength value="44"/>
|
55
|
+
<xs:pattern value="[0-9]{44}"/>
|
56
|
+
</xs:restriction>
|
57
|
+
</xs:simpleType>
|
58
|
+
<xs:simpleType name="TProt">
|
59
|
+
<xs:annotation>
|
60
|
+
<xs:documentation>Tipo Número do Protocolo de Status</xs:documentation>
|
61
|
+
</xs:annotation>
|
62
|
+
<xs:restriction base="xs:string">
|
63
|
+
<xs:whiteSpace value="preserve"/>
|
64
|
+
<xs:maxLength value="15"/>
|
65
|
+
<xs:pattern value="[0-9]{15}"/>
|
66
|
+
</xs:restriction>
|
67
|
+
</xs:simpleType>
|
68
|
+
<xs:simpleType name="TRec">
|
69
|
+
<xs:annotation>
|
70
|
+
<xs:documentation>Tipo Número do Recibo do envio de lote de NF-e</xs:documentation>
|
71
|
+
</xs:annotation>
|
72
|
+
<xs:restriction base="xs:string">
|
73
|
+
<xs:whiteSpace value="preserve"/>
|
74
|
+
<xs:maxLength value="15"/>
|
75
|
+
<xs:pattern value="[0-9]{15}"/>
|
76
|
+
</xs:restriction>
|
77
|
+
</xs:simpleType>
|
78
|
+
<xs:simpleType name="TStat">
|
79
|
+
<xs:annotation>
|
80
|
+
<xs:documentation>Tipo Código da Mensagem enviada</xs:documentation>
|
81
|
+
</xs:annotation>
|
82
|
+
<xs:restriction base="xs:string">
|
83
|
+
<xs:whiteSpace value="preserve"/>
|
84
|
+
<xs:maxLength value="3"/>
|
85
|
+
<xs:pattern value="[0-9]{3}"/>
|
86
|
+
</xs:restriction>
|
87
|
+
</xs:simpleType>
|
88
|
+
<xs:simpleType name="TCnpj">
|
89
|
+
<xs:annotation>
|
90
|
+
<xs:documentation>Tipo Número do CNPJ</xs:documentation>
|
91
|
+
</xs:annotation>
|
92
|
+
<xs:restriction base="xs:string">
|
93
|
+
<xs:whiteSpace value="preserve"/>
|
94
|
+
<xs:maxLength value="14"/>
|
95
|
+
<xs:pattern value="[0-9]{14}"/>
|
96
|
+
</xs:restriction>
|
97
|
+
</xs:simpleType>
|
98
|
+
<xs:simpleType name="TCnpjVar">
|
99
|
+
<xs:annotation>
|
100
|
+
<xs:documentation>Tipo Número do CNPJ tmanho varíavel (3-14)</xs:documentation>
|
101
|
+
</xs:annotation>
|
102
|
+
<xs:restriction base="xs:string">
|
103
|
+
<xs:whiteSpace value="preserve"/>
|
104
|
+
<xs:maxLength value="14"/>
|
105
|
+
<xs:pattern value="[0-9]{3,14}"/>
|
106
|
+
</xs:restriction>
|
107
|
+
</xs:simpleType>
|
108
|
+
<xs:simpleType name="TCnpjOpc">
|
109
|
+
<xs:annotation>
|
110
|
+
<xs:documentation>Tipo Número do CNPJ Opcional</xs:documentation>
|
111
|
+
</xs:annotation>
|
112
|
+
<xs:restriction base="xs:string">
|
113
|
+
<xs:whiteSpace value="preserve"/>
|
114
|
+
<xs:maxLength value="14"/>
|
115
|
+
<xs:pattern value="[0-9]{0}|[0-9]{14}"/>
|
116
|
+
</xs:restriction>
|
117
|
+
</xs:simpleType>
|
118
|
+
<xs:simpleType name="TCpf">
|
119
|
+
<xs:annotation>
|
120
|
+
<xs:documentation>Tipo Número do CPF</xs:documentation>
|
121
|
+
</xs:annotation>
|
122
|
+
<xs:restriction base="xs:string">
|
123
|
+
<xs:whiteSpace value="preserve"/>
|
124
|
+
<xs:maxLength value="11"/>
|
125
|
+
<xs:pattern value="[0-9]{11}"/>
|
126
|
+
</xs:restriction>
|
127
|
+
</xs:simpleType>
|
128
|
+
<xs:simpleType name="TCpfVar">
|
129
|
+
<xs:annotation>
|
130
|
+
<xs:documentation>Tipo Número do CPF de tamanho variável (3-11)</xs:documentation>
|
131
|
+
</xs:annotation>
|
132
|
+
<xs:restriction base="xs:string">
|
133
|
+
<xs:whiteSpace value="preserve"/>
|
134
|
+
<xs:maxLength value="11"/>
|
135
|
+
<xs:pattern value="[0-9]{3,11}"/>
|
136
|
+
</xs:restriction>
|
137
|
+
</xs:simpleType>
|
138
|
+
<xs:simpleType name="TDec_0204v">
|
139
|
+
<xs:annotation>
|
140
|
+
<xs:documentation>Tipo Decimal com até 2 dígitos inteiros, podendo ter de 1 até 4 decimais</xs:documentation>
|
141
|
+
</xs:annotation>
|
142
|
+
<xs:restriction base="xs:string">
|
143
|
+
<xs:whiteSpace value="preserve"/>
|
144
|
+
<xs:pattern value="0|0\.[0-9]{1,4}|[1-9]{1}[0-9]{0,1}(\.[0-9]{1,4})?"/>
|
145
|
+
</xs:restriction>
|
146
|
+
</xs:simpleType>
|
147
|
+
<xs:simpleType name="TDec_0302a04">
|
148
|
+
<xs:annotation>
|
149
|
+
<xs:documentation>Tipo Decimal com até 3 dígitos inteiros, podendo ter de 2 até 4 decimais</xs:documentation>
|
150
|
+
</xs:annotation>
|
151
|
+
<xs:restriction base="xs:string">
|
152
|
+
<xs:whiteSpace value="preserve"/>
|
153
|
+
<xs:pattern value="0|0\.[0-9]{2,4}|[1-9]{1}[0-9]{0,2}(\.[0-9]{2,4})?"/>
|
154
|
+
</xs:restriction>
|
155
|
+
</xs:simpleType>
|
156
|
+
<xs:simpleType name="TDec_0302a04Opc">
|
157
|
+
<xs:annotation>
|
158
|
+
<xs:documentation>Tipo Decimal com até 3 dígitos inteiros e 2 até 4 decimais. Utilizados em TAGs opcionais, não aceita valor zero.</xs:documentation>
|
159
|
+
</xs:annotation>
|
160
|
+
<xs:restriction base="xs:string">
|
161
|
+
<xs:whiteSpace value="preserve"/>
|
162
|
+
<xs:pattern value="0\.[0-9]{2,4}|[1-9]{1}[0-9]{0,2}(\.[0-9]{2,4})?"/>
|
163
|
+
</xs:restriction>
|
164
|
+
</xs:simpleType>
|
165
|
+
<xs:simpleType name="TDec_0302Max100">
|
166
|
+
<xs:annotation>
|
167
|
+
<xs:documentation>Tipo Decimal com 3 inteiros (no máximo 100), com 2 decimais</xs:documentation>
|
168
|
+
</xs:annotation>
|
169
|
+
<xs:restriction base="xs:string">
|
170
|
+
<xs:whiteSpace value="preserve"/>
|
171
|
+
<xs:pattern value="0(\.[0-9]{2})?|100(\.00)?|[1-9]{1}[0-9]{0,1}(\.[0-9]{2})?"/>
|
172
|
+
</xs:restriction>
|
173
|
+
</xs:simpleType>
|
174
|
+
<xs:simpleType name="TDec_0302a04Max100">
|
175
|
+
<xs:annotation>
|
176
|
+
<xs:documentation>Tipo Decimal com 3 inteiros (no máximo 100), com até 4 decimais</xs:documentation>
|
177
|
+
</xs:annotation>
|
178
|
+
<xs:restriction base="xs:string">
|
179
|
+
<xs:whiteSpace value="preserve"/>
|
180
|
+
<xs:pattern value="[1-9]{1}(\.[0-9]{2,4})?|[1-9]{1}[0-9]{1}(\.[0-9]{2,4})?|100(\.0{2,4})?"/>
|
181
|
+
</xs:restriction>
|
182
|
+
</xs:simpleType>
|
183
|
+
<xs:simpleType name="TDec_0803v">
|
184
|
+
<xs:annotation>
|
185
|
+
<xs:documentation>Tipo Decimal com 8 inteiros, podendo ter de 1 até 3 decimais</xs:documentation>
|
186
|
+
</xs:annotation>
|
187
|
+
<xs:restriction base="xs:string">
|
188
|
+
<xs:whiteSpace value="preserve"/>
|
189
|
+
<xs:pattern value="0|0\.[0-9]{3}|[1-9]{1}[0-9]{0,7}(\.[0-9]{1,3})?"/>
|
190
|
+
</xs:restriction>
|
191
|
+
</xs:simpleType>
|
192
|
+
<xs:simpleType name="TDec_1104">
|
193
|
+
<xs:annotation>
|
194
|
+
<xs:documentation>Tipo Decimal com 11 inteiros, podendo ter 4 decimais</xs:documentation>
|
195
|
+
</xs:annotation>
|
196
|
+
<xs:restriction base="xs:string">
|
197
|
+
<xs:whiteSpace value="preserve"/>
|
198
|
+
<xs:pattern value="0|0\.[0-9]{4}|[1-9]{1}[0-9]{0,10}(\.[0-9]{4})?"/>
|
199
|
+
</xs:restriction>
|
200
|
+
</xs:simpleType>
|
201
|
+
<xs:simpleType name="TDec_1104v">
|
202
|
+
<xs:annotation>
|
203
|
+
<xs:documentation>Tipo Decimal com 11 inteiros, podendo ter de 1 até 4 decimais</xs:documentation>
|
204
|
+
</xs:annotation>
|
205
|
+
<xs:restriction base="xs:string">
|
206
|
+
<xs:whiteSpace value="preserve"/>
|
207
|
+
<xs:pattern value="0|0\.[0-9]{1,4}|[1-9]{1}[0-9]{0,10}|[1-9]{1}[0-9]{0,10}(\.[0-9]{1,4})?"/>
|
208
|
+
</xs:restriction>
|
209
|
+
</xs:simpleType>
|
210
|
+
<xs:simpleType name="TDec_1104Opc">
|
211
|
+
<xs:annotation>
|
212
|
+
<xs:documentation>Tipo Decimal com 11 inteiros, podendo ter 4 decimais (utilizado em tags opcionais)</xs:documentation>
|
213
|
+
</xs:annotation>
|
214
|
+
<xs:restriction base="xs:string">
|
215
|
+
<xs:whiteSpace value="preserve"/>
|
216
|
+
<xs:pattern value="0\.[1-9]{1}[0-9]{3}|0\.[0-9]{3}[1-9]{1}|0\.[0-9]{2}[1-9]{1}[0-9]{1}|0\.[0-9]{1}[1-9]{1}[0-9]{2}|[1-9]{1}[0-9]{0,10}(\.[0-9]{4})?"/>
|
217
|
+
</xs:restriction>
|
218
|
+
</xs:simpleType>
|
219
|
+
<xs:simpleType name="TDec_1110v">
|
220
|
+
<xs:annotation>
|
221
|
+
<xs:documentation>Tipo Decimal com 11 inteiros, podendo ter de 1 até 10 decimais</xs:documentation>
|
222
|
+
</xs:annotation>
|
223
|
+
<xs:restriction base="xs:string">
|
224
|
+
<xs:whiteSpace value="preserve"/>
|
225
|
+
<xs:pattern value="0|0\.[0-9]{1,10}|[1-9]{1}[0-9]{0,10}|[1-9]{1}[0-9]{0,10}(\.[0-9]{1,10})?"/>
|
226
|
+
</xs:restriction>
|
227
|
+
</xs:simpleType>
|
228
|
+
<xs:simpleType name="TDec_1203">
|
229
|
+
<xs:annotation>
|
230
|
+
<xs:documentation>Tipo Decimal com 12 inteiros, podendo ter 3 decimais</xs:documentation>
|
231
|
+
</xs:annotation>
|
232
|
+
<xs:restriction base="xs:string">
|
233
|
+
<xs:whiteSpace value="preserve"/>
|
234
|
+
<xs:pattern value="0|0\.[0-9]{3}|[1-9]{1}[0-9]{0,11}(\.[0-9]{3})?"/>
|
235
|
+
</xs:restriction>
|
236
|
+
</xs:simpleType>
|
237
|
+
<xs:simpleType name="TDec_1204">
|
238
|
+
<xs:annotation>
|
239
|
+
<xs:documentation>Tipo Decimal com 12 inteiros e 4 decimais</xs:documentation>
|
240
|
+
</xs:annotation>
|
241
|
+
<xs:restriction base="xs:string">
|
242
|
+
<xs:whiteSpace value="preserve"/>
|
243
|
+
<xs:pattern value="0|0\.[0-9]{1,4}|[1-9]{1}[0-9]{0,11}|[1-9]{1}[0-9]{0,11}(\.[0-9]{4})?"/>
|
244
|
+
</xs:restriction>
|
245
|
+
</xs:simpleType>
|
246
|
+
<xs:simpleType name="TDec_1204v">
|
247
|
+
<xs:annotation>
|
248
|
+
<xs:documentation>Tipo Decimal com 12 inteiros de 1 até 4 decimais</xs:documentation>
|
249
|
+
</xs:annotation>
|
250
|
+
<xs:restriction base="xs:string">
|
251
|
+
<xs:whiteSpace value="preserve"/>
|
252
|
+
<xs:pattern value="0|0\.[0-9]{1,4}|[1-9]{1}[0-9]{0,11}|[1-9]{1}[0-9]{0,11}(\.[0-9]{1,4})?"/>
|
253
|
+
</xs:restriction>
|
254
|
+
</xs:simpleType>
|
255
|
+
<xs:simpleType name="TDec_1204Opc">
|
256
|
+
<xs:annotation>
|
257
|
+
<xs:documentation>Tipo Decimal com 12 inteiros com 1 até 4 decimais</xs:documentation>
|
258
|
+
</xs:annotation>
|
259
|
+
<xs:restriction base="xs:string">
|
260
|
+
<xs:whiteSpace value="preserve"/>
|
261
|
+
<xs:pattern value="0\.[0-9]{1,4}|[1-9]{1}[0-9]{0,11}|[1-9]{1}[0-9]{0,11}(\.[0-9]{1,4})?"/>
|
262
|
+
</xs:restriction>
|
263
|
+
</xs:simpleType>
|
264
|
+
<xs:simpleType name="TDec_1204temperatura">
|
265
|
+
<xs:annotation>
|
266
|
+
<xs:documentation>Tipo Decimal com 12 inteiros, 1 a 4 decimais</xs:documentation>
|
267
|
+
</xs:annotation>
|
268
|
+
<xs:restriction base="xs:string">
|
269
|
+
<xs:whiteSpace value="preserve"/>
|
270
|
+
<xs:pattern value="0\.[1-9]{1}[0-9]{3}|0\.[0-9]{3}[1-9]{1}|0\.[0-9]{2}[1-9]{1}[0-9]{1}|0\.[0-9]{1}[1-9]{1}[0-9]{2}|[1-9]{1}[0-9]{0,11}(\.[0-9]{4})?"/>
|
271
|
+
</xs:restriction>
|
272
|
+
</xs:simpleType>
|
273
|
+
<xs:simpleType name="TDec_1302">
|
274
|
+
<xs:annotation>
|
275
|
+
<xs:documentation>Tipo Decimal com 15 dígitos, sendo 13 de corpo e 2 decimais</xs:documentation>
|
276
|
+
</xs:annotation>
|
277
|
+
<xs:restriction base="xs:string">
|
278
|
+
<xs:whiteSpace value="preserve"/>
|
279
|
+
<xs:pattern value="0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?"/>
|
280
|
+
</xs:restriction>
|
281
|
+
</xs:simpleType>
|
282
|
+
<xs:simpleType name="TDec_1302Opc">
|
283
|
+
<xs:annotation>
|
284
|
+
<xs:documentation>Tipo Decimal com 15 dígitos, sendo 13 de corpo e 2 decimais, utilizado em tags opcionais</xs:documentation>
|
285
|
+
</xs:annotation>
|
286
|
+
<xs:restriction base="xs:string">
|
287
|
+
<xs:whiteSpace value="preserve"/>
|
288
|
+
<xs:pattern value="0\.[0-9]{1}[1-9]{1}|0\.[1-9]{1}[0-9]{1}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?"/>
|
289
|
+
</xs:restriction>
|
290
|
+
</xs:simpleType>
|
291
|
+
<xs:simpleType name="TIeDest">
|
292
|
+
<xs:annotation>
|
293
|
+
<xs:documentation>Tipo Inscrição Estadual do Destinatário // alterado para aceitar vazio ou ISENTO - maio/2010 v2.0</xs:documentation>
|
294
|
+
</xs:annotation>
|
295
|
+
<xs:restriction base="xs:string">
|
296
|
+
<xs:whiteSpace value="preserve"/>
|
297
|
+
<xs:maxLength value="14"/>
|
298
|
+
<xs:pattern value="ISENTO|[0-9]{2,14}"/>
|
299
|
+
</xs:restriction>
|
300
|
+
</xs:simpleType>
|
301
|
+
<xs:simpleType name="TIeDestNaoIsento">
|
302
|
+
<xs:annotation>
|
303
|
+
<xs:documentation>Tipo Inscrição Estadual do Destinatário // alterado para aceitar vazio ou ISENTO - maio/2010 v2.0</xs:documentation>
|
304
|
+
</xs:annotation>
|
305
|
+
<xs:restriction base="xs:string">
|
306
|
+
<xs:whiteSpace value="preserve"/>
|
307
|
+
<xs:maxLength value="14"/>
|
308
|
+
<xs:pattern value="[0-9]{2,14}"/>
|
309
|
+
</xs:restriction>
|
310
|
+
</xs:simpleType>
|
311
|
+
<xs:simpleType name="TIeST">
|
312
|
+
<xs:annotation>
|
313
|
+
<xs:documentation>Tipo Inscrição Estadual do ST // acrescentado EM 24/10/08</xs:documentation>
|
314
|
+
</xs:annotation>
|
315
|
+
<xs:restriction base="xs:string">
|
316
|
+
<xs:whiteSpace value="preserve"/>
|
317
|
+
<xs:maxLength value="14"/>
|
318
|
+
<xs:pattern value="[0-9]{2,14}"/>
|
319
|
+
</xs:restriction>
|
320
|
+
</xs:simpleType>
|
321
|
+
<xs:simpleType name="TIe">
|
322
|
+
<xs:annotation>
|
323
|
+
<xs:documentation>Tipo Inscrição Estadual do Emitente // alterado EM 24/10/08 para aceitar ISENTO</xs:documentation>
|
324
|
+
</xs:annotation>
|
325
|
+
<xs:restriction base="xs:string">
|
326
|
+
<xs:whiteSpace value="preserve"/>
|
327
|
+
<xs:maxLength value="14"/>
|
328
|
+
<xs:pattern value="[0-9]{2,14}|ISENTO"/>
|
329
|
+
</xs:restriction>
|
330
|
+
</xs:simpleType>
|
331
|
+
<xs:simpleType name="TMod">
|
332
|
+
<xs:annotation>
|
333
|
+
<xs:documentation>Tipo Modelo Documento Fiscal</xs:documentation>
|
334
|
+
</xs:annotation>
|
335
|
+
<xs:restriction base="xs:string">
|
336
|
+
<xs:whiteSpace value="preserve"/>
|
337
|
+
<xs:enumeration value="55"/>
|
338
|
+
<xs:enumeration value="65"/>
|
339
|
+
</xs:restriction>
|
340
|
+
</xs:simpleType>
|
341
|
+
<xs:simpleType name="TNF">
|
342
|
+
<xs:annotation>
|
343
|
+
<xs:documentation>Tipo Número do Documento Fiscal</xs:documentation>
|
344
|
+
</xs:annotation>
|
345
|
+
<xs:restriction base="xs:string">
|
346
|
+
<xs:whiteSpace value="preserve"/>
|
347
|
+
<xs:pattern value="[1-9]{1}[0-9]{0,8}"/>
|
348
|
+
</xs:restriction>
|
349
|
+
</xs:simpleType>
|
350
|
+
<xs:simpleType name="TSerie">
|
351
|
+
<xs:annotation>
|
352
|
+
<xs:documentation>Tipo Série do Documento Fiscal </xs:documentation>
|
353
|
+
</xs:annotation>
|
354
|
+
<xs:restriction base="xs:string">
|
355
|
+
<xs:whiteSpace value="preserve"/>
|
356
|
+
<xs:pattern value="0|[1-9]{1}[0-9]{0,2}"/>
|
357
|
+
</xs:restriction>
|
358
|
+
</xs:simpleType>
|
359
|
+
<xs:simpleType name="TUf">
|
360
|
+
<xs:annotation>
|
361
|
+
<xs:documentation>Tipo Sigla da UF</xs:documentation>
|
362
|
+
</xs:annotation>
|
363
|
+
<xs:restriction base="xs:string">
|
364
|
+
<xs:whiteSpace value="preserve"/>
|
365
|
+
<xs:enumeration value="AC"/>
|
366
|
+
<xs:enumeration value="AL"/>
|
367
|
+
<xs:enumeration value="AM"/>
|
368
|
+
<xs:enumeration value="AP"/>
|
369
|
+
<xs:enumeration value="BA"/>
|
370
|
+
<xs:enumeration value="CE"/>
|
371
|
+
<xs:enumeration value="DF"/>
|
372
|
+
<xs:enumeration value="ES"/>
|
373
|
+
<xs:enumeration value="GO"/>
|
374
|
+
<xs:enumeration value="MA"/>
|
375
|
+
<xs:enumeration value="MG"/>
|
376
|
+
<xs:enumeration value="MS"/>
|
377
|
+
<xs:enumeration value="MT"/>
|
378
|
+
<xs:enumeration value="PA"/>
|
379
|
+
<xs:enumeration value="PB"/>
|
380
|
+
<xs:enumeration value="PE"/>
|
381
|
+
<xs:enumeration value="PI"/>
|
382
|
+
<xs:enumeration value="PR"/>
|
383
|
+
<xs:enumeration value="RJ"/>
|
384
|
+
<xs:enumeration value="RN"/>
|
385
|
+
<xs:enumeration value="RO"/>
|
386
|
+
<xs:enumeration value="RR"/>
|
387
|
+
<xs:enumeration value="RS"/>
|
388
|
+
<xs:enumeration value="SC"/>
|
389
|
+
<xs:enumeration value="SE"/>
|
390
|
+
<xs:enumeration value="SP"/>
|
391
|
+
<xs:enumeration value="TO"/>
|
392
|
+
<xs:enumeration value="EX"/>
|
393
|
+
</xs:restriction>
|
394
|
+
</xs:simpleType>
|
395
|
+
<xs:simpleType name="TUfEmi">
|
396
|
+
<xs:annotation>
|
397
|
+
<xs:documentation>Tipo Sigla da UF de emissor // acrescentado em 24/10/08 </xs:documentation>
|
398
|
+
</xs:annotation>
|
399
|
+
<xs:restriction base="xs:string">
|
400
|
+
<xs:whiteSpace value="preserve"/>
|
401
|
+
<xs:enumeration value="AC"/>
|
402
|
+
<xs:enumeration value="AL"/>
|
403
|
+
<xs:enumeration value="AM"/>
|
404
|
+
<xs:enumeration value="AP"/>
|
405
|
+
<xs:enumeration value="BA"/>
|
406
|
+
<xs:enumeration value="CE"/>
|
407
|
+
<xs:enumeration value="DF"/>
|
408
|
+
<xs:enumeration value="ES"/>
|
409
|
+
<xs:enumeration value="GO"/>
|
410
|
+
<xs:enumeration value="MA"/>
|
411
|
+
<xs:enumeration value="MG"/>
|
412
|
+
<xs:enumeration value="MS"/>
|
413
|
+
<xs:enumeration value="MT"/>
|
414
|
+
<xs:enumeration value="PA"/>
|
415
|
+
<xs:enumeration value="PB"/>
|
416
|
+
<xs:enumeration value="PE"/>
|
417
|
+
<xs:enumeration value="PI"/>
|
418
|
+
<xs:enumeration value="PR"/>
|
419
|
+
<xs:enumeration value="RJ"/>
|
420
|
+
<xs:enumeration value="RN"/>
|
421
|
+
<xs:enumeration value="RO"/>
|
422
|
+
<xs:enumeration value="RR"/>
|
423
|
+
<xs:enumeration value="RS"/>
|
424
|
+
<xs:enumeration value="SC"/>
|
425
|
+
<xs:enumeration value="SE"/>
|
426
|
+
<xs:enumeration value="SP"/>
|
427
|
+
<xs:enumeration value="TO"/>
|
428
|
+
</xs:restriction>
|
429
|
+
</xs:simpleType>
|
430
|
+
<xs:simpleType name="TAmb">
|
431
|
+
<xs:annotation>
|
432
|
+
<xs:documentation>Tipo Ambiente</xs:documentation>
|
433
|
+
</xs:annotation>
|
434
|
+
<xs:restriction base="xs:string">
|
435
|
+
<xs:whiteSpace value="preserve"/>
|
436
|
+
<xs:enumeration value="1"/>
|
437
|
+
<xs:enumeration value="2"/>
|
438
|
+
</xs:restriction>
|
439
|
+
</xs:simpleType>
|
440
|
+
<xs:simpleType name="TVerAplic">
|
441
|
+
<xs:annotation>
|
442
|
+
<xs:documentation>Tipo Versão do Aplicativo</xs:documentation>
|
443
|
+
</xs:annotation>
|
444
|
+
<xs:restriction base="nfe:TString">
|
445
|
+
<xs:minLength value="1"/>
|
446
|
+
<xs:maxLength value="20"/>
|
447
|
+
</xs:restriction>
|
448
|
+
</xs:simpleType>
|
449
|
+
<xs:simpleType name="TMotivo">
|
450
|
+
<xs:annotation>
|
451
|
+
<xs:documentation>Tipo Motivo</xs:documentation>
|
452
|
+
</xs:annotation>
|
453
|
+
<xs:restriction base="nfe:TString">
|
454
|
+
<xs:maxLength value="255"/>
|
455
|
+
<xs:minLength value="1"/>
|
456
|
+
</xs:restriction>
|
457
|
+
</xs:simpleType>
|
458
|
+
<xs:simpleType name="TJust">
|
459
|
+
<xs:annotation>
|
460
|
+
<xs:documentation>Tipo Justificativa</xs:documentation>
|
461
|
+
</xs:annotation>
|
462
|
+
<xs:restriction base="nfe:TString">
|
463
|
+
<xs:minLength value="15"/>
|
464
|
+
<xs:maxLength value="255"/>
|
465
|
+
</xs:restriction>
|
466
|
+
</xs:simpleType>
|
467
|
+
<xs:simpleType name="TServ">
|
468
|
+
<xs:annotation>
|
469
|
+
<xs:documentation>Tipo Serviço solicitado</xs:documentation>
|
470
|
+
</xs:annotation>
|
471
|
+
<xs:restriction base="nfe:TString"/>
|
472
|
+
</xs:simpleType>
|
473
|
+
<xs:simpleType name="Tano">
|
474
|
+
<xs:annotation>
|
475
|
+
<xs:documentation> Tipo ano</xs:documentation>
|
476
|
+
</xs:annotation>
|
477
|
+
<xs:restriction base="xs:string">
|
478
|
+
<xs:whiteSpace value="preserve"/>
|
479
|
+
<xs:pattern value="[0-9]{2}"/>
|
480
|
+
</xs:restriction>
|
481
|
+
</xs:simpleType>
|
482
|
+
<xs:simpleType name="TMed">
|
483
|
+
<xs:annotation>
|
484
|
+
<xs:documentation> Tipo temp médio em segundos</xs:documentation>
|
485
|
+
</xs:annotation>
|
486
|
+
<xs:restriction base="xs:string">
|
487
|
+
<xs:whiteSpace value="preserve"/>
|
488
|
+
<xs:pattern value="[0-9]{1,4}"/>
|
489
|
+
</xs:restriction>
|
490
|
+
</xs:simpleType>
|
491
|
+
<xs:simpleType name="TString">
|
492
|
+
<xs:annotation>
|
493
|
+
<xs:documentation> Tipo string genérico</xs:documentation>
|
494
|
+
</xs:annotation>
|
495
|
+
<xs:restriction base="xs:string">
|
496
|
+
<xs:whiteSpace value="preserve"/>
|
497
|
+
<xs:pattern value="[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}"/>
|
498
|
+
</xs:restriction>
|
499
|
+
</xs:simpleType>
|
500
|
+
<xs:simpleType name="TData">
|
501
|
+
<xs:annotation>
|
502
|
+
<xs:documentation> Tipo data AAAA-MM-DD</xs:documentation>
|
503
|
+
</xs:annotation>
|
504
|
+
<xs:restriction base="xs:string">
|
505
|
+
<xs:whiteSpace value="preserve"/>
|
506
|
+
<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)))))"/>
|
507
|
+
</xs:restriction>
|
508
|
+
</xs:simpleType>
|
509
|
+
<xs:simpleType name="TTime">
|
510
|
+
<xs:annotation>
|
511
|
+
<xs:documentation> Tipo hora HH:MM:SS // tipo acrescentado na v2.0</xs:documentation>
|
512
|
+
</xs:annotation>
|
513
|
+
<xs:restriction base="xs:string">
|
514
|
+
<xs:whiteSpace value="preserve"/>
|
515
|
+
<xs:pattern value="(([0-1][0-9])|([2][0-3])):([0-5][0-9]):([0-5][0-9])"/>
|
516
|
+
</xs:restriction>
|
517
|
+
</xs:simpleType>
|
518
|
+
<xs:simpleType name="TDateTimeUTC">
|
519
|
+
<xs:annotation>
|
520
|
+
<xs:documentation>Data e Hora, formato UTC (AAAA-MM-DDThh:mm:ssTZD, onde TZD = +hh:mm ou -hh:mm)</xs:documentation>
|
521
|
+
</xs:annotation>
|
522
|
+
<xs:restriction base="xs:string">
|
523
|
+
<xs:whiteSpace value="preserve"/>
|
524
|
+
<xs:pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d([\-,\+](0[0-9]|10|11):00|([\+](12):00))"/>
|
525
|
+
</xs:restriction>
|
526
|
+
</xs:simpleType>
|
527
|
+
<xs:simpleType name="TPlaca">
|
528
|
+
<xs:restriction base="xs:string">
|
529
|
+
<xs:whiteSpace value="preserve"/>
|
530
|
+
<xs:pattern value="[A-Z]{2,3}[0-9]{4}|[A-Z]{3,4}[0-9]{3}"/>
|
531
|
+
</xs:restriction>
|
532
|
+
</xs:simpleType>
|
533
|
+
<xs:simpleType name="TCOrgaoIBGE">
|
534
|
+
<xs:annotation>
|
535
|
+
<xs:documentation>Tipo Código de orgão (UF da tabela do IBGE + 90 RFB)</xs:documentation>
|
536
|
+
</xs:annotation>
|
537
|
+
<xs:restriction base="xs:string">
|
538
|
+
<xs:whiteSpace value="preserve"/>
|
539
|
+
<xs:enumeration value="11"/>
|
540
|
+
<xs:enumeration value="12"/>
|
541
|
+
<xs:enumeration value="13"/>
|
542
|
+
<xs:enumeration value="14"/>
|
543
|
+
<xs:enumeration value="15"/>
|
544
|
+
<xs:enumeration value="16"/>
|
545
|
+
<xs:enumeration value="17"/>
|
546
|
+
<xs:enumeration value="21"/>
|
547
|
+
<xs:enumeration value="22"/>
|
548
|
+
<xs:enumeration value="23"/>
|
549
|
+
<xs:enumeration value="24"/>
|
550
|
+
<xs:enumeration value="25"/>
|
551
|
+
<xs:enumeration value="26"/>
|
552
|
+
<xs:enumeration value="27"/>
|
553
|
+
<xs:enumeration value="28"/>
|
554
|
+
<xs:enumeration value="29"/>
|
555
|
+
<xs:enumeration value="31"/>
|
556
|
+
<xs:enumeration value="32"/>
|
557
|
+
<xs:enumeration value="33"/>
|
558
|
+
<xs:enumeration value="35"/>
|
559
|
+
<xs:enumeration value="41"/>
|
560
|
+
<xs:enumeration value="42"/>
|
561
|
+
<xs:enumeration value="43"/>
|
562
|
+
<xs:enumeration value="50"/>
|
563
|
+
<xs:enumeration value="51"/>
|
564
|
+
<xs:enumeration value="52"/>
|
565
|
+
<xs:enumeration value="53"/>
|
566
|
+
<xs:enumeration value="90"/>
|
567
|
+
<xs:enumeration value="91"/>
|
568
|
+
<xs:enumeration value="92"/>
|
569
|
+
</xs:restriction>
|
570
|
+
</xs:simpleType>
|
571
|
+
</xs:schema>
|