@treeunfe/shared 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +221 -0
- package/dist/index.cjs +4016 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +3975 -0
- package/dist/index.mjs.map +1 -0
- package/dist/resources/110150_v1.00.xsd +88 -0
- package/dist/resources/AC CertiSign.crt +22 -0
- package/dist/resources/AC-A-DIGIFORTE-RFB.crt +39 -0
- package/dist/resources/AC-ACD-v5.crt +40 -0
- package/dist/resources/AC-CERTISIGN-ICP-BRASIL-CODE.crt +45 -0
- package/dist/resources/AC-CERTISIGN-ICP-BRASIL-SSL-G2.crt +47 -0
- package/dist/resources/AC-Certisign-ICP-Brasil-SSL-EV-G3.crt +49 -0
- package/dist/resources/AC-Certisign-ICP-Brasil-SSL-EV-G4.crt +49 -0
- package/dist/resources/AC-DIGITAL-MAIS.crt +36 -0
- package/dist/resources/AC-INFOCO-DIGITAL-v5.crt +40 -0
- package/dist/resources/AC-PRIME-v5.crt +40 -0
- package/dist/resources/AC-PRODESP-RFB-v1.crt +41 -0
- package/dist/resources/AC-PRODESP-SP-SSL.crt +47 -0
- package/dist/resources/AC-PRODESP-SP.crt +36 -0
- package/dist/resources/AC-QUALITYCERT-v5.crt +40 -0
- package/dist/resources/AC-REDEBRASIL-v5.crt +40 -0
- package/dist/resources/AC-REDEBRASILv5.crt +40 -0
- package/dist/resources/AC-SERASA-SSL-EV-V2.crt +45 -0
- package/dist/resources/AC-SERASA-SSL-EV-V3.crt +45 -0
- package/dist/resources/AC-SERASA-SSL-EV-V4.crt +45 -0
- package/dist/resources/AC-SERPRO-SSLv1-v10.crt +40 -0
- package/dist/resources/AC-SOLUTI-CS-EV.crt +43 -0
- package/dist/resources/AC-SOLUTI-SSL-EV-G2.crt +43 -0
- package/dist/resources/AC-SOLUTI-SSL-EV-G3.crt +44 -0
- package/dist/resources/AC-SOLUTI-SSL-EV-G4.crt +44 -0
- package/dist/resources/AC-SOLUTI-SSL-EV.crt +41 -0
- package/dist/resources/AC-SOLUTI-v5-G2.crt +36 -0
- package/dist/resources/AC-SyngularID.crt +36 -0
- package/dist/resources/AC-VALID-CODE-SIGNING.crt +43 -0
- package/dist/resources/AC-VALID-SSL-EV.crt +44 -0
- package/dist/resources/ACIMESP1n.crt +26 -0
- package/dist/resources/ACIMPRENSAOFICIALRFBSSL.crt +41 -0
- package/dist/resources/ACImprensaOficial_18072011.crt +0 -0
- package/dist/resources/ACSyngularIDMultipla0.crt +42 -0
- package/dist/resources/AC_A_R_A_CERTIFICACAO_DIGITAL_v5.crt +41 -0
- package/dist/resources/AC_BR_RFB_G2.crt +27 -0
- package/dist/resources/AC_BR_RFB_G3.crt +39 -0
- package/dist/resources/AC_BR_RFB_G4.crt +39 -0
- package/dist/resources/AC_BoaVista.crt +36 -0
- package/dist/resources/AC_BoaVista_Certificadora.crt +44 -0
- package/dist/resources/AC_Boa_Vista_RFB.crt +39 -0
- package/dist/resources/AC_CACB_CD.crt +40 -0
- package/dist/resources/AC_CACB_RFB.crt +41 -0
- package/dist/resources/AC_CACB_RFB_G2.crt +41 -0
- package/dist/resources/AC_CAIXA_PF_1v2.crt +37 -0
- package/dist/resources/AC_CAIXA_PJ-SSL_v2.crt +38 -0
- package/dist/resources/AC_CAIXA_PJ_1v2.crt +37 -0
- package/dist/resources/AC_CAIXA_v2.crt +36 -0
- package/dist/resources/AC_CCN_COMPANHIA_CERTIFICADORA_NACIONAL_v5.crt +41 -0
- package/dist/resources/AC_CERTBANK_v5.crt +41 -0
- package/dist/resources/AC_CERTDATA_BRASIL.crt +41 -0
- package/dist/resources/AC_CERTIFICA_ANAPOLIS_v5_G2.crt +41 -0
- package/dist/resources/AC_CERTIFICA_MINAS_v5.crt +40 -0
- package/dist/resources/AC_CERTIPE_CD.crt +40 -0
- package/dist/resources/AC_CERTISIGN-JUS_CODESIGNING_G6.crt +39 -0
- package/dist/resources/AC_CERTISIGN-JUS_G5.crt +38 -0
- package/dist/resources/AC_CERTISIGN-JUS_SSL_G6.crt +38 -0
- package/dist/resources/AC_CERTMAIS_CD.crt +40 -0
- package/dist/resources/AC_CNDL_RFB.crt +39 -0
- package/dist/resources/AC_CNDL_RFB_v2.crt +39 -0
- package/dist/resources/AC_CNDL_RFB_v3.crt +39 -0
- package/dist/resources/AC_CONSULTI_BRASIL_RFB.crt +39 -0
- package/dist/resources/AC_CONSULTI_RFB.crt +39 -0
- package/dist/resources/AC_Caixa.crt +23 -0
- package/dist/resources/AC_Caixa_JUS_v1.crt +29 -0
- package/dist/resources/AC_Caixa_JUS_v2.crt +39 -0
- package/dist/resources/AC_Caixa_PF-1_v1.crt +30 -0
- package/dist/resources/AC_Caixa_PF_v1.crt +32 -0
- package/dist/resources/AC_Caixa_PF_v2.crt +41 -0
- package/dist/resources/AC_Caixa_PJ-1_v1.crt +30 -0
- package/dist/resources/AC_Caixa_PJ_v1.crt +32 -0
- package/dist/resources/AC_Caixa_PJ_v2.crt +45 -0
- package/dist/resources/AC_Caixa_SPB.crt +39 -0
- package/dist/resources/AC_Caixa_v1.crt +25 -0
- package/dist/resources/AC_CertiSign_JUS.crt +0 -0
- package/dist/resources/AC_CertiSign_V3.crt +25 -0
- package/dist/resources/AC_Certifica_Anapolis_v5.crt +43 -0
- package/dist/resources/AC_Certisign_G3.crt +25 -0
- package/dist/resources/AC_Certisign_G6.crt +36 -0
- package/dist/resources/AC_Certisign_G7.crt +36 -0
- package/dist/resources/AC_Certisign_G8.crt +36 -0
- package/dist/resources/AC_Certisign_JUS_G2.crt +38 -0
- package/dist/resources/AC_Certisign_JUS_G3.crt +39 -0
- package/dist/resources/AC_Certisign_JUS_G6.crt +38 -0
- package/dist/resources/AC_Certisign_Multipla_CodeSigning.crt +41 -0
- package/dist/resources/AC_Certisign_Multipla_G3.crt +38 -0
- package/dist/resources/AC_Certisign_Multipla_G5.crt +49 -0
- package/dist/resources/AC_Certisign_Multipla_G6.crt +49 -0
- package/dist/resources/AC_Certisign_Multipla_G7.crt +50 -0
- package/dist/resources/AC_Certisign_Multipla_SSL.crt +41 -0
- package/dist/resources/AC_Certisign_OM-BR.crt +21 -0
- package/dist/resources/AC_Certisign_RFB_G3.crt +29 -0
- package/dist/resources/AC_Certisign_RFB_G4.crt +41 -0
- package/dist/resources/AC_Certisign_RFB_G5.crt +41 -0
- package/dist/resources/AC_Certisign_SPB_G3.crt +27 -0
- package/dist/resources/AC_Certisign_SPB_G5.crt +38 -0
- package/dist/resources/AC_Certisign_SPB_G6.crt +39 -0
- package/dist/resources/AC_Certisign_Tempo_G1.crt +39 -0
- package/dist/resources/AC_Certisign_Tempo_G2.crt +41 -0
- package/dist/resources/AC_DIGISEC_v5.crt +40 -0
- package/dist/resources/AC_DIGITALSIGN_ACP_G2.crt +36 -0
- package/dist/resources/AC_DIGITALSIGN_G2.crt +50 -0
- package/dist/resources/AC_DIGITALSIGN_RFB_G2.crt +42 -0
- package/dist/resources/AC_DIGITALSIGN_RFB_G3.crt +41 -0
- package/dist/resources/AC_DIGITALSIGN_SSL.crt +41 -0
- package/dist/resources/AC_DIGITAL_MULTIPLA_G1.crt +40 -0
- package/dist/resources/AC_DIGITAL_v5.crt +40 -0
- package/dist/resources/AC_DOCCLOUD.crt +36 -0
- package/dist/resources/AC_DOCCLOUD_RFB.crt +39 -0
- package/dist/resources/AC_DOCCLOUD_RFB_v2.crt +39 -0
- package/dist/resources/AC_Defesa_v5.crt +49 -0
- package/dist/resources/AC_Digital.crt +46 -0
- package/dist/resources/AC_Digitalsign.crt +50 -0
- package/dist/resources/AC_Digitalsign_ACP.crt +36 -0
- package/dist/resources/AC_Digitalsign_RFB.crt +41 -0
- package/dist/resources/AC_EGBA_MULTIPLA.crt +45 -0
- package/dist/resources/AC_EGBA_Multipla_G2.crt +47 -0
- package/dist/resources/AC_EGBA_RFB.crt +41 -0
- package/dist/resources/AC_FCDL_SC_v5.crt +40 -0
- package/dist/resources/AC_FCDL_SC_v5_G2.crt +41 -0
- package/dist/resources/AC_FENACOR_RFB.crt +42 -0
- package/dist/resources/AC_Fenacon_Certisign_RFB_G2.crt +27 -0
- package/dist/resources/AC_Fenacon_Certisign_RFB_G3.crt +39 -0
- package/dist/resources/AC_IMESP_RFB_G2.crt +29 -0
- package/dist/resources/AC_IMESP_RFB_G3_retirar_repositorio.crt +41 -0
- package/dist/resources/AC_INTERCERT_v5.crt +40 -0
- package/dist/resources/AC_Imprensa_Oficial.crt +36 -0
- package/dist/resources/AC_Imprensa_Oficial_G2.crt +38 -0
- package/dist/resources/AC_Imprensa_Oficial_G3.crt +57 -0
- package/dist/resources/AC_Imprensa_Oficial_G4.crt +51 -0
- package/dist/resources/AC_Imprensa_Oficial_SP.crt +0 -0
- package/dist/resources/AC_Imprensa_Oficial_SP_G2.crt +24 -0
- package/dist/resources/AC_Imprensa_Oficial_SP_G3.crt +36 -0
- package/dist/resources/AC_Imprensa_Oficial_SP_G4.crt +36 -0
- package/dist/resources/AC_Imprensa_Oficial_SP_RFB_G3.crt +41 -0
- package/dist/resources/AC_Imprensa_Oficial_SP_RFB_G4.crt +41 -0
- package/dist/resources/AC_Imprensa_Oficial_SP_RFB_G5.crt +41 -0
- package/dist/resources/AC_Imprensa_Oficial_SSL.crt +42 -0
- package/dist/resources/AC_Instituto_Fenacom_RFB.crt +30 -0
- package/dist/resources/AC_Instituto_Fenacon.crt +38 -0
- package/dist/resources/AC_Instituto_Fenacon_G2.crt +49 -0
- package/dist/resources/AC_Instituto_Fenacon_G3.crt +50 -0
- package/dist/resources/AC_Instituto_Fenacon_G4.crt +51 -0
- package/dist/resources/AC_Instituto_Fenacon_RFB_G2.crt +41 -0
- package/dist/resources/AC_Instituto_Fenacon_RFB_G3.crt +41 -0
- package/dist/resources/AC_JUS_v6.crt +37 -0
- package/dist/resources/AC_LINK_CD.crt +40 -0
- package/dist/resources/AC_LINK_RFB.crt +39 -0
- package/dist/resources/AC_LINK_RFB_v2.crt +39 -0
- package/dist/resources/AC_MAXIMUS_TECNOLOGIA_E_EVENTOS_v5.crt +41 -0
- package/dist/resources/AC_MAXIMUS_TECNOLOGIA_E_EVENTOS_v5_G2.crt +41 -0
- package/dist/resources/AC_META_CERTIFICADO_DIGITAL_CD.crt +40 -0
- package/dist/resources/AC_Notarial_RFB_G2.crt +27 -0
- package/dist/resources/AC_Notarial_RFB_G3.crt +39 -0
- package/dist/resources/AC_Notarial_RFB_G4.crt +39 -0
- package/dist/resources/AC_OAB_G3.crt +39 -0
- package/dist/resources/AC_ONLINEBRASIL_v5.crt +41 -0
- package/dist/resources/AC_ONLINE_RFB_v5.crt +40 -0
- package/dist/resources/AC_Oab.crt +27 -0
- package/dist/resources/AC_Oab_G2.crt +38 -0
- package/dist/resources/AC_Online_Brasil.crt +43 -0
- package/dist/resources/AC_Online_RFB.crt +39 -0
- package/dist/resources/AC_PETROBRAS_G4.crt +44 -0
- package/dist/resources/AC_PLANO_DIGITAL_CD.crt +40 -0
- package/dist/resources/AC_PREMIUM_CERTIFICADORA_DIGITAL_CD.crt +40 -0
- package/dist/resources/AC_PRODEMGE_G4.crt +44 -0
- package/dist/resources/AC_PRODESP_v1.crt +49 -0
- package/dist/resources/AC_Petrobras_G2.crt +30 -0
- package/dist/resources/AC_Petrobras_G3.crt +41 -0
- package/dist/resources/AC_Prodemge_G2.crt +32 -0
- package/dist/resources/AC_Prodemge_G3.crt +43 -0
- package/dist/resources/AC_Prodemge_RFB.crt +41 -0
- package/dist/resources/AC_Prodemge_RFB_G2.crt +29 -0
- package/dist/resources/AC_Prodemge_RFB_G3.crt +41 -0
- package/dist/resources/AC_Prodemge_RFB_G4.crt +41 -0
- package/dist/resources/AC_Prodest_RFB.crt +27 -0
- package/dist/resources/AC_Prodest_RFB_v2.crt +39 -0
- package/dist/resources/AC_REDE_BRASIL_v5_G2.crt +41 -0
- package/dist/resources/AC_REDE_IDEIA_CD.crt +40 -0
- package/dist/resources/AC_REDE_IDEIA_RFB.crt +39 -0
- package/dist/resources/AC_SAFEIDBRASIL.crt +41 -0
- package/dist/resources/AC_SAFETECH_CD.crt +40 -0
- package/dist/resources/AC_SAFEWEB_CD.crt +40 -0
- package/dist/resources/AC_SAFEWEB_RFB_v5.crt +39 -0
- package/dist/resources/AC_SAFEWEB_TIMESTAMPING.crt +40 -0
- package/dist/resources/AC_SEGURA_ID_v5.crt +41 -0
- package/dist/resources/AC_SEMPRE_CD.crt +40 -0
- package/dist/resources/AC_SEMPRE_RFB_v2.crt +39 -0
- package/dist/resources/AC_SENHA_DIGITAL_BRASIL.crt +41 -0
- package/dist/resources/AC_SERPRO_JUS_v5.crt +37 -0
- package/dist/resources/AC_SIC_BRASIL.crt +41 -0
- package/dist/resources/AC_SIC_RFB.crt +40 -0
- package/dist/resources/AC_SIG_BRASIL.crt +41 -0
- package/dist/resources/AC_SINCOR_G4.crt +46 -0
- package/dist/resources/AC_SINCOR_RIO_RFB_G2.crt +41 -0
- package/dist/resources/AC_SOLUTI-JUS_CODESIGNING_v5.crt +40 -0
- package/dist/resources/AC_SOLUTI-JUS_SSL_v5.crt +40 -0
- package/dist/resources/AC_SOLUTI-JUS_v5.crt +40 -0
- package/dist/resources/AC_SOLUTI_Multipla_CODESIGNING.crt +43 -0
- package/dist/resources/AC_SOLUTI_Multipla_SSL.crt +43 -0
- package/dist/resources/AC_SOLUTI_Multipla_TIMESTAMPING.crt +42 -0
- package/dist/resources/AC_SOLUTI_Multipla_TIMESTAMPING_v5.crt +39 -0
- package/dist/resources/AC_SOLUTI_Multipla_v5.crt +40 -0
- package/dist/resources/AC_SOLUTI_Multipla_v5_G2.crt +41 -0
- package/dist/resources/AC_SOLUTI_RFB_V5.crt +41 -0
- package/dist/resources/AC_Safeweb_RFB.crt +39 -0
- package/dist/resources/AC_Safeweb_v12.crt +36 -0
- package/dist/resources/AC_Safeweb_v5.crt +36 -0
- package/dist/resources/AC_Secretaria_da_Receita_Federal_do_Brasil_v3.crt +37 -0
- package/dist/resources/AC_Secretaria_da_Receita_Federal_do_Brasil_v4.crt +37 -0
- package/dist/resources/AC_Serasa_ACP.crt +0 -0
- package/dist/resources/AC_Serasa_Autoridade_Certificadora_Principal.crt +0 -0
- package/dist/resources/AC_Serasa_JUS.crt +0 -0
- package/dist/resources/AC_Serasa_JUS_v1.crt +37 -0
- package/dist/resources/AC_Serasa_JUS_v2.crt +42 -0
- package/dist/resources/AC_Serasa_JUS_v5.crt +38 -0
- package/dist/resources/AC_Serasa_RFB.crt +31 -0
- package/dist/resources/AC_Serasa_RFB_v2.crt +42 -0
- package/dist/resources/AC_Serasa_RFB_v5.crt +42 -0
- package/dist/resources/AC_Serpro_JUS_v3.crt +29 -0
- package/dist/resources/AC_Serpro_JUS_v4.crt +39 -0
- package/dist/resources/AC_Serpro_JUS_v5_erro_retirado_repositorio.crt +37 -0
- package/dist/resources/AC_Serpro_RFB.crt +28 -0
- package/dist/resources/AC_Serpro_RFB_v3.crt +40 -0
- package/dist/resources/AC_Serpro_RFB_v4.crt +40 -0
- package/dist/resources/AC_Sincor_G2.crt +34 -0
- package/dist/resources/AC_Sincor_G3.crt +44 -0
- package/dist/resources/AC_Sincor_RFB_G2.crt +29 -0
- package/dist/resources/AC_Sincor_RFB_G4.crt +41 -0
- package/dist/resources/AC_Sincor_RFB_G5.crt +41 -0
- package/dist/resources/AC_Sincor_Rio_RFB_G1.crt +41 -0
- package/dist/resources/AC_Solucao_Digital_Multipla.crt +42 -0
- package/dist/resources/AC_Soluti.crt +36 -0
- package/dist/resources/AC_Soluti_JUS_v1.crt +46 -0
- package/dist/resources/AC_Soluti_Multipla_v1.crt +46 -0
- package/dist/resources/AC_Soluti_OM-BR.crt +21 -0
- package/dist/resources/AC_Soluti_RFB.crt +41 -0
- package/dist/resources/AC_Soluti_v5.crt +36 -0
- package/dist/resources/AC_SyngularID_Multipla.crt +42 -0
- package/dist/resources/AC_VALID-JUS_CODESIGNING_v5.crt +39 -0
- package/dist/resources/AC_VALID-JUS_SSL_v5.crt +38 -0
- package/dist/resources/AC_VALID-JUS_v5.crt +38 -0
- package/dist/resources/AC_VALID_BRASIL_CODESIGNING.crt +42 -0
- package/dist/resources/AC_VALID_BRASIL_SSL.crt +41 -0
- package/dist/resources/AC_VALID_BRASIL_v5.crt +41 -0
- package/dist/resources/AC_VALID_PLUS_CODESIGNING.crt +42 -0
- package/dist/resources/AC_VALID_PLUS_SSL.crt +41 -0
- package/dist/resources/AC_VALID_PLUS_TIMESTAMPING.crt +42 -0
- package/dist/resources/AC_VALID_PLUS_v5.crt +49 -0
- package/dist/resources/AC_VALID_RFB_v5.crt +39 -0
- package/dist/resources/AC_VALID_SPB_v5.crt +38 -0
- package/dist/resources/AC_VALID_V12.crt +36 -0
- package/dist/resources/AC_VALID_v5.crt +36 -0
- package/dist/resources/AC_Valid_Brasil.crt +43 -0
- package/dist/resources/AC_Valid_JUS_v4.crt +41 -0
- package/dist/resources/AC_Valid_PLUS.crt +55 -0
- package/dist/resources/AC_Valid_RFB.crt +39 -0
- package/dist/resources/AC_Valid_SPB.crt +40 -0
- package/dist/resources/AC_Validar_Multipla.crt +42 -0
- package/dist/resources/AUTORIDADE_CERTIFICADORA_PROCERTI.crt +39 -0
- package/dist/resources/Autoridade Certificadora da Presidencia da Republica v1.crt +0 -0
- package/dist/resources/Autoridade Certificadora da Presidencia da Republica v2.crt +25 -0
- package/dist/resources/Autoridade_Certificadora_ALTERNATIVE.crt +41 -0
- package/dist/resources/Autoridade_Certificadora_BRASIL_CERTEC.crt +41 -0
- package/dist/resources/Autoridade_Certificadora_DIGITAL_CERTY.crt +41 -0
- package/dist/resources/Autoridade_Certificadora_IDFEDERAL.crt +41 -0
- package/dist/resources/Autoridade_Certificadora_INFOCOMEX.crt +39 -0
- package/dist/resources/Autoridade_Certificadora_INVIA.crt +41 -0
- package/dist/resources/Autoridade_Certificadora_NACIONAL.crt +41 -0
- package/dist/resources/Autoridade_Certificadora_PRIMECERT.crt +41 -0
- package/dist/resources/Autoridade_Certificadora_SDI.crt +41 -0
- package/dist/resources/Autoridade_Certificadora_SEFAZCE.crt +38 -0
- package/dist/resources/Autoridade_Certificadora_SERPRORFBv5.crt +40 -0
- package/dist/resources/Autoridade_Certificadora_Serpro_v2.crt +25 -0
- package/dist/resources/Autoridade_Certificadora_Serpro_v3.crt +36 -0
- package/dist/resources/Autoridade_Certificadora_Serpro_v4.crt +36 -0
- package/dist/resources/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil.crt +29 -0
- package/dist/resources/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil_v2.crt +37 -0
- package/dist/resources/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil_v3.crt +41 -0
- package/dist/resources/Autoridade_Certificadora_da_Justica.crt +25 -0
- package/dist/resources/Autoridade_Certificadora_da_Justica_v3.crt +26 -0
- package/dist/resources/Autoridade_Certificadora_da_Justica_v4.crt +36 -0
- package/dist/resources/Autoridade_Certificadora_da_Justica_v5.crt +36 -0
- package/dist/resources/Autoridade_Certificadora_da_Presidencia_da_Republica.crt +25 -0
- package/dist/resources/Autoridade_Certificadora_da_Presidencia_da_Republica_2005.crt +0 -0
- package/dist/resources/Autoridade_Certificadora_da_Presidencia_da_Republica_v1.crt +0 -0
- package/dist/resources/Autoridade_Certificadora_da_Presidencia_da_Republica_v2.crt +25 -0
- package/dist/resources/Autoridade_Certificadora_da_Presidencia_da_Republica_v3.crt +37 -0
- package/dist/resources/Autoridade_Certificadora_da_Presidencia_da_Republica_v4.crt +40 -0
- package/dist/resources/Autoridade_Certificadora_da_Presidencia_da_Republica_v5.crt +38 -0
- package/dist/resources/Autoridade_Certificadora_da_Presidencia_da_Republica_v6.crt +38 -0
- package/dist/resources/Autoridade_Certificadora_da_Secretaria_da_Receita_Federal.crt +23 -0
- package/dist/resources/Autoridade_Certificadora_da_Secretaria_da_Receita_Federal_v1.crt +23 -0
- package/dist/resources/Autoridade_Certificadora_do_Proderj.crt +26 -0
- package/dist/resources/Autoridade_Certificadora_do_Proderj_v2.crt +38 -0
- package/dist/resources/Autoridade_Certificadora_do_SERPRO_RFB_SSL.crt +38 -0
- package/dist/resources/Autoridade_Certificadora_do_Serpro.crt +0 -0
- package/dist/resources/Autoridade_Certificadora_do_Serpro_Final_SSL.crt +38 -0
- package/dist/resources/Autoridade_Certificadora_do_Serpro_Final_v1.crt +32 -0
- package/dist/resources/Autoridade_Certificadora_do_Serpro_Final_v2.crt +30 -0
- package/dist/resources/Autoridade_Certificadora_do_Serpro_Final_v3.crt +48 -0
- package/dist/resources/Autoridade_Certificadora_do_Serpro_Final_v4.crt +48 -0
- package/dist/resources/Autoridade_Certificadora_do_Serpro_Final_v5.crt +40 -0
- package/dist/resources/Autoridade_Certificadora_do_Serpro_v1.crt +0 -0
- package/dist/resources/Autoridade__Certificadora_do_Serpro_v1.crt +0 -0
- package/dist/resources/Averb_v1.00.xsd +11 -0
- package/dist/resources/CCe_v1.00.xsd +11 -0
- package/dist/resources/CNC_v1.00.xsd +14 -0
- package/dist/resources/Certificado_AC_Raiz.crt +28 -0
- package/dist/resources/DFeTiposBasicos_v1.00.xsd +1097 -0
- package/dist/resources/DPS_v1.01.xsd +14 -0
- package/dist/resources/DigiCert_Global_Root_G2.crt +22 -0
- package/dist/resources/EPEC_v1.00.xsd +9 -0
- package/dist/resources/EPP1.xml +13 -0
- package/dist/resources/ERP1.xml +19 -0
- package/dist/resources/EventoCancEntregaNFe_v1.00.xsd +9 -0
- package/dist/resources/EventoEntregaNFe_v1.00.xsd +9 -0
- package/dist/resources/GeoTrust_TLS_RSA_CA_G1.crt +27 -0
- package/dist/resources/GlobalSign.crt +21 -0
- package/dist/resources/ICP-Brasil.crt +27 -0
- package/dist/resources/ICP-Brasilv10.crt +38 -0
- package/dist/resources/ICP-Brasilv11.crt +38 -0
- package/dist/resources/ICP-Brasilv12.crt +38 -0
- package/dist/resources/ICP-Brasilv2.crt +38 -0
- package/dist/resources/ICP-Brasilv5.crt +38 -0
- package/dist/resources/ICP-Brasilv6.crt +19 -0
- package/dist/resources/ICP-Brasilv7.crt +20 -0
- package/dist/resources/ISRG Root X1.crt +31 -0
- package/dist/resources/Instituto_Nacional_de_Metrologia_Qualidade_e_Tecnologia_INMETRO.crt +18 -0
- package/dist/resources/NFSe_v1.01.xsd +15 -0
- package/dist/resources/Secretaria_da_Receita_Federal_do_Brasil.crt +24 -0
- package/dist/resources/Sectigo Public Server Authentication Root R46.crt +32 -0
- package/dist/resources/Serasa_AC_v5.crt +41 -0
- package/dist/resources/Serasa_Autoridade_Certificadora_Principal.crt +27 -0
- package/dist/resources/Serasa_Autoridade_Certificadora_Principal_v1.crt +26 -0
- package/dist/resources/Serasa_Autoridade_Certificadora_Principal_v2.crt +37 -0
- package/dist/resources/Serasa_Autoridade_Certificadora_Principal_v5.crt +37 -0
- package/dist/resources/Serasa_Autoridade_Certificadora_v2.crt +43 -0
- package/dist/resources/Serasa_CD_SSL_v5.crt +47 -0
- package/dist/resources/Serasa_CD_v5.crt +56 -0
- package/dist/resources/Serasa_Certificadora_Digital_v2.crt +62 -0
- package/dist/resources/SuframaInternaliza_v1.00.xsd +9 -0
- package/dist/resources/SuframaVistoria_v1.00.xsd +9 -0
- package/dist/resources/USERTrust_RSA_Certification_Authority.crt +34 -0
- package/dist/resources/ac_certfacil_v5.crt +40 -0
- package/dist/resources/ac_certifica_anapolis_v5.crt +43 -0
- package/dist/resources/ac_mult_v5.crt +40 -0
- package/dist/resources/ac_soluti_spb_v5.crt +37 -0
- package/dist/resources/certs/AC CertiSign.crt +22 -0
- package/dist/resources/certs/AC-A-DIGIFORTE-RFB.crt +39 -0
- package/dist/resources/certs/AC-ACD-v5.crt +40 -0
- package/dist/resources/certs/AC-CERTISIGN-ICP-BRASIL-CODE.crt +45 -0
- package/dist/resources/certs/AC-CERTISIGN-ICP-BRASIL-SSL-G2.crt +47 -0
- package/dist/resources/certs/AC-Certisign-ICP-Brasil-SSL-EV-G3.crt +49 -0
- package/dist/resources/certs/AC-Certisign-ICP-Brasil-SSL-EV-G4.crt +49 -0
- package/dist/resources/certs/AC-DIGITAL-MAIS.crt +36 -0
- package/dist/resources/certs/AC-INFOCO-DIGITAL-v5.crt +40 -0
- package/dist/resources/certs/AC-PRIME-v5.crt +40 -0
- package/dist/resources/certs/AC-PRODESP-RFB-v1.crt +41 -0
- package/dist/resources/certs/AC-PRODESP-SP-SSL.crt +47 -0
- package/dist/resources/certs/AC-PRODESP-SP.crt +36 -0
- package/dist/resources/certs/AC-QUALITYCERT-v5.crt +40 -0
- package/dist/resources/certs/AC-REDEBRASIL-v5.crt +40 -0
- package/dist/resources/certs/AC-REDEBRASILv5.crt +40 -0
- package/dist/resources/certs/AC-SERASA-SSL-EV-V2.crt +45 -0
- package/dist/resources/certs/AC-SERASA-SSL-EV-V3.crt +45 -0
- package/dist/resources/certs/AC-SERASA-SSL-EV-V4.crt +45 -0
- package/dist/resources/certs/AC-SERPRO-SSLv1-v10.crt +40 -0
- package/dist/resources/certs/AC-SOLUTI-CS-EV.crt +43 -0
- package/dist/resources/certs/AC-SOLUTI-SSL-EV-G2.crt +43 -0
- package/dist/resources/certs/AC-SOLUTI-SSL-EV-G3.crt +44 -0
- package/dist/resources/certs/AC-SOLUTI-SSL-EV-G4.crt +44 -0
- package/dist/resources/certs/AC-SOLUTI-SSL-EV.crt +41 -0
- package/dist/resources/certs/AC-SOLUTI-v5-G2.crt +36 -0
- package/dist/resources/certs/AC-SyngularID.crt +36 -0
- package/dist/resources/certs/AC-VALID-CODE-SIGNING.crt +43 -0
- package/dist/resources/certs/AC-VALID-SSL-EV.crt +44 -0
- package/dist/resources/certs/ACIMESP1n.crt +26 -0
- package/dist/resources/certs/ACIMPRENSAOFICIALRFBSSL.crt +41 -0
- package/dist/resources/certs/ACImprensaOficial_18072011.crt +0 -0
- package/dist/resources/certs/ACSyngularIDMultipla0.crt +42 -0
- package/dist/resources/certs/AC_A_R_A_CERTIFICACAO_DIGITAL_v5.crt +41 -0
- package/dist/resources/certs/AC_BR_RFB_G2.crt +27 -0
- package/dist/resources/certs/AC_BR_RFB_G3.crt +39 -0
- package/dist/resources/certs/AC_BR_RFB_G4.crt +39 -0
- package/dist/resources/certs/AC_BoaVista.crt +36 -0
- package/dist/resources/certs/AC_BoaVista_Certificadora.crt +44 -0
- package/dist/resources/certs/AC_Boa_Vista_RFB.crt +39 -0
- package/dist/resources/certs/AC_CACB_CD.crt +40 -0
- package/dist/resources/certs/AC_CACB_RFB.crt +41 -0
- package/dist/resources/certs/AC_CACB_RFB_G2.crt +41 -0
- package/dist/resources/certs/AC_CAIXA_PF_1v2.crt +37 -0
- package/dist/resources/certs/AC_CAIXA_PJ-SSL_v2.crt +38 -0
- package/dist/resources/certs/AC_CAIXA_PJ_1v2.crt +37 -0
- package/dist/resources/certs/AC_CAIXA_v2.crt +36 -0
- package/dist/resources/certs/AC_CCN_COMPANHIA_CERTIFICADORA_NACIONAL_v5.crt +41 -0
- package/dist/resources/certs/AC_CERTBANK_v5.crt +41 -0
- package/dist/resources/certs/AC_CERTDATA_BRASIL.crt +41 -0
- package/dist/resources/certs/AC_CERTIFICA_ANAPOLIS_v5_G2.crt +41 -0
- package/dist/resources/certs/AC_CERTIFICA_MINAS_v5.crt +40 -0
- package/dist/resources/certs/AC_CERTIPE_CD.crt +40 -0
- package/dist/resources/certs/AC_CERTISIGN-JUS_CODESIGNING_G6.crt +39 -0
- package/dist/resources/certs/AC_CERTISIGN-JUS_G5.crt +38 -0
- package/dist/resources/certs/AC_CERTISIGN-JUS_SSL_G6.crt +38 -0
- package/dist/resources/certs/AC_CERTMAIS_CD.crt +40 -0
- package/dist/resources/certs/AC_CNDL_RFB.crt +39 -0
- package/dist/resources/certs/AC_CNDL_RFB_v2.crt +39 -0
- package/dist/resources/certs/AC_CNDL_RFB_v3.crt +39 -0
- package/dist/resources/certs/AC_CONSULTI_BRASIL_RFB.crt +39 -0
- package/dist/resources/certs/AC_CONSULTI_RFB.crt +39 -0
- package/dist/resources/certs/AC_Caixa.crt +23 -0
- package/dist/resources/certs/AC_Caixa_JUS_v1.crt +29 -0
- package/dist/resources/certs/AC_Caixa_JUS_v2.crt +39 -0
- package/dist/resources/certs/AC_Caixa_PF-1_v1.crt +30 -0
- package/dist/resources/certs/AC_Caixa_PF_v1.crt +32 -0
- package/dist/resources/certs/AC_Caixa_PF_v2.crt +41 -0
- package/dist/resources/certs/AC_Caixa_PJ-1_v1.crt +30 -0
- package/dist/resources/certs/AC_Caixa_PJ_v1.crt +32 -0
- package/dist/resources/certs/AC_Caixa_PJ_v2.crt +45 -0
- package/dist/resources/certs/AC_Caixa_SPB.crt +39 -0
- package/dist/resources/certs/AC_Caixa_v1.crt +25 -0
- package/dist/resources/certs/AC_CertiSign_JUS.crt +0 -0
- package/dist/resources/certs/AC_CertiSign_V3.crt +25 -0
- package/dist/resources/certs/AC_Certifica_Anapolis_v5.crt +43 -0
- package/dist/resources/certs/AC_Certisign_G3.crt +25 -0
- package/dist/resources/certs/AC_Certisign_G6.crt +36 -0
- package/dist/resources/certs/AC_Certisign_G7.crt +36 -0
- package/dist/resources/certs/AC_Certisign_G8.crt +36 -0
- package/dist/resources/certs/AC_Certisign_JUS_G2.crt +38 -0
- package/dist/resources/certs/AC_Certisign_JUS_G3.crt +39 -0
- package/dist/resources/certs/AC_Certisign_JUS_G6.crt +38 -0
- package/dist/resources/certs/AC_Certisign_Multipla_CodeSigning.crt +41 -0
- package/dist/resources/certs/AC_Certisign_Multipla_G3.crt +38 -0
- package/dist/resources/certs/AC_Certisign_Multipla_G5.crt +49 -0
- package/dist/resources/certs/AC_Certisign_Multipla_G6.crt +49 -0
- package/dist/resources/certs/AC_Certisign_Multipla_G7.crt +50 -0
- package/dist/resources/certs/AC_Certisign_Multipla_SSL.crt +41 -0
- package/dist/resources/certs/AC_Certisign_OM-BR.crt +21 -0
- package/dist/resources/certs/AC_Certisign_RFB_G3.crt +29 -0
- package/dist/resources/certs/AC_Certisign_RFB_G4.crt +41 -0
- package/dist/resources/certs/AC_Certisign_RFB_G5.crt +41 -0
- package/dist/resources/certs/AC_Certisign_SPB_G3.crt +27 -0
- package/dist/resources/certs/AC_Certisign_SPB_G5.crt +38 -0
- package/dist/resources/certs/AC_Certisign_SPB_G6.crt +39 -0
- package/dist/resources/certs/AC_Certisign_Tempo_G1.crt +39 -0
- package/dist/resources/certs/AC_Certisign_Tempo_G2.crt +41 -0
- package/dist/resources/certs/AC_DIGISEC_v5.crt +40 -0
- package/dist/resources/certs/AC_DIGITALSIGN_ACP_G2.crt +36 -0
- package/dist/resources/certs/AC_DIGITALSIGN_G2.crt +50 -0
- package/dist/resources/certs/AC_DIGITALSIGN_RFB_G2.crt +42 -0
- package/dist/resources/certs/AC_DIGITALSIGN_RFB_G3.crt +41 -0
- package/dist/resources/certs/AC_DIGITALSIGN_SSL.crt +41 -0
- package/dist/resources/certs/AC_DIGITAL_MULTIPLA_G1.crt +40 -0
- package/dist/resources/certs/AC_DIGITAL_v5.crt +40 -0
- package/dist/resources/certs/AC_DOCCLOUD.crt +36 -0
- package/dist/resources/certs/AC_DOCCLOUD_RFB.crt +39 -0
- package/dist/resources/certs/AC_DOCCLOUD_RFB_v2.crt +39 -0
- package/dist/resources/certs/AC_Defesa_v5.crt +49 -0
- package/dist/resources/certs/AC_Digital.crt +46 -0
- package/dist/resources/certs/AC_Digitalsign.crt +50 -0
- package/dist/resources/certs/AC_Digitalsign_ACP.crt +36 -0
- package/dist/resources/certs/AC_Digitalsign_RFB.crt +41 -0
- package/dist/resources/certs/AC_EGBA_MULTIPLA.crt +45 -0
- package/dist/resources/certs/AC_EGBA_Multipla_G2.crt +47 -0
- package/dist/resources/certs/AC_EGBA_RFB.crt +41 -0
- package/dist/resources/certs/AC_FCDL_SC_v5.crt +40 -0
- package/dist/resources/certs/AC_FCDL_SC_v5_G2.crt +41 -0
- package/dist/resources/certs/AC_FENACOR_RFB.crt +42 -0
- package/dist/resources/certs/AC_Fenacon_Certisign_RFB_G2.crt +27 -0
- package/dist/resources/certs/AC_Fenacon_Certisign_RFB_G3.crt +39 -0
- package/dist/resources/certs/AC_IMESP_RFB_G2.crt +29 -0
- package/dist/resources/certs/AC_IMESP_RFB_G3_retirar_repositorio.crt +41 -0
- package/dist/resources/certs/AC_INTERCERT_v5.crt +40 -0
- package/dist/resources/certs/AC_Imprensa_Oficial.crt +36 -0
- package/dist/resources/certs/AC_Imprensa_Oficial_G2.crt +38 -0
- package/dist/resources/certs/AC_Imprensa_Oficial_G3.crt +57 -0
- package/dist/resources/certs/AC_Imprensa_Oficial_G4.crt +51 -0
- package/dist/resources/certs/AC_Imprensa_Oficial_SP.crt +0 -0
- package/dist/resources/certs/AC_Imprensa_Oficial_SP_G2.crt +24 -0
- package/dist/resources/certs/AC_Imprensa_Oficial_SP_G3.crt +36 -0
- package/dist/resources/certs/AC_Imprensa_Oficial_SP_G4.crt +36 -0
- package/dist/resources/certs/AC_Imprensa_Oficial_SP_RFB_G3.crt +41 -0
- package/dist/resources/certs/AC_Imprensa_Oficial_SP_RFB_G4.crt +41 -0
- package/dist/resources/certs/AC_Imprensa_Oficial_SP_RFB_G5.crt +41 -0
- package/dist/resources/certs/AC_Imprensa_Oficial_SSL.crt +42 -0
- package/dist/resources/certs/AC_Instituto_Fenacom_RFB.crt +30 -0
- package/dist/resources/certs/AC_Instituto_Fenacon.crt +38 -0
- package/dist/resources/certs/AC_Instituto_Fenacon_G2.crt +49 -0
- package/dist/resources/certs/AC_Instituto_Fenacon_G3.crt +50 -0
- package/dist/resources/certs/AC_Instituto_Fenacon_G4.crt +51 -0
- package/dist/resources/certs/AC_Instituto_Fenacon_RFB_G2.crt +41 -0
- package/dist/resources/certs/AC_Instituto_Fenacon_RFB_G3.crt +41 -0
- package/dist/resources/certs/AC_JUS_v6.crt +37 -0
- package/dist/resources/certs/AC_LINK_CD.crt +40 -0
- package/dist/resources/certs/AC_LINK_RFB.crt +39 -0
- package/dist/resources/certs/AC_LINK_RFB_v2.crt +39 -0
- package/dist/resources/certs/AC_MAXIMUS_TECNOLOGIA_E_EVENTOS_v5.crt +41 -0
- package/dist/resources/certs/AC_MAXIMUS_TECNOLOGIA_E_EVENTOS_v5_G2.crt +41 -0
- package/dist/resources/certs/AC_META_CERTIFICADO_DIGITAL_CD.crt +40 -0
- package/dist/resources/certs/AC_Notarial_RFB_G2.crt +27 -0
- package/dist/resources/certs/AC_Notarial_RFB_G3.crt +39 -0
- package/dist/resources/certs/AC_Notarial_RFB_G4.crt +39 -0
- package/dist/resources/certs/AC_OAB_G3.crt +39 -0
- package/dist/resources/certs/AC_ONLINEBRASIL_v5.crt +41 -0
- package/dist/resources/certs/AC_ONLINE_RFB_v5.crt +40 -0
- package/dist/resources/certs/AC_Oab.crt +27 -0
- package/dist/resources/certs/AC_Oab_G2.crt +38 -0
- package/dist/resources/certs/AC_Online_Brasil.crt +43 -0
- package/dist/resources/certs/AC_Online_RFB.crt +39 -0
- package/dist/resources/certs/AC_PETROBRAS_G4.crt +44 -0
- package/dist/resources/certs/AC_PLANO_DIGITAL_CD.crt +40 -0
- package/dist/resources/certs/AC_PREMIUM_CERTIFICADORA_DIGITAL_CD.crt +40 -0
- package/dist/resources/certs/AC_PRODEMGE_G4.crt +44 -0
- package/dist/resources/certs/AC_PRODESP_v1.crt +49 -0
- package/dist/resources/certs/AC_Petrobras_G2.crt +30 -0
- package/dist/resources/certs/AC_Petrobras_G3.crt +41 -0
- package/dist/resources/certs/AC_Prodemge_G2.crt +32 -0
- package/dist/resources/certs/AC_Prodemge_G3.crt +43 -0
- package/dist/resources/certs/AC_Prodemge_RFB.crt +41 -0
- package/dist/resources/certs/AC_Prodemge_RFB_G2.crt +29 -0
- package/dist/resources/certs/AC_Prodemge_RFB_G3.crt +41 -0
- package/dist/resources/certs/AC_Prodemge_RFB_G4.crt +41 -0
- package/dist/resources/certs/AC_Prodest_RFB.crt +27 -0
- package/dist/resources/certs/AC_Prodest_RFB_v2.crt +39 -0
- package/dist/resources/certs/AC_REDE_BRASIL_v5_G2.crt +41 -0
- package/dist/resources/certs/AC_REDE_IDEIA_CD.crt +40 -0
- package/dist/resources/certs/AC_REDE_IDEIA_RFB.crt +39 -0
- package/dist/resources/certs/AC_SAFEIDBRASIL.crt +41 -0
- package/dist/resources/certs/AC_SAFETECH_CD.crt +40 -0
- package/dist/resources/certs/AC_SAFEWEB_CD.crt +40 -0
- package/dist/resources/certs/AC_SAFEWEB_RFB_v5.crt +39 -0
- package/dist/resources/certs/AC_SAFEWEB_TIMESTAMPING.crt +40 -0
- package/dist/resources/certs/AC_SEGURA_ID_v5.crt +41 -0
- package/dist/resources/certs/AC_SEMPRE_CD.crt +40 -0
- package/dist/resources/certs/AC_SEMPRE_RFB_v2.crt +39 -0
- package/dist/resources/certs/AC_SENHA_DIGITAL_BRASIL.crt +41 -0
- package/dist/resources/certs/AC_SERPRO_JUS_v5.crt +37 -0
- package/dist/resources/certs/AC_SIC_BRASIL.crt +41 -0
- package/dist/resources/certs/AC_SIC_RFB.crt +40 -0
- package/dist/resources/certs/AC_SIG_BRASIL.crt +41 -0
- package/dist/resources/certs/AC_SINCOR_G4.crt +46 -0
- package/dist/resources/certs/AC_SINCOR_RIO_RFB_G2.crt +41 -0
- package/dist/resources/certs/AC_SOLUTI-JUS_CODESIGNING_v5.crt +40 -0
- package/dist/resources/certs/AC_SOLUTI-JUS_SSL_v5.crt +40 -0
- package/dist/resources/certs/AC_SOLUTI-JUS_v5.crt +40 -0
- package/dist/resources/certs/AC_SOLUTI_Multipla_CODESIGNING.crt +43 -0
- package/dist/resources/certs/AC_SOLUTI_Multipla_SSL.crt +43 -0
- package/dist/resources/certs/AC_SOLUTI_Multipla_TIMESTAMPING.crt +42 -0
- package/dist/resources/certs/AC_SOLUTI_Multipla_TIMESTAMPING_v5.crt +39 -0
- package/dist/resources/certs/AC_SOLUTI_Multipla_v5.crt +40 -0
- package/dist/resources/certs/AC_SOLUTI_Multipla_v5_G2.crt +41 -0
- package/dist/resources/certs/AC_SOLUTI_RFB_V5.crt +41 -0
- package/dist/resources/certs/AC_Safeweb_RFB.crt +39 -0
- package/dist/resources/certs/AC_Safeweb_v12.crt +36 -0
- package/dist/resources/certs/AC_Safeweb_v5.crt +36 -0
- package/dist/resources/certs/AC_Secretaria_da_Receita_Federal_do_Brasil_v3.crt +37 -0
- package/dist/resources/certs/AC_Secretaria_da_Receita_Federal_do_Brasil_v4.crt +37 -0
- package/dist/resources/certs/AC_Serasa_ACP.crt +0 -0
- package/dist/resources/certs/AC_Serasa_Autoridade_Certificadora_Principal.crt +0 -0
- package/dist/resources/certs/AC_Serasa_JUS.crt +0 -0
- package/dist/resources/certs/AC_Serasa_JUS_v1.crt +37 -0
- package/dist/resources/certs/AC_Serasa_JUS_v2.crt +42 -0
- package/dist/resources/certs/AC_Serasa_JUS_v5.crt +38 -0
- package/dist/resources/certs/AC_Serasa_RFB.crt +31 -0
- package/dist/resources/certs/AC_Serasa_RFB_v2.crt +42 -0
- package/dist/resources/certs/AC_Serasa_RFB_v5.crt +42 -0
- package/dist/resources/certs/AC_Serpro_JUS_v3.crt +29 -0
- package/dist/resources/certs/AC_Serpro_JUS_v4.crt +39 -0
- package/dist/resources/certs/AC_Serpro_JUS_v5_erro_retirado_repositorio.crt +37 -0
- package/dist/resources/certs/AC_Serpro_RFB.crt +28 -0
- package/dist/resources/certs/AC_Serpro_RFB_v3.crt +40 -0
- package/dist/resources/certs/AC_Serpro_RFB_v4.crt +40 -0
- package/dist/resources/certs/AC_Sincor_G2.crt +34 -0
- package/dist/resources/certs/AC_Sincor_G3.crt +44 -0
- package/dist/resources/certs/AC_Sincor_RFB_G2.crt +29 -0
- package/dist/resources/certs/AC_Sincor_RFB_G4.crt +41 -0
- package/dist/resources/certs/AC_Sincor_RFB_G5.crt +41 -0
- package/dist/resources/certs/AC_Sincor_Rio_RFB_G1.crt +41 -0
- package/dist/resources/certs/AC_Solucao_Digital_Multipla.crt +42 -0
- package/dist/resources/certs/AC_Soluti.crt +36 -0
- package/dist/resources/certs/AC_Soluti_JUS_v1.crt +46 -0
- package/dist/resources/certs/AC_Soluti_Multipla_v1.crt +46 -0
- package/dist/resources/certs/AC_Soluti_OM-BR.crt +21 -0
- package/dist/resources/certs/AC_Soluti_RFB.crt +41 -0
- package/dist/resources/certs/AC_Soluti_v5.crt +36 -0
- package/dist/resources/certs/AC_SyngularID_Multipla.crt +42 -0
- package/dist/resources/certs/AC_VALID-JUS_CODESIGNING_v5.crt +39 -0
- package/dist/resources/certs/AC_VALID-JUS_SSL_v5.crt +38 -0
- package/dist/resources/certs/AC_VALID-JUS_v5.crt +38 -0
- package/dist/resources/certs/AC_VALID_BRASIL_CODESIGNING.crt +42 -0
- package/dist/resources/certs/AC_VALID_BRASIL_SSL.crt +41 -0
- package/dist/resources/certs/AC_VALID_BRASIL_v5.crt +41 -0
- package/dist/resources/certs/AC_VALID_PLUS_CODESIGNING.crt +42 -0
- package/dist/resources/certs/AC_VALID_PLUS_SSL.crt +41 -0
- package/dist/resources/certs/AC_VALID_PLUS_TIMESTAMPING.crt +42 -0
- package/dist/resources/certs/AC_VALID_PLUS_v5.crt +49 -0
- package/dist/resources/certs/AC_VALID_RFB_v5.crt +39 -0
- package/dist/resources/certs/AC_VALID_SPB_v5.crt +38 -0
- package/dist/resources/certs/AC_VALID_V12.crt +36 -0
- package/dist/resources/certs/AC_VALID_v5.crt +36 -0
- package/dist/resources/certs/AC_Valid_Brasil.crt +43 -0
- package/dist/resources/certs/AC_Valid_JUS_v4.crt +41 -0
- package/dist/resources/certs/AC_Valid_PLUS.crt +55 -0
- package/dist/resources/certs/AC_Valid_RFB.crt +39 -0
- package/dist/resources/certs/AC_Valid_SPB.crt +40 -0
- package/dist/resources/certs/AC_Validar_Multipla.crt +42 -0
- package/dist/resources/certs/AUTORIDADE_CERTIFICADORA_PROCERTI.crt +39 -0
- package/dist/resources/certs/Autoridade Certificadora da Presidencia da Republica v1.crt +0 -0
- package/dist/resources/certs/Autoridade Certificadora da Presidencia da Republica v2.crt +25 -0
- package/dist/resources/certs/Autoridade_Certificadora_ALTERNATIVE.crt +41 -0
- package/dist/resources/certs/Autoridade_Certificadora_BRASIL_CERTEC.crt +41 -0
- package/dist/resources/certs/Autoridade_Certificadora_DIGITAL_CERTY.crt +41 -0
- package/dist/resources/certs/Autoridade_Certificadora_IDFEDERAL.crt +41 -0
- package/dist/resources/certs/Autoridade_Certificadora_INFOCOMEX.crt +39 -0
- package/dist/resources/certs/Autoridade_Certificadora_INVIA.crt +41 -0
- package/dist/resources/certs/Autoridade_Certificadora_NACIONAL.crt +41 -0
- package/dist/resources/certs/Autoridade_Certificadora_PRIMECERT.crt +41 -0
- package/dist/resources/certs/Autoridade_Certificadora_SDI.crt +41 -0
- package/dist/resources/certs/Autoridade_Certificadora_SEFAZCE.crt +38 -0
- package/dist/resources/certs/Autoridade_Certificadora_SERPRORFBv5.crt +40 -0
- package/dist/resources/certs/Autoridade_Certificadora_Serpro_v2.crt +25 -0
- package/dist/resources/certs/Autoridade_Certificadora_Serpro_v3.crt +36 -0
- package/dist/resources/certs/Autoridade_Certificadora_Serpro_v4.crt +36 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil.crt +29 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil_v2.crt +37 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil_v3.crt +41 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Justica.crt +25 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Justica_v3.crt +26 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Justica_v4.crt +36 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Justica_v5.crt +36 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica.crt +25 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_2005.crt +0 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v1.crt +0 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v2.crt +25 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v3.crt +37 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v4.crt +40 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v5.crt +38 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v6.crt +38 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Secretaria_da_Receita_Federal.crt +23 -0
- package/dist/resources/certs/Autoridade_Certificadora_da_Secretaria_da_Receita_Federal_v1.crt +23 -0
- package/dist/resources/certs/Autoridade_Certificadora_do_Proderj.crt +26 -0
- package/dist/resources/certs/Autoridade_Certificadora_do_Proderj_v2.crt +38 -0
- package/dist/resources/certs/Autoridade_Certificadora_do_SERPRO_RFB_SSL.crt +38 -0
- package/dist/resources/certs/Autoridade_Certificadora_do_Serpro.crt +0 -0
- package/dist/resources/certs/Autoridade_Certificadora_do_Serpro_Final_SSL.crt +38 -0
- package/dist/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v1.crt +32 -0
- package/dist/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v2.crt +30 -0
- package/dist/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v3.crt +48 -0
- package/dist/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v4.crt +48 -0
- package/dist/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v5.crt +40 -0
- package/dist/resources/certs/Autoridade_Certificadora_do_Serpro_v1.crt +0 -0
- package/dist/resources/certs/Autoridade__Certificadora_do_Serpro_v1.crt +0 -0
- package/dist/resources/certs/Certificado_AC_Raiz.crt +28 -0
- package/dist/resources/certs/DigiCert_Global_Root_G2.crt +22 -0
- package/dist/resources/certs/GeoTrust_TLS_RSA_CA_G1.crt +27 -0
- package/dist/resources/certs/GlobalSign.crt +21 -0
- package/dist/resources/certs/ICP-Brasil.crt +27 -0
- package/dist/resources/certs/ICP-Brasilv10.crt +38 -0
- package/dist/resources/certs/ICP-Brasilv11.crt +38 -0
- package/dist/resources/certs/ICP-Brasilv12.crt +38 -0
- package/dist/resources/certs/ICP-Brasilv2.crt +38 -0
- package/dist/resources/certs/ICP-Brasilv5.crt +38 -0
- package/dist/resources/certs/ICP-Brasilv6.crt +19 -0
- package/dist/resources/certs/ICP-Brasilv7.crt +20 -0
- package/dist/resources/certs/ISRG Root X1.crt +31 -0
- package/dist/resources/certs/Instituto_Nacional_de_Metrologia_Qualidade_e_Tecnologia_INMETRO.crt +18 -0
- package/dist/resources/certs/Secretaria_da_Receita_Federal_do_Brasil.crt +24 -0
- package/dist/resources/certs/Sectigo Public Server Authentication Root R46.crt +32 -0
- package/dist/resources/certs/Serasa_AC_v5.crt +41 -0
- package/dist/resources/certs/Serasa_Autoridade_Certificadora_Principal.crt +27 -0
- package/dist/resources/certs/Serasa_Autoridade_Certificadora_Principal_v1.crt +26 -0
- package/dist/resources/certs/Serasa_Autoridade_Certificadora_Principal_v2.crt +37 -0
- package/dist/resources/certs/Serasa_Autoridade_Certificadora_Principal_v5.crt +37 -0
- package/dist/resources/certs/Serasa_Autoridade_Certificadora_v2.crt +43 -0
- package/dist/resources/certs/Serasa_CD_SSL_v5.crt +47 -0
- package/dist/resources/certs/Serasa_CD_v5.crt +56 -0
- package/dist/resources/certs/Serasa_Certificadora_Digital_v2.crt +62 -0
- package/dist/resources/certs/USERTrust_RSA_Certification_Authority.crt +34 -0
- package/dist/resources/certs/ac_certfacil_v5.crt +40 -0
- package/dist/resources/certs/ac_certifica_anapolis_v5.crt +43 -0
- package/dist/resources/certs/ac_mult_v5.crt +40 -0
- package/dist/resources/certs/ac_soluti_spb_v5.crt +37 -0
- package/dist/resources/certs/fazenda.mg.gov.br.crt +38 -0
- package/dist/resources/confRecebto_v1.00.xsd +9 -0
- package/dist/resources/consCad_v2.00.xsd +9 -0
- package/dist/resources/consGTIN_v1.00.xsd +10 -0
- package/dist/resources/consReciNFe_v4.00.xsd +9 -0
- package/dist/resources/consSitNFe_v2.01.xsd +10 -0
- package/dist/resources/consSitNFe_v4.00.xsd +9 -0
- package/dist/resources/consStatServ_v4.00 copy.xsd +9 -0
- package/dist/resources/consStatServ_v4.00.xsd +9 -0
- package/dist/resources/cte/distDFeInt_v1.00.xsd +71 -0
- package/dist/resources/cte/retDistDFeInt_v1.00.xsd +89 -0
- package/dist/resources/cte/tiposDistDFe_v1.00.xsd +243 -0
- package/dist/resources/cte/xmldsig-core-schema_v1.01.xsd +98 -0
- package/dist/resources/distDFeInt_v1.00.xsd +71 -0
- package/dist/resources/distDFeInt_v1.01.xsd +94 -0
- package/dist/resources/e110001_v1.00.xsd +73 -0
- package/dist/resources/e110110_v1.00.xsd +58 -0
- package/dist/resources/e110111_v1.00.xsd +42 -0
- package/dist/resources/e110112_v1.00.xsd +69 -0
- package/dist/resources/e110130_v1.00.xsd +102 -0
- package/dist/resources/e110131_v1.00.xsd +51 -0
- package/dist/resources/e110140_v1.00.xsd +124 -0
- package/dist/resources/e111500_v1.00.xsd +69 -0
- package/dist/resources/e111501_v1.00.xsd +69 -0
- package/dist/resources/e111502_v1.00.xsd +50 -0
- package/dist/resources/e111503_v1.00.xsd +50 -0
- package/dist/resources/e112110_v1.00.xsd +69 -0
- package/dist/resources/e112120_v1.00 .xsd +107 -0
- package/dist/resources/e112130_v1.00.xsd +119 -0
- package/dist/resources/e112140_v1.00.xsd +107 -0
- package/dist/resources/e210200_v1.00.xsd +32 -0
- package/dist/resources/e210210_v1.00.xsd +32 -0
- package/dist/resources/e210220_v1.00.xsd +45 -0
- package/dist/resources/e210240_v1.00.xsd +44 -0
- package/dist/resources/e211110_v1.00.xsd +134 -0
- package/dist/resources/e211120_v1.00.xsd +124 -0
- package/dist/resources/e211124_v1.00.xsd +107 -0
- package/dist/resources/e211128_v1.00.xsd +69 -0
- package/dist/resources/e211130_v1.00.xsd +107 -0
- package/dist/resources/e211140_v1.00.xsd +107 -0
- package/dist/resources/e211150_v1.00.xsd +85 -0
- package/dist/resources/e212110_v1.00.xsd +70 -0
- package/dist/resources/e212120_v1.00.xsd +69 -0
- package/dist/resources/e411500_v1.00.xsd +134 -0
- package/dist/resources/e411501_v1.00.xsd +134 -0
- package/dist/resources/e411502_v1.00.xsd +95 -0
- package/dist/resources/e411503_v1.00.xsd +95 -0
- package/dist/resources/e412120_v1.00.xsd +88 -0
- package/dist/resources/e412130_v1.00.xsd +88 -0
- package/dist/resources/e790700_v1.00.xsd +148 -0
- package/dist/resources/e990900_v1.00.xsd +87 -0
- package/dist/resources/e990910_v1.00.xsd +81 -0
- package/dist/resources/envAverb_v1.00.xsd +9 -0
- package/dist/resources/envCCe_v1.00.xsd +10 -0
- package/dist/resources/envConfRecebto_v1.00.xsd +9 -0
- package/dist/resources/envEPEC_v1.00.xsd +9 -0
- package/dist/resources/envEventoAtorInteressado_v1.00.xsd +9 -0
- package/dist/resources/envEventoCancEntregaNFe_v1.00.xsd +10 -0
- package/dist/resources/envEventoCancNFe_v1.00.xsd +9 -0
- package/dist/resources/envEventoCancSubst_v1.00.xsd +9 -0
- package/dist/resources/envEventoEntregaNFe_v1.00.xsd +10 -0
- package/dist/resources/envEvento_v1.00.xsd +9 -0
- package/dist/resources/envRemIndus_v1.00.xsd +9 -0
- package/dist/resources/envSuframaInternaliza_v1.00.xsd +10 -0
- package/dist/resources/envSuframaVistoria_v1.00.xsd +10 -0
- package/dist/resources/enviNFe_v4.00.xsd +9 -0
- package/dist/resources/eventoAtorInteressado_v1.00.xsd +9 -0
- package/dist/resources/eventoCancNFe_v1.00.xsd +9 -0
- package/dist/resources/eventoCancSubst_v1.00.xsd +9 -0
- package/dist/resources/eventoEPEC_v0.01.xsd +267 -0
- package/dist/resources/eventoRemIndus_v1.00.xsd +9 -0
- package/dist/resources/evento_v1.01.xsd +15 -0
- package/dist/resources/fazenda.mg.gov.br.crt +38 -0
- package/dist/resources/inutNFe_v4.00.xsd +9 -0
- package/dist/resources/leiauteAverb_v1.00.xsd +468 -0
- package/dist/resources/leiauteCCe_v1.00.xsd +418 -0
- package/dist/resources/leiauteCcgConsGTIN_v1.00.xsd +94 -0
- package/dist/resources/leiauteConfRecebto_v1.00.xsd +406 -0
- package/dist/resources/leiauteConsSitNFe_v2.01.xsd +548 -0
- package/dist/resources/leiauteConsSitNFe_v4.00.xsd +502 -0
- package/dist/resources/leiauteConsStatServ_v4.00.xsd +98 -0
- package/dist/resources/leiauteConsultaCadastro_v2.00.xsd +404 -0
- package/dist/resources/leiauteEPEC_v1.00.xsd +459 -0
- package/dist/resources/leiauteEPEC_v1.00.xsd.bak +465 -0
- package/dist/resources/leiauteEventoAtorInteressado_v1.00.xsd +384 -0
- package/dist/resources/leiauteEventoCancEntregaNFe_v1.00.xsd +307 -0
- package/dist/resources/leiauteEventoCancNFe_v1.00.xsd +394 -0
- package/dist/resources/leiauteEventoCancSubst_v1.00.xsd +366 -0
- package/dist/resources/leiauteEventoEntregaNFe_v1.00.xsd +321 -0
- package/dist/resources/leiauteEvento_v1.00.xsd +373 -0
- package/dist/resources/leiauteInutNFe_v4.00.xsd +193 -0
- package/dist/resources/leiauteNFe_v4.00.xsd +7558 -0
- package/dist/resources/leiauteRemIndus_v1.00.xsd +382 -0
- package/dist/resources/leiauteSuframaInternaliza_v1.00.xsd +642 -0
- package/dist/resources/leiauteSuframaVistoria_v1.00.xsd +648 -0
- package/dist/resources/nfe_v4.00.xsd +10 -0
- package/dist/resources/nfse/CNC_v1.00.xsd +14 -0
- package/dist/resources/nfse/DPS_v1.01.xsd +14 -0
- package/dist/resources/nfse/NFSe_v1.01.xsd +15 -0
- package/dist/resources/nfse/evento_v1.01.xsd +15 -0
- package/dist/resources/nfse/pedRegEvento_v1.01.xsd +15 -0
- package/dist/resources/nfse/tiposCnc_v1.00.xsd +166 -0
- package/dist/resources/nfse/tiposComplexos_v1.01.xsd +2674 -0
- package/dist/resources/nfse/tiposEventos_v1.01.xsd +780 -0
- package/dist/resources/nfse/tiposSimples_v1.01.xsd +1768 -0
- package/dist/resources/nfse/xmldsig-core-schema.xsd +318 -0
- package/dist/resources/pedRegEvento_v1.01.xsd +15 -0
- package/dist/resources/procAverbNFe_v1.00.xsd +10 -0
- package/dist/resources/procCCeNFe_v1.00.xsd +10 -0
- package/dist/resources/procConfRecebtoNFe_v1.00.xsd +9 -0
- package/dist/resources/procEPEC_v1.00.xsd +9 -0
- package/dist/resources/procEventoAtorInteressado_v1.00.xsd +9 -0
- package/dist/resources/procEventoCancEntregaNFe_v1.00.xsd +9 -0
- package/dist/resources/procEventoCancNFe_v1.00.xsd +9 -0
- package/dist/resources/procEventoCancSubst_v1.00.xsd +9 -0
- package/dist/resources/procEventoEntregaNFe_v1.00.xsd +9 -0
- package/dist/resources/procEventoNFe_v1.00.xsd +9 -0
- package/dist/resources/procInutNFe_v4.00.xsd +9 -0
- package/dist/resources/procNFe_v4.00.xsd +9 -0
- package/dist/resources/procRemIndus_v1.00.xsd +9 -0
- package/dist/resources/resEvento_v1.01.xsd +1 -0
- package/dist/resources/resNFe_v1.01.xsd +5 -0
- package/dist/resources/retConsCad_v2.00.xsd +9 -0
- package/dist/resources/retConsGTIN_v1.00.xsd +9 -0
- package/dist/resources/retConsReciNFe_v4.00.xsd +9 -0
- package/dist/resources/retConsSitNFe_v2.01.xsd +10 -0
- package/dist/resources/retConsSitNFe_v4.00.xsd +9 -0
- package/dist/resources/retConsStatServ_v4.00.xsd +9 -0
- package/dist/resources/retDistDFeInt_v1.00.xsd +89 -0
- package/dist/resources/retDistDFeInt_v1.01.xsd +5 -0
- package/dist/resources/retEnvAverb_v1.00.xsd +9 -0
- package/dist/resources/retEnvCCe_v1.00.xsd +10 -0
- package/dist/resources/retEnvConfRecebto_v1.00.xsd +9 -0
- package/dist/resources/retEnvEPEC_v1.00.xsd +9 -0
- package/dist/resources/retEnvEventoAtorInteressado_v1.00.xsd +9 -0
- package/dist/resources/retEnvEventoCancNFe_v1.00.xsd +9 -0
- package/dist/resources/retEnvEventoCancSubst_v1.00.xsd +9 -0
- package/dist/resources/retEnvEvento_v1.00.xsd +9 -0
- package/dist/resources/retEnvRemIndus_v1.00.xsd +9 -0
- package/dist/resources/retEnvSuframaInternaliza_v1.00.xsd +9 -0
- package/dist/resources/retEnvSuframaVistoria_v1.00.xsd +9 -0
- package/dist/resources/retEnviNFe_v4.00.xsd +9 -0
- package/dist/resources/retEventoCancEntregaNFe_v1.00.xsd +9 -0
- package/dist/resources/retEventoEPEC_v0.01.xsd +207 -0
- package/dist/resources/retEventoEntregaNFe_v1.00.xsd +9 -0
- package/dist/resources/retInutNFe_v4.00.xsd +9 -0
- package/dist/resources/schemas/110150_v1.00.xsd +88 -0
- package/dist/resources/schemas/Averb_v1.00.xsd +11 -0
- package/dist/resources/schemas/CCe_v1.00.xsd +11 -0
- package/dist/resources/schemas/DFeTiposBasicos_v1.00.xsd +1097 -0
- package/dist/resources/schemas/EPEC_v1.00.xsd +9 -0
- package/dist/resources/schemas/EPP1.xml +13 -0
- package/dist/resources/schemas/ERP1.xml +19 -0
- package/dist/resources/schemas/EventoCancEntregaNFe_v1.00.xsd +9 -0
- package/dist/resources/schemas/EventoEntregaNFe_v1.00.xsd +9 -0
- package/dist/resources/schemas/SuframaInternaliza_v1.00.xsd +9 -0
- package/dist/resources/schemas/SuframaVistoria_v1.00.xsd +9 -0
- package/dist/resources/schemas/confRecebto_v1.00.xsd +9 -0
- package/dist/resources/schemas/consCad_v2.00.xsd +9 -0
- package/dist/resources/schemas/consGTIN_v1.00.xsd +10 -0
- package/dist/resources/schemas/consReciNFe_v4.00.xsd +9 -0
- package/dist/resources/schemas/consSitNFe_v2.01.xsd +10 -0
- package/dist/resources/schemas/consSitNFe_v4.00.xsd +9 -0
- package/dist/resources/schemas/consStatServ_v4.00 copy.xsd +9 -0
- package/dist/resources/schemas/consStatServ_v4.00.xsd +9 -0
- package/dist/resources/schemas/cte/distDFeInt_v1.00.xsd +71 -0
- package/dist/resources/schemas/cte/retDistDFeInt_v1.00.xsd +89 -0
- package/dist/resources/schemas/cte/tiposDistDFe_v1.00.xsd +243 -0
- package/dist/resources/schemas/cte/xmldsig-core-schema_v1.01.xsd +98 -0
- package/dist/resources/schemas/distDFeInt_v1.01.xsd +94 -0
- package/dist/resources/schemas/e110001_v1.00.xsd +73 -0
- package/dist/resources/schemas/e110110_v1.00.xsd +58 -0
- package/dist/resources/schemas/e110111_v1.00.xsd +42 -0
- package/dist/resources/schemas/e110112_v1.00.xsd +69 -0
- package/dist/resources/schemas/e110130_v1.00.xsd +102 -0
- package/dist/resources/schemas/e110131_v1.00.xsd +51 -0
- package/dist/resources/schemas/e110140_v1.00.xsd +124 -0
- package/dist/resources/schemas/e111500_v1.00.xsd +69 -0
- package/dist/resources/schemas/e111501_v1.00.xsd +69 -0
- package/dist/resources/schemas/e111502_v1.00.xsd +50 -0
- package/dist/resources/schemas/e111503_v1.00.xsd +50 -0
- package/dist/resources/schemas/e112110_v1.00.xsd +69 -0
- package/dist/resources/schemas/e112120_v1.00 .xsd +107 -0
- package/dist/resources/schemas/e112130_v1.00.xsd +119 -0
- package/dist/resources/schemas/e112140_v1.00.xsd +107 -0
- package/dist/resources/schemas/e210200_v1.00.xsd +32 -0
- package/dist/resources/schemas/e210210_v1.00.xsd +32 -0
- package/dist/resources/schemas/e210220_v1.00.xsd +45 -0
- package/dist/resources/schemas/e210240_v1.00.xsd +44 -0
- package/dist/resources/schemas/e211110_v1.00.xsd +134 -0
- package/dist/resources/schemas/e211120_v1.00.xsd +124 -0
- package/dist/resources/schemas/e211124_v1.00.xsd +107 -0
- package/dist/resources/schemas/e211128_v1.00.xsd +69 -0
- package/dist/resources/schemas/e211130_v1.00.xsd +107 -0
- package/dist/resources/schemas/e211140_v1.00.xsd +107 -0
- package/dist/resources/schemas/e211150_v1.00.xsd +85 -0
- package/dist/resources/schemas/e212110_v1.00.xsd +70 -0
- package/dist/resources/schemas/e212120_v1.00.xsd +69 -0
- package/dist/resources/schemas/e411500_v1.00.xsd +134 -0
- package/dist/resources/schemas/e411501_v1.00.xsd +134 -0
- package/dist/resources/schemas/e411502_v1.00.xsd +95 -0
- package/dist/resources/schemas/e411503_v1.00.xsd +95 -0
- package/dist/resources/schemas/e412120_v1.00.xsd +88 -0
- package/dist/resources/schemas/e412130_v1.00.xsd +88 -0
- package/dist/resources/schemas/e790700_v1.00.xsd +148 -0
- package/dist/resources/schemas/e990900_v1.00.xsd +87 -0
- package/dist/resources/schemas/e990910_v1.00.xsd +81 -0
- package/dist/resources/schemas/envAverb_v1.00.xsd +9 -0
- package/dist/resources/schemas/envCCe_v1.00.xsd +10 -0
- package/dist/resources/schemas/envConfRecebto_v1.00.xsd +9 -0
- package/dist/resources/schemas/envEPEC_v1.00.xsd +9 -0
- package/dist/resources/schemas/envEventoAtorInteressado_v1.00.xsd +9 -0
- package/dist/resources/schemas/envEventoCancEntregaNFe_v1.00.xsd +10 -0
- package/dist/resources/schemas/envEventoCancNFe_v1.00.xsd +9 -0
- package/dist/resources/schemas/envEventoCancSubst_v1.00.xsd +9 -0
- package/dist/resources/schemas/envEventoEntregaNFe_v1.00.xsd +10 -0
- package/dist/resources/schemas/envEvento_v1.00.xsd +9 -0
- package/dist/resources/schemas/envRemIndus_v1.00.xsd +9 -0
- package/dist/resources/schemas/envSuframaInternaliza_v1.00.xsd +10 -0
- package/dist/resources/schemas/envSuframaVistoria_v1.00.xsd +10 -0
- package/dist/resources/schemas/enviNFe_v4.00.xsd +9 -0
- package/dist/resources/schemas/eventoAtorInteressado_v1.00.xsd +9 -0
- package/dist/resources/schemas/eventoCancNFe_v1.00.xsd +9 -0
- package/dist/resources/schemas/eventoCancSubst_v1.00.xsd +9 -0
- package/dist/resources/schemas/eventoEPEC_v0.01.xsd +267 -0
- package/dist/resources/schemas/eventoRemIndus_v1.00.xsd +9 -0
- package/dist/resources/schemas/inutNFe_v4.00.xsd +9 -0
- package/dist/resources/schemas/leiauteAverb_v1.00.xsd +468 -0
- package/dist/resources/schemas/leiauteCCe_v1.00.xsd +418 -0
- package/dist/resources/schemas/leiauteCcgConsGTIN_v1.00.xsd +94 -0
- package/dist/resources/schemas/leiauteConfRecebto_v1.00.xsd +406 -0
- package/dist/resources/schemas/leiauteConsSitNFe_v2.01.xsd +548 -0
- package/dist/resources/schemas/leiauteConsSitNFe_v4.00.xsd +502 -0
- package/dist/resources/schemas/leiauteConsStatServ_v4.00.xsd +98 -0
- package/dist/resources/schemas/leiauteConsultaCadastro_v2.00.xsd +404 -0
- package/dist/resources/schemas/leiauteEPEC_v1.00.xsd +459 -0
- package/dist/resources/schemas/leiauteEPEC_v1.00.xsd.bak +465 -0
- package/dist/resources/schemas/leiauteEventoAtorInteressado_v1.00.xsd +384 -0
- package/dist/resources/schemas/leiauteEventoCancEntregaNFe_v1.00.xsd +307 -0
- package/dist/resources/schemas/leiauteEventoCancNFe_v1.00.xsd +394 -0
- package/dist/resources/schemas/leiauteEventoCancSubst_v1.00.xsd +366 -0
- package/dist/resources/schemas/leiauteEventoEntregaNFe_v1.00.xsd +321 -0
- package/dist/resources/schemas/leiauteEvento_v1.00.xsd +373 -0
- package/dist/resources/schemas/leiauteInutNFe_v4.00.xsd +193 -0
- package/dist/resources/schemas/leiauteNFe_v4.00.xsd +7558 -0
- package/dist/resources/schemas/leiauteRemIndus_v1.00.xsd +382 -0
- package/dist/resources/schemas/leiauteSuframaInternaliza_v1.00.xsd +642 -0
- package/dist/resources/schemas/leiauteSuframaVistoria_v1.00.xsd +648 -0
- package/dist/resources/schemas/nfe_v4.00.xsd +10 -0
- package/dist/resources/schemas/nfse/CNC_v1.00.xsd +14 -0
- package/dist/resources/schemas/nfse/DPS_v1.01.xsd +14 -0
- package/dist/resources/schemas/nfse/NFSe_v1.01.xsd +15 -0
- package/dist/resources/schemas/nfse/evento_v1.01.xsd +15 -0
- package/dist/resources/schemas/nfse/pedRegEvento_v1.01.xsd +15 -0
- package/dist/resources/schemas/nfse/tiposCnc_v1.00.xsd +166 -0
- package/dist/resources/schemas/nfse/tiposComplexos_v1.01.xsd +2674 -0
- package/dist/resources/schemas/nfse/tiposEventos_v1.01.xsd +780 -0
- package/dist/resources/schemas/nfse/tiposSimples_v1.01.xsd +1768 -0
- package/dist/resources/schemas/nfse/xmldsig-core-schema.xsd +318 -0
- package/dist/resources/schemas/procAverbNFe_v1.00.xsd +10 -0
- package/dist/resources/schemas/procCCeNFe_v1.00.xsd +10 -0
- package/dist/resources/schemas/procConfRecebtoNFe_v1.00.xsd +9 -0
- package/dist/resources/schemas/procEPEC_v1.00.xsd +9 -0
- package/dist/resources/schemas/procEventoAtorInteressado_v1.00.xsd +9 -0
- package/dist/resources/schemas/procEventoCancEntregaNFe_v1.00.xsd +9 -0
- package/dist/resources/schemas/procEventoCancNFe_v1.00.xsd +9 -0
- package/dist/resources/schemas/procEventoCancSubst_v1.00.xsd +9 -0
- package/dist/resources/schemas/procEventoEntregaNFe_v1.00.xsd +9 -0
- package/dist/resources/schemas/procEventoNFe_v1.00.xsd +9 -0
- package/dist/resources/schemas/procInutNFe_v4.00.xsd +9 -0
- package/dist/resources/schemas/procNFe_v4.00.xsd +9 -0
- package/dist/resources/schemas/procRemIndus_v1.00.xsd +9 -0
- package/dist/resources/schemas/resEvento_v1.01.xsd +1 -0
- package/dist/resources/schemas/resNFe_v1.01.xsd +5 -0
- package/dist/resources/schemas/retConsCad_v2.00.xsd +9 -0
- package/dist/resources/schemas/retConsGTIN_v1.00.xsd +9 -0
- package/dist/resources/schemas/retConsReciNFe_v4.00.xsd +9 -0
- package/dist/resources/schemas/retConsSitNFe_v2.01.xsd +10 -0
- package/dist/resources/schemas/retConsSitNFe_v4.00.xsd +9 -0
- package/dist/resources/schemas/retConsStatServ_v4.00.xsd +9 -0
- package/dist/resources/schemas/retDistDFeInt_v1.01.xsd +5 -0
- package/dist/resources/schemas/retEnvAverb_v1.00.xsd +9 -0
- package/dist/resources/schemas/retEnvCCe_v1.00.xsd +10 -0
- package/dist/resources/schemas/retEnvConfRecebto_v1.00.xsd +9 -0
- package/dist/resources/schemas/retEnvEPEC_v1.00.xsd +9 -0
- package/dist/resources/schemas/retEnvEventoAtorInteressado_v1.00.xsd +9 -0
- package/dist/resources/schemas/retEnvEventoCancNFe_v1.00.xsd +9 -0
- package/dist/resources/schemas/retEnvEventoCancSubst_v1.00.xsd +9 -0
- package/dist/resources/schemas/retEnvEvento_v1.00.xsd +9 -0
- package/dist/resources/schemas/retEnvRemIndus_v1.00.xsd +9 -0
- package/dist/resources/schemas/retEnvSuframaInternaliza_v1.00.xsd +9 -0
- package/dist/resources/schemas/retEnvSuframaVistoria_v1.00.xsd +9 -0
- package/dist/resources/schemas/retEnviNFe_v4.00.xsd +9 -0
- package/dist/resources/schemas/retEventoCancEntregaNFe_v1.00.xsd +9 -0
- package/dist/resources/schemas/retEventoEPEC_v0.01.xsd +207 -0
- package/dist/resources/schemas/retEventoEntregaNFe_v1.00.xsd +9 -0
- package/dist/resources/schemas/retInutNFe_v4.00.xsd +9 -0
- package/dist/resources/schemas/tiposBasico_v1.03.xsd +834 -0
- package/dist/resources/schemas/tiposBasico_v3.10.xsd +833 -0
- package/dist/resources/schemas/tiposBasico_v4.00.xsd +598 -0
- package/dist/resources/schemas/tiposBasicosCcgConsGTIN_v1.00.xsd +84 -0
- package/dist/resources/schemas/tiposDistDFe_v1.01.xsd +1 -0
- package/dist/resources/schemas/xmldsig-core-schema_v1.01.xsd +98 -0
- package/dist/resources/tiposBasico_v1.03.xsd +834 -0
- package/dist/resources/tiposBasico_v3.10.xsd +833 -0
- package/dist/resources/tiposBasico_v4.00.xsd +598 -0
- package/dist/resources/tiposBasicosCcgConsGTIN_v1.00.xsd +84 -0
- package/dist/resources/tiposCnc_v1.00.xsd +166 -0
- package/dist/resources/tiposComplexos_v1.01.xsd +2674 -0
- package/dist/resources/tiposDistDFe_v1.00.xsd +243 -0
- package/dist/resources/tiposDistDFe_v1.01.xsd +1 -0
- package/dist/resources/tiposEventos_v1.01.xsd +780 -0
- package/dist/resources/tiposSimples_v1.01.xsd +1768 -0
- package/dist/resources/xmldsig-core-schema.xsd +318 -0
- package/dist/resources/xmldsig-core-schema_v1.01.xsd +98 -0
- package/dist/src/adapters/SchemaLoader.d.ts +4 -0
- package/dist/src/adapters/XmlBuilder.d.ts +31 -0
- package/dist/src/adapters/index.d.ts +2 -0
- package/dist/src/base/BaseNFSe.d.ts +42 -0
- package/dist/src/base/BaseNFe.d.ts +35 -0
- package/dist/src/base/GerarConsulta.d.ts +18 -0
- package/dist/src/base/SaveFiles.d.ts +12 -0
- package/dist/src/config/common/index.d.ts +2 -0
- package/dist/src/config/cte/index.d.ts +1 -0
- package/dist/src/config/index.d.ts +3 -0
- package/dist/src/config/nfe/index.d.ts +1 -0
- package/dist/src/config/nfse/index.d.ts +1 -0
- package/dist/src/environment/AxiosHttpClient.d.ts +6 -0
- package/dist/src/environment/Environment.d.ts +27 -0
- package/dist/src/environment/HttpClientBuilder.d.ts +11 -0
- package/dist/src/environment/LoadCertificate.d.ts +13 -0
- package/dist/src/environment/ValidateEnvironment.d.ts +13 -0
- package/dist/src/exceptions/ErrorContext.d.ts +39 -0
- package/dist/src/exceptions/JsonArrayTransporter.d.ts +21 -0
- package/dist/src/exceptions/logger.d.ts +22 -0
- package/dist/src/index.d.ts +16 -0
- package/dist/src/utils/common/Utility.d.ts +102 -0
- package/dist/src/utils/common/ValidaCPFCNPJ.d.ts +11 -0
- package/dist/src/utils/common/XmlParser.d.ts +18 -0
- package/dist/src/utils/common/getCodIBGE.d.ts +1 -0
- package/dist/src/utils/common/getDesTipoPag.d.ts +1 -0
- package/dist/src/utils/common/index.d.ts +5 -0
- package/dist/src/utils/index.d.ts +3 -0
- package/dist/src/utils/nfe/NFEImposto.d.ts +4 -0
- package/dist/src/utils/nfe/index.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +76 -0
- package/resources/certs/AC CertiSign.crt +22 -0
- package/resources/certs/AC-A-DIGIFORTE-RFB.crt +39 -0
- package/resources/certs/AC-ACD-v5.crt +40 -0
- package/resources/certs/AC-CERTISIGN-ICP-BRASIL-CODE.crt +45 -0
- package/resources/certs/AC-CERTISIGN-ICP-BRASIL-SSL-G2.crt +47 -0
- package/resources/certs/AC-Certisign-ICP-Brasil-SSL-EV-G3.crt +49 -0
- package/resources/certs/AC-Certisign-ICP-Brasil-SSL-EV-G4.crt +49 -0
- package/resources/certs/AC-DIGITAL-MAIS.crt +36 -0
- package/resources/certs/AC-INFOCO-DIGITAL-v5.crt +40 -0
- package/resources/certs/AC-PRIME-v5.crt +40 -0
- package/resources/certs/AC-PRODESP-RFB-v1.crt +41 -0
- package/resources/certs/AC-PRODESP-SP-SSL.crt +47 -0
- package/resources/certs/AC-PRODESP-SP.crt +36 -0
- package/resources/certs/AC-QUALITYCERT-v5.crt +40 -0
- package/resources/certs/AC-REDEBRASIL-v5.crt +40 -0
- package/resources/certs/AC-REDEBRASILv5.crt +40 -0
- package/resources/certs/AC-SERASA-SSL-EV-V2.crt +45 -0
- package/resources/certs/AC-SERASA-SSL-EV-V3.crt +45 -0
- package/resources/certs/AC-SERASA-SSL-EV-V4.crt +45 -0
- package/resources/certs/AC-SERPRO-SSLv1-v10.crt +40 -0
- package/resources/certs/AC-SOLUTI-CS-EV.crt +43 -0
- package/resources/certs/AC-SOLUTI-SSL-EV-G2.crt +43 -0
- package/resources/certs/AC-SOLUTI-SSL-EV-G3.crt +44 -0
- package/resources/certs/AC-SOLUTI-SSL-EV-G4.crt +44 -0
- package/resources/certs/AC-SOLUTI-SSL-EV.crt +41 -0
- package/resources/certs/AC-SOLUTI-v5-G2.crt +36 -0
- package/resources/certs/AC-SyngularID.crt +36 -0
- package/resources/certs/AC-VALID-CODE-SIGNING.crt +43 -0
- package/resources/certs/AC-VALID-SSL-EV.crt +44 -0
- package/resources/certs/ACIMESP1n.crt +26 -0
- package/resources/certs/ACIMPRENSAOFICIALRFBSSL.crt +41 -0
- package/resources/certs/ACImprensaOficial_18072011.crt +0 -0
- package/resources/certs/ACSyngularIDMultipla0.crt +42 -0
- package/resources/certs/AC_A_R_A_CERTIFICACAO_DIGITAL_v5.crt +41 -0
- package/resources/certs/AC_BR_RFB_G2.crt +27 -0
- package/resources/certs/AC_BR_RFB_G3.crt +39 -0
- package/resources/certs/AC_BR_RFB_G4.crt +39 -0
- package/resources/certs/AC_BoaVista.crt +36 -0
- package/resources/certs/AC_BoaVista_Certificadora.crt +44 -0
- package/resources/certs/AC_Boa_Vista_RFB.crt +39 -0
- package/resources/certs/AC_CACB_CD.crt +40 -0
- package/resources/certs/AC_CACB_RFB.crt +41 -0
- package/resources/certs/AC_CACB_RFB_G2.crt +41 -0
- package/resources/certs/AC_CAIXA_PF_1v2.crt +37 -0
- package/resources/certs/AC_CAIXA_PJ-SSL_v2.crt +38 -0
- package/resources/certs/AC_CAIXA_PJ_1v2.crt +37 -0
- package/resources/certs/AC_CAIXA_v2.crt +36 -0
- package/resources/certs/AC_CCN_COMPANHIA_CERTIFICADORA_NACIONAL_v5.crt +41 -0
- package/resources/certs/AC_CERTBANK_v5.crt +41 -0
- package/resources/certs/AC_CERTDATA_BRASIL.crt +41 -0
- package/resources/certs/AC_CERTIFICA_ANAPOLIS_v5_G2.crt +41 -0
- package/resources/certs/AC_CERTIFICA_MINAS_v5.crt +40 -0
- package/resources/certs/AC_CERTIPE_CD.crt +40 -0
- package/resources/certs/AC_CERTISIGN-JUS_CODESIGNING_G6.crt +39 -0
- package/resources/certs/AC_CERTISIGN-JUS_G5.crt +38 -0
- package/resources/certs/AC_CERTISIGN-JUS_SSL_G6.crt +38 -0
- package/resources/certs/AC_CERTMAIS_CD.crt +40 -0
- package/resources/certs/AC_CNDL_RFB.crt +39 -0
- package/resources/certs/AC_CNDL_RFB_v2.crt +39 -0
- package/resources/certs/AC_CNDL_RFB_v3.crt +39 -0
- package/resources/certs/AC_CONSULTI_BRASIL_RFB.crt +39 -0
- package/resources/certs/AC_CONSULTI_RFB.crt +39 -0
- package/resources/certs/AC_Caixa.crt +23 -0
- package/resources/certs/AC_Caixa_JUS_v1.crt +29 -0
- package/resources/certs/AC_Caixa_JUS_v2.crt +39 -0
- package/resources/certs/AC_Caixa_PF-1_v1.crt +30 -0
- package/resources/certs/AC_Caixa_PF_v1.crt +32 -0
- package/resources/certs/AC_Caixa_PF_v2.crt +41 -0
- package/resources/certs/AC_Caixa_PJ-1_v1.crt +30 -0
- package/resources/certs/AC_Caixa_PJ_v1.crt +32 -0
- package/resources/certs/AC_Caixa_PJ_v2.crt +45 -0
- package/resources/certs/AC_Caixa_SPB.crt +39 -0
- package/resources/certs/AC_Caixa_v1.crt +25 -0
- package/resources/certs/AC_CertiSign_JUS.crt +0 -0
- package/resources/certs/AC_CertiSign_V3.crt +25 -0
- package/resources/certs/AC_Certifica_Anapolis_v5.crt +43 -0
- package/resources/certs/AC_Certisign_G3.crt +25 -0
- package/resources/certs/AC_Certisign_G6.crt +36 -0
- package/resources/certs/AC_Certisign_G7.crt +36 -0
- package/resources/certs/AC_Certisign_G8.crt +36 -0
- package/resources/certs/AC_Certisign_JUS_G2.crt +38 -0
- package/resources/certs/AC_Certisign_JUS_G3.crt +39 -0
- package/resources/certs/AC_Certisign_JUS_G6.crt +38 -0
- package/resources/certs/AC_Certisign_Multipla_CodeSigning.crt +41 -0
- package/resources/certs/AC_Certisign_Multipla_G3.crt +38 -0
- package/resources/certs/AC_Certisign_Multipla_G5.crt +49 -0
- package/resources/certs/AC_Certisign_Multipla_G6.crt +49 -0
- package/resources/certs/AC_Certisign_Multipla_G7.crt +50 -0
- package/resources/certs/AC_Certisign_Multipla_SSL.crt +41 -0
- package/resources/certs/AC_Certisign_OM-BR.crt +21 -0
- package/resources/certs/AC_Certisign_RFB_G3.crt +29 -0
- package/resources/certs/AC_Certisign_RFB_G4.crt +41 -0
- package/resources/certs/AC_Certisign_RFB_G5.crt +41 -0
- package/resources/certs/AC_Certisign_SPB_G3.crt +27 -0
- package/resources/certs/AC_Certisign_SPB_G5.crt +38 -0
- package/resources/certs/AC_Certisign_SPB_G6.crt +39 -0
- package/resources/certs/AC_Certisign_Tempo_G1.crt +39 -0
- package/resources/certs/AC_Certisign_Tempo_G2.crt +41 -0
- package/resources/certs/AC_DIGISEC_v5.crt +40 -0
- package/resources/certs/AC_DIGITALSIGN_ACP_G2.crt +36 -0
- package/resources/certs/AC_DIGITALSIGN_G2.crt +50 -0
- package/resources/certs/AC_DIGITALSIGN_RFB_G2.crt +42 -0
- package/resources/certs/AC_DIGITALSIGN_RFB_G3.crt +41 -0
- package/resources/certs/AC_DIGITALSIGN_SSL.crt +41 -0
- package/resources/certs/AC_DIGITAL_MULTIPLA_G1.crt +40 -0
- package/resources/certs/AC_DIGITAL_v5.crt +40 -0
- package/resources/certs/AC_DOCCLOUD.crt +36 -0
- package/resources/certs/AC_DOCCLOUD_RFB.crt +39 -0
- package/resources/certs/AC_DOCCLOUD_RFB_v2.crt +39 -0
- package/resources/certs/AC_Defesa_v5.crt +49 -0
- package/resources/certs/AC_Digital.crt +46 -0
- package/resources/certs/AC_Digitalsign.crt +50 -0
- package/resources/certs/AC_Digitalsign_ACP.crt +36 -0
- package/resources/certs/AC_Digitalsign_RFB.crt +41 -0
- package/resources/certs/AC_EGBA_MULTIPLA.crt +45 -0
- package/resources/certs/AC_EGBA_Multipla_G2.crt +47 -0
- package/resources/certs/AC_EGBA_RFB.crt +41 -0
- package/resources/certs/AC_FCDL_SC_v5.crt +40 -0
- package/resources/certs/AC_FCDL_SC_v5_G2.crt +41 -0
- package/resources/certs/AC_FENACOR_RFB.crt +42 -0
- package/resources/certs/AC_Fenacon_Certisign_RFB_G2.crt +27 -0
- package/resources/certs/AC_Fenacon_Certisign_RFB_G3.crt +39 -0
- package/resources/certs/AC_IMESP_RFB_G2.crt +29 -0
- package/resources/certs/AC_IMESP_RFB_G3_retirar_repositorio.crt +41 -0
- package/resources/certs/AC_INTERCERT_v5.crt +40 -0
- package/resources/certs/AC_Imprensa_Oficial.crt +36 -0
- package/resources/certs/AC_Imprensa_Oficial_G2.crt +38 -0
- package/resources/certs/AC_Imprensa_Oficial_G3.crt +57 -0
- package/resources/certs/AC_Imprensa_Oficial_G4.crt +51 -0
- package/resources/certs/AC_Imprensa_Oficial_SP.crt +0 -0
- package/resources/certs/AC_Imprensa_Oficial_SP_G2.crt +24 -0
- package/resources/certs/AC_Imprensa_Oficial_SP_G3.crt +36 -0
- package/resources/certs/AC_Imprensa_Oficial_SP_G4.crt +36 -0
- package/resources/certs/AC_Imprensa_Oficial_SP_RFB_G3.crt +41 -0
- package/resources/certs/AC_Imprensa_Oficial_SP_RFB_G4.crt +41 -0
- package/resources/certs/AC_Imprensa_Oficial_SP_RFB_G5.crt +41 -0
- package/resources/certs/AC_Imprensa_Oficial_SSL.crt +42 -0
- package/resources/certs/AC_Instituto_Fenacom_RFB.crt +30 -0
- package/resources/certs/AC_Instituto_Fenacon.crt +38 -0
- package/resources/certs/AC_Instituto_Fenacon_G2.crt +49 -0
- package/resources/certs/AC_Instituto_Fenacon_G3.crt +50 -0
- package/resources/certs/AC_Instituto_Fenacon_G4.crt +51 -0
- package/resources/certs/AC_Instituto_Fenacon_RFB_G2.crt +41 -0
- package/resources/certs/AC_Instituto_Fenacon_RFB_G3.crt +41 -0
- package/resources/certs/AC_JUS_v6.crt +37 -0
- package/resources/certs/AC_LINK_CD.crt +40 -0
- package/resources/certs/AC_LINK_RFB.crt +39 -0
- package/resources/certs/AC_LINK_RFB_v2.crt +39 -0
- package/resources/certs/AC_MAXIMUS_TECNOLOGIA_E_EVENTOS_v5.crt +41 -0
- package/resources/certs/AC_MAXIMUS_TECNOLOGIA_E_EVENTOS_v5_G2.crt +41 -0
- package/resources/certs/AC_META_CERTIFICADO_DIGITAL_CD.crt +40 -0
- package/resources/certs/AC_Notarial_RFB_G2.crt +27 -0
- package/resources/certs/AC_Notarial_RFB_G3.crt +39 -0
- package/resources/certs/AC_Notarial_RFB_G4.crt +39 -0
- package/resources/certs/AC_OAB_G3.crt +39 -0
- package/resources/certs/AC_ONLINEBRASIL_v5.crt +41 -0
- package/resources/certs/AC_ONLINE_RFB_v5.crt +40 -0
- package/resources/certs/AC_Oab.crt +27 -0
- package/resources/certs/AC_Oab_G2.crt +38 -0
- package/resources/certs/AC_Online_Brasil.crt +43 -0
- package/resources/certs/AC_Online_RFB.crt +39 -0
- package/resources/certs/AC_PETROBRAS_G4.crt +44 -0
- package/resources/certs/AC_PLANO_DIGITAL_CD.crt +40 -0
- package/resources/certs/AC_PREMIUM_CERTIFICADORA_DIGITAL_CD.crt +40 -0
- package/resources/certs/AC_PRODEMGE_G4.crt +44 -0
- package/resources/certs/AC_PRODESP_v1.crt +49 -0
- package/resources/certs/AC_Petrobras_G2.crt +30 -0
- package/resources/certs/AC_Petrobras_G3.crt +41 -0
- package/resources/certs/AC_Prodemge_G2.crt +32 -0
- package/resources/certs/AC_Prodemge_G3.crt +43 -0
- package/resources/certs/AC_Prodemge_RFB.crt +41 -0
- package/resources/certs/AC_Prodemge_RFB_G2.crt +29 -0
- package/resources/certs/AC_Prodemge_RFB_G3.crt +41 -0
- package/resources/certs/AC_Prodemge_RFB_G4.crt +41 -0
- package/resources/certs/AC_Prodest_RFB.crt +27 -0
- package/resources/certs/AC_Prodest_RFB_v2.crt +39 -0
- package/resources/certs/AC_REDE_BRASIL_v5_G2.crt +41 -0
- package/resources/certs/AC_REDE_IDEIA_CD.crt +40 -0
- package/resources/certs/AC_REDE_IDEIA_RFB.crt +39 -0
- package/resources/certs/AC_SAFEIDBRASIL.crt +41 -0
- package/resources/certs/AC_SAFETECH_CD.crt +40 -0
- package/resources/certs/AC_SAFEWEB_CD.crt +40 -0
- package/resources/certs/AC_SAFEWEB_RFB_v5.crt +39 -0
- package/resources/certs/AC_SAFEWEB_TIMESTAMPING.crt +40 -0
- package/resources/certs/AC_SEGURA_ID_v5.crt +41 -0
- package/resources/certs/AC_SEMPRE_CD.crt +40 -0
- package/resources/certs/AC_SEMPRE_RFB_v2.crt +39 -0
- package/resources/certs/AC_SENHA_DIGITAL_BRASIL.crt +41 -0
- package/resources/certs/AC_SERPRO_JUS_v5.crt +37 -0
- package/resources/certs/AC_SIC_BRASIL.crt +41 -0
- package/resources/certs/AC_SIC_RFB.crt +40 -0
- package/resources/certs/AC_SIG_BRASIL.crt +41 -0
- package/resources/certs/AC_SINCOR_G4.crt +46 -0
- package/resources/certs/AC_SINCOR_RIO_RFB_G2.crt +41 -0
- package/resources/certs/AC_SOLUTI-JUS_CODESIGNING_v5.crt +40 -0
- package/resources/certs/AC_SOLUTI-JUS_SSL_v5.crt +40 -0
- package/resources/certs/AC_SOLUTI-JUS_v5.crt +40 -0
- package/resources/certs/AC_SOLUTI_Multipla_CODESIGNING.crt +43 -0
- package/resources/certs/AC_SOLUTI_Multipla_SSL.crt +43 -0
- package/resources/certs/AC_SOLUTI_Multipla_TIMESTAMPING.crt +42 -0
- package/resources/certs/AC_SOLUTI_Multipla_TIMESTAMPING_v5.crt +39 -0
- package/resources/certs/AC_SOLUTI_Multipla_v5.crt +40 -0
- package/resources/certs/AC_SOLUTI_Multipla_v5_G2.crt +41 -0
- package/resources/certs/AC_SOLUTI_RFB_V5.crt +41 -0
- package/resources/certs/AC_Safeweb_RFB.crt +39 -0
- package/resources/certs/AC_Safeweb_v12.crt +36 -0
- package/resources/certs/AC_Safeweb_v5.crt +36 -0
- package/resources/certs/AC_Secretaria_da_Receita_Federal_do_Brasil_v3.crt +37 -0
- package/resources/certs/AC_Secretaria_da_Receita_Federal_do_Brasil_v4.crt +37 -0
- package/resources/certs/AC_Serasa_ACP.crt +0 -0
- package/resources/certs/AC_Serasa_Autoridade_Certificadora_Principal.crt +0 -0
- package/resources/certs/AC_Serasa_JUS.crt +0 -0
- package/resources/certs/AC_Serasa_JUS_v1.crt +37 -0
- package/resources/certs/AC_Serasa_JUS_v2.crt +42 -0
- package/resources/certs/AC_Serasa_JUS_v5.crt +38 -0
- package/resources/certs/AC_Serasa_RFB.crt +31 -0
- package/resources/certs/AC_Serasa_RFB_v2.crt +42 -0
- package/resources/certs/AC_Serasa_RFB_v5.crt +42 -0
- package/resources/certs/AC_Serpro_JUS_v3.crt +29 -0
- package/resources/certs/AC_Serpro_JUS_v4.crt +39 -0
- package/resources/certs/AC_Serpro_JUS_v5_erro_retirado_repositorio.crt +37 -0
- package/resources/certs/AC_Serpro_RFB.crt +28 -0
- package/resources/certs/AC_Serpro_RFB_v3.crt +40 -0
- package/resources/certs/AC_Serpro_RFB_v4.crt +40 -0
- package/resources/certs/AC_Sincor_G2.crt +34 -0
- package/resources/certs/AC_Sincor_G3.crt +44 -0
- package/resources/certs/AC_Sincor_RFB_G2.crt +29 -0
- package/resources/certs/AC_Sincor_RFB_G4.crt +41 -0
- package/resources/certs/AC_Sincor_RFB_G5.crt +41 -0
- package/resources/certs/AC_Sincor_Rio_RFB_G1.crt +41 -0
- package/resources/certs/AC_Solucao_Digital_Multipla.crt +42 -0
- package/resources/certs/AC_Soluti.crt +36 -0
- package/resources/certs/AC_Soluti_JUS_v1.crt +46 -0
- package/resources/certs/AC_Soluti_Multipla_v1.crt +46 -0
- package/resources/certs/AC_Soluti_OM-BR.crt +21 -0
- package/resources/certs/AC_Soluti_RFB.crt +41 -0
- package/resources/certs/AC_Soluti_v5.crt +36 -0
- package/resources/certs/AC_SyngularID_Multipla.crt +42 -0
- package/resources/certs/AC_VALID-JUS_CODESIGNING_v5.crt +39 -0
- package/resources/certs/AC_VALID-JUS_SSL_v5.crt +38 -0
- package/resources/certs/AC_VALID-JUS_v5.crt +38 -0
- package/resources/certs/AC_VALID_BRASIL_CODESIGNING.crt +42 -0
- package/resources/certs/AC_VALID_BRASIL_SSL.crt +41 -0
- package/resources/certs/AC_VALID_BRASIL_v5.crt +41 -0
- package/resources/certs/AC_VALID_PLUS_CODESIGNING.crt +42 -0
- package/resources/certs/AC_VALID_PLUS_SSL.crt +41 -0
- package/resources/certs/AC_VALID_PLUS_TIMESTAMPING.crt +42 -0
- package/resources/certs/AC_VALID_PLUS_v5.crt +49 -0
- package/resources/certs/AC_VALID_RFB_v5.crt +39 -0
- package/resources/certs/AC_VALID_SPB_v5.crt +38 -0
- package/resources/certs/AC_VALID_V12.crt +36 -0
- package/resources/certs/AC_VALID_v5.crt +36 -0
- package/resources/certs/AC_Valid_Brasil.crt +43 -0
- package/resources/certs/AC_Valid_JUS_v4.crt +41 -0
- package/resources/certs/AC_Valid_PLUS.crt +55 -0
- package/resources/certs/AC_Valid_RFB.crt +39 -0
- package/resources/certs/AC_Valid_SPB.crt +40 -0
- package/resources/certs/AC_Validar_Multipla.crt +42 -0
- package/resources/certs/AUTORIDADE_CERTIFICADORA_PROCERTI.crt +39 -0
- package/resources/certs/Autoridade Certificadora da Presidencia da Republica v1.crt +0 -0
- package/resources/certs/Autoridade Certificadora da Presidencia da Republica v2.crt +25 -0
- package/resources/certs/Autoridade_Certificadora_ALTERNATIVE.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_BRASIL_CERTEC.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_DIGITAL_CERTY.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_IDFEDERAL.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_INFOCOMEX.crt +39 -0
- package/resources/certs/Autoridade_Certificadora_INVIA.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_NACIONAL.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_PRIMECERT.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_SDI.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_SEFAZCE.crt +38 -0
- package/resources/certs/Autoridade_Certificadora_SERPRORFBv5.crt +40 -0
- package/resources/certs/Autoridade_Certificadora_Serpro_v2.crt +25 -0
- package/resources/certs/Autoridade_Certificadora_Serpro_v3.crt +36 -0
- package/resources/certs/Autoridade_Certificadora_Serpro_v4.crt +36 -0
- package/resources/certs/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil.crt +29 -0
- package/resources/certs/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil_v2.crt +37 -0
- package/resources/certs/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil_v3.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_da_Justica.crt +25 -0
- package/resources/certs/Autoridade_Certificadora_da_Justica_v3.crt +26 -0
- package/resources/certs/Autoridade_Certificadora_da_Justica_v4.crt +36 -0
- package/resources/certs/Autoridade_Certificadora_da_Justica_v5.crt +36 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica.crt +25 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_2005.crt +0 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v1.crt +0 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v2.crt +25 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v3.crt +37 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v4.crt +40 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v5.crt +38 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v6.crt +38 -0
- package/resources/certs/Autoridade_Certificadora_da_Secretaria_da_Receita_Federal.crt +23 -0
- package/resources/certs/Autoridade_Certificadora_da_Secretaria_da_Receita_Federal_v1.crt +23 -0
- package/resources/certs/Autoridade_Certificadora_do_Proderj.crt +26 -0
- package/resources/certs/Autoridade_Certificadora_do_Proderj_v2.crt +38 -0
- package/resources/certs/Autoridade_Certificadora_do_SERPRO_RFB_SSL.crt +38 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro.crt +0 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_SSL.crt +38 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v1.crt +32 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v2.crt +30 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v3.crt +48 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v4.crt +48 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v5.crt +40 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_v1.crt +0 -0
- package/resources/certs/Autoridade__Certificadora_do_Serpro_v1.crt +0 -0
- package/resources/certs/Certificado_AC_Raiz.crt +28 -0
- package/resources/certs/DigiCert_Global_Root_G2.crt +22 -0
- package/resources/certs/GeoTrust_TLS_RSA_CA_G1.crt +27 -0
- package/resources/certs/GlobalSign.crt +21 -0
- package/resources/certs/ICP-Brasil.crt +27 -0
- package/resources/certs/ICP-Brasilv10.crt +38 -0
- package/resources/certs/ICP-Brasilv11.crt +38 -0
- package/resources/certs/ICP-Brasilv12.crt +38 -0
- package/resources/certs/ICP-Brasilv2.crt +38 -0
- package/resources/certs/ICP-Brasilv5.crt +38 -0
- package/resources/certs/ICP-Brasilv6.crt +19 -0
- package/resources/certs/ICP-Brasilv7.crt +20 -0
- package/resources/certs/ISRG Root X1.crt +31 -0
- package/resources/certs/Instituto_Nacional_de_Metrologia_Qualidade_e_Tecnologia_INMETRO.crt +18 -0
- package/resources/certs/Secretaria_da_Receita_Federal_do_Brasil.crt +24 -0
- package/resources/certs/Sectigo Public Server Authentication Root R46.crt +32 -0
- package/resources/certs/Serasa_AC_v5.crt +41 -0
- package/resources/certs/Serasa_Autoridade_Certificadora_Principal.crt +27 -0
- package/resources/certs/Serasa_Autoridade_Certificadora_Principal_v1.crt +26 -0
- package/resources/certs/Serasa_Autoridade_Certificadora_Principal_v2.crt +37 -0
- package/resources/certs/Serasa_Autoridade_Certificadora_Principal_v5.crt +37 -0
- package/resources/certs/Serasa_Autoridade_Certificadora_v2.crt +43 -0
- package/resources/certs/Serasa_CD_SSL_v5.crt +47 -0
- package/resources/certs/Serasa_CD_v5.crt +56 -0
- package/resources/certs/Serasa_Certificadora_Digital_v2.crt +62 -0
- package/resources/certs/USERTrust_RSA_Certification_Authority.crt +34 -0
- package/resources/certs/ac_certfacil_v5.crt +40 -0
- package/resources/certs/ac_certifica_anapolis_v5.crt +43 -0
- package/resources/certs/ac_mult_v5.crt +40 -0
- package/resources/certs/ac_soluti_spb_v5.crt +37 -0
- package/resources/certs/fazenda.mg.gov.br.crt +38 -0
- package/resources/schemas/110150_v1.00.xsd +88 -0
- package/resources/schemas/Averb_v1.00.xsd +11 -0
- package/resources/schemas/CCe_v1.00.xsd +11 -0
- package/resources/schemas/DFeTiposBasicos_v1.00.xsd +1097 -0
- package/resources/schemas/EPEC_v1.00.xsd +9 -0
- package/resources/schemas/EPP1.xml +13 -0
- package/resources/schemas/ERP1.xml +19 -0
- package/resources/schemas/EventoCancEntregaNFe_v1.00.xsd +9 -0
- package/resources/schemas/EventoEntregaNFe_v1.00.xsd +9 -0
- package/resources/schemas/SuframaInternaliza_v1.00.xsd +9 -0
- package/resources/schemas/SuframaVistoria_v1.00.xsd +9 -0
- package/resources/schemas/confRecebto_v1.00.xsd +9 -0
- package/resources/schemas/consCad_v2.00.xsd +9 -0
- package/resources/schemas/consGTIN_v1.00.xsd +10 -0
- package/resources/schemas/consReciNFe_v4.00.xsd +9 -0
- package/resources/schemas/consSitNFe_v2.01.xsd +10 -0
- package/resources/schemas/consSitNFe_v4.00.xsd +9 -0
- package/resources/schemas/consStatServ_v4.00 copy.xsd +9 -0
- package/resources/schemas/consStatServ_v4.00.xsd +9 -0
- package/resources/schemas/cte/distDFeInt_v1.00.xsd +71 -0
- package/resources/schemas/cte/retDistDFeInt_v1.00.xsd +89 -0
- package/resources/schemas/cte/tiposDistDFe_v1.00.xsd +243 -0
- package/resources/schemas/cte/xmldsig-core-schema_v1.01.xsd +98 -0
- package/resources/schemas/distDFeInt_v1.01.xsd +94 -0
- package/resources/schemas/e110001_v1.00.xsd +73 -0
- package/resources/schemas/e110110_v1.00.xsd +58 -0
- package/resources/schemas/e110111_v1.00.xsd +42 -0
- package/resources/schemas/e110112_v1.00.xsd +69 -0
- package/resources/schemas/e110130_v1.00.xsd +102 -0
- package/resources/schemas/e110131_v1.00.xsd +51 -0
- package/resources/schemas/e110140_v1.00.xsd +124 -0
- package/resources/schemas/e111500_v1.00.xsd +69 -0
- package/resources/schemas/e111501_v1.00.xsd +69 -0
- package/resources/schemas/e111502_v1.00.xsd +50 -0
- package/resources/schemas/e111503_v1.00.xsd +50 -0
- package/resources/schemas/e112110_v1.00.xsd +69 -0
- package/resources/schemas/e112120_v1.00 .xsd +107 -0
- package/resources/schemas/e112130_v1.00.xsd +119 -0
- package/resources/schemas/e112140_v1.00.xsd +107 -0
- package/resources/schemas/e210200_v1.00.xsd +32 -0
- package/resources/schemas/e210210_v1.00.xsd +32 -0
- package/resources/schemas/e210220_v1.00.xsd +45 -0
- package/resources/schemas/e210240_v1.00.xsd +44 -0
- package/resources/schemas/e211110_v1.00.xsd +134 -0
- package/resources/schemas/e211120_v1.00.xsd +124 -0
- package/resources/schemas/e211124_v1.00.xsd +107 -0
- package/resources/schemas/e211128_v1.00.xsd +69 -0
- package/resources/schemas/e211130_v1.00.xsd +107 -0
- package/resources/schemas/e211140_v1.00.xsd +107 -0
- package/resources/schemas/e211150_v1.00.xsd +85 -0
- package/resources/schemas/e212110_v1.00.xsd +70 -0
- package/resources/schemas/e212120_v1.00.xsd +69 -0
- package/resources/schemas/e411500_v1.00.xsd +134 -0
- package/resources/schemas/e411501_v1.00.xsd +134 -0
- package/resources/schemas/e411502_v1.00.xsd +95 -0
- package/resources/schemas/e411503_v1.00.xsd +95 -0
- package/resources/schemas/e412120_v1.00.xsd +88 -0
- package/resources/schemas/e412130_v1.00.xsd +88 -0
- package/resources/schemas/e790700_v1.00.xsd +148 -0
- package/resources/schemas/e990900_v1.00.xsd +87 -0
- package/resources/schemas/e990910_v1.00.xsd +81 -0
- package/resources/schemas/envAverb_v1.00.xsd +9 -0
- package/resources/schemas/envCCe_v1.00.xsd +10 -0
- package/resources/schemas/envConfRecebto_v1.00.xsd +9 -0
- package/resources/schemas/envEPEC_v1.00.xsd +9 -0
- package/resources/schemas/envEventoAtorInteressado_v1.00.xsd +9 -0
- package/resources/schemas/envEventoCancEntregaNFe_v1.00.xsd +10 -0
- package/resources/schemas/envEventoCancNFe_v1.00.xsd +9 -0
- package/resources/schemas/envEventoCancSubst_v1.00.xsd +9 -0
- package/resources/schemas/envEventoEntregaNFe_v1.00.xsd +10 -0
- package/resources/schemas/envEvento_v1.00.xsd +9 -0
- package/resources/schemas/envRemIndus_v1.00.xsd +9 -0
- package/resources/schemas/envSuframaInternaliza_v1.00.xsd +10 -0
- package/resources/schemas/envSuframaVistoria_v1.00.xsd +10 -0
- package/resources/schemas/enviNFe_v4.00.xsd +9 -0
- package/resources/schemas/eventoAtorInteressado_v1.00.xsd +9 -0
- package/resources/schemas/eventoCancNFe_v1.00.xsd +9 -0
- package/resources/schemas/eventoCancSubst_v1.00.xsd +9 -0
- package/resources/schemas/eventoEPEC_v0.01.xsd +267 -0
- package/resources/schemas/eventoRemIndus_v1.00.xsd +9 -0
- package/resources/schemas/inutNFe_v4.00.xsd +9 -0
- package/resources/schemas/leiauteAverb_v1.00.xsd +468 -0
- package/resources/schemas/leiauteCCe_v1.00.xsd +418 -0
- package/resources/schemas/leiauteCcgConsGTIN_v1.00.xsd +94 -0
- package/resources/schemas/leiauteConfRecebto_v1.00.xsd +406 -0
- package/resources/schemas/leiauteConsSitNFe_v2.01.xsd +548 -0
- package/resources/schemas/leiauteConsSitNFe_v4.00.xsd +502 -0
- package/resources/schemas/leiauteConsStatServ_v4.00.xsd +98 -0
- package/resources/schemas/leiauteConsultaCadastro_v2.00.xsd +404 -0
- package/resources/schemas/leiauteEPEC_v1.00.xsd +459 -0
- package/resources/schemas/leiauteEPEC_v1.00.xsd.bak +465 -0
- package/resources/schemas/leiauteEventoAtorInteressado_v1.00.xsd +384 -0
- package/resources/schemas/leiauteEventoCancEntregaNFe_v1.00.xsd +307 -0
- package/resources/schemas/leiauteEventoCancNFe_v1.00.xsd +394 -0
- package/resources/schemas/leiauteEventoCancSubst_v1.00.xsd +366 -0
- package/resources/schemas/leiauteEventoEntregaNFe_v1.00.xsd +321 -0
- package/resources/schemas/leiauteEvento_v1.00.xsd +373 -0
- package/resources/schemas/leiauteInutNFe_v4.00.xsd +193 -0
- package/resources/schemas/leiauteNFe_v4.00.xsd +7558 -0
- package/resources/schemas/leiauteRemIndus_v1.00.xsd +382 -0
- package/resources/schemas/leiauteSuframaInternaliza_v1.00.xsd +642 -0
- package/resources/schemas/leiauteSuframaVistoria_v1.00.xsd +648 -0
- package/resources/schemas/nfe_v4.00.xsd +10 -0
- package/resources/schemas/nfse/CNC_v1.00.xsd +14 -0
- package/resources/schemas/nfse/DPS_v1.01.xsd +14 -0
- package/resources/schemas/nfse/NFSe_v1.01.xsd +15 -0
- package/resources/schemas/nfse/evento_v1.01.xsd +15 -0
- package/resources/schemas/nfse/pedRegEvento_v1.01.xsd +15 -0
- package/resources/schemas/nfse/tiposCnc_v1.00.xsd +166 -0
- package/resources/schemas/nfse/tiposComplexos_v1.01.xsd +2674 -0
- package/resources/schemas/nfse/tiposEventos_v1.01.xsd +780 -0
- package/resources/schemas/nfse/tiposSimples_v1.01.xsd +1768 -0
- package/resources/schemas/nfse/xmldsig-core-schema.xsd +318 -0
- package/resources/schemas/procAverbNFe_v1.00.xsd +10 -0
- package/resources/schemas/procCCeNFe_v1.00.xsd +10 -0
- package/resources/schemas/procConfRecebtoNFe_v1.00.xsd +9 -0
- package/resources/schemas/procEPEC_v1.00.xsd +9 -0
- package/resources/schemas/procEventoAtorInteressado_v1.00.xsd +9 -0
- package/resources/schemas/procEventoCancEntregaNFe_v1.00.xsd +9 -0
- package/resources/schemas/procEventoCancNFe_v1.00.xsd +9 -0
- package/resources/schemas/procEventoCancSubst_v1.00.xsd +9 -0
- package/resources/schemas/procEventoEntregaNFe_v1.00.xsd +9 -0
- package/resources/schemas/procEventoNFe_v1.00.xsd +9 -0
- package/resources/schemas/procInutNFe_v4.00.xsd +9 -0
- package/resources/schemas/procNFe_v4.00.xsd +9 -0
- package/resources/schemas/procRemIndus_v1.00.xsd +9 -0
- package/resources/schemas/resEvento_v1.01.xsd +1 -0
- package/resources/schemas/resNFe_v1.01.xsd +5 -0
- package/resources/schemas/retConsCad_v2.00.xsd +9 -0
- package/resources/schemas/retConsGTIN_v1.00.xsd +9 -0
- package/resources/schemas/retConsReciNFe_v4.00.xsd +9 -0
- package/resources/schemas/retConsSitNFe_v2.01.xsd +10 -0
- package/resources/schemas/retConsSitNFe_v4.00.xsd +9 -0
- package/resources/schemas/retConsStatServ_v4.00.xsd +9 -0
- package/resources/schemas/retDistDFeInt_v1.01.xsd +5 -0
- package/resources/schemas/retEnvAverb_v1.00.xsd +9 -0
- package/resources/schemas/retEnvCCe_v1.00.xsd +10 -0
- package/resources/schemas/retEnvConfRecebto_v1.00.xsd +9 -0
- package/resources/schemas/retEnvEPEC_v1.00.xsd +9 -0
- package/resources/schemas/retEnvEventoAtorInteressado_v1.00.xsd +9 -0
- package/resources/schemas/retEnvEventoCancNFe_v1.00.xsd +9 -0
- package/resources/schemas/retEnvEventoCancSubst_v1.00.xsd +9 -0
- package/resources/schemas/retEnvEvento_v1.00.xsd +9 -0
- package/resources/schemas/retEnvRemIndus_v1.00.xsd +9 -0
- package/resources/schemas/retEnvSuframaInternaliza_v1.00.xsd +9 -0
- package/resources/schemas/retEnvSuframaVistoria_v1.00.xsd +9 -0
- package/resources/schemas/retEnviNFe_v4.00.xsd +9 -0
- package/resources/schemas/retEventoCancEntregaNFe_v1.00.xsd +9 -0
- package/resources/schemas/retEventoEPEC_v0.01.xsd +207 -0
- package/resources/schemas/retEventoEntregaNFe_v1.00.xsd +9 -0
- package/resources/schemas/retInutNFe_v4.00.xsd +9 -0
- package/resources/schemas/tiposBasico_v1.03.xsd +834 -0
- package/resources/schemas/tiposBasico_v3.10.xsd +833 -0
- package/resources/schemas/tiposBasico_v4.00.xsd +598 -0
- package/resources/schemas/tiposBasicosCcgConsGTIN_v1.00.xsd +84 -0
- package/resources/schemas/tiposDistDFe_v1.01.xsd +1 -0
- package/resources/schemas/xmldsig-core-schema_v1.01.xsd +98 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,3975 @@
|
|
|
1
|
+
import winston from 'winston';
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
import Transport from 'winston-transport';
|
|
4
|
+
import path from 'path';
|
|
5
|
+
import axios from 'axios';
|
|
6
|
+
import https from 'https';
|
|
7
|
+
import forge from 'node-forge';
|
|
8
|
+
import pem from 'pem';
|
|
9
|
+
import { fileURLToPath } from 'url';
|
|
10
|
+
import { createHash } from 'crypto';
|
|
11
|
+
import libxmljs from 'libxmljs2';
|
|
12
|
+
import xml2js from 'xml2js';
|
|
13
|
+
import xsdAssembler from 'xsd-assembler';
|
|
14
|
+
import * as convert from 'xml-js';
|
|
15
|
+
import { gunzipSync } from 'zlib';
|
|
16
|
+
import { format } from 'date-fns';
|
|
17
|
+
import { SignedXml } from 'xml-crypto';
|
|
18
|
+
|
|
19
|
+
class JsonArrayTransport extends Transport {
|
|
20
|
+
constructor(options) {
|
|
21
|
+
super(options);
|
|
22
|
+
this.filename = options.filename;
|
|
23
|
+
this.dirname = options.dirname || '';
|
|
24
|
+
this.maxsize = options.maxsize || 10 * 1024 * 1024; // 10MB default
|
|
25
|
+
this.maxFiles = options.maxFiles || 5;
|
|
26
|
+
// Usar formato fornecido ou formato padrão
|
|
27
|
+
this.logFormat = options.format || winston.format.combine(winston.format.timestamp(), winston.format.errors({ stack: true }), winston.format.json());
|
|
28
|
+
}
|
|
29
|
+
get fullPath() {
|
|
30
|
+
return path.join(this.dirname, this.filename);
|
|
31
|
+
}
|
|
32
|
+
log(info, callback) {
|
|
33
|
+
setImmediate(() => {
|
|
34
|
+
this.emit('logged', info);
|
|
35
|
+
});
|
|
36
|
+
try {
|
|
37
|
+
// Aplicar formato ao log
|
|
38
|
+
const formatted = this.logFormat.transform(info, this.logFormat.options);
|
|
39
|
+
if (formatted) {
|
|
40
|
+
this.writeToFile(formatted);
|
|
41
|
+
}
|
|
42
|
+
callback();
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
this.emit('error', error);
|
|
46
|
+
callback();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
writeToFile(logEntry) {
|
|
50
|
+
const filePath = this.fullPath;
|
|
51
|
+
// Verificar se precisa rotacionar arquivo
|
|
52
|
+
if (fs.existsSync(filePath)) {
|
|
53
|
+
const stats = fs.statSync(filePath);
|
|
54
|
+
if (stats.size > this.maxsize) {
|
|
55
|
+
this.rotateFile();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
// Criar diretório se não existir
|
|
59
|
+
const dir = path.dirname(filePath);
|
|
60
|
+
if (!fs.existsSync(dir)) {
|
|
61
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
62
|
+
}
|
|
63
|
+
// Converter para string se necessário
|
|
64
|
+
let logLine;
|
|
65
|
+
if (typeof logEntry === 'string') {
|
|
66
|
+
logLine = logEntry + '\n';
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
logLine = JSON.stringify(logEntry) + '\n';
|
|
70
|
+
}
|
|
71
|
+
fs.appendFileSync(filePath, logLine, 'utf8');
|
|
72
|
+
}
|
|
73
|
+
rotateFile() {
|
|
74
|
+
const filePath = this.fullPath;
|
|
75
|
+
const ext = path.extname(this.filename);
|
|
76
|
+
const basename = path.basename(this.filename, ext);
|
|
77
|
+
const dirname = path.dirname(filePath);
|
|
78
|
+
// Rotacionar arquivos existentes
|
|
79
|
+
for (let i = this.maxFiles - 1; i > 0; i--) {
|
|
80
|
+
const oldFile = path.join(dirname, `${basename}.${i}${ext}`);
|
|
81
|
+
const newFile = path.join(dirname, `${basename}.${i + 1}${ext}`);
|
|
82
|
+
if (fs.existsSync(oldFile)) {
|
|
83
|
+
if (i === this.maxFiles - 1) {
|
|
84
|
+
fs.unlinkSync(oldFile); // Deletar o mais antigo
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
fs.renameSync(oldFile, newFile);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
// Mover arquivo atual para .1
|
|
92
|
+
const rotatedFile = path.join(dirname, `${basename}.1${ext}`);
|
|
93
|
+
if (fs.existsSync(filePath)) {
|
|
94
|
+
fs.renameSync(filePath, rotatedFile);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
class AppLogger {
|
|
100
|
+
constructor() {
|
|
101
|
+
this.isInitialized = false;
|
|
102
|
+
// Logger padrão (sem configuração)
|
|
103
|
+
this.logger = winston.createLogger({
|
|
104
|
+
level: 'info',
|
|
105
|
+
format: winston.format.combine(winston.format.timestamp(), winston.format.errors({ stack: true }), winston.format.json()),
|
|
106
|
+
transports: []
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
static getInstance() {
|
|
110
|
+
if (!AppLogger.instance) {
|
|
111
|
+
AppLogger.instance = new AppLogger();
|
|
112
|
+
}
|
|
113
|
+
return AppLogger.instance;
|
|
114
|
+
}
|
|
115
|
+
// Função para filtrar logs por nível específico
|
|
116
|
+
filterOnly(level) {
|
|
117
|
+
return winston.format((info) => {
|
|
118
|
+
return info.level === level ? info : false;
|
|
119
|
+
})();
|
|
120
|
+
}
|
|
121
|
+
// Função para filtrar logs excluindo um nível específico
|
|
122
|
+
filterExcluding(excludeLevel) {
|
|
123
|
+
return winston.format((info) => {
|
|
124
|
+
return info.level !== excludeLevel ? info : false;
|
|
125
|
+
})();
|
|
126
|
+
}
|
|
127
|
+
initialize(config) {
|
|
128
|
+
if (this.isInitialized) {
|
|
129
|
+
return; // Já foi inicializado
|
|
130
|
+
}
|
|
131
|
+
const transports = [];
|
|
132
|
+
// Configurar console se habilitado - formato em uma linha
|
|
133
|
+
if (config.exibirLogNoConsole) {
|
|
134
|
+
transports.push(new winston.transports.Console({
|
|
135
|
+
format: winston.format.combine(winston.format.colorize(), winston.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }), winston.format.printf(({ timestamp, level, message, context, method, ...meta }) => {
|
|
136
|
+
const contextStr = context ? `[${context}]` : '';
|
|
137
|
+
const methodStr = method ? `[${method}]` : '';
|
|
138
|
+
// JSON em uma linha para console
|
|
139
|
+
const metaStr = Object.keys(meta).length ? ` ${JSON.stringify(meta)}` : '';
|
|
140
|
+
return `${timestamp} ${level}: ${contextStr}${methodStr} ${message}${metaStr}`;
|
|
141
|
+
}))
|
|
142
|
+
}));
|
|
143
|
+
}
|
|
144
|
+
// Configurar arquivo se habilitado - formato JSONL (uma linha por log)
|
|
145
|
+
if (config.armazenarLogs && config.pathLogs) {
|
|
146
|
+
// Criar diretório se não existir
|
|
147
|
+
if (!fs.existsSync(config.pathLogs)) {
|
|
148
|
+
fs.mkdirSync(config.pathLogs, { recursive: true });
|
|
149
|
+
}
|
|
150
|
+
// Formato comum para arquivos - JSON em linha única
|
|
151
|
+
const fileFormat = winston.format.combine(winston.format.timestamp(), winston.format.errors({ stack: true }), winston.format.json());
|
|
152
|
+
// Log de aplicação (info, warn, error, debug) - EXCLUINDO http
|
|
153
|
+
transports.push(new JsonArrayTransport({
|
|
154
|
+
filename: 'app.jsonl',
|
|
155
|
+
dirname: config.pathLogs,
|
|
156
|
+
maxsize: 10 * 1024 * 1024, // 10MB
|
|
157
|
+
maxFiles: 5,
|
|
158
|
+
format: winston.format.combine(this.filterExcluding('http'), // Excluir logs http
|
|
159
|
+
fileFormat)
|
|
160
|
+
}));
|
|
161
|
+
// Log apenas de erros
|
|
162
|
+
transports.push(new JsonArrayTransport({
|
|
163
|
+
filename: 'error.jsonl',
|
|
164
|
+
dirname: config.pathLogs,
|
|
165
|
+
level: 'error',
|
|
166
|
+
maxsize: 5 * 1024 * 1024, // 5MB
|
|
167
|
+
maxFiles: 3,
|
|
168
|
+
format: winston.format.combine(this.filterOnly('error'), // Apenas logs de erro
|
|
169
|
+
fileFormat)
|
|
170
|
+
}));
|
|
171
|
+
// Log APENAS de requisições HTTP
|
|
172
|
+
transports.push(new JsonArrayTransport({
|
|
173
|
+
filename: 'http.jsonl',
|
|
174
|
+
dirname: config.pathLogs,
|
|
175
|
+
level: 'http',
|
|
176
|
+
maxsize: 20 * 1024 * 1024, // 20MB
|
|
177
|
+
maxFiles: 3,
|
|
178
|
+
format: winston.format.combine(this.filterOnly('http'), // Apenas logs http
|
|
179
|
+
fileFormat)
|
|
180
|
+
}));
|
|
181
|
+
}
|
|
182
|
+
// Recriar o logger com as novas configurações
|
|
183
|
+
this.logger = winston.createLogger({
|
|
184
|
+
level: 'debug',
|
|
185
|
+
format: winston.format.combine(winston.format.timestamp(), winston.format.errors({ stack: true })),
|
|
186
|
+
transports
|
|
187
|
+
});
|
|
188
|
+
this.isInitialized = true;
|
|
189
|
+
this.info('Logger inicializado com sucesso', {
|
|
190
|
+
context: 'Logger',
|
|
191
|
+
config: {
|
|
192
|
+
console: config.exibirLogNoConsole,
|
|
193
|
+
arquivo: config.armazenarLogs,
|
|
194
|
+
path: config.pathLogs
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
info(message, meta) {
|
|
199
|
+
if (this.isInitialized) {
|
|
200
|
+
this.logger.info(message, meta);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
warn(message, meta) {
|
|
204
|
+
if (this.isInitialized) {
|
|
205
|
+
this.logger.warn(message, meta);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
error(message, error, meta) {
|
|
209
|
+
if (this.isInitialized) {
|
|
210
|
+
const logData = { ...meta };
|
|
211
|
+
if (error) {
|
|
212
|
+
logData.error = error instanceof Error ? {
|
|
213
|
+
message: error.message,
|
|
214
|
+
stack: error.stack,
|
|
215
|
+
name: error.name
|
|
216
|
+
} : error;
|
|
217
|
+
}
|
|
218
|
+
this.logger.error(message, logData);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
debug(message, meta) {
|
|
222
|
+
if (this.isInitialized) {
|
|
223
|
+
this.logger.debug(message, meta);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
http(message, meta) {
|
|
227
|
+
if (this.isInitialized) {
|
|
228
|
+
this.logger.http(message, meta);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
// Exportar instância singleton
|
|
233
|
+
const logger = AppLogger.getInstance();
|
|
234
|
+
|
|
235
|
+
class AxiosHttpClient {
|
|
236
|
+
create(config) {
|
|
237
|
+
return axios.create({
|
|
238
|
+
headers: config.headers,
|
|
239
|
+
httpsAgent: config.agent,
|
|
240
|
+
timeout: config.timeout,
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
class HttpClientBuilder {
|
|
246
|
+
constructor(config, agent, httpClient) {
|
|
247
|
+
this.config = config;
|
|
248
|
+
this.agent = agent;
|
|
249
|
+
this.httpClient = httpClient;
|
|
250
|
+
}
|
|
251
|
+
createHttpClient() {
|
|
252
|
+
logger.info('Criando client HTTP', {
|
|
253
|
+
context: 'createHttpClient',
|
|
254
|
+
});
|
|
255
|
+
try {
|
|
256
|
+
const axiosConfig = {
|
|
257
|
+
headers: {
|
|
258
|
+
'Content-Type': 'text/xml; charset=utf-8',
|
|
259
|
+
},
|
|
260
|
+
httpsAgent: this.agent,
|
|
261
|
+
timeout: this.config.connection?.timeout || 60000, // Timeout padrão de 60 segundos se não for configurado
|
|
262
|
+
};
|
|
263
|
+
return this.httpClient.create(axiosConfig);
|
|
264
|
+
}
|
|
265
|
+
catch (error) {
|
|
266
|
+
logger.error('Erro ao criar client HTTP', error, { context: 'createHttpClient' });
|
|
267
|
+
throw new Error(error.message);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const baseDir$1 = path.dirname(fileURLToPath(import.meta.url));
|
|
273
|
+
// Encontra o diretório raiz do pacote (@treeunfe/shared)
|
|
274
|
+
function findPackageRoot$1(currentDir) {
|
|
275
|
+
const npmPattern = '@treeunfe/shared';
|
|
276
|
+
const devPattern = 'packages/shared';
|
|
277
|
+
const npmIndex = currentDir.indexOf(npmPattern);
|
|
278
|
+
if (npmIndex !== -1) {
|
|
279
|
+
return currentDir.substring(0, npmIndex + npmPattern.length);
|
|
280
|
+
}
|
|
281
|
+
const devIndex = currentDir.indexOf(devPattern);
|
|
282
|
+
if (devIndex !== -1) {
|
|
283
|
+
return currentDir.substring(0, devIndex + devPattern.length);
|
|
284
|
+
}
|
|
285
|
+
// Fallback: assume que estamos em packages/shared/src/environment ou packages/shared/dist/src/environment
|
|
286
|
+
return path.resolve(currentDir, '../../..');
|
|
287
|
+
}
|
|
288
|
+
const packageRoot$1 = findPackageRoot$1(baseDir$1);
|
|
289
|
+
const dir$1 = path.join(packageRoot$1, 'resources/certs');
|
|
290
|
+
class LoadCertificate {
|
|
291
|
+
constructor(config) {
|
|
292
|
+
this.config = config;
|
|
293
|
+
this.certificate = '';
|
|
294
|
+
this.cert_key = '';
|
|
295
|
+
}
|
|
296
|
+
loadCertificateWithPEM() {
|
|
297
|
+
return new Promise((resolve, reject) => {
|
|
298
|
+
try {
|
|
299
|
+
const pfxPath = this.config.pathCertificado;
|
|
300
|
+
const pfxPassword = this.config.senhaCertificado;
|
|
301
|
+
const pfxFile = fs.readFileSync(pfxPath);
|
|
302
|
+
const certsDir = path.resolve(dir$1);
|
|
303
|
+
const caCerts = fs.readdirSync(certsDir).map(filename => {
|
|
304
|
+
const tmp = `${certsDir}/${filename}`;
|
|
305
|
+
return fs.readFileSync(tmp);
|
|
306
|
+
});
|
|
307
|
+
pem.readPkcs12(pfxFile, { p12Password: pfxPassword }, async (error, result) => {
|
|
308
|
+
if (error) {
|
|
309
|
+
if (error.message.toLowerCase().includes('mac verify error')) {
|
|
310
|
+
return reject(new Error("Erro ao ler o certificado: Senha incorreta."));
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
return reject(new Error(`Erro ao ler o certificado: ${error.message}`));
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
const key = result.key;
|
|
317
|
+
this.cert_key = key;
|
|
318
|
+
const cert = result.cert;
|
|
319
|
+
this.certificate = cert;
|
|
320
|
+
const certForge = forge.pki.certificateFromPem(cert);
|
|
321
|
+
const now = new Date();
|
|
322
|
+
if (now < certForge.validity.notBefore || now > certForge.validity.notAfter) {
|
|
323
|
+
return reject(new Error("Erro ao carregar o certificado: O certificado fornecido expirou ou ainda não é válido."));
|
|
324
|
+
}
|
|
325
|
+
const agentOptions = {
|
|
326
|
+
key: key,
|
|
327
|
+
cert: cert,
|
|
328
|
+
};
|
|
329
|
+
// Add CA certs if available, otherwise allow self-signed for homologação
|
|
330
|
+
if (caCerts.length > 0) {
|
|
331
|
+
agentOptions.ca = caCerts;
|
|
332
|
+
}
|
|
333
|
+
else if (this.config.ambiente === 2) {
|
|
334
|
+
// Homologação: accept self-signed certificates
|
|
335
|
+
agentOptions.rejectUnauthorized = false;
|
|
336
|
+
}
|
|
337
|
+
const agent = new https.Agent(agentOptions);
|
|
338
|
+
resolve({
|
|
339
|
+
success: true,
|
|
340
|
+
agent,
|
|
341
|
+
message: 'Certificado Carregado com Sucesso.'
|
|
342
|
+
});
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
catch (error) {
|
|
346
|
+
logger.error('Erro ao validar certificado', error, {
|
|
347
|
+
context: 'LoadCertificate',
|
|
348
|
+
method: 'loadCertificateWithPEM',
|
|
349
|
+
});
|
|
350
|
+
reject(new Error(error.message));
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
loadCertificateWithNodeForge() {
|
|
355
|
+
return new Promise((resolve, reject) => {
|
|
356
|
+
try {
|
|
357
|
+
const pfxPath = this.config.pathCertificado;
|
|
358
|
+
const pfxPassword = this.config.senhaCertificado;
|
|
359
|
+
// Lê o arquivo PFX
|
|
360
|
+
const pfxFile = fs.readFileSync(pfxPath);
|
|
361
|
+
// Decodifica o arquivo PFX (PKCS#12)
|
|
362
|
+
const p12Asn1 = forge.asn1.fromDer(pfxFile.toString('binary'));
|
|
363
|
+
const p12 = forge.pkcs12.pkcs12FromAsn1(p12Asn1, pfxPassword);
|
|
364
|
+
// Extrai a chave privada e o certificado
|
|
365
|
+
const keyBags = p12.getBags({ bagType: forge.pki.oids.pkcs8ShroudedKeyBag });
|
|
366
|
+
const certBags = p12.getBags({ bagType: forge.pki.oids.certBag });
|
|
367
|
+
// Verificar se o 'keyBags' contém a chave esperada
|
|
368
|
+
const key = keyBags[forge.pki.oids.pkcs8ShroudedKeyBag]?.[0]?.key;
|
|
369
|
+
if (!key) {
|
|
370
|
+
return reject(new Error("Erro ao carregar chave privada do certificado."));
|
|
371
|
+
}
|
|
372
|
+
const keyPem = forge.pki.privateKeyToPem(key);
|
|
373
|
+
this.cert_key = keyPem;
|
|
374
|
+
// Verificar se o 'certBags' contém o certificado esperado
|
|
375
|
+
const cert = certBags[forge.pki.oids.certBag]?.[0]?.cert;
|
|
376
|
+
if (!cert) {
|
|
377
|
+
return reject(new Error("Erro ao validar certificado."));
|
|
378
|
+
}
|
|
379
|
+
const certPem = forge.pki.certificateToPem(cert);
|
|
380
|
+
this.certificate = certPem;
|
|
381
|
+
// Converte o certificado para o formato Forge
|
|
382
|
+
const certForge = forge.pki.certificateFromPem(forge.pki.certificateToPem(cert));
|
|
383
|
+
// Valida a data de validade
|
|
384
|
+
const now = new Date();
|
|
385
|
+
if (now < certForge.validity.notBefore || now > certForge.validity.notAfter) {
|
|
386
|
+
return reject(new Error("Erro ao carregar o certificado: O certificado fornecido expirou ou ainda não é válido."));
|
|
387
|
+
}
|
|
388
|
+
// Carrega os certificados da CA
|
|
389
|
+
const certsDir = path.resolve(dir$1);
|
|
390
|
+
// Read CA certificates if directory exists and has files
|
|
391
|
+
let caCerts = [];
|
|
392
|
+
if (fs.existsSync(certsDir)) {
|
|
393
|
+
const files = fs.readdirSync(certsDir).filter(f => !f.startsWith('.'));
|
|
394
|
+
caCerts = files.map(filename => {
|
|
395
|
+
const tmp = `${certsDir}/${filename}`;
|
|
396
|
+
return fs.readFileSync(tmp);
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
// Configura o agente HTTPS
|
|
400
|
+
const agentOptions = {
|
|
401
|
+
key: keyPem,
|
|
402
|
+
cert: certPem,
|
|
403
|
+
};
|
|
404
|
+
// Add CA certs if available, otherwise allow self-signed for homologação
|
|
405
|
+
if (caCerts.length > 0) {
|
|
406
|
+
agentOptions.ca = caCerts;
|
|
407
|
+
}
|
|
408
|
+
else if (this.config.ambiente === 2) {
|
|
409
|
+
// Homologação: accept self-signed certificates
|
|
410
|
+
agentOptions.rejectUnauthorized = false;
|
|
411
|
+
}
|
|
412
|
+
const agent = new https.Agent(agentOptions);
|
|
413
|
+
resolve({
|
|
414
|
+
success: true,
|
|
415
|
+
agent,
|
|
416
|
+
message: 'Certificado Carregado com Sucesso.'
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
catch (error) {
|
|
420
|
+
logger.error('Erro ao validar certificado', error, {
|
|
421
|
+
context: 'LoadCertificate',
|
|
422
|
+
method: 'loadCertificateWithNodeForge',
|
|
423
|
+
});
|
|
424
|
+
reject(new Error(error.message));
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
async loadCertificate() {
|
|
429
|
+
logger.info('Validando certificado', {
|
|
430
|
+
context: 'LoadCertificate',
|
|
431
|
+
});
|
|
432
|
+
if (this.config.useOpenSSL || this.config.useOpenSSL === undefined) {
|
|
433
|
+
const { agent } = await this.loadCertificateWithPEM();
|
|
434
|
+
return {
|
|
435
|
+
certificate: this.certificate,
|
|
436
|
+
cert_key: this.cert_key,
|
|
437
|
+
agent
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
const { agent } = await this.loadCertificateWithNodeForge();
|
|
441
|
+
return {
|
|
442
|
+
certificate: this.certificate,
|
|
443
|
+
cert_key: this.cert_key,
|
|
444
|
+
agent
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
class ValidateEnvironment {
|
|
450
|
+
checkRequiredSettings(config) {
|
|
451
|
+
logger.info('Verificando parâmetros de inicialização', {
|
|
452
|
+
context: 'ValidateEnvironment',
|
|
453
|
+
config: {
|
|
454
|
+
pathCertificado: config.pathCertificado,
|
|
455
|
+
senhaCertificado: config.senhaCertificado,
|
|
456
|
+
ambiente: config.ambiente
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
try {
|
|
460
|
+
const errors = [];
|
|
461
|
+
const missingFields = [];
|
|
462
|
+
// Valida campos obrigatórios do BaseConfig
|
|
463
|
+
if (!config.pathCertificado) {
|
|
464
|
+
missingFields.push('pathCertificado');
|
|
465
|
+
}
|
|
466
|
+
if (!config.senhaCertificado) {
|
|
467
|
+
missingFields.push('senhaCertificado');
|
|
468
|
+
}
|
|
469
|
+
if (!config.UF) {
|
|
470
|
+
missingFields.push('UF');
|
|
471
|
+
}
|
|
472
|
+
if (!config.CPFCNPJ) {
|
|
473
|
+
missingFields.push('CPFCNPJ');
|
|
474
|
+
}
|
|
475
|
+
// Valida ambiente (obrigatório)
|
|
476
|
+
if (config.ambiente === undefined || config.ambiente === null) {
|
|
477
|
+
missingFields.push('ambiente');
|
|
478
|
+
}
|
|
479
|
+
// Valida versaoDF se for NFe/NFCe/CTe
|
|
480
|
+
if (config.versaoDF === undefined && config.versao === undefined) {
|
|
481
|
+
// Versão é opcional, mas se não tiver nenhuma, pode ser um problema
|
|
482
|
+
// Por enquanto, não vamos exigir
|
|
483
|
+
}
|
|
484
|
+
if (missingFields.length > 0) {
|
|
485
|
+
errors.push(`Configurações obrigatórias faltando: [${missingFields.join(', ')}]`);
|
|
486
|
+
}
|
|
487
|
+
if (errors.length > 0) {
|
|
488
|
+
console.log("Configurações necessárias faltando:");
|
|
489
|
+
console.table([{ Campo: 'Configurações', Faltando: missingFields.join(', ') }]);
|
|
490
|
+
throw new Error(`Erro ao validar configurações: ${errors.join(' ')}`);
|
|
491
|
+
}
|
|
492
|
+
return {
|
|
493
|
+
missingConfigurations: missingFields,
|
|
494
|
+
message: 'Todas as configurações necessárias estão presentes.',
|
|
495
|
+
success: true,
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
catch (error) {
|
|
499
|
+
logger.error('Erro ao inicializar ambiente', error, {
|
|
500
|
+
context: 'ValidateEnvironment',
|
|
501
|
+
method: 'checkRequiredSettings',
|
|
502
|
+
});
|
|
503
|
+
throw new Error(`Erro ao inicializar ambiente: ${error.message}`);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
class Environment {
|
|
509
|
+
constructor(config) {
|
|
510
|
+
this.config = config;
|
|
511
|
+
this.certificate = '';
|
|
512
|
+
this.cert_key = '';
|
|
513
|
+
this.agent = {};
|
|
514
|
+
this.isLoaded = false;
|
|
515
|
+
}
|
|
516
|
+
getIsLoaded() {
|
|
517
|
+
return this.isLoaded;
|
|
518
|
+
}
|
|
519
|
+
getConfig() {
|
|
520
|
+
return this.config;
|
|
521
|
+
}
|
|
522
|
+
getCertKey() {
|
|
523
|
+
return this.cert_key;
|
|
524
|
+
}
|
|
525
|
+
getCert() {
|
|
526
|
+
return this.certificate;
|
|
527
|
+
}
|
|
528
|
+
getHttpAgent() {
|
|
529
|
+
return this.agent;
|
|
530
|
+
}
|
|
531
|
+
LoggerInit(config) {
|
|
532
|
+
try {
|
|
533
|
+
if (config.log) {
|
|
534
|
+
logger.initialize({
|
|
535
|
+
exibirLogNoConsole: config.log.exibirLogNoConsole ?? false,
|
|
536
|
+
armazenarLogs: config.log.armazenarLogs ?? false,
|
|
537
|
+
pathLogs: config.log.pathLogs
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
logger.info('Inicializando ambiente TreeunfeDFe', {
|
|
541
|
+
context: 'Environment',
|
|
542
|
+
// config,
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
catch (error) {
|
|
546
|
+
logger.error('Erro ao inicializar ambiente TreeunfeDFe', error, { context: 'Environment' });
|
|
547
|
+
throw error;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
async loadEnvironment() {
|
|
551
|
+
/**
|
|
552
|
+
* Inicializa Logger
|
|
553
|
+
* */
|
|
554
|
+
this.LoggerInit(this.config);
|
|
555
|
+
/**
|
|
556
|
+
* Verifica configurações obrigatórias
|
|
557
|
+
* */
|
|
558
|
+
const validateEnvironment = new ValidateEnvironment();
|
|
559
|
+
validateEnvironment.checkRequiredSettings(this.config);
|
|
560
|
+
/**
|
|
561
|
+
* Carrega Certificados
|
|
562
|
+
* */
|
|
563
|
+
const loadCertificate = new LoadCertificate(this.config);
|
|
564
|
+
const { agent, certificate, cert_key } = await loadCertificate.loadCertificate();
|
|
565
|
+
this.agent = agent;
|
|
566
|
+
this.certificate = certificate;
|
|
567
|
+
this.cert_key = cert_key;
|
|
568
|
+
/**
|
|
569
|
+
* Configura HttpClient
|
|
570
|
+
* */
|
|
571
|
+
const httpClient = new AxiosHttpClient();
|
|
572
|
+
const configAgent = new HttpClientBuilder(this.config, this.agent, httpClient);
|
|
573
|
+
const axios = configAgent.createHttpClient();
|
|
574
|
+
/**
|
|
575
|
+
* Armazena informação de ambiente carregado
|
|
576
|
+
* */
|
|
577
|
+
this.isLoaded = true;
|
|
578
|
+
logger.info('Ambiente Treeunfe DFe inicializado com sucesso', { context: 'Environment' });
|
|
579
|
+
return { axios };
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/*
|
|
584
|
+
* This file is part of Treeunfe DFe.
|
|
585
|
+
*
|
|
586
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
587
|
+
* it under the terms of the GNU General Public License as published by
|
|
588
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
589
|
+
* (at your option) any later version.
|
|
590
|
+
*
|
|
591
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
592
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
593
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
594
|
+
* GNU General Public License for more details.
|
|
595
|
+
*
|
|
596
|
+
* You should have received a copy of the GNU General Public License
|
|
597
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
598
|
+
*/
|
|
599
|
+
const getCodIBGE = (UF) => {
|
|
600
|
+
const UFs = {
|
|
601
|
+
RO: 11,
|
|
602
|
+
AC: 12,
|
|
603
|
+
AM: 13,
|
|
604
|
+
RR: 14,
|
|
605
|
+
PA: 15,
|
|
606
|
+
AP: 16,
|
|
607
|
+
TO: 17,
|
|
608
|
+
MA: 21,
|
|
609
|
+
PI: 22,
|
|
610
|
+
CE: 23,
|
|
611
|
+
RN: 24,
|
|
612
|
+
PB: 25,
|
|
613
|
+
PE: 26,
|
|
614
|
+
AL: 27,
|
|
615
|
+
SE: 28,
|
|
616
|
+
BA: 29,
|
|
617
|
+
MG: 31,
|
|
618
|
+
ES: 32,
|
|
619
|
+
RJ: 33,
|
|
620
|
+
SP: 35,
|
|
621
|
+
PR: 41,
|
|
622
|
+
SC: 42,
|
|
623
|
+
RS: 43,
|
|
624
|
+
MS: 50,
|
|
625
|
+
MT: 51,
|
|
626
|
+
GO: 52,
|
|
627
|
+
DF: 53,
|
|
628
|
+
AN: 91,
|
|
629
|
+
};
|
|
630
|
+
return UFs[UF];
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
/*
|
|
634
|
+
* This file is part of Treeunfe DFe.
|
|
635
|
+
*
|
|
636
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
637
|
+
* it under the terms of the GNU General Public License as published by
|
|
638
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
639
|
+
* (at your option) any later version.
|
|
640
|
+
*
|
|
641
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
642
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
643
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
644
|
+
* GNU General Public License for more details.
|
|
645
|
+
*
|
|
646
|
+
* You should have received a copy of the GNU General Public License
|
|
647
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
648
|
+
*/
|
|
649
|
+
const getDesTipoPag = (tPag) => {
|
|
650
|
+
const sefazPagamento = {
|
|
651
|
+
'01': 'Dinheiro',
|
|
652
|
+
'02': 'Cheque',
|
|
653
|
+
'03': 'Cartão de Crédito',
|
|
654
|
+
'04': 'Cartão de Débito',
|
|
655
|
+
'05': 'Cartão da Loja (Private Label), Crediário Digital, Outros Crediários',
|
|
656
|
+
'10': 'Vale Alimentação',
|
|
657
|
+
'11': 'Vale Refeição',
|
|
658
|
+
'12': 'Vale Presente',
|
|
659
|
+
'13': 'Vale Combustível',
|
|
660
|
+
'14': 'Duplicata Mercantil',
|
|
661
|
+
'15': 'Boleto Bancário',
|
|
662
|
+
'16': 'Depósito Bancário',
|
|
663
|
+
'17': 'Pagamento Instantâneo (PIX) - Dinâmico',
|
|
664
|
+
'18': 'Transferência bancária, Carteira Digital',
|
|
665
|
+
'19': 'Programa de fidelidade, Cashback, Crédito Virtual',
|
|
666
|
+
'20': 'Pagamento Instantâneo (PIX) - Estático',
|
|
667
|
+
'21': 'Crédito em Loja',
|
|
668
|
+
'22': 'Pagamento Eletrônico não Informado - falha de hardware do sistema emissor',
|
|
669
|
+
'90': 'Sem Pagamento',
|
|
670
|
+
'99': 'Outros'
|
|
671
|
+
};
|
|
672
|
+
return sefazPagamento[tPag] || 'Outros';
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
/*
|
|
676
|
+
* This file is part of Treeunfe DFe.
|
|
677
|
+
*
|
|
678
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
679
|
+
* it under the terms of the GNU General Public License as published by
|
|
680
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
681
|
+
* (at your option) any later version.
|
|
682
|
+
*
|
|
683
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
684
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
685
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
686
|
+
* GNU General Public License for more details.
|
|
687
|
+
*
|
|
688
|
+
* You should have received a copy of the GNU General Public License
|
|
689
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
690
|
+
*/
|
|
691
|
+
// Obtém o diretório base do arquivo atual
|
|
692
|
+
const baseDir = path.dirname(fileURLToPath(import.meta.url));
|
|
693
|
+
// Encontra o diretório raiz do pacote (@treeunfe/shared)
|
|
694
|
+
function findPackageRoot(currentDir) {
|
|
695
|
+
const npmPattern = '@treeunfe/shared';
|
|
696
|
+
const devPattern = 'packages/shared';
|
|
697
|
+
const npmIndex = currentDir.indexOf(npmPattern);
|
|
698
|
+
if (npmIndex !== -1) {
|
|
699
|
+
return currentDir.substring(0, npmIndex + npmPattern.length);
|
|
700
|
+
}
|
|
701
|
+
const devIndex = currentDir.indexOf(devPattern);
|
|
702
|
+
if (devIndex !== -1) {
|
|
703
|
+
return currentDir.substring(0, devIndex + devPattern.length);
|
|
704
|
+
}
|
|
705
|
+
// Fallback: assume que estamos em packages/shared/src/adapters ou packages/shared/dist/src/adapters
|
|
706
|
+
return path.resolve(currentDir, '../../..');
|
|
707
|
+
}
|
|
708
|
+
const packageRoot = findPackageRoot(baseDir);
|
|
709
|
+
const dir = path.join(packageRoot, 'resources/schemas');
|
|
710
|
+
const getSchema = (metodo) => {
|
|
711
|
+
const pathSchemas = path.resolve(dir);
|
|
712
|
+
const schema = {
|
|
713
|
+
NFEStatusServico: `${pathSchemas}/consStatServ_v4.00.xsd`,
|
|
714
|
+
NFEConsultaProtocolo: `${pathSchemas}/consSitNFe_v4.00.xsd`,
|
|
715
|
+
RecepcaoEvento: `${pathSchemas}/envEvento_v1.00.xsd`,
|
|
716
|
+
NFeDistribuicaoDFe: `${pathSchemas}/distDFeInt_v1.01.xsd`,
|
|
717
|
+
NFEAutorizacao: `${pathSchemas}/enviNFe_v4.00.xsd`,
|
|
718
|
+
NFEInutilizacao: `${pathSchemas}/inutNFe_v4.00.xsd`,
|
|
719
|
+
NFERetAutorizacao: `${pathSchemas}/consReciNFe_v4.00.xsd`,
|
|
720
|
+
CTeDistribuicaoDFe: `${pathSchemas}/cte/distDFeInt_v1.00.xsd`,
|
|
721
|
+
};
|
|
722
|
+
try {
|
|
723
|
+
return {
|
|
724
|
+
basePath: pathSchemas,
|
|
725
|
+
schemaPath: schema[metodo]
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
catch (error) {
|
|
729
|
+
throw new Error(error.message);
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
|
|
733
|
+
var NFEStatusServico = {
|
|
734
|
+
method: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4",
|
|
735
|
+
action: ""
|
|
736
|
+
};
|
|
737
|
+
var NFeDistribuicaoDFe = {
|
|
738
|
+
method: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe",
|
|
739
|
+
action: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse"
|
|
740
|
+
};
|
|
741
|
+
var NFEAutorizacao = {
|
|
742
|
+
method: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4",
|
|
743
|
+
action: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote"
|
|
744
|
+
};
|
|
745
|
+
var NFERetAutorizacao = {
|
|
746
|
+
method: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4",
|
|
747
|
+
action: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"
|
|
748
|
+
};
|
|
749
|
+
var NFERetornoAutorizacao = {
|
|
750
|
+
method: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4",
|
|
751
|
+
action: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"
|
|
752
|
+
};
|
|
753
|
+
var consultarStatusServico = {
|
|
754
|
+
method: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4",
|
|
755
|
+
action: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF"
|
|
756
|
+
};
|
|
757
|
+
var NFEInutilizacao = {
|
|
758
|
+
method: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4",
|
|
759
|
+
action: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF"
|
|
760
|
+
};
|
|
761
|
+
var NFEConsultaProtocolo = {
|
|
762
|
+
method: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4",
|
|
763
|
+
action: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF"
|
|
764
|
+
};
|
|
765
|
+
var consultarCadastro = {
|
|
766
|
+
method: "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/",
|
|
767
|
+
action: "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro"
|
|
768
|
+
};
|
|
769
|
+
var RecepcaoEvento = {
|
|
770
|
+
method: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4",
|
|
771
|
+
action: "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEventoNF"
|
|
772
|
+
};
|
|
773
|
+
var CTeDistribuicaoDFe = {
|
|
774
|
+
method: "http://www.portalfiscal.inf.br/cte/wsdl/CTeDistribuicaoDFe",
|
|
775
|
+
action: "http://www.portalfiscal.inf.br/cte/wsdl/CTeDistribuicaoDFe/cteDistDFeInteresse"
|
|
776
|
+
};
|
|
777
|
+
var soapMethod = {
|
|
778
|
+
NFEStatusServico: NFEStatusServico,
|
|
779
|
+
NFeDistribuicaoDFe: NFeDistribuicaoDFe,
|
|
780
|
+
NFEAutorizacao: NFEAutorizacao,
|
|
781
|
+
NFERetAutorizacao: NFERetAutorizacao,
|
|
782
|
+
NFERetornoAutorizacao: NFERetornoAutorizacao,
|
|
783
|
+
consultarStatusServico: consultarStatusServico,
|
|
784
|
+
NFEInutilizacao: NFEInutilizacao,
|
|
785
|
+
NFEConsultaProtocolo: NFEConsultaProtocolo,
|
|
786
|
+
consultarCadastro: consultarCadastro,
|
|
787
|
+
RecepcaoEvento: RecepcaoEvento,
|
|
788
|
+
CTeDistribuicaoDFe: CTeDistribuicaoDFe
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
var CTe_AN_P = {
|
|
792
|
+
"CTeDistribuicaoDFe_1.00": "https://www1.cte.fazenda.gov.br/CTeDistribuicaoDFe/CTeDistribuicaoDFe.asmx"
|
|
793
|
+
};
|
|
794
|
+
var CTe_AN_H = {
|
|
795
|
+
"CTeDistribuicaoDFe_1.00": "https://hom1.cte.fazenda.gov.br/CTeDistribuicaoDFe/CTeDistribuicaoDFe.asmx"
|
|
796
|
+
};
|
|
797
|
+
var CTeServicosUrl = {
|
|
798
|
+
CTe_AN_P: CTe_AN_P,
|
|
799
|
+
CTe_AN_H: CTe_AN_H
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
var NFe_AC_P = {
|
|
803
|
+
Usar: "NFe_SVRS_P"
|
|
804
|
+
};
|
|
805
|
+
var NFe_AC_H = {
|
|
806
|
+
Usar: "NFe_SVRS_H"
|
|
807
|
+
};
|
|
808
|
+
var NFe_AL_P = {
|
|
809
|
+
Usar: "NFe_SVRS_P"
|
|
810
|
+
};
|
|
811
|
+
var NFe_AL_H = {
|
|
812
|
+
Usar: "NFe_SVRS_H"
|
|
813
|
+
};
|
|
814
|
+
var NFe_AP_P = {
|
|
815
|
+
Usar: "NFe_SVRS_P"
|
|
816
|
+
};
|
|
817
|
+
var NFe_AP_H = {
|
|
818
|
+
Usar: "NFe_SVRS_H"
|
|
819
|
+
};
|
|
820
|
+
var NFe_AM_P = {
|
|
821
|
+
"RecepcaoEvento_1.00": "https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento",
|
|
822
|
+
"NfeRecepcao_2.00": "https://nfe.sefaz.am.gov.br/services2/services/NfeRecepcao2",
|
|
823
|
+
"NfeRetRecepcao_2.00": "https://nfe.sefaz.am.gov.br/services2/services/NfeRetRecepcao2",
|
|
824
|
+
"NfeInutilizacao_2.00": "https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2",
|
|
825
|
+
"NfeInutilizacao_3.10": "https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2",
|
|
826
|
+
"NFEConsultaProtocolo_2.00": "https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta2",
|
|
827
|
+
"NFEConsultaProtocolo_3.10": "https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta2",
|
|
828
|
+
"NFEStatusServico_2.00": "https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico2",
|
|
829
|
+
"NFEStatusServico_3.10": "https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico2",
|
|
830
|
+
"NfeConsultaCadastro_2.00": "https://nfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2",
|
|
831
|
+
"NfeConsultaCadastro_3.10": "https://nfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2",
|
|
832
|
+
"NFEAutorizacao_3.10": "https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao",
|
|
833
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao",
|
|
834
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta4",
|
|
835
|
+
"NFEStatusServico_4.00": "https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico4",
|
|
836
|
+
"NFEInutilizacao_4.00": "https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4",
|
|
837
|
+
"NFEAutorizacao_4.00": "https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4",
|
|
838
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4",
|
|
839
|
+
"RecepcaoEvento_4.00": "https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4",
|
|
840
|
+
"NFERetAutorizacao_3.10": "https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao",
|
|
841
|
+
"NFERetAutorizacao_4.00": "https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"
|
|
842
|
+
};
|
|
843
|
+
var NFe_AM_H = {
|
|
844
|
+
"RecepcaoEvento_1.00": "https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento",
|
|
845
|
+
"NfeRecepcao_2.00": "https://homnfe.sefaz.am.gov.br/services2/services/NfeRecepcao2",
|
|
846
|
+
"NfeRetRecepcao_2.00": "https://homnfe.sefaz.am.gov.br/services2/services/NfeRetRecepcao2",
|
|
847
|
+
"NfeInutilizacao_2.00": "https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2",
|
|
848
|
+
"NfeInutilizacao_3.10": "https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2",
|
|
849
|
+
"NFEConsultaProtocolo_2.00": "https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta2",
|
|
850
|
+
"NFEConsultaProtocolo_3.10": "https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta2",
|
|
851
|
+
"NFEStatusServico_2.00": "https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico2",
|
|
852
|
+
"NFEStatusServico_3.10": "https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico2",
|
|
853
|
+
"NfeConsultaCadastro_2.00": "https://homnfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2",
|
|
854
|
+
"NfeConsultaCadastro_3.10": "https://homnfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2",
|
|
855
|
+
"NFEAutorizacao_3.10": "https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao",
|
|
856
|
+
"NFERetornoAutorizacao_3.10": "https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao",
|
|
857
|
+
"NFEConsultaProtocolo_4.00": "https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta4",
|
|
858
|
+
"NFEStatusServico_4.00": "https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico4",
|
|
859
|
+
"NFEInutilizacao_4.00": "https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4",
|
|
860
|
+
"NFEAutorizacao_4.00": "https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4",
|
|
861
|
+
"NFERetornoAutorizacao_4.00": "https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4",
|
|
862
|
+
"RecepcaoEvento_4.00": "https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4",
|
|
863
|
+
"NFERetAutorizacao_3.10": "https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao",
|
|
864
|
+
"NFERetAutorizacao_4.00": "https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"
|
|
865
|
+
};
|
|
866
|
+
var NFe_BA_P = {
|
|
867
|
+
"NfeRecepcao_2.00": "https://nfe.sefaz.ba.gov.br/webservices/nfenw/NfeRecepcao2.asmx",
|
|
868
|
+
"NfeRetRecepcao_2.00": "https://nfe.sefaz.ba.gov.br/webservices/nfenw/NfeRetRecepcao2.asmx",
|
|
869
|
+
"NfeInutilizacao_2.00": "https://nfe.sefaz.ba.gov.br/webservices/nfenw/nfeinutilizacao2.asmx",
|
|
870
|
+
"NFEConsultaProtocolo_2.00": "https://nfe.sefaz.ba.gov.br/webservices/nfenw/nfeconsulta2.asmx",
|
|
871
|
+
"NFEStatusServico_2.00": "https://nfe.sefaz.ba.gov.br/webservices/nfenw/NfeStatusServico2.asmx",
|
|
872
|
+
"NfeConsultaCadastro_2.00": "https://nfe.sefaz.ba.gov.br/webservices/nfenw/CadConsultaCadastro2.asmx",
|
|
873
|
+
"RecepcaoEvento_1.00": "https://nfe.sefaz.ba.gov.br/webservices/sre/recepcaoevento.asmx",
|
|
874
|
+
"NfeInutilizacao_3.10": "https://nfe.sefaz.ba.gov.br/webservices/NfeInutilizacao/NfeInutilizacao.asmx",
|
|
875
|
+
"NFEConsultaProtocolo_3.10": "https://nfe.sefaz.ba.gov.br/webservices/NfeConsulta/NfeConsulta.asmx",
|
|
876
|
+
"NFEStatusServico_3.10": "https://nfe.sefaz.ba.gov.br/webservices/NfeStatusServico/NfeStatusServico.asmx",
|
|
877
|
+
"NFEAutorizacao_3.10": "https://nfe.sefaz.ba.gov.br/webservices/NfeAutorizacao/NfeAutorizacao.asmx",
|
|
878
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx",
|
|
879
|
+
"NFEInutilizacao_4.00": "https://nfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx",
|
|
880
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx",
|
|
881
|
+
"NFEStatusServico_4.00": "https://nfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx",
|
|
882
|
+
"NfeConsultaCadastro_4.00": "https://nfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx",
|
|
883
|
+
"RecepcaoEvento_4.00": "https://nfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx",
|
|
884
|
+
"NFEAutorizacao_4.00": "https://nfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx",
|
|
885
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx",
|
|
886
|
+
SoapAction: "SOAP_V4_BA",
|
|
887
|
+
"NFERetAutorizacao_3.10": "https://nfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx",
|
|
888
|
+
"NFERetAutorizacao_4.00": "https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"
|
|
889
|
+
};
|
|
890
|
+
var NFe_BA_H = {
|
|
891
|
+
"NfeRecepcao_2.00": "https://hnfe.sefaz.ba.gov.br/webservices/nfenw/NfeRecepcao2.asmx",
|
|
892
|
+
"NfeRetRecepcao_2.00": "https://hnfe.sefaz.ba.gov.br/webservices/nfenw/NfeRetRecepcao2.asmx",
|
|
893
|
+
"NfeInutilizacao_2.00": "https://hnfe.sefaz.ba.gov.br/webservices/nfenw/nfeinutilizacao2.asmx",
|
|
894
|
+
"NFEConsultaProtocolo_2.00": "https://hnfe.sefaz.ba.gov.br/webservices/nfenw/nfeconsulta2.asmx",
|
|
895
|
+
"NFEStatusServico_2.00": "https://hnfe.sefaz.ba.gov.br/webservices/nfenw/NfeStatusServico2.asmx",
|
|
896
|
+
"NfeConsultaCadastro_2.00": "https://hnfe.sefaz.ba.gov.br/webservices/nfenw/CadConsultaCadastro2.asmx",
|
|
897
|
+
"RecepcaoEvento_1.00": "https://hnfe.sefaz.ba.gov.br/webservices/sre/recepcaoevento.asmx",
|
|
898
|
+
"NfeInutilizacao_3.10": "https://hnfe.sefaz.ba.gov.br/webservices/NfeInutilizacao/NfeInutilizacao.asmx",
|
|
899
|
+
"NFEConsultaProtocolo_3.10": "https://hnfe.sefaz.ba.gov.br/webservices/NfeConsulta/NfeConsulta.asmx",
|
|
900
|
+
"NFEStatusServico_3.10": "https://hnfe.sefaz.ba.gov.br/webservices/NfeStatusServico/NfeStatusServico.asmx",
|
|
901
|
+
"NFEAutorizacao_3.10": "https://hnfe.sefaz.ba.gov.br/webservices/NfeAutorizacao/NfeAutorizacao.asmx",
|
|
902
|
+
"NFERetornoAutorizacao_3.10": "https://hnfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx",
|
|
903
|
+
"NFEAutorizacao_4.00": "https://hnfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx",
|
|
904
|
+
"NFEConsultaProtocolo_4.00": "https://hnfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx",
|
|
905
|
+
"NFEInutilizacao_4.00": "https://hnfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx",
|
|
906
|
+
"NFERetornoAutorizacao_4.00": "https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx",
|
|
907
|
+
"NFEStatusServico_4.00": "https://hnfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx",
|
|
908
|
+
"RecepcaoEvento_4.00": "https://hnfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx",
|
|
909
|
+
"NfeConsultaCadastro_4.00": "https://hnfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx",
|
|
910
|
+
SoapAction: "SOAP_V4_BA",
|
|
911
|
+
"NFERetAutorizacao_3.10": "https://hnfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx",
|
|
912
|
+
"NFERetAutorizacao_4.00": "https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"
|
|
913
|
+
};
|
|
914
|
+
var NFe_CE_P = {
|
|
915
|
+
Usar: "NFe_SVRS_P"
|
|
916
|
+
};
|
|
917
|
+
var NFe_CE_H = {
|
|
918
|
+
Usar: "NFe_SVRS_H"
|
|
919
|
+
};
|
|
920
|
+
var NFe_DF_P = {
|
|
921
|
+
Usar: "NFe_SVRS_P"
|
|
922
|
+
};
|
|
923
|
+
var NFe_DF_H = {
|
|
924
|
+
Usar: "NFe_SVRS_H"
|
|
925
|
+
};
|
|
926
|
+
var NFe_ES_P = {
|
|
927
|
+
Usar: "NFe_SVRS_P"
|
|
928
|
+
};
|
|
929
|
+
var NFe_ES_H = {
|
|
930
|
+
Usar: "NFe_SVRS_H"
|
|
931
|
+
};
|
|
932
|
+
var NFe_GO_P = {
|
|
933
|
+
"RecepcaoEvento_1.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento?wsdl",
|
|
934
|
+
"NfeRecepcao_2.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRecepcao2?wsdl",
|
|
935
|
+
"NfeRetRecepcao_2.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetRecepcao2?wsdl",
|
|
936
|
+
"NfeInutilizacao_2.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl",
|
|
937
|
+
"NfeInutilizacao_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl",
|
|
938
|
+
"NFEConsultaProtocolo_2.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl",
|
|
939
|
+
"NFEConsultaProtocolo_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl",
|
|
940
|
+
"NFEStatusServico_2.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl",
|
|
941
|
+
"NFEStatusServico_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl",
|
|
942
|
+
"NfeConsultaCadastro_2.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl",
|
|
943
|
+
"NfeConsultaCadastro_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl",
|
|
944
|
+
"NFEAutorizacao_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao?wsdl",
|
|
945
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl",
|
|
946
|
+
"NFEInutilizacao_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4?wsdl",
|
|
947
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4?wsdl",
|
|
948
|
+
"NFEStatusServico_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4?wsdl",
|
|
949
|
+
"NfeConsultaCadastro_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl",
|
|
950
|
+
"RecepcaoEvento_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4?wsdl",
|
|
951
|
+
"NFEAutorizacao_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl",
|
|
952
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl",
|
|
953
|
+
"NFERetAutorizacao_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl",
|
|
954
|
+
"NFERetAutorizacao_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl"
|
|
955
|
+
};
|
|
956
|
+
var NFe_GO_H = {
|
|
957
|
+
"RecepcaoEvento_1.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento?wsdl",
|
|
958
|
+
"NfeRecepcao_2.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRecepcao2?wsdl",
|
|
959
|
+
"NfeRetRecepcao_2.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetRecepcao2?wsdl",
|
|
960
|
+
"NfeInutilizacao_2.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl",
|
|
961
|
+
"NfeInutilizacao_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl",
|
|
962
|
+
"NFEConsultaProtocolo_2.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl",
|
|
963
|
+
"NFEConsultaProtocolo_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl",
|
|
964
|
+
"NFEStatusServico_2.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl",
|
|
965
|
+
"NFEStatusServico_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl",
|
|
966
|
+
"NfeConsultaCadastro_2.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl",
|
|
967
|
+
"NfeConsultaCadastro_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl",
|
|
968
|
+
"NFEAutorizacao_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao?wsdl",
|
|
969
|
+
"NFERetornoAutorizacao_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl",
|
|
970
|
+
"RecepcaoEvento_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4?wsdl",
|
|
971
|
+
"NFEInutilizacao_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4?wsdl",
|
|
972
|
+
"NFEConsultaProtocolo_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4?wsdl",
|
|
973
|
+
"NFEStatusServico_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4?wsdl",
|
|
974
|
+
"NfeConsultaCadastro_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl",
|
|
975
|
+
"NFEAutorizacao_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl",
|
|
976
|
+
"NFERetornoAutorizacao_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl",
|
|
977
|
+
"NFERetAutorizacao_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl",
|
|
978
|
+
"NFERetAutorizacao_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl"
|
|
979
|
+
};
|
|
980
|
+
var NFe_MA_P = {
|
|
981
|
+
Usar: "NFe_SVAN_P",
|
|
982
|
+
"NfeConsultaCadastro_2.00": "https://sistemas.sefaz.ma.gov.br/wscadastro/CadConsultaCadastro2?wsdl"
|
|
983
|
+
};
|
|
984
|
+
var NFe_MA_H = {
|
|
985
|
+
Usar: "NFe_SVAN_H",
|
|
986
|
+
"NfeConsultaCadastro_2.0": "https://sistemas.sefaz.ma.gov.br/wscadastro/CadConsultaCadastro2?wsdl"
|
|
987
|
+
};
|
|
988
|
+
var NFe_MG_P = {
|
|
989
|
+
"NfeRecepcao_2.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRecepcao2",
|
|
990
|
+
"NfeRetRecepcao_2.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRetRecepcao2",
|
|
991
|
+
"NfeInutilizacao_2.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2",
|
|
992
|
+
"NFEConsultaProtocolo_2.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2",
|
|
993
|
+
"NFEStatusServico_2.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/NfeStatus2",
|
|
994
|
+
"NfeConsultaCadastro_2.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2",
|
|
995
|
+
"RecepcaoEvento_1.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/RecepcaoEvento",
|
|
996
|
+
"NFEAutorizacao_3.10": "https://nfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao",
|
|
997
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao",
|
|
998
|
+
"NFEInutilizacao_4.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4",
|
|
999
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4",
|
|
1000
|
+
"NFEStatusServico_4.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4",
|
|
1001
|
+
"NFEAutorizacao_4.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4",
|
|
1002
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4",
|
|
1003
|
+
"RecepcaoEvento_4.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4",
|
|
1004
|
+
"NfeConsultaCadastro_4.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4",
|
|
1005
|
+
"NFERetAutorizacao_3.10": "https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao",
|
|
1006
|
+
"NFERetAutorizacao_4.00": "https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"
|
|
1007
|
+
};
|
|
1008
|
+
var NFe_MG_H = {
|
|
1009
|
+
"RecepcaoEvento_1.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/RecepcaoEvento",
|
|
1010
|
+
"NfeRecepcao_2.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRecepcao2",
|
|
1011
|
+
"NfeRetRecepcao_2.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRetRecepcao2",
|
|
1012
|
+
"NfeInutilizacao_2.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2",
|
|
1013
|
+
"NfeInutilizacao_3.10": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2",
|
|
1014
|
+
"NFEConsultaProtocolo_2.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2",
|
|
1015
|
+
"NFEConsultaProtocolo_3.10": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2",
|
|
1016
|
+
"NFEStatusServico_2.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeStatusServico2",
|
|
1017
|
+
"NFEStatusServico_3.10": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeStatusServico2",
|
|
1018
|
+
"NfeConsultaCadastro_2.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2",
|
|
1019
|
+
"NfeConsultaCadastro_3.10": "https://hnfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2",
|
|
1020
|
+
"NFEAutorizacao_3.10": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao",
|
|
1021
|
+
"NFERetornoAutorizacao_3.10": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao",
|
|
1022
|
+
"NFEAutorizacao_4.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4",
|
|
1023
|
+
"NFEConsultaProtocolo_4.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4",
|
|
1024
|
+
"NFEInutilizacao_4.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4",
|
|
1025
|
+
"NFERetornoAutorizacao_4.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4",
|
|
1026
|
+
"NFEStatusServico_4.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4",
|
|
1027
|
+
"RecepcaoEvento_4.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4",
|
|
1028
|
+
"NfeConsultaCadastro_4.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4",
|
|
1029
|
+
"NFERetAutorizacao_3.10": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao",
|
|
1030
|
+
"NFERetAutorizacao_4.00": "https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"
|
|
1031
|
+
};
|
|
1032
|
+
var NFe_MS_P = {
|
|
1033
|
+
"RecepcaoEvento_1.00": "https://nfe.fazenda.ms.gov.br/producao/services2/RecepcaoEvento",
|
|
1034
|
+
"NfeRecepcao_2.00": "https://nfe.fazenda.ms.gov.br/producao/services2/NfeRecepcao2",
|
|
1035
|
+
"NfeRetRecepcao_2.00": "https://nfe.fazenda.ms.gov.br/producao/services2/NfeRetRecepcao2",
|
|
1036
|
+
"NfeConsultaCadastro_2.00": "https://nfe.fazenda.ms.gov.br/producao/services2/CadConsultaCadastro2",
|
|
1037
|
+
"NfeInutilizacao_2.00": "https://nfe.fazenda.ms.gov.br/producao/services2/NfeInutilizacao2",
|
|
1038
|
+
"NfeInutilizacao_3.10": "https://nfe.fazenda.ms.gov.br/producao/services2/NfeInutilizacao2",
|
|
1039
|
+
"NFEConsultaProtocolo_2.00": "https://nfe.fazenda.ms.gov.br/producao/services2/NfeConsulta2",
|
|
1040
|
+
"NFEConsultaProtocolo_3.10": "https://nfe.fazenda.ms.gov.br/producao/services2/NfeConsulta2",
|
|
1041
|
+
"NFEStatusServico_2.00": "https://nfe.fazenda.ms.gov.br/producao/services2/NfeStatusServico2",
|
|
1042
|
+
"NFEStatusServico_3.10": "https://nfe.fazenda.ms.gov.br/producao/services2/NfeStatusServico2",
|
|
1043
|
+
"NFEAutorizacao_3.10": "https://nfe.fazenda.ms.gov.br/producao/services2/NfeAutorizacao",
|
|
1044
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao",
|
|
1045
|
+
"NFEInutilizacao_4.00": "https://nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4",
|
|
1046
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4",
|
|
1047
|
+
"NFEStatusServico_4.00": "https://nfe.sefaz.ms.gov.br/ws/NFeStatusServico4",
|
|
1048
|
+
"NfeConsultaCadastro_4.00": "https://nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4",
|
|
1049
|
+
"RecepcaoEvento_4.00": "https://nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4",
|
|
1050
|
+
"NFEAutorizacao_4.00": "https://nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4",
|
|
1051
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4",
|
|
1052
|
+
"NFERetAutorizacao_3.10": "https://nfe.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao",
|
|
1053
|
+
"NFERetAutorizacao_4.00": "https://nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"
|
|
1054
|
+
};
|
|
1055
|
+
var NFe_MS_H = {
|
|
1056
|
+
"RecepcaoEvento_1.00": "https://homologacao.nfe.ms.gov.br/homologacao/services2/RecepcaoEvento",
|
|
1057
|
+
"NfeRecepcao_2.00": "https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRecepcao2",
|
|
1058
|
+
"NfeRetRecepcao_2.00": "https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRetRecepcao2",
|
|
1059
|
+
"NfeConsultaCadastro_2.00": "https://homologacao.nfe.ms.gov.br/homologacao/services2/CadConsultaCadastro2",
|
|
1060
|
+
"NfeInutilizacao_2.00": "https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeInutilizacao2",
|
|
1061
|
+
"NfeInutilizacao_3.10": "https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeInutilizacao2",
|
|
1062
|
+
"NFEConsultaProtocolo_2.00": "https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeConsulta2",
|
|
1063
|
+
"NFEConsultaProtocolo_3.10": "https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeConsulta2",
|
|
1064
|
+
"NFEStatusServico_2.00": "https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeStatusServico2",
|
|
1065
|
+
"NFEStatusServico_3.10": "https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeStatusServico2",
|
|
1066
|
+
"NFEAutorizacao_3.10": "https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeAutorizacao",
|
|
1067
|
+
"NFERetornoAutorizacao_3.10": "https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRetAutorizacao",
|
|
1068
|
+
"NFEAutorizacao_4.00": "https://hom.nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4",
|
|
1069
|
+
"NFERetornoAutorizacao_4.00": "https://hom.nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4",
|
|
1070
|
+
"NFEConsultaProtocolo_4.00": "https://hom.nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4",
|
|
1071
|
+
"NFEStatusServico_4.00": "https://hom.nfe.sefaz.ms.gov.br/ws/NFeStatusServico4",
|
|
1072
|
+
"NFEInutilizacao_4.00": "https://hom.nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4",
|
|
1073
|
+
"RecepcaoEvento_4.00": "https://hom.nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4",
|
|
1074
|
+
"NfeConsultaCadastro_4.00": "https://hom.nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4",
|
|
1075
|
+
"NFERetAutorizacao_3.10": "https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRetAutorizacao",
|
|
1076
|
+
"NFERetAutorizacao_4.00": "https://hom.nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"
|
|
1077
|
+
};
|
|
1078
|
+
var NFe_MT_P = {
|
|
1079
|
+
"NfeRecepcao_2.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRecepcao2?wsdl",
|
|
1080
|
+
"NfeRetRecepcao_2.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetRecepcao2?wsdl",
|
|
1081
|
+
"NfeInutilizacao_2.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2?wsdl",
|
|
1082
|
+
"NfeInutilizacao_3.10": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2?wsdl",
|
|
1083
|
+
"NFEConsultaProtocolo_2.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2?wsdl",
|
|
1084
|
+
"NFEConsultaProtocolo_3.10": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2?wsdl",
|
|
1085
|
+
"NFEStatusServico_2.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2?wsdl",
|
|
1086
|
+
"NFEStatusServico_3.10": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2?wsdl",
|
|
1087
|
+
"NfeConsultaCadastro_2.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro2?wsdl",
|
|
1088
|
+
"RecepcaoEvento_1.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento?wsdl",
|
|
1089
|
+
"NFEAutorizacao_3.10": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao?wsdl",
|
|
1090
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao?wsdl",
|
|
1091
|
+
"NFEInutilizacao_4.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4?wsdl",
|
|
1092
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4?wsdl",
|
|
1093
|
+
"NFEStatusServico_4.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4?wsdl",
|
|
1094
|
+
"NfeConsultaCadastro_4.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4?wsdl",
|
|
1095
|
+
"RecepcaoEvento_4.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4?wsdl",
|
|
1096
|
+
"NFEAutorizacao_4.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4?wsdl",
|
|
1097
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4?wsdl",
|
|
1098
|
+
"NFERetAutorizacao_3.10": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao?wsdl",
|
|
1099
|
+
"NFERetAutorizacao_4.00": "https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4?wsdl"
|
|
1100
|
+
};
|
|
1101
|
+
var NFe_MT_H = {
|
|
1102
|
+
"NfeRecepcao_2.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRecepcao2?wsdl",
|
|
1103
|
+
"NfeRetRecepcao_2.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetRecepcao2?wsdl",
|
|
1104
|
+
"NfeInutilizacao_2.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2?wsdl",
|
|
1105
|
+
"NFEConsultaProtocolo_2.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2?wsdl",
|
|
1106
|
+
"NFEStatusServico_2.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2?wsdl",
|
|
1107
|
+
"RecepcaoEvento_1.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento?wsdl",
|
|
1108
|
+
"NfeConsultaCadastro_2.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro2?wsdl",
|
|
1109
|
+
"NFEAutorizacao_3.10": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao?wsdl",
|
|
1110
|
+
"NFERetornoAutorizacao_3.10": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao?wsdl",
|
|
1111
|
+
"NFERetornoAutorizacao_4.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4",
|
|
1112
|
+
"RecepcaoEvento_4.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4",
|
|
1113
|
+
"NFEConsultaProtocolo_4.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4",
|
|
1114
|
+
"NFEAutorizacao_4.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4",
|
|
1115
|
+
"NFEInutilizacao_4.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4",
|
|
1116
|
+
"NfeConsultaCadastro_4.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4",
|
|
1117
|
+
"NFEStatusServico_4.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4",
|
|
1118
|
+
"NFERetAutorizacao_3.10": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao?wsdl",
|
|
1119
|
+
"NFERetAutorizacao_4.00": "https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"
|
|
1120
|
+
};
|
|
1121
|
+
var NFe_PA_P = {
|
|
1122
|
+
Usar: "NFe_SVRS_P"
|
|
1123
|
+
};
|
|
1124
|
+
var NFe_PA_H = {
|
|
1125
|
+
Usar: "NFe_SVRS_H"
|
|
1126
|
+
};
|
|
1127
|
+
var NFe_PB_P = {
|
|
1128
|
+
Usar: "NFe_SVRS_P"
|
|
1129
|
+
};
|
|
1130
|
+
var NFe_PB_H = {
|
|
1131
|
+
Usar: "NFe_SVRS_H"
|
|
1132
|
+
};
|
|
1133
|
+
var NFe_PE_P = {
|
|
1134
|
+
"RecepcaoEvento_1.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/RecepcaoEvento",
|
|
1135
|
+
"NfeRecepcao_2.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRecepcao2",
|
|
1136
|
+
"NfeRetRecepcao_2.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRetRecepcao2",
|
|
1137
|
+
"NfeInutilizacao_2.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2",
|
|
1138
|
+
"NfeInutilizacao_3.10": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2",
|
|
1139
|
+
"NFEConsultaProtocolo_2.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2",
|
|
1140
|
+
"NFEConsultaProtocolo_3.10": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2",
|
|
1141
|
+
"NFEStatusServico_2.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2",
|
|
1142
|
+
"NFEStatusServico_3.10": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2",
|
|
1143
|
+
"NfeConsultaCadastro_2.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro2",
|
|
1144
|
+
"NfeConsultaCadastro_3.10": "https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro2",
|
|
1145
|
+
"NFEAutorizacao_3.10": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeAutorizacao?wsdl",
|
|
1146
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao?wsdl",
|
|
1147
|
+
"NFEInutilizacao_4.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4",
|
|
1148
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4",
|
|
1149
|
+
"NFEStatusServico_4.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4",
|
|
1150
|
+
"RecepcaoEvento_4.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4",
|
|
1151
|
+
"NFEAutorizacao_4.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4",
|
|
1152
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4",
|
|
1153
|
+
"NfeConsultaCadastro_4.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4",
|
|
1154
|
+
"NFERetAutorizacao_3.10": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao?wsdl",
|
|
1155
|
+
"NFERetAutorizacao_4.00": "https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"
|
|
1156
|
+
};
|
|
1157
|
+
var NFe_PE_H = {
|
|
1158
|
+
"RecepcaoEvento_1.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/RecepcaoEvento",
|
|
1159
|
+
"NfeRecepcao_2.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRecepcao2",
|
|
1160
|
+
"NfeRetRecepcao_2.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRetRecepcao2",
|
|
1161
|
+
"NfeInutilizacao_2.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2",
|
|
1162
|
+
"NfeInutilizacao_3.10": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2",
|
|
1163
|
+
"NFEConsultaProtocolo_2.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2",
|
|
1164
|
+
"NFEConsultaProtocolo_3.10": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2",
|
|
1165
|
+
"NFEStatusServico_2.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2",
|
|
1166
|
+
"NFEStatusServico_3.10": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2",
|
|
1167
|
+
"NFEAutorizacao_3.10": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeAutorizacao?wsdl",
|
|
1168
|
+
"NFERetornoAutorizacao_3.10": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao?wsdl",
|
|
1169
|
+
"NFEInutilizacao_4.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4?wsdl",
|
|
1170
|
+
"NFEConsultaProtocolo_4.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4?wsdl",
|
|
1171
|
+
"NFEStatusServico_4.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4?wsdl",
|
|
1172
|
+
"NfeConsultaCadastro_4.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4?wsdl",
|
|
1173
|
+
"RecepcaoEvento_4.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4?wsdl",
|
|
1174
|
+
"NFEAutorizacao_4.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4?wsdl",
|
|
1175
|
+
"NFERetornoAutorizacao_4.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4?wsdl",
|
|
1176
|
+
"NFERetAutorizacao_3.10": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao?wsdl",
|
|
1177
|
+
"NFERetAutorizacao_4.00": "https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4?wsdl"
|
|
1178
|
+
};
|
|
1179
|
+
var NFe_PI_P = {
|
|
1180
|
+
Usar: "NFe_SVRS_P"
|
|
1181
|
+
};
|
|
1182
|
+
var NFe_PI_H = {
|
|
1183
|
+
Usar: "NFe_SVRS_H"
|
|
1184
|
+
};
|
|
1185
|
+
var NFe_PR_P = {
|
|
1186
|
+
"RecepcaoEvento_1.00": "https://nfe.fazenda.pr.gov.br/nfe/NFeRecepcaoEvento?wsdl",
|
|
1187
|
+
"NfeInutilizacao_3.10": "https://nfe.fazenda.pr.gov.br/nfe/NFeInutilizacao3?wsdl",
|
|
1188
|
+
"NFEConsultaProtocolo_3.10": "https://nfe.fazenda.pr.gov.br/nfe/NFeConsulta3?wsdl",
|
|
1189
|
+
"NFEStatusServico_3.10": "https://nfe.fazenda.pr.gov.br/nfe/NFeStatusServico3?wsdl",
|
|
1190
|
+
"NfeConsultaCadastro_2.00": "https://nfe.fazenda.pr.gov.br/nfe/CadConsultaCadastro2?wsdl",
|
|
1191
|
+
"NFEAutorizacao_3.10": "https://nfe.fazenda.pr.gov.br/nfe/NFeAutorizacao3?wsdl",
|
|
1192
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3?wsdl",
|
|
1193
|
+
"NFEInutilizacao_4.00": "https://nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4?wsdl",
|
|
1194
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4?wsdl",
|
|
1195
|
+
"NFEStatusServico_4.00": "https://nfe.sefa.pr.gov.br/nfe/NFeStatusServico4?wsdl",
|
|
1196
|
+
"NfeConsultaCadastro_4.00": "https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4?wsdl",
|
|
1197
|
+
"RecepcaoEvento_4.00": "https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4?wsdl",
|
|
1198
|
+
"NFEAutorizacao_4.00": "https://nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4?wsdl",
|
|
1199
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4?wsdl",
|
|
1200
|
+
"NFERetAutorizacao_3.10": "https://nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3?wsdl",
|
|
1201
|
+
"NFERetAutorizacao_4.00": "https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4?wsdl"
|
|
1202
|
+
};
|
|
1203
|
+
var NFe_PR_H = {
|
|
1204
|
+
"RecepcaoEvento_1.00": "https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRecepcaoEvento?wsdl",
|
|
1205
|
+
"NfeInutilizacao_3.10": "https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeInutilizacao3?wsdl",
|
|
1206
|
+
"NFEConsultaProtocolo_3.10": "https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeConsulta3?wsdl",
|
|
1207
|
+
"NFEStatusServico_3.10": "https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeStatusServico3?wsdl",
|
|
1208
|
+
"NfeConsultaCadastro_2.00": "https://homologacao.nfe.fazenda.pr.gov.br/nfe/CadConsultaCadastro2?wsdl",
|
|
1209
|
+
"NFEAutorizacao_3.10": "https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeAutorizacao3?wsdl",
|
|
1210
|
+
"NFERetornoAutorizacao_3.10": "https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3?wsdl",
|
|
1211
|
+
"RecepcaoEvento_4.00": "https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4?wsdl",
|
|
1212
|
+
"NFEInutilizacao_4.00": "https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4?wsdl",
|
|
1213
|
+
"NFEConsultaProtocolo_4.00": "https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4?wsdl",
|
|
1214
|
+
"NFEStatusServico_4.00": "https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeStatusServico4?wsdl",
|
|
1215
|
+
"NfeConsultaCadastro_4.00": "https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4?wsdl",
|
|
1216
|
+
"NFEAutorizacao_4.00": "https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4?wsdl",
|
|
1217
|
+
"NFERetornoAutorizacao_4.00": "https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4?wsdl",
|
|
1218
|
+
"NFERetAutorizacao_3.10": "https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3?wsdl",
|
|
1219
|
+
"NFERetAutorizacao_4.00": "https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4?wsdl"
|
|
1220
|
+
};
|
|
1221
|
+
var NFe_RJ_P = {
|
|
1222
|
+
Usar: "NFe_SVRS_P"
|
|
1223
|
+
};
|
|
1224
|
+
var NFe_RJ_H = {
|
|
1225
|
+
Usar: "NFe_SVRS_H"
|
|
1226
|
+
};
|
|
1227
|
+
var NFe_RN_P = {
|
|
1228
|
+
Usar: "NFe_SVRS_P"
|
|
1229
|
+
};
|
|
1230
|
+
var NFe_RN_H = {
|
|
1231
|
+
Usar: "NFe_SVRS_H"
|
|
1232
|
+
};
|
|
1233
|
+
var NFe_RO_P = {
|
|
1234
|
+
Usar: "NFe_SVRS_P"
|
|
1235
|
+
};
|
|
1236
|
+
var NFe_RO_H = {
|
|
1237
|
+
Usar: "NFe_SVRS_H"
|
|
1238
|
+
};
|
|
1239
|
+
var NFe_RS_P = {
|
|
1240
|
+
"NFEAutorizacao_3.10": "https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx",
|
|
1241
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
1242
|
+
"NfeInutilizacao_2.00": "https://nfe.sefazrs.rs.gov.br/ws/NfeInutilizacao/NfeInutilizacao2.asmx",
|
|
1243
|
+
"NfeInutilizacao_3.10": "https://nfe.sefazrs.rs.gov.br/ws/NfeInutilizacao/NfeInutilizacao2.asmx",
|
|
1244
|
+
"NFEConsultaProtocolo_2.00": "https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
1245
|
+
"NFEConsultaProtocolo_3.10": "https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
1246
|
+
"NFEStatusServico_2.00": "https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
1247
|
+
"NFEStatusServico_3.10": "https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
1248
|
+
"RecepcaoEvento_1.00": "https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx",
|
|
1249
|
+
"NfeConsultaCadastro_2.00": "https://cad.sefazrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx",
|
|
1250
|
+
"NFEInutilizacao_4.00": "https://nfe.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx",
|
|
1251
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx",
|
|
1252
|
+
"NFEStatusServico_4.00": "https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx",
|
|
1253
|
+
"RecepcaoEvento_4.00": "https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx",
|
|
1254
|
+
"NFEAutorizacao_4.00": "https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx",
|
|
1255
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx",
|
|
1256
|
+
"NfeConsultaCadastro_4.00": "https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx",
|
|
1257
|
+
"NFERetAutorizacao_3.10": "https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
1258
|
+
"NFERetAutorizacao_4.00": "https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"
|
|
1259
|
+
};
|
|
1260
|
+
var NFe_RS_H = {
|
|
1261
|
+
"NFEAutorizacao_3.10": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx",
|
|
1262
|
+
"NFERetornoAutorizacao_3.10": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
1263
|
+
"NfeInutilizacao_2.00": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx",
|
|
1264
|
+
"NfeInutilizacao_3.10": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx",
|
|
1265
|
+
"NFEConsultaProtocolo_2.00": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
1266
|
+
"NFEConsultaProtocolo_3.10": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
1267
|
+
"NFEStatusServico_2.00": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
1268
|
+
"NFEStatusServico_3.10": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
1269
|
+
"RecepcaoEvento_1.00": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx",
|
|
1270
|
+
"NfeConsultaCadastro_2.00": "https://cad.sefazrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx",
|
|
1271
|
+
"NFEInutilizacao_4.00": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx",
|
|
1272
|
+
"NFEConsultaProtocolo_4.00": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx",
|
|
1273
|
+
"NFEStatusServico_4.00": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx",
|
|
1274
|
+
"RecepcaoEvento_4.00": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx",
|
|
1275
|
+
"NFEAutorizacao_4.00": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx",
|
|
1276
|
+
"NFERetornoAutorizacao_4.00": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx",
|
|
1277
|
+
"NfeConsultaCadastro_4.00": "https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx",
|
|
1278
|
+
"NFERetAutorizacao_3.10": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
1279
|
+
"NFERetAutorizacao_4.00": "https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"
|
|
1280
|
+
};
|
|
1281
|
+
var NFe_RR_P = {
|
|
1282
|
+
Usar: "NFe_SVRS_P"
|
|
1283
|
+
};
|
|
1284
|
+
var NFe_RR_H = {
|
|
1285
|
+
Usar: "NFe_SVRS_H"
|
|
1286
|
+
};
|
|
1287
|
+
var NFe_SC_P = {
|
|
1288
|
+
Usar: "NFe_SVRS_P"
|
|
1289
|
+
};
|
|
1290
|
+
var NFe_SC_H = {
|
|
1291
|
+
Usar: "NFe_SVRS_H"
|
|
1292
|
+
};
|
|
1293
|
+
var NFe_SE_P = {
|
|
1294
|
+
Usar: "NFe_SVRS_P"
|
|
1295
|
+
};
|
|
1296
|
+
var NFe_SE_H = {
|
|
1297
|
+
Usar: "NFe_SVRS_H"
|
|
1298
|
+
};
|
|
1299
|
+
var NFe_SP_P = {
|
|
1300
|
+
"NfeRecepcao_2.00": "https://nfe.fazenda.sp.gov.br/nfeweb/services/nferecepcao2.asmx",
|
|
1301
|
+
"NfeRetRecepcao_2.00": "https://nfe.fazenda.sp.gov.br/nfeweb/services/nferetrecepcao2.asmx",
|
|
1302
|
+
"NfeInutilizacao_2.00": "https://nfe.fazenda.sp.gov.br/nfeweb/services/nfeinutilizacao2.asmx",
|
|
1303
|
+
"NFEConsultaProtocolo_2.00": "https://nfe.fazenda.sp.gov.br/nfeweb/services/nfeconsulta2.asmx",
|
|
1304
|
+
"NFEStatusServico_2.00": "https://nfe.fazenda.sp.gov.br/nfeweb/services/nfestatusservico2.asmx",
|
|
1305
|
+
"NfeConsultaCadastro_2.00": "https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx",
|
|
1306
|
+
"RecepcaoEvento_1.00": "https://nfe.fazenda.sp.gov.br/ws/RecepcaoEvento.asmx",
|
|
1307
|
+
"NfeInutilizacao_3.10": "https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx",
|
|
1308
|
+
"NFEConsultaProtocolo_3.10": "https://nfe.fazenda.sp.gov.br/ws/nfeconsulta2.asmx",
|
|
1309
|
+
"NFEStatusServico_3.10": "https://nfe.fazenda.sp.gov.br/ws/nfestatusservico2.asmx",
|
|
1310
|
+
"NFEAutorizacao_3.10": "https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao.asmx",
|
|
1311
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx",
|
|
1312
|
+
"NFEInutilizacao_4.00": "https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx",
|
|
1313
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx",
|
|
1314
|
+
"NFEStatusServico_4.00": "https://nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx",
|
|
1315
|
+
"NfeConsultaCadastro_4.00": "https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx",
|
|
1316
|
+
"RecepcaoEvento_4.00": "https://nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx",
|
|
1317
|
+
"NFEAutorizacao_4.00": "https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx",
|
|
1318
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx",
|
|
1319
|
+
"NFERetAutorizacao_3.10": "https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx",
|
|
1320
|
+
"NFERetAutorizacao_4.00": "https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"
|
|
1321
|
+
};
|
|
1322
|
+
var NFe_SP_H = {
|
|
1323
|
+
"NfeRecepcao_2.00": "https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/NfeRecepcao2.asmx",
|
|
1324
|
+
"NfeRetRecepcao_2.00": "https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/NfeRetRecepcao2.asmx",
|
|
1325
|
+
"NfeInutilizacao_2.00": "https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfeinutilizacao2.asmx",
|
|
1326
|
+
"NFEConsultaProtocolo_2.00": "https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfeconsulta2.asmx",
|
|
1327
|
+
"NFEStatusServico_2.00": "https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfestatusservico2.asmx",
|
|
1328
|
+
"NfeConsultaCadastro_2.00": "https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx",
|
|
1329
|
+
"RecepcaoEvento_1.00": "https://homologacao.nfe.fazenda.sp.gov.br/ws/RecepcaoEvento.asmx",
|
|
1330
|
+
"NfeInutilizacao_3.10": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx",
|
|
1331
|
+
"NFEConsultaProtocolo_3.10": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsulta2.asmx",
|
|
1332
|
+
"NFEStatusServico_3.10": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico2.asmx",
|
|
1333
|
+
"NFEAutorizacao_3.10": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao.asmx",
|
|
1334
|
+
"NFERetornoAutorizacao_3.10": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx",
|
|
1335
|
+
"NFEInutilizacao_4.00": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx",
|
|
1336
|
+
"NFEConsultaProtocolo_4.00": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx",
|
|
1337
|
+
"NFEStatusServico_4.00": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx",
|
|
1338
|
+
"NFEAutorizacao_4.00": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx",
|
|
1339
|
+
"NFERetornoAutorizacao_4.00": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx",
|
|
1340
|
+
"NfeConsultaCadastro_4.00": "https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx",
|
|
1341
|
+
"RecepcaoEvento_4.00": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx",
|
|
1342
|
+
"NFERetAutorizacao_3.10": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx",
|
|
1343
|
+
"NFERetAutorizacao_4.00": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"
|
|
1344
|
+
};
|
|
1345
|
+
var NFe_TO_P = {
|
|
1346
|
+
Usar: "NFe_SVRS_P"
|
|
1347
|
+
};
|
|
1348
|
+
var NFe_TO_H = {
|
|
1349
|
+
Usar: "NFe_SVRS_H"
|
|
1350
|
+
};
|
|
1351
|
+
var NFe_SVAN_P = {
|
|
1352
|
+
"RecepcaoEvento_1.00": "https://www.sefazvirtual.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx",
|
|
1353
|
+
"NfeRecepcao_2.00": "https://www.sefazvirtual.fazenda.gov.br/NfeRecepcao2/NfeRecepcao2.asmx",
|
|
1354
|
+
"NfeRetRecepcao_2.00": "https://www.sefazvirtual.fazenda.gov.br/NfeRetRecepcao2/NfeRetRecepcao2.asmx",
|
|
1355
|
+
"NfeInutilizacao_2.00": "https://www.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx",
|
|
1356
|
+
"NfeInutilizacao_3.10": "https://www.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx",
|
|
1357
|
+
"NFEConsultaProtocolo_2.00": "https://www.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx",
|
|
1358
|
+
"NFEConsultaProtocolo_3.10": "https://www.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx",
|
|
1359
|
+
"NFEStatusServico_2.00": "https://www.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx",
|
|
1360
|
+
"NFEStatusServico_3.10": "https://www.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx",
|
|
1361
|
+
"NfeDownloadNF_1.00": "https://www.sefazvirtual.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx",
|
|
1362
|
+
"NFEAutorizacao_3.10": "https://www.sefazvirtual.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx",
|
|
1363
|
+
"NFERetornoAutorizacao_3.10": "https://www.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx",
|
|
1364
|
+
"RecepcaoEvento_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx",
|
|
1365
|
+
"NFEInutilizacao_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx",
|
|
1366
|
+
"NFEConsultaProtocolo_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx",
|
|
1367
|
+
"NFEStatusServico_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx",
|
|
1368
|
+
"NFEAutorizacao_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx",
|
|
1369
|
+
"NFERetornoAutorizacao_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx",
|
|
1370
|
+
"NFERetAutorizacao_3.10": "https://www.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx",
|
|
1371
|
+
"NFERetAutorizacao_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"
|
|
1372
|
+
};
|
|
1373
|
+
var NFe_SVAN_H = {
|
|
1374
|
+
"RecepcaoEvento_1.00": "https://hom.sefazvirtual.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx",
|
|
1375
|
+
"NfeRecepcao_2.00": "https://hom.sefazvirtual.fazenda.gov.br/NfeRecepcao2/NfeRecepcao2.asmx",
|
|
1376
|
+
"NfeRetRecepcao_2.00": "https://hom.sefazvirtual.fazenda.gov.br/NfeRetRecepcao2/NfeRetRecepcao2.asmx",
|
|
1377
|
+
"NfeInutilizacao_2.00": "https://hom.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx",
|
|
1378
|
+
"NfeInutilizacao_3.10": "https://hom.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx",
|
|
1379
|
+
"NFEConsultaProtocolo_2.00": "https://hom.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx",
|
|
1380
|
+
"NFEConsultaProtocolo_3.10": "https://hom.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx",
|
|
1381
|
+
"NFEStatusServico_2.00": "https://hom.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx",
|
|
1382
|
+
"NFEStatusServico_3.10": "https://hom.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx",
|
|
1383
|
+
"NfeDownloadNF_1.00": "https://hom.sefazvirtual.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx",
|
|
1384
|
+
"NFEAutorizacao_3.10": "https://hom.sefazvirtual.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx",
|
|
1385
|
+
"NFERetornoAutorizacao_3.10": "https://hom.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx",
|
|
1386
|
+
"NFEInutilizacao_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx",
|
|
1387
|
+
"NFEConsultaProtocolo_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx",
|
|
1388
|
+
"NFEStatusServico_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx",
|
|
1389
|
+
"RecepcaoEvento_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx",
|
|
1390
|
+
"NFEAutorizacao_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx",
|
|
1391
|
+
"NFERetornoAutorizacao_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx",
|
|
1392
|
+
"NFERetAutorizacao_3.10": "https://hom.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx",
|
|
1393
|
+
"NFERetAutorizacao_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"
|
|
1394
|
+
};
|
|
1395
|
+
var NFe_SVRS_P = {
|
|
1396
|
+
"NFEAutorizacao_3.10": "https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx",
|
|
1397
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
1398
|
+
"NfeInutilizacao_2.00": "https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx",
|
|
1399
|
+
"NfeInutilizacao_3.10": "https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx",
|
|
1400
|
+
"NFEConsultaProtocolo_2.00": "https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
1401
|
+
"NFEConsultaProtocolo_3.10": "https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
1402
|
+
"NFEStatusServico_2.00": "https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
1403
|
+
"NFEStatusServico_3.10": "https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
1404
|
+
"RecepcaoEvento_1.00": "https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx",
|
|
1405
|
+
"NfeConsultaCadastro_2.00": "https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx",
|
|
1406
|
+
"NFEAutorizacao_4.00": "https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx",
|
|
1407
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx",
|
|
1408
|
+
"NFEInutilizacao_4.00": "https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx",
|
|
1409
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx",
|
|
1410
|
+
"NFEStatusServico_4.00": "https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx",
|
|
1411
|
+
"RecepcaoEvento_4.00": "https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx",
|
|
1412
|
+
"NfeConsultaCadastro_4.00": "https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx",
|
|
1413
|
+
"NFERetAutorizacao_3.10": "https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
1414
|
+
"NFERetAutorizacao_4.00": "https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"
|
|
1415
|
+
};
|
|
1416
|
+
var NFe_SVRS_H = {
|
|
1417
|
+
"NFEAutorizacao_3.10": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx",
|
|
1418
|
+
"NFERetornoAutorizacao_3.10": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
1419
|
+
"NfeInutilizacao_2.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx",
|
|
1420
|
+
"NfeInutilizacao_3.10": "https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx",
|
|
1421
|
+
"NFEConsultaProtocolo_2.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
1422
|
+
"NFEConsultaProtocolo_3.10": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
1423
|
+
"NFEStatusServico_2.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
1424
|
+
"NFEStatusServico_3.10": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
1425
|
+
"RecepcaoEvento_1.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx",
|
|
1426
|
+
"NfeConsultaCadastro_2.00": "https://cad-homologacao.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx",
|
|
1427
|
+
"NFEInutilizacao_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx",
|
|
1428
|
+
"NFEConsultaProtocolo_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx",
|
|
1429
|
+
"NFEStatusServico_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx",
|
|
1430
|
+
"RecepcaoEvento_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx",
|
|
1431
|
+
"NFEAutorizacao_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx",
|
|
1432
|
+
"NFERetornoAutorizacao_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx",
|
|
1433
|
+
"NfeConsultaCadastro_4.00": "https://cad-homologacao.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx",
|
|
1434
|
+
"NFERetAutorizacao_3.10": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
1435
|
+
"NFERetAutorizacao_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"
|
|
1436
|
+
};
|
|
1437
|
+
var NFe_AN_P = {
|
|
1438
|
+
"RecepcaoEvento_1.00": "https://www.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx",
|
|
1439
|
+
"NFeDistribuicaoDFe_1.01": "https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx",
|
|
1440
|
+
"RecepcaoEvento_4.00": "https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"
|
|
1441
|
+
};
|
|
1442
|
+
var NFe_AN_H = {
|
|
1443
|
+
"RecepcaoEvento_1.00": "https://hom.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx",
|
|
1444
|
+
"NFeDistribuicaoDFe_1.01": "https://hom1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx",
|
|
1445
|
+
"RecepcaoEvento_4.00": "https://hom1.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"
|
|
1446
|
+
};
|
|
1447
|
+
var NFCe_AC_P = {
|
|
1448
|
+
Usar: "NFCe_SVRS_P",
|
|
1449
|
+
"URL-QRCode": "http://www.sefaznet.ac.gov.br/nfce/qrcode",
|
|
1450
|
+
"URL-ConsultaNFCe": "http://www.sefaznet.ac.gov.br/nfce/",
|
|
1451
|
+
"URL-ConsultaNFCe_2.00": "www.sefaznet.ac.gov.br/nfce/consulta"
|
|
1452
|
+
};
|
|
1453
|
+
var NFCe_AC_H = {
|
|
1454
|
+
Usar: "NFCe_SVRS_H",
|
|
1455
|
+
"URL-QRCode": "http://www.hml.sefaznet.ac.gov.br/nfce/qrcode",
|
|
1456
|
+
"URL-ConsultaNFCe": "http://hml.sefaznet.ac.gov.br/nfce/",
|
|
1457
|
+
"URL-ConsultaNFCe_2.00": "www.sefaznet.ac.gov.br/nfce/consulta"
|
|
1458
|
+
};
|
|
1459
|
+
var NFCe_AL_P = {
|
|
1460
|
+
Usar: "NFCe_SVRS_P",
|
|
1461
|
+
"URL-QRCode": "http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp",
|
|
1462
|
+
"URL-ConsultaNFCe": "http://nfce.sefaz.al.gov.br/consultaNFCe.htm",
|
|
1463
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.al.gov.br/nfce/consulta"
|
|
1464
|
+
};
|
|
1465
|
+
var NFCe_AL_H = {
|
|
1466
|
+
Usar: "NFCe_SVRS_H",
|
|
1467
|
+
"URL-QRCode": "http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp",
|
|
1468
|
+
"URL-ConsultaNFCe": "http://nfce.sefaz.al.gov.br/consultaNFCe.htm",
|
|
1469
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.al.gov.br/nfce/consulta"
|
|
1470
|
+
};
|
|
1471
|
+
var NFCe_AP_P = {
|
|
1472
|
+
Usar: "NFCe_SVRS_P",
|
|
1473
|
+
"URL-QRCode": "https://www.sefaz.ap.gov.br/nfce/nfcep.php",
|
|
1474
|
+
"URL-ConsultaNFCe": "https://www.sefaz.ap.gov.br/sate/seg/SEGf_AcessarFuncao.jsp?cdFuncao=FIS_1261",
|
|
1475
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.ap.gov.br/nfce/consulta"
|
|
1476
|
+
};
|
|
1477
|
+
var NFCe_AP_H = {
|
|
1478
|
+
Usar: "NFCe_SVRS_H",
|
|
1479
|
+
"URL-QRCode": "https://www.sefaz.ap.gov.br/nfcehml/nfce.php",
|
|
1480
|
+
"URL-ConsultaNFCe": "https://www.sefaz.ap.gov.br/sate1/seg/SEGf_AcessarFuncao.jsp?cdFuncao=FIS_1261",
|
|
1481
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.ap.gov.br/nfce/consulta"
|
|
1482
|
+
};
|
|
1483
|
+
var NFCe_AM_P = {
|
|
1484
|
+
"NFEAutorizacao_3.10": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao",
|
|
1485
|
+
"NFERetornoAutorizacao_3.10": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao",
|
|
1486
|
+
"NFEConsultaProtocolo_3.10": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta2",
|
|
1487
|
+
"NfeRecepcao_3.10": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRecepcao2",
|
|
1488
|
+
"RecepcaoEvento_1.00": "https://nfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento",
|
|
1489
|
+
"NFEStatusServico_3.10": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico2",
|
|
1490
|
+
"NfeRetRecepcao_3.10": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetRecepcao2",
|
|
1491
|
+
"NfeInutilizacao_3.10": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao2",
|
|
1492
|
+
"AdministrarCSCNFCe_1.00": "https://nfce.sefaz.am.gov.br/nfce-services/services/CscNFCe",
|
|
1493
|
+
"NFEConsultaProtocolo_4.00": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4",
|
|
1494
|
+
"NFEStatusServico_4.00": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4",
|
|
1495
|
+
"NFEInutilizacao_4.00": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4",
|
|
1496
|
+
"NFEAutorizacao_4.00": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4",
|
|
1497
|
+
"NFERetornoAutorizacao_4.00": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4",
|
|
1498
|
+
"RecepcaoEvento_4.00": "https://nfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4",
|
|
1499
|
+
"URL-QRCode": "http://sistemas.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp",
|
|
1500
|
+
"URL-ConsultaNFCe": "http://sistemas.sefaz.am.gov.br/nfceweb/formConsulta.do",
|
|
1501
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.am.gov.br/nfce/consulta",
|
|
1502
|
+
"NFERetAutorizacao_3.10": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao",
|
|
1503
|
+
"NFERetAutorizacao_4.00": "https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"
|
|
1504
|
+
};
|
|
1505
|
+
var NFCe_AM_H = {
|
|
1506
|
+
"NFEAutorizacao_3.10": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeAutorizacao",
|
|
1507
|
+
"NFERetornoAutorizacao_3.10": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetAutorizacao",
|
|
1508
|
+
"NFEConsultaProtocolo_3.10": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeConsulta2",
|
|
1509
|
+
"NfeRecepcao_3.10": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRecepcao2",
|
|
1510
|
+
"RecepcaoEvento_1.00": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/RecepcaoEvento",
|
|
1511
|
+
"NFEStatusServico_3.10": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeStatusServico2",
|
|
1512
|
+
"NfeRetRecepcao_3.10": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetRecepcao2",
|
|
1513
|
+
"NfeInutilizacao_3.10": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeInutilizacao2",
|
|
1514
|
+
"AdministrarCSCNFCe_1.00": "https://homnfce.sefaz.am.gov.br/nfce-services/services/CscNFCe",
|
|
1515
|
+
"NFEConsultaProtocolo_4.00": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeConsulta4",
|
|
1516
|
+
"NFEStatusServico_4.00": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeStatusServico4",
|
|
1517
|
+
"NFEInutilizacao_4.00": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeInutilizacao4",
|
|
1518
|
+
"NFEAutorizacao_4.00": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeAutorizacao4",
|
|
1519
|
+
"NFERetornoAutorizacao_4.00": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetAutorizacao4",
|
|
1520
|
+
"RecepcaoEvento_4.00": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/RecepcaoEvento4",
|
|
1521
|
+
"URL-QRCode": "http://homnfce.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp",
|
|
1522
|
+
"URL-ConsultaNFCe": "http://homnfce.sefaz.am.gov.br/nfceweb/formConsulta.do",
|
|
1523
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.am.gov.br/nfce/consulta",
|
|
1524
|
+
"NFERetAutorizacao_3.10": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetAutorizacao",
|
|
1525
|
+
"NFERetAutorizacao_4.00": "https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetAutorizacao4"
|
|
1526
|
+
};
|
|
1527
|
+
var NFCe_BA_P = {
|
|
1528
|
+
Usar: "NFCe_SVRS_P",
|
|
1529
|
+
"URL-QRCode": "http://nfe.sefaz.ba.gov.br/servicos/nfce/modulos/geral/NFCEC_consulta_chave_acesso.aspx",
|
|
1530
|
+
"URL-ConsultaNFCe": "http://nfe.sefaz.ba.gov.br/servicos/nfce/default.aspx",
|
|
1531
|
+
"URL-ConsultaNFCe_2.00": "http://www.sefaz.ba.gov.br/nfce/consulta",
|
|
1532
|
+
"URL-QRCode_1.00": "http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx",
|
|
1533
|
+
"URL-ConsultaNFCe_1.00": "www.sefaz.ba.gov.br/nfce/consulta"
|
|
1534
|
+
};
|
|
1535
|
+
var NFCe_BA_H = {
|
|
1536
|
+
Usar: "NFCe_SVRS_H",
|
|
1537
|
+
"URL-QRCode": "http://hnfe.sefaz.ba.gov.br/servicos/nfce/modulos/geral/NFCEC_consulta_chave_acesso.aspx",
|
|
1538
|
+
"URL-ConsultaNFCe": "http://nfe.sefaz.ba.gov.br/servicos/nfce/default.aspx",
|
|
1539
|
+
"URL-ConsultaNFCe_2.00": "http://hinternet.sefaz.ba.gov.br/nfce/consulta",
|
|
1540
|
+
"URL-QRCode_1.00": "http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx",
|
|
1541
|
+
"URL-ConsultaNFCe_1.00": "http://hinternet.sefaz.ba.gov.br/nfce/consulta"
|
|
1542
|
+
};
|
|
1543
|
+
var NFCe_CE_P = {
|
|
1544
|
+
Usar: "NFCe_SVRS_P",
|
|
1545
|
+
"URL-QRCode": "http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html",
|
|
1546
|
+
"URL-ConsultaNFCe": "http://nfce.sefaz.ce.gov.br/pages/consultaChaveAcesso.jsf",
|
|
1547
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.ce.gov.br/nfce/consulta"
|
|
1548
|
+
};
|
|
1549
|
+
var NFCe_CE_H = {
|
|
1550
|
+
Usar: "NFCe_SVRS_H",
|
|
1551
|
+
"URL-QRCode_2.00": "https://hom.sat.sef.sc.gov.br/nfce/consulta",
|
|
1552
|
+
"URL-QRCode": "http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html",
|
|
1553
|
+
"URL-ConsultaNFCe": "http://nfceh.sefaz.ce.gov.br/pages/consultaChaveAcesso.jsf",
|
|
1554
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.ce.gov.br/nfce/consulta",
|
|
1555
|
+
"NFERetAutorizacao_3.10": "https://nfceh.sefaz.ce.gov.br/nfce/services/NfeRetAutorizacao?wsdl",
|
|
1556
|
+
"NFERetAutorizacao_4.00": "https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeRetAutorizacao4?WSDL"
|
|
1557
|
+
};
|
|
1558
|
+
var NFCe_DF_P = {
|
|
1559
|
+
Usar: "NFCe_SVRS_P",
|
|
1560
|
+
"URL-QRCode": "http://www.fazenda.df.gov.br/nfce/qrcode",
|
|
1561
|
+
"URL-ConsultaNFCe": "http://dec.fazenda.df.gov.br/nfce",
|
|
1562
|
+
"URL-ConsultaNFCe_2.00": "www.fazenda.df.gov.br/nfce/consulta"
|
|
1563
|
+
};
|
|
1564
|
+
var NFCe_DF_H = {
|
|
1565
|
+
Usar: "NFCe_SVRS_H",
|
|
1566
|
+
"URL-QRCode": "http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx",
|
|
1567
|
+
"URL-ConsultaNFCe": "http://dec.fazenda.df.gov.br/nfce",
|
|
1568
|
+
"URL-ConsultaNFCe_2.00": "www.fazenda.df.gov.br/nfce/consulta"
|
|
1569
|
+
};
|
|
1570
|
+
var NFCe_ES_P = {
|
|
1571
|
+
Usar: "NFCe_SVRS_P",
|
|
1572
|
+
"URL-QRCode": "http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx",
|
|
1573
|
+
"URL-ConsultaNFCe": "http://app.sefaz.es.gov.br/ConsultaNFCe",
|
|
1574
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.es.gov.br/nfce/consulta"
|
|
1575
|
+
};
|
|
1576
|
+
var NFCe_ES_H = {
|
|
1577
|
+
Usar: "NFCe_SVRS_H",
|
|
1578
|
+
"URL-QRCode": "http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx",
|
|
1579
|
+
"URL-ConsultaNFCe": "http://app.sefaz.es.gov.br/ConsultaNFCe",
|
|
1580
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.es.gov.br/nfce/consulta"
|
|
1581
|
+
};
|
|
1582
|
+
var NFCe_GO_P = {
|
|
1583
|
+
"RecepcaoEvento_1.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento?wsdl",
|
|
1584
|
+
"NfeRecepcao_2.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRecepcao2?wsdl",
|
|
1585
|
+
"NfeRetRecepcao_2.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetRecepcao2?wsdl",
|
|
1586
|
+
"NfeInutilizacao_2.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl",
|
|
1587
|
+
"NfeInutilizacao_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl",
|
|
1588
|
+
"NFEConsultaProtocolo_2.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl",
|
|
1589
|
+
"NFEConsultaProtocolo_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl",
|
|
1590
|
+
"NFEStatusServico_2.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl",
|
|
1591
|
+
"NFEStatusServico_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl",
|
|
1592
|
+
"NfeConsultaCadastro_2.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl",
|
|
1593
|
+
"NfeConsultaCadastro_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl",
|
|
1594
|
+
"NFEAutorizacao_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao?wsdl",
|
|
1595
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl",
|
|
1596
|
+
"AdministrarCSCNFCe_1.00": "https://nfe.sefaz.go.gov.br/nfe/services/v2/CscNFCe?wsdl",
|
|
1597
|
+
"RecepcaoEvento_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4?wsdl",
|
|
1598
|
+
"NFEInutilizacao_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4?wsdl",
|
|
1599
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4?wsdl",
|
|
1600
|
+
"NFEStatusServico_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4?wsdl",
|
|
1601
|
+
"NfeConsultaCadastro_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl",
|
|
1602
|
+
"NFEAutorizacao_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl",
|
|
1603
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl",
|
|
1604
|
+
"URL-QRCode": "https://nfeweb.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe",
|
|
1605
|
+
"URL-ConsultaNFCe": "http://nfe.sefaz.go.gov.br/nfeweb/jsp/ConsultaDANFENFCe.jsf",
|
|
1606
|
+
"URL-ConsultaNFCe_1.00": "http://www.nfce.go.gov.br/post/ver/214344/consulta-nfce",
|
|
1607
|
+
"URL-ConsultaNFCe_2.00": "http://www.sefaz.go.gov.br/nfce/consulta",
|
|
1608
|
+
"NFERetAutorizacao_3.10": "https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl",
|
|
1609
|
+
"NFERetAutorizacao_4.00": "https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl"
|
|
1610
|
+
};
|
|
1611
|
+
var NFCe_GO_H = {
|
|
1612
|
+
"RecepcaoEvento_1.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento?wsdl",
|
|
1613
|
+
"NfeRecepcao_2.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRecepcao2?wsdl",
|
|
1614
|
+
"NfeRetRecepcao_2.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetRecepcao2?wsdl",
|
|
1615
|
+
"NfeInutilizacao_2.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl",
|
|
1616
|
+
"NfeInutilizacao_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl",
|
|
1617
|
+
"NFEConsultaProtocolo_2.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl",
|
|
1618
|
+
"NFEConsultaProtocolo_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl",
|
|
1619
|
+
"NFEStatusServico_2.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl",
|
|
1620
|
+
"NFEStatusServico_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl",
|
|
1621
|
+
"NfeConsultaCadastro_2.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl",
|
|
1622
|
+
"NfeConsultaCadastro_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl",
|
|
1623
|
+
"NFEAutorizacao_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao?wsdl",
|
|
1624
|
+
"NFERetornoAutorizacao_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl",
|
|
1625
|
+
"AdministrarCSCNFCe_1.00": "https://homolog.sefaz.go.gov.br/nfe/services/v2/CscNFCe?wsdl",
|
|
1626
|
+
"RecepcaoEvento_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4?wsdl",
|
|
1627
|
+
"NFEInutilizacao_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4?wsdl",
|
|
1628
|
+
"NFEConsultaProtocolo_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4?wsdl",
|
|
1629
|
+
"NFEStatusServico_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4?wsdl",
|
|
1630
|
+
"NfeConsultaCadastro_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl",
|
|
1631
|
+
"NFEAutorizacao_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl",
|
|
1632
|
+
"NFERetornoAutorizacao_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl",
|
|
1633
|
+
"URL-QRCode": "https://nfewebhomolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe",
|
|
1634
|
+
"URL-ConsultaNFCe": "http://homolog.sefaz.go.gov.br/nfeweb/jsp/ConsultaDANFENFCe.jsf",
|
|
1635
|
+
"URL-ConsultaNFCe_1.00": "http://www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",
|
|
1636
|
+
"URL-ConsultaNFCe_2.00": "http://www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",
|
|
1637
|
+
"NFERetAutorizacao_3.10": "https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl",
|
|
1638
|
+
"NFERetAutorizacao_4.00": "https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl"
|
|
1639
|
+
};
|
|
1640
|
+
var NFCe_MA_P = {
|
|
1641
|
+
Usar: "NFCe_SVRS_P",
|
|
1642
|
+
"URL-QRCode": "http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp",
|
|
1643
|
+
"URL-ConsultaNFCe": "http://www.nfce.sefaz.ma.gov.br/portal/consultaNFe.do",
|
|
1644
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.ma.gov.br/nfce/consulta"
|
|
1645
|
+
};
|
|
1646
|
+
var NFCe_MA_H = {
|
|
1647
|
+
Usar: "NFCe_SVRS_H",
|
|
1648
|
+
"URL-QRCode": "http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp",
|
|
1649
|
+
"URL-ConsultaNFCe": "http://www.hom.nfce.sefaz.ma.gov.br/portal/consultaNFe.do",
|
|
1650
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.ma.gov.br/nfce/consulta"
|
|
1651
|
+
};
|
|
1652
|
+
var NFCe_MG_P = {
|
|
1653
|
+
"NFEAutorizacao_4.00": "https://nfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4",
|
|
1654
|
+
"NFERetornoAutorizacao_4.00": "https://nfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4",
|
|
1655
|
+
"RecepcaoEvento_4.00": "https://nfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4",
|
|
1656
|
+
"NFEInutilizacao_4.00": "https://nfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4",
|
|
1657
|
+
"NFEConsultaProtocolo_4.00": "https://nfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4",
|
|
1658
|
+
"NFEStatusServico_4.00": "https://nfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4",
|
|
1659
|
+
"NfeConsultaCadastro_4.00": "",
|
|
1660
|
+
"URL-QRCode_2.00": "https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml",
|
|
1661
|
+
"URL-ConsultaNFCe_2.00": "https://portalsped.fazenda.mg.gov.br/portalnfce",
|
|
1662
|
+
"NFERetAutorizacao_4.00": "https://nfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"
|
|
1663
|
+
};
|
|
1664
|
+
var NFCe_MG_H = {
|
|
1665
|
+
"NFEAutorizacao_4.00": "https://hnfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4",
|
|
1666
|
+
"NFERetornoAutorizacao_4.00": "https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4",
|
|
1667
|
+
"RecepcaoEvento_4.00": "https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4",
|
|
1668
|
+
"NFEInutilizacao_4.00": "https://hnfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4",
|
|
1669
|
+
"NFEConsultaProtocolo_4.00": "https://hnfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4",
|
|
1670
|
+
"NFEStatusServico_4.00": "https://hnfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4",
|
|
1671
|
+
"NfeConsultaCadastro_4.00": "",
|
|
1672
|
+
"URL-QRCode_2.00": "https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml",
|
|
1673
|
+
"URL-ConsultaNFCe_2.00": "https://hportalsped.fazenda.mg.gov.br/portalnfce",
|
|
1674
|
+
"NFERetAutorizacao_4.00": "https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"
|
|
1675
|
+
};
|
|
1676
|
+
var NFCe_MS_P = {
|
|
1677
|
+
"NFEAutorizacao_3.10": "https://nfce.fazenda.ms.gov.br/producao/services2/NfeAutorizacao",
|
|
1678
|
+
"NFERetornoAutorizacao_3.10": "https://nfce.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao",
|
|
1679
|
+
"RecepcaoEvento_1.00": "https://nfce.fazenda.ms.gov.br/producao/services2/RecepcaoEvento",
|
|
1680
|
+
"NfeInutilizacao_3.10": "https://nfce.fazenda.ms.gov.br/producao/services2/NfeInutilizacao2",
|
|
1681
|
+
"NFEConsultaProtocolo_3.10": "https://nfce.fazenda.ms.gov.br/producao/services2/NfeConsulta2",
|
|
1682
|
+
"NFEStatusServico_3.10": "https://nfce.fazenda.ms.gov.br/producao/services2/NfeStatusServico2",
|
|
1683
|
+
"NfeConsultaCadastro_3.10": "https://nfe.fazenda.ms.gov.br/producao/services2/CadConsultaCadastro2",
|
|
1684
|
+
"NFEAutorizacao_4.00": "https://nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4",
|
|
1685
|
+
"NFERetornoAutorizacao_4.00": "https://nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4",
|
|
1686
|
+
"RecepcaoEvento_4.00": "https://nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4",
|
|
1687
|
+
"NFEInutilizacao_4.00": "https://nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4",
|
|
1688
|
+
"NFEConsultaProtocolo_4.00": "https://nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4",
|
|
1689
|
+
"NFEStatusServico_4.00": "https://nfce.sefaz.ms.gov.br/ws/NFeStatusServico4",
|
|
1690
|
+
"NfeConsultaCadastro_4.00": "https://nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4",
|
|
1691
|
+
"URL-QRCode": "http://www.dfe.ms.gov.br/nfce/qrcode",
|
|
1692
|
+
"URL-ConsultaNFCe": "http://www.dfe.ms.gov.br/nfce",
|
|
1693
|
+
"URL-ConsultaNFCe_2.00": "http://www.dfe.ms.gov.br/nfce/consulta",
|
|
1694
|
+
"NFERetAutorizacao_3.10": "https://nfce.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao",
|
|
1695
|
+
"NFERetAutorizacao_4.00": "https://nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"
|
|
1696
|
+
};
|
|
1697
|
+
var NFCe_MS_H = {
|
|
1698
|
+
"NFEAutorizacao_3.10": "https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeAutorizacao",
|
|
1699
|
+
"NFERetornoAutorizacao_3.10": "https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeRetAutorizacao",
|
|
1700
|
+
"RecepcaoEvento_1.00": "https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/RecepcaoEvento",
|
|
1701
|
+
"NfeInutilizacao_3.10": "https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeInutilizacao2",
|
|
1702
|
+
"NFEConsultaProtocolo_3.10": "https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeConsulta2",
|
|
1703
|
+
"NFEStatusServico_3.10": "https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeStatusServico2",
|
|
1704
|
+
"NfeConsultaCadastro_3.10": "https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/CadConsultaCadastro2",
|
|
1705
|
+
"NFEAutorizacao_4.00": "https://hom.nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4",
|
|
1706
|
+
"NFERetornoAutorizacao_4.00": "https://hom.nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4",
|
|
1707
|
+
"NFEConsultaProtocolo_4.00": "https://hom.nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4",
|
|
1708
|
+
"NFEInutilizacao_4.00": "https://hom.nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4",
|
|
1709
|
+
"NFEStatusServico_4.00": "https://hom.nfce.sefaz.ms.gov.br/ws/NFeStatusServico4",
|
|
1710
|
+
"RecepcaoEvento_4.00": "https://hom.nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4",
|
|
1711
|
+
"NfeConsultaCadastro_4.00": "https://hom.nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4",
|
|
1712
|
+
"URL-QRCode": "http://www.dfe.ms.gov.br/nfce/qrcode",
|
|
1713
|
+
"URL-ConsultaNFCe": "http://www.dfe.ms.gov.br/nfce",
|
|
1714
|
+
"URL-ConsultaNFCe_2.00": "http://www.dfe.ms.gov.br/nfce/consulta",
|
|
1715
|
+
"NFERetAutorizacao_3.10": "https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeRetAutorizacao",
|
|
1716
|
+
"NFERetAutorizacao_4.00": "https://hom.nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"
|
|
1717
|
+
};
|
|
1718
|
+
var NFCe_MT_P = {
|
|
1719
|
+
"NFEAutorizacao_3.10": "https://nfce.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao?wsdl",
|
|
1720
|
+
"NFERetornoAutorizacao_3.10": "https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao?wsdl",
|
|
1721
|
+
"NfeInutilizacao_3.10": "https://nfce.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao2?wsdl",
|
|
1722
|
+
"RecepcaoEvento_1.00": "https://nfce.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento?wsdl",
|
|
1723
|
+
"NFEStatusServico_3.10": "https://nfce.sefaz.mt.gov.br/nfcews/services/NfeStatusServico2?wsdl",
|
|
1724
|
+
"NFEConsultaProtocolo_3.10": "https://nfce.sefaz.mt.gov.br/nfcews/services/NfeConsulta2?wsdl",
|
|
1725
|
+
"NFEAutorizacao_4.00": "https://nfce.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4",
|
|
1726
|
+
"NFERetornoAutorizacao_4.00": "https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4",
|
|
1727
|
+
"NFEInutilizacao_4.00": "https://nfce.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4",
|
|
1728
|
+
"NFEConsultaProtocolo_4.00": "https://nfce.sefaz.mt.gov.br/nfcews/services/NfeConsulta4",
|
|
1729
|
+
"NFEStatusServico_4.00": "https://nfce.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4",
|
|
1730
|
+
"RecepcaoEvento_4.00": "https://nfce.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4",
|
|
1731
|
+
"URL-QRCode": "http://www.sefaz.mt.gov.br/nfce/consultanfce",
|
|
1732
|
+
"URL-ConsultaNFCe": "http://www.sefaz.mt.gov.br/nfce/consultanfce",
|
|
1733
|
+
"URL-ConsultaNFCe_2.00": "http://www.sefaz.mt.gov.br/nfce/consultanfce",
|
|
1734
|
+
"NFERetAutorizacao_3.10": "https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao?wsdl",
|
|
1735
|
+
"NFERetAutorizacao_4.00": "https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"
|
|
1736
|
+
};
|
|
1737
|
+
var NFCe_MT_H = {
|
|
1738
|
+
"NFEAutorizacao_3.10": "https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao?wsdl",
|
|
1739
|
+
"NFERetornoAutorizacao_3.10": "https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao?wsdl",
|
|
1740
|
+
"NfeInutilizacao_3.10": "https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao2?wsdl",
|
|
1741
|
+
"RecepcaoEvento_1.00": "https://homologacao.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento?wsdl",
|
|
1742
|
+
"NFEStatusServico_3.10": "https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeStatusServico2?wsdl",
|
|
1743
|
+
"NFEConsultaProtocolo_3.10": "https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeConsulta2?wsdl",
|
|
1744
|
+
"NFEAutorizacao_4.00": "https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4",
|
|
1745
|
+
"NFERetornoAutorizacao_4.00": "https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4",
|
|
1746
|
+
"NFEInutilizacao_4.00": "https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4",
|
|
1747
|
+
"NFEConsultaProtocolo_4.00": "https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeConsulta4",
|
|
1748
|
+
"NFEStatusServico_4.00": "https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4",
|
|
1749
|
+
"RecepcaoEvento_4.00": "https://homologacao.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4",
|
|
1750
|
+
"URL-QRCode": "http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",
|
|
1751
|
+
"URL-ConsultaNFCe": "http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",
|
|
1752
|
+
"URL-ConsultaNFCe_2.00": "http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",
|
|
1753
|
+
"NFERetAutorizacao_3.10": "https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao?wsdl",
|
|
1754
|
+
"NFERetAutorizacao_4.00": "https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"
|
|
1755
|
+
};
|
|
1756
|
+
var NFCe_PA_P = {
|
|
1757
|
+
Usar: "NFCe_SVRS_P",
|
|
1758
|
+
"URL-QRCode": "https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam",
|
|
1759
|
+
"URL-ConsultaNFCe": "https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/consultanfce.seam",
|
|
1760
|
+
"URL-ConsultaNFCe_2.00": "www.sefa.pa.gov.br/nfce/consulta"
|
|
1761
|
+
};
|
|
1762
|
+
var NFCe_PA_H = {
|
|
1763
|
+
Usar: "NFCe_SVRS_H",
|
|
1764
|
+
"URL-QRCode": "https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam",
|
|
1765
|
+
"URL-ConsultaNFCe": "https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/consultanfce.seam",
|
|
1766
|
+
"URL-ConsultaNFCe_2.00": "www.sefa.pa.gov.br/nfce/consulta"
|
|
1767
|
+
};
|
|
1768
|
+
var NFCe_PB_P = {
|
|
1769
|
+
Usar: "NFCe_SVRS_P",
|
|
1770
|
+
"URL-QRCode": "http://www.sefaz.pb.gov.br/nfce",
|
|
1771
|
+
"URL-ConsultaNFCe": "http://www.receita.pb.gov.br/nfce",
|
|
1772
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.pb.gov.br/nfce/consulta"
|
|
1773
|
+
};
|
|
1774
|
+
var NFCe_PB_H = {
|
|
1775
|
+
Usar: "NFCe_SVRS_H",
|
|
1776
|
+
"URL-QRCode": "http://www.sefaz.pb.gov.br/nfcehom",
|
|
1777
|
+
"URL-ConsultaNFCe": "http://www.receita.pb.gov.br/nfcehom",
|
|
1778
|
+
"URL-ConsultaNFCe_2.00": "www.receita.pb.gov.br/nfcehom"
|
|
1779
|
+
};
|
|
1780
|
+
var NFCe_PE_P = {
|
|
1781
|
+
Usar: "NFCe_SVRS_P",
|
|
1782
|
+
"URL-QRCode": "http://nfce.sefaz.pe.gov.br/nfce-web/consultarNFCe",
|
|
1783
|
+
"URL-ConsultaNFCe": "http://nfce.sefaz.pe.gov.br/nfce-web/consultarNFCe",
|
|
1784
|
+
"URL-ConsultaNFCe_2.00": "nfce.sefaz.pe.gov.br/nfce/consulta"
|
|
1785
|
+
};
|
|
1786
|
+
var NFCe_PE_H = {
|
|
1787
|
+
Usar: "NFCe_SVRS_H",
|
|
1788
|
+
"URL-QRCode": "http://nfcehomolog.sefaz.pe.gov.br/nfce-web/consultarNFCe",
|
|
1789
|
+
"URL-ConsultaNFCe": "http://nfcehomolog.sefaz.pe.gov.br/nfce-web/consultarNFCe",
|
|
1790
|
+
"URL-ConsultaNFCe_2.00": "nfce.sefaz.pe.gov.br/nfce/consulta"
|
|
1791
|
+
};
|
|
1792
|
+
var NFCe_PI_P = {
|
|
1793
|
+
Usar: "NFCe_SVRS_P",
|
|
1794
|
+
"URL-QRCode": "http://webas.sefaz.pi.gov.br/nfceweb/consultarNFCe.jsf",
|
|
1795
|
+
"URL-ConsultaNFCe": "http://webas.sefaz.pi.gov.br/nfceweb/consultarNFCe.jsf",
|
|
1796
|
+
"URL-QRCode_2.00": "http://www.sefaz.pi.gov.br/nfce/qrcode",
|
|
1797
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.pi.gov.br/nfce/consulta"
|
|
1798
|
+
};
|
|
1799
|
+
var NFCe_PI_H = {
|
|
1800
|
+
Usar: "NFCe_SVRS_H",
|
|
1801
|
+
"URL-QRCode": "http://webas.sefaz.pi.gov.br/nfceweb-homologacao/consultarNFCe.jsf",
|
|
1802
|
+
"URL-ConsultaNFCe": "http://webas.sefaz.pi.gov.br/nfceweb-homologacao/consultarNFCe.jsf",
|
|
1803
|
+
"URL-QRCode_2.00": "http://www.sefaz.pi.gov.br/nfce/qrcode",
|
|
1804
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.pi.gov.br/nfce/consulta"
|
|
1805
|
+
};
|
|
1806
|
+
var NFCe_PR_P = {
|
|
1807
|
+
"NFEAutorizacao_3.10": "https://nfce.fazenda.pr.gov.br/nfce/NFeAutorizacao3",
|
|
1808
|
+
"NFERetornoAutorizacao_3.10": "https://nfce.fazenda.pr.gov.br/nfce/NFeRetAutorizacao3",
|
|
1809
|
+
"NFEConsultaProtocolo_3.10": "https://nfce.fazenda.pr.gov.br/nfce/NFeConsulta3",
|
|
1810
|
+
"NfeInutilizacao_3.10": "https://nfce.fazenda.pr.gov.br/nfce/NFeInutilizacao3",
|
|
1811
|
+
"NFEStatusServico_3.10": "https://nfce.fazenda.pr.gov.br/nfce/NFeStatusServico3",
|
|
1812
|
+
"RecepcaoEvento_1.00": "https://nfce.fazenda.pr.gov.br/nfce/NFeRecepcaoEvento",
|
|
1813
|
+
"NFEAutorizacao_4.00": "https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4",
|
|
1814
|
+
"NFERetornoAutorizacao_4.00": "https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4",
|
|
1815
|
+
"NFEConsultaProtocolo_4.00": "https://nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4",
|
|
1816
|
+
"NFEInutilizacao_4.00": "https://nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4",
|
|
1817
|
+
"NFEStatusServico_4.00": "https://nfce.sefa.pr.gov.br/nfce/NFeStatusServico4",
|
|
1818
|
+
"RecepcaoEvento_4.00": "https://nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4",
|
|
1819
|
+
"NfeConsultaCadastro_4.00": "https://nfce.sefa.pr.gov.br/nfce/CadConsultaCadastro4",
|
|
1820
|
+
"URL-QRCode": "http://www.dfeportal.fazenda.pr.gov.br/dfe-portal/rest/servico/consultaNFCe",
|
|
1821
|
+
"URL-ConsultaNFCe": "http://www.fazenda.pr.gov.br/",
|
|
1822
|
+
"URL-QRCode_2.00": "http://www.fazenda.pr.gov.br/nfce/qrcode",
|
|
1823
|
+
"URL-ConsultaNFCe_2.00": "http://www.fazenda.pr.gov.br/nfce/consulta",
|
|
1824
|
+
"URL-QRCode_1.00": "http://www.fazenda.pr.gov.br/nfce/qrcode/",
|
|
1825
|
+
"URL-ConsultaNFCe_1.00": "http://www.fazenda.pr.gov.br",
|
|
1826
|
+
"NFERetAutorizacao_3.10": "https://nfce.fazenda.pr.gov.br/nfce/NFeRetAutorizacao3",
|
|
1827
|
+
"NFERetAutorizacao_4.00": "https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"
|
|
1828
|
+
};
|
|
1829
|
+
var NFCe_PR_H = {
|
|
1830
|
+
"NFEAutorizacao_3.10": "https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeAutorizacao3",
|
|
1831
|
+
"NFERetornoAutorizacao_3.10": "https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeRetAutorizacao3",
|
|
1832
|
+
"NFEConsultaProtocolo_3.10": "https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeConsulta3",
|
|
1833
|
+
"NfeInutilizacao_3.10": "https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeInutilizacao3",
|
|
1834
|
+
"NFEStatusServico_3.10": "https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeStatusServico3",
|
|
1835
|
+
"RecepcaoEvento_1.00": "https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeRecepcaoEvento",
|
|
1836
|
+
"NFEAutorizacao_4.00": "https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4",
|
|
1837
|
+
"NFERetornoAutorizacao_4.00": "https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4",
|
|
1838
|
+
"NFEConsultaProtocolo_4.00": "https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4",
|
|
1839
|
+
"NFEInutilizacao_4.00": "https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4",
|
|
1840
|
+
"NFEStatusServico_4.00": "https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeStatusServico4",
|
|
1841
|
+
"RecepcaoEvento_4.00": "https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4",
|
|
1842
|
+
"NfeConsultaCadastro_4.00": "https://homologacao.nfce.sefa.pr.gov.br/nfce/CadConsultaCadastro4",
|
|
1843
|
+
"URL-QRCode": "http://www.dfeportal.fazenda.pr.gov.br/dfe-portal/rest/servico/consultaNFCe",
|
|
1844
|
+
"URL-ConsultaNFCe": "http://www.fazenda.pr.gov.br/",
|
|
1845
|
+
"URL-QRCode_2.00": "http://www.fazenda.pr.gov.br/nfce/qrcode",
|
|
1846
|
+
"URL-ConsultaNFCe_2.00": "http://www.fazenda.pr.gov.br/nfce/consulta",
|
|
1847
|
+
"URL-QRCode_1.00": "http://www.fazenda.pr.gov.br/nfce/qrcode/",
|
|
1848
|
+
"URL-ConsultaNFCe_1.00": "http://www.fazenda.pr.gov.br",
|
|
1849
|
+
"NFERetAutorizacao_3.10": "https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeRetAutorizacao3",
|
|
1850
|
+
"NFERetAutorizacao_4.00": "https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"
|
|
1851
|
+
};
|
|
1852
|
+
var NFCe_RJ_P = {
|
|
1853
|
+
Usar: "NFCe_SVRS_P",
|
|
1854
|
+
"URL-QRCode": "https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode",
|
|
1855
|
+
"URL-ConsultaNFCe": "http://nfce.fazenda.rj.gov.br/consulta",
|
|
1856
|
+
"URL-ConsultaNFCe_2.00": "www.fazenda.rj.gov.br/nfce/consulta"
|
|
1857
|
+
};
|
|
1858
|
+
var NFCe_RJ_H = {
|
|
1859
|
+
Usar: "NFCe_SVRS_H",
|
|
1860
|
+
"URL-QRCode": "https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode",
|
|
1861
|
+
"URL-ConsultaNFCe": "http://nfce.fazenda.rj.gov.br/consulta",
|
|
1862
|
+
"URL-ConsultaNFCe_2.00": "www.fazenda.rj.gov.br/nfce/consulta"
|
|
1863
|
+
};
|
|
1864
|
+
var NFCe_RN_P = {
|
|
1865
|
+
Usar: "NFCe_SVRS_P",
|
|
1866
|
+
"URL-QRCode": "http://nfce.set.rn.gov.br/consultarNFCe.aspx",
|
|
1867
|
+
"URL-ConsultaNFCe": "http://nfce.set.rn.gov.br/portalDFE/NFCe/ConsultaNFCe.aspx",
|
|
1868
|
+
"URL-ConsultaNFCe_2.00": "www.set.rn.gov.br/nfce/consulta"
|
|
1869
|
+
};
|
|
1870
|
+
var NFCe_RN_H = {
|
|
1871
|
+
Usar: "NFCe_SVRS_H",
|
|
1872
|
+
"URL-QRCode": "http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx",
|
|
1873
|
+
"URL-ConsultaNFCe": "http://hom.nfce.set.rn.gov.br/portalDFE/NFCe/ConsultaNFCe.aspx",
|
|
1874
|
+
"URL-ConsultaNFCe_2.00": "www.set.rn.gov.br/nfce/consulta"
|
|
1875
|
+
};
|
|
1876
|
+
var NFCe_RO_P = {
|
|
1877
|
+
Usar: "NFCe_SVRS_P",
|
|
1878
|
+
"URL-QRCode": "http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp",
|
|
1879
|
+
"URL-ConsultaNFCe": "http://www.nfce.sefin.ro.gov.br",
|
|
1880
|
+
"URL-ConsultaNFCe_2.00": "www.sefin.ro.gov.br/nfce/consulta"
|
|
1881
|
+
};
|
|
1882
|
+
var NFCe_RO_H = {
|
|
1883
|
+
Usar: "NFCe_SVRS_H",
|
|
1884
|
+
"URL-QRCode": "http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp",
|
|
1885
|
+
"URL-ConsultaNFCe": "http://www.nfce.sefin.ro.gov.br/consultaAmbHomologacao.jsp",
|
|
1886
|
+
"URL-ConsultaNFCe_2.00": "www.sefin.ro.gov.br/nfce/consulta"
|
|
1887
|
+
};
|
|
1888
|
+
var NFCe_RS_P = {
|
|
1889
|
+
"NFEAutorizacao_3.10": "https://nfce.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx",
|
|
1890
|
+
"NFERetornoAutorizacao_3.10": "https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
1891
|
+
"NFEConsultaProtocolo_3.10": "https://nfce.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
1892
|
+
"NfeInutilizacao_3.10": "https://nfce.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx",
|
|
1893
|
+
"NFEStatusServico_3.10": "https://nfce.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
1894
|
+
"RecepcaoEvento_1.00": "https://nfce.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx",
|
|
1895
|
+
"NFEInutilizacao_4.00": "https://nfce.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx",
|
|
1896
|
+
"NFEConsultaProtocolo_4.00": "https://nfce.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx",
|
|
1897
|
+
"NFEStatusServico_4.00": "https://nfce.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx",
|
|
1898
|
+
"RecepcaoEvento_4.00": "https://nfce.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx",
|
|
1899
|
+
"NFEAutorizacao_4.00": "https://nfce.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx",
|
|
1900
|
+
"NFERetornoAutorizacao_4.00": "https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx",
|
|
1901
|
+
"URL-QRCode": "https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx",
|
|
1902
|
+
"URL-ConsultaNFCe": "https://www.sefaz.rs.gov.br/NFE/NFE-NFC.aspx",
|
|
1903
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.rs.gov.br/nfce/consulta",
|
|
1904
|
+
"NFERetAutorizacao_3.10": "https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
1905
|
+
"NFERetAutorizacao_4.00": "https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"
|
|
1906
|
+
};
|
|
1907
|
+
var NFCe_RS_H = {
|
|
1908
|
+
"NFEAutorizacao_3.10": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx",
|
|
1909
|
+
"NFERetornoAutorizacao_3.10": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
1910
|
+
"NFEConsultaProtocolo_3.10": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
1911
|
+
"NfeInutilizacao_3.10": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx",
|
|
1912
|
+
"NFEStatusServico_3.10": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
1913
|
+
"RecepcaoEvento_1.00": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx",
|
|
1914
|
+
"RecepcaoEvento_4.00": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx",
|
|
1915
|
+
"NFEInutilizacao_4.00": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx",
|
|
1916
|
+
"NFEConsultaProtocolo_4.00": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx",
|
|
1917
|
+
"NFEStatusServico_4.00": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx",
|
|
1918
|
+
"NFEAutorizacao_4.00": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx",
|
|
1919
|
+
"NFERetornoAutorizacao_4.00": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx",
|
|
1920
|
+
"URL-QRCode": "https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx",
|
|
1921
|
+
"URL-ConsultaNFCe": "https://www.sefaz.rs.gov.br/NFE/NFE-NFC.aspx",
|
|
1922
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.rs.gov.br/nfce/consulta",
|
|
1923
|
+
"NFERetAutorizacao_3.10": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
1924
|
+
"NFERetAutorizacao_4.00": "https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"
|
|
1925
|
+
};
|
|
1926
|
+
var NFCe_RR_P = {
|
|
1927
|
+
Usar: "NFCe_SVRS_P",
|
|
1928
|
+
"URL-QRCode": "https://www.sefaz.rr.gov.br/nfce/servlet/qrcode",
|
|
1929
|
+
"URL-ConsultaNFCe": "https://www.sefaz.rr.gov.br/nfce/servlet/wp_consulta_nfce",
|
|
1930
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.rr.gov.br/nfce/consulta"
|
|
1931
|
+
};
|
|
1932
|
+
var NFCe_RR_H = {
|
|
1933
|
+
Usar: "NFCe_SVRS_H",
|
|
1934
|
+
"URL-QRCode": "http://200.174.88.103:8080/nfce/servlet/qrcode",
|
|
1935
|
+
"URL-ConsultaNFCe": "http://200.174.88.103:8080/nfce/servlet/wp_consulta_nfce",
|
|
1936
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.rr.gov.br/nfce/consulta"
|
|
1937
|
+
};
|
|
1938
|
+
var NFCe_SC_P = {
|
|
1939
|
+
Usar: "NFCe_SVRS_P",
|
|
1940
|
+
"URL-QRCode": "https://sat.sef.sc.gov.br/nfce/consulta",
|
|
1941
|
+
"URL-ConsultaNFCe": "https://sat.sef.sc.gov.br/nfce/consulta",
|
|
1942
|
+
"URL-ConsultaNFCe_2.00": "https://sat.sef.sc.gov.br/nfce/consulta"
|
|
1943
|
+
};
|
|
1944
|
+
var NFCe_SC_H = {
|
|
1945
|
+
Usar: "NFCe_SVRS_H",
|
|
1946
|
+
"URL-QRCode_2.00": "https://hom.sat.sef.sc.gov.br/nfce/consulta",
|
|
1947
|
+
"URL-QRCode": "https://hom.sat.sef.sc.gov.br/nfce/consulta",
|
|
1948
|
+
"URL-ConsultaNFCe": "https://hom.sat.sef.sc.gov.br/nfce/consulta",
|
|
1949
|
+
"URL-QRCode_1.00": "https://hom.sat.sef.sc.gov.br/nfce/consulta",
|
|
1950
|
+
"URL-ConsultaNFCe_1.00": "https://hom.sat.sef.sc.gov.br/nfce/consulta",
|
|
1951
|
+
"URL-ConsultaNFCe_2.00": "https://hom.sat.sef.sc.gov.br/nfce/consulta"
|
|
1952
|
+
};
|
|
1953
|
+
var NFCe_SE_P = {
|
|
1954
|
+
Usar: "NFCe_SVRS_P",
|
|
1955
|
+
"URL-QRCode": "http://www.nfce.se.gov.br/portal/consultarNFCe.jsp",
|
|
1956
|
+
"URL-ConsultaNFCe": "http://www.nfce.se.gov.br/portal/consultarNFCe.jsp",
|
|
1957
|
+
"URL-ConsultaNFCe_2.00": "http://www.nfce.se.gov.br/nfce/consulta"
|
|
1958
|
+
};
|
|
1959
|
+
var NFCe_SE_H = {
|
|
1960
|
+
Usar: "NFCe_SVRS_H",
|
|
1961
|
+
"URL-QRCode": "http://www.hom.nfe.se.gov.br/portal/consultarNFCe.jsp",
|
|
1962
|
+
"URL-ConsultaNFCe": "http://www.hom.nfe.se.gov.br/portal/consultarNFCe.jsp",
|
|
1963
|
+
"URL-ConsultaNFCe_2.00": "http://www.hom.nfe.se.gov.br/nfce/consulta"
|
|
1964
|
+
};
|
|
1965
|
+
var NFCe_SP_P = {
|
|
1966
|
+
"NfeInutilizacao_3.10": "https://nfce.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx",
|
|
1967
|
+
"NFEConsultaProtocolo_3.10": "https://nfce.fazenda.sp.gov.br/ws/nfeconsulta2.asmx",
|
|
1968
|
+
"NFEStatusServico_3.10": "https://nfce.fazenda.sp.gov.br/ws/nfestatusservico2.asmx",
|
|
1969
|
+
"NfeConsultaCadastro_3.10": "https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx",
|
|
1970
|
+
"RecepcaoEvento_1.00": "https://nfce.fazenda.sp.gov.br/ws/recepcaoevento.asmx",
|
|
1971
|
+
"NFEAutorizacao_3.10": "https://nfce.fazenda.sp.gov.br/ws/nfeautorizacao.asmx",
|
|
1972
|
+
"NFERetornoAutorizacao_3.10": "https://nfce.fazenda.sp.gov.br/ws/nferetautorizacao.asmx",
|
|
1973
|
+
"EventoEPEC_1.00": "https://nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx",
|
|
1974
|
+
"NFEAutorizacao_4.00": "https://nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx",
|
|
1975
|
+
"NFERetornoAutorizacao_4.00": "https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx",
|
|
1976
|
+
"NFEInutilizacao_4.00": "https://nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx",
|
|
1977
|
+
"NFEConsultaProtocolo_4.00": "https://nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx",
|
|
1978
|
+
"RecepcaoEvento_4.00": "https://nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx",
|
|
1979
|
+
"NFEStatusServico_4.00": "https://nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx",
|
|
1980
|
+
"URL-QRCode": "https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica/Paginas/ConsultaQRCode.aspx",
|
|
1981
|
+
"URL-ConsultaNFCe": "https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica/Paginas/ConsultaPublica.aspx",
|
|
1982
|
+
"URL-QRCode_1.00": "https://www.nfce.fazenda.sp.gov.br/qrcode",
|
|
1983
|
+
"URL-ConsultaNFCe_1.00": "https://www.nfce.fazenda.sp.gov.br/consulta",
|
|
1984
|
+
"NFERetAutorizacao_3.10": "https://nfce.fazenda.sp.gov.br/ws/nferetautorizacao.asmx",
|
|
1985
|
+
"NFERetAutorizacao_4.00": "https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx",
|
|
1986
|
+
"NfeConsultaCadastro_4.00": "https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"
|
|
1987
|
+
};
|
|
1988
|
+
var NFCe_SP_H = {
|
|
1989
|
+
"NfeInutilizacao_3.10": "https://homologacao.nfce.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx",
|
|
1990
|
+
"NFEConsultaProtocolo_3.10": "https://homologacao.nfce.fazenda.sp.gov.br/ws/nfeconsulta2.asmx",
|
|
1991
|
+
"NFEStatusServico_3.10": "https://homologacao.nfce.fazenda.sp.gov.br/ws/nfestatusservico2.asmx",
|
|
1992
|
+
"NfeConsultaCadastro_3.10": "https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx",
|
|
1993
|
+
"RecepcaoEvento_1.00": "https://homologacao.nfce.fazenda.sp.gov.br/ws/recepcaoevento.asmx",
|
|
1994
|
+
"NFEAutorizacao_3.10": "https://homologacao.nfce.fazenda.sp.gov.br/ws/nfeautorizacao.asmx",
|
|
1995
|
+
"NFERetornoAutorizacao_3.10": "https://homologacao.nfce.fazenda.sp.gov.br/ws/nferetautorizacao.asmx",
|
|
1996
|
+
"EventoEPEC_1.00": "https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx",
|
|
1997
|
+
"NFEAutorizacao_4.00": "https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx",
|
|
1998
|
+
"NFERetornoAutorizacao_4.00": "https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx",
|
|
1999
|
+
"NFEInutilizacao_4.00": "https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx",
|
|
2000
|
+
"NFEConsultaProtocolo_4.00": "https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx",
|
|
2001
|
+
"RecepcaoEvento_4.00": "https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx",
|
|
2002
|
+
"NFEStatusServico_4.00": "https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx",
|
|
2003
|
+
"URL-QRCode": "https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica/Paginas/ConsultaQRCode.aspx",
|
|
2004
|
+
"URL-ConsultaNFCe": "https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica/Paginas/ConsultaPublica.aspx",
|
|
2005
|
+
"URL-QRCode_1.00": "https://www.homologacao.nfce.fazenda.sp.gov.br/qrcode",
|
|
2006
|
+
"URL-ConsultaNFCe_1.00": "https://www.homologacao.nfce.fazenda.sp.gov.br/consulta",
|
|
2007
|
+
"NFERetAutorizacao_3.10": "https://homologacao.nfce.fazenda.sp.gov.br/ws/nferetautorizacao.asmx",
|
|
2008
|
+
"NFERetAutorizacao_4.00": "https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx",
|
|
2009
|
+
"NfeConsultaCadastro_4.00": "https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"
|
|
2010
|
+
};
|
|
2011
|
+
var NFCe_TO_P = {
|
|
2012
|
+
Usar: "NFCe_SVRS_P",
|
|
2013
|
+
"URL-QRCode": "http://apps.sefaz.to.gov.br/portal-nfce/qrcodeNFCe",
|
|
2014
|
+
"URL-ConsultaNFCe": "http://apps.sefaz.to.gov.br/portal-nfce/consultarNFCe.jsf",
|
|
2015
|
+
"URL-QRCode_2.00": "http://www.sefaz.to.gov.br/nfce/qrcode",
|
|
2016
|
+
"URL-ConsultaNFCe_2.00": "www.sefaz.to.gov.br/nfce/consulta"
|
|
2017
|
+
};
|
|
2018
|
+
var NFCe_TO_H = {
|
|
2019
|
+
Usar: "NFCe_SVRS_H",
|
|
2020
|
+
"URL-QRCode": "http://apps.sefaz.to.gov.br/portal-nfce-homologacao/qrcodeNFCe",
|
|
2021
|
+
"URL-ConsultaNFCe": "http://apps.sefaz.to.gov.br/portal-nfce-homologacao/consultarNFCe.jsf",
|
|
2022
|
+
"URL-QRCode_2.00": "http://homologacao.sefaz.to.gov.br/nfce/qrcode",
|
|
2023
|
+
"URL-ConsultaNFCe_2.00": "http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"
|
|
2024
|
+
};
|
|
2025
|
+
var NFCe_SVAN_P = {
|
|
2026
|
+
};
|
|
2027
|
+
var NFCe_SVAN_H = {
|
|
2028
|
+
};
|
|
2029
|
+
var NFCe_SVRS_P = {
|
|
2030
|
+
"NFEAutorizacao_3.10": "https://nfce.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx",
|
|
2031
|
+
"NFERetornoAutorizacao_3.10": "https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
2032
|
+
"NfeInutilizacao_3.10": "https://nfce.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx",
|
|
2033
|
+
"NFEConsultaProtocolo_3.10": "https://nfce.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
2034
|
+
"NFEStatusServico_3.10": "https://nfce.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
2035
|
+
"RecepcaoEvento_1.00": "https://nfce.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx",
|
|
2036
|
+
"RecepcaoEvento_4.00": "https://nfce.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx",
|
|
2037
|
+
"NFEInutilizacao_4.00": "https://nfce.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx",
|
|
2038
|
+
"NFEConsultaProtocolo_4.00": "https://nfce.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx",
|
|
2039
|
+
"NFEStatusServico_4.00": "https://nfce.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx",
|
|
2040
|
+
"NFEAutorizacao_4.00": "https://nfce.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx",
|
|
2041
|
+
"NFERetornoAutorizacao_4.00": "https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx",
|
|
2042
|
+
"NFERetAutorizacao_3.10": "https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
2043
|
+
"NFERetAutorizacao_4.00": "https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"
|
|
2044
|
+
};
|
|
2045
|
+
var NFCe_SVRS_H = {
|
|
2046
|
+
"NFEAutorizacao_3.10": "https://nfce-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx",
|
|
2047
|
+
"NFERetornoAutorizacao_3.10": "https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
2048
|
+
"NfeInutilizacao_3.10": "https://nfce-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx",
|
|
2049
|
+
"NFEConsultaProtocolo_3.10": "https://nfce-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
2050
|
+
"NFEStatusServico_3.10": "https://nfce-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
2051
|
+
"RecepcaoEvento_1.00": "https://nfce-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx",
|
|
2052
|
+
"RecepcaoEvento_4.00": "https://nfce-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx",
|
|
2053
|
+
"NFEInutilizacao_4.00": "https://nfce-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx",
|
|
2054
|
+
"NFEConsultaProtocolo_4.00": "https://nfce-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx",
|
|
2055
|
+
"NFEStatusServico_4.00": "https://nfce-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx",
|
|
2056
|
+
"NFEAutorizacao_4.00": "https://nfce-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx",
|
|
2057
|
+
"NFERetornoAutorizacao_4.00": "https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx",
|
|
2058
|
+
"NFERetAutorizacao_3.10": "https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
2059
|
+
"NFERetAutorizacao_4.00": "https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"
|
|
2060
|
+
};
|
|
2061
|
+
var WSDL_V4 = {
|
|
2062
|
+
"NFEAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4",
|
|
2063
|
+
"NFERetornoAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4",
|
|
2064
|
+
"NFEInutilizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4",
|
|
2065
|
+
"NFEConsultaProtocolo_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4",
|
|
2066
|
+
"NFEStatusServico_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4",
|
|
2067
|
+
"RecepcaoEvento_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4",
|
|
2068
|
+
"CadConsultaCadastro_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4",
|
|
2069
|
+
"NFeDistribuicaoDFe_1.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe",
|
|
2070
|
+
"NFERetAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4"
|
|
2071
|
+
};
|
|
2072
|
+
var SOAP_V4 = {
|
|
2073
|
+
"NFEAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote",
|
|
2074
|
+
"NFERetornoAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote",
|
|
2075
|
+
"NFEInutilizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF",
|
|
2076
|
+
"NFEConsultaProtocolo_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF",
|
|
2077
|
+
"NFEStatusServico_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF",
|
|
2078
|
+
"RecepcaoEvento_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEventoNF",
|
|
2079
|
+
"CadConsultaCadastro_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro",
|
|
2080
|
+
"NFeDistribuicaoDFe_1.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse",
|
|
2081
|
+
"NFERetAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"
|
|
2082
|
+
};
|
|
2083
|
+
var WSDL_V4_SP = {
|
|
2084
|
+
"NFEAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4",
|
|
2085
|
+
"NFERetornoAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4",
|
|
2086
|
+
"NFEInutilizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4",
|
|
2087
|
+
"NFEConsultaProtocolo_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4",
|
|
2088
|
+
"NFEStatusServico_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4",
|
|
2089
|
+
"RecepcaoEvento_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4",
|
|
2090
|
+
"CadConsultaCadastro_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4",
|
|
2091
|
+
"NFeDistribuicaoDFe_1.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe",
|
|
2092
|
+
"NFERetAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4"
|
|
2093
|
+
};
|
|
2094
|
+
var SOAP_V4_SP = {
|
|
2095
|
+
"NFEAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote",
|
|
2096
|
+
"NFERetornoAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote",
|
|
2097
|
+
"NFEInutilizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF",
|
|
2098
|
+
"NFEConsultaProtocolo_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF",
|
|
2099
|
+
"NFEStatusServico_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF",
|
|
2100
|
+
"RecepcaoEvento_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEventoNF",
|
|
2101
|
+
"CadConsultaCadastro_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro",
|
|
2102
|
+
"NFeDistribuicaoDFe_1.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse",
|
|
2103
|
+
"NFERetAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"
|
|
2104
|
+
};
|
|
2105
|
+
var SOAP_V4_BA = {
|
|
2106
|
+
"NFEAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote",
|
|
2107
|
+
"NFERetornoAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote",
|
|
2108
|
+
"NFEInutilizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF",
|
|
2109
|
+
"NFEConsultaProtocolo_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsulta4/nfeConsultaNF",
|
|
2110
|
+
"NFEStatusServico_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF",
|
|
2111
|
+
"RecepcaoEvento_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEventoNF",
|
|
2112
|
+
"CadConsultaCadastro_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro",
|
|
2113
|
+
"NFeDistribuicaoDFe_1.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse",
|
|
2114
|
+
"NFERetAutorizacao_4.00": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"
|
|
2115
|
+
};
|
|
2116
|
+
var NFeServicosUrl = {
|
|
2117
|
+
NFe_AC_P: NFe_AC_P,
|
|
2118
|
+
NFe_AC_H: NFe_AC_H,
|
|
2119
|
+
NFe_AL_P: NFe_AL_P,
|
|
2120
|
+
NFe_AL_H: NFe_AL_H,
|
|
2121
|
+
NFe_AP_P: NFe_AP_P,
|
|
2122
|
+
NFe_AP_H: NFe_AP_H,
|
|
2123
|
+
NFe_AM_P: NFe_AM_P,
|
|
2124
|
+
NFe_AM_H: NFe_AM_H,
|
|
2125
|
+
NFe_BA_P: NFe_BA_P,
|
|
2126
|
+
NFe_BA_H: NFe_BA_H,
|
|
2127
|
+
NFe_CE_P: NFe_CE_P,
|
|
2128
|
+
NFe_CE_H: NFe_CE_H,
|
|
2129
|
+
NFe_DF_P: NFe_DF_P,
|
|
2130
|
+
NFe_DF_H: NFe_DF_H,
|
|
2131
|
+
NFe_ES_P: NFe_ES_P,
|
|
2132
|
+
NFe_ES_H: NFe_ES_H,
|
|
2133
|
+
NFe_GO_P: NFe_GO_P,
|
|
2134
|
+
NFe_GO_H: NFe_GO_H,
|
|
2135
|
+
NFe_MA_P: NFe_MA_P,
|
|
2136
|
+
NFe_MA_H: NFe_MA_H,
|
|
2137
|
+
NFe_MG_P: NFe_MG_P,
|
|
2138
|
+
NFe_MG_H: NFe_MG_H,
|
|
2139
|
+
NFe_MS_P: NFe_MS_P,
|
|
2140
|
+
NFe_MS_H: NFe_MS_H,
|
|
2141
|
+
NFe_MT_P: NFe_MT_P,
|
|
2142
|
+
NFe_MT_H: NFe_MT_H,
|
|
2143
|
+
NFe_PA_P: NFe_PA_P,
|
|
2144
|
+
NFe_PA_H: NFe_PA_H,
|
|
2145
|
+
NFe_PB_P: NFe_PB_P,
|
|
2146
|
+
NFe_PB_H: NFe_PB_H,
|
|
2147
|
+
NFe_PE_P: NFe_PE_P,
|
|
2148
|
+
NFe_PE_H: NFe_PE_H,
|
|
2149
|
+
NFe_PI_P: NFe_PI_P,
|
|
2150
|
+
NFe_PI_H: NFe_PI_H,
|
|
2151
|
+
NFe_PR_P: NFe_PR_P,
|
|
2152
|
+
NFe_PR_H: NFe_PR_H,
|
|
2153
|
+
NFe_RJ_P: NFe_RJ_P,
|
|
2154
|
+
NFe_RJ_H: NFe_RJ_H,
|
|
2155
|
+
NFe_RN_P: NFe_RN_P,
|
|
2156
|
+
NFe_RN_H: NFe_RN_H,
|
|
2157
|
+
NFe_RO_P: NFe_RO_P,
|
|
2158
|
+
NFe_RO_H: NFe_RO_H,
|
|
2159
|
+
NFe_RS_P: NFe_RS_P,
|
|
2160
|
+
NFe_RS_H: NFe_RS_H,
|
|
2161
|
+
NFe_RR_P: NFe_RR_P,
|
|
2162
|
+
NFe_RR_H: NFe_RR_H,
|
|
2163
|
+
NFe_SC_P: NFe_SC_P,
|
|
2164
|
+
NFe_SC_H: NFe_SC_H,
|
|
2165
|
+
NFe_SE_P: NFe_SE_P,
|
|
2166
|
+
NFe_SE_H: NFe_SE_H,
|
|
2167
|
+
NFe_SP_P: NFe_SP_P,
|
|
2168
|
+
NFe_SP_H: NFe_SP_H,
|
|
2169
|
+
NFe_TO_P: NFe_TO_P,
|
|
2170
|
+
NFe_TO_H: NFe_TO_H,
|
|
2171
|
+
NFe_SVAN_P: NFe_SVAN_P,
|
|
2172
|
+
NFe_SVAN_H: NFe_SVAN_H,
|
|
2173
|
+
NFe_SVRS_P: NFe_SVRS_P,
|
|
2174
|
+
NFe_SVRS_H: NFe_SVRS_H,
|
|
2175
|
+
"NFe_SVC-AN_P": {
|
|
2176
|
+
"RecepcaoEvento_1.00": "https://www.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx",
|
|
2177
|
+
"NfeRecepcao_2.00": "https://www.svc.fazenda.gov.br/NfeRecepcao2/NfeRecepcao2.asmx",
|
|
2178
|
+
"NfeRetRecepcao_2.00": "https://www.svc.fazenda.gov.br/NfeRetRecepcao2/NfeRetRecepcao2.asmx",
|
|
2179
|
+
"NFEConsultaProtocolo_2.00": "https://www.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx",
|
|
2180
|
+
"NFEConsultaProtocolo_3.10": "https://www.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx",
|
|
2181
|
+
"NFEStatusServico_2.00": "https://www.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx",
|
|
2182
|
+
"NFEStatusServico_3.10": "https://www.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx",
|
|
2183
|
+
"NFEAutorizacao_3.10": "https://www.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx",
|
|
2184
|
+
"NFERetornoAutorizacao_3.10": "https://www.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx",
|
|
2185
|
+
"NFEConsultaProtocolo_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx",
|
|
2186
|
+
"NFEStatusServico_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx",
|
|
2187
|
+
"RecepcaoEvento_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx",
|
|
2188
|
+
"NFEAutorizacao_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx",
|
|
2189
|
+
"NFERetornoAutorizacao_4.00": "https://www.svc.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx",
|
|
2190
|
+
"NFERetAutorizacao_3.10": "https://www.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx",
|
|
2191
|
+
"NfeInutilizacao_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx",
|
|
2192
|
+
"NFERetAutorizacao_4.00": "https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"
|
|
2193
|
+
},
|
|
2194
|
+
"NFe_SVC-AN_H": {
|
|
2195
|
+
"RecepcaoEvento_1.00": "https://hom.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx",
|
|
2196
|
+
"NfeRecepcao_2.00": "https://hom.svc.fazenda.gov.br/NfeRecepcao2/NfeRecepcao2.asmx",
|
|
2197
|
+
"NfeRetRecepcao_2.00": "https://hom.svc.fazenda.gov.br/NfeRetRecepcao2/NfeRetRecepcao2.asmx",
|
|
2198
|
+
"NFEConsultaProtocolo_2.00": "https://hom.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx",
|
|
2199
|
+
"NFEConsultaProtocolo_3.10": "https://hom.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx",
|
|
2200
|
+
"NFEStatusServico_2.00": "https://hom.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx",
|
|
2201
|
+
"NFEStatusServico_3.10": "https://hom.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx",
|
|
2202
|
+
"NFEAutorizacao_3.10": "https://hom.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx",
|
|
2203
|
+
"NFERetornoAutorizacao_3.10": "https://hom.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx",
|
|
2204
|
+
"NFEConsultaProtocolo_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx",
|
|
2205
|
+
"NFEStatusServico_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx",
|
|
2206
|
+
"RecepcaoEvento_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx",
|
|
2207
|
+
"NFEAutorizacao_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx",
|
|
2208
|
+
"NFERetornoAutorizacao_4.00": "https://hom.svc.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx",
|
|
2209
|
+
"NFERetAutorizacao_3.10": "https://hom.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx",
|
|
2210
|
+
"NfeInutilizacao_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx",
|
|
2211
|
+
"NFERetAutorizacao_4.00": "https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"
|
|
2212
|
+
},
|
|
2213
|
+
"NFe_SVC-RS_P": {
|
|
2214
|
+
"NFEAutorizacao_3.10": "https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx",
|
|
2215
|
+
"NFERetornoAutorizacao_3.10": "https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
2216
|
+
"NfeInutilizacao_3.10": "https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx",
|
|
2217
|
+
"NFEConsultaProtocolo_3.10": "https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
2218
|
+
"NFEStatusServico_3.10": "https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
2219
|
+
"RecepcaoEvento_1.00": "https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx",
|
|
2220
|
+
"NFEInutilizacao_4.00": "https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx",
|
|
2221
|
+
"NFEConsultaProtocolo_4.00": "https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx",
|
|
2222
|
+
"NFEStatusServico_4.00": "https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx",
|
|
2223
|
+
"RecepcaoEvento_4.00": "https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx",
|
|
2224
|
+
"NFEAutorizacao_4.00": "https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx",
|
|
2225
|
+
"NFERetornoAutorizacao_4.00": "https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx",
|
|
2226
|
+
"NFERetAutorizacao_3.10": "https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
2227
|
+
"NFERetAutorizacao_4.00": "https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"
|
|
2228
|
+
},
|
|
2229
|
+
"NFe_SVC-RS_H": {
|
|
2230
|
+
"NFEAutorizacao_3.10": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx",
|
|
2231
|
+
"NFERetornoAutorizacao_3.10": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
2232
|
+
"NfeInutilizacao_3.10": "https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx",
|
|
2233
|
+
"NFEConsultaProtocolo_3.10": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx",
|
|
2234
|
+
"NFEStatusServico_3.10": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx",
|
|
2235
|
+
"RecepcaoEvento_1.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx",
|
|
2236
|
+
"NFEConsultaProtocolo_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx",
|
|
2237
|
+
"NFEStatusServico_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx",
|
|
2238
|
+
"RecepcaoEvento_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx",
|
|
2239
|
+
"NFEAutorizacao_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx",
|
|
2240
|
+
"NFERetornoAutorizacao_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx",
|
|
2241
|
+
"NFERetAutorizacao_3.10": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx",
|
|
2242
|
+
"NFERetAutorizacao_4.00": "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"
|
|
2243
|
+
},
|
|
2244
|
+
NFe_AN_P: NFe_AN_P,
|
|
2245
|
+
NFe_AN_H: NFe_AN_H,
|
|
2246
|
+
NFCe_AC_P: NFCe_AC_P,
|
|
2247
|
+
NFCe_AC_H: NFCe_AC_H,
|
|
2248
|
+
NFCe_AL_P: NFCe_AL_P,
|
|
2249
|
+
NFCe_AL_H: NFCe_AL_H,
|
|
2250
|
+
NFCe_AP_P: NFCe_AP_P,
|
|
2251
|
+
NFCe_AP_H: NFCe_AP_H,
|
|
2252
|
+
NFCe_AM_P: NFCe_AM_P,
|
|
2253
|
+
NFCe_AM_H: NFCe_AM_H,
|
|
2254
|
+
NFCe_BA_P: NFCe_BA_P,
|
|
2255
|
+
NFCe_BA_H: NFCe_BA_H,
|
|
2256
|
+
NFCe_CE_P: NFCe_CE_P,
|
|
2257
|
+
NFCe_CE_H: NFCe_CE_H,
|
|
2258
|
+
NFCe_DF_P: NFCe_DF_P,
|
|
2259
|
+
NFCe_DF_H: NFCe_DF_H,
|
|
2260
|
+
NFCe_ES_P: NFCe_ES_P,
|
|
2261
|
+
NFCe_ES_H: NFCe_ES_H,
|
|
2262
|
+
NFCe_GO_P: NFCe_GO_P,
|
|
2263
|
+
NFCe_GO_H: NFCe_GO_H,
|
|
2264
|
+
NFCe_MA_P: NFCe_MA_P,
|
|
2265
|
+
NFCe_MA_H: NFCe_MA_H,
|
|
2266
|
+
NFCe_MG_P: NFCe_MG_P,
|
|
2267
|
+
NFCe_MG_H: NFCe_MG_H,
|
|
2268
|
+
NFCe_MS_P: NFCe_MS_P,
|
|
2269
|
+
NFCe_MS_H: NFCe_MS_H,
|
|
2270
|
+
NFCe_MT_P: NFCe_MT_P,
|
|
2271
|
+
NFCe_MT_H: NFCe_MT_H,
|
|
2272
|
+
NFCe_PA_P: NFCe_PA_P,
|
|
2273
|
+
NFCe_PA_H: NFCe_PA_H,
|
|
2274
|
+
NFCe_PB_P: NFCe_PB_P,
|
|
2275
|
+
NFCe_PB_H: NFCe_PB_H,
|
|
2276
|
+
NFCe_PE_P: NFCe_PE_P,
|
|
2277
|
+
NFCe_PE_H: NFCe_PE_H,
|
|
2278
|
+
NFCe_PI_P: NFCe_PI_P,
|
|
2279
|
+
NFCe_PI_H: NFCe_PI_H,
|
|
2280
|
+
NFCe_PR_P: NFCe_PR_P,
|
|
2281
|
+
NFCe_PR_H: NFCe_PR_H,
|
|
2282
|
+
NFCe_RJ_P: NFCe_RJ_P,
|
|
2283
|
+
NFCe_RJ_H: NFCe_RJ_H,
|
|
2284
|
+
NFCe_RN_P: NFCe_RN_P,
|
|
2285
|
+
NFCe_RN_H: NFCe_RN_H,
|
|
2286
|
+
NFCe_RO_P: NFCe_RO_P,
|
|
2287
|
+
NFCe_RO_H: NFCe_RO_H,
|
|
2288
|
+
NFCe_RS_P: NFCe_RS_P,
|
|
2289
|
+
NFCe_RS_H: NFCe_RS_H,
|
|
2290
|
+
NFCe_RR_P: NFCe_RR_P,
|
|
2291
|
+
NFCe_RR_H: NFCe_RR_H,
|
|
2292
|
+
NFCe_SC_P: NFCe_SC_P,
|
|
2293
|
+
NFCe_SC_H: NFCe_SC_H,
|
|
2294
|
+
NFCe_SE_P: NFCe_SE_P,
|
|
2295
|
+
NFCe_SE_H: NFCe_SE_H,
|
|
2296
|
+
NFCe_SP_P: NFCe_SP_P,
|
|
2297
|
+
NFCe_SP_H: NFCe_SP_H,
|
|
2298
|
+
NFCe_TO_P: NFCe_TO_P,
|
|
2299
|
+
NFCe_TO_H: NFCe_TO_H,
|
|
2300
|
+
NFCe_SVAN_P: NFCe_SVAN_P,
|
|
2301
|
+
NFCe_SVAN_H: NFCe_SVAN_H,
|
|
2302
|
+
NFCe_SVRS_P: NFCe_SVRS_P,
|
|
2303
|
+
NFCe_SVRS_H: NFCe_SVRS_H,
|
|
2304
|
+
WSDL_V4: WSDL_V4,
|
|
2305
|
+
SOAP_V4: SOAP_V4,
|
|
2306
|
+
WSDL_V4_SP: WSDL_V4_SP,
|
|
2307
|
+
SOAP_V4_SP: SOAP_V4_SP,
|
|
2308
|
+
SOAP_V4_BA: SOAP_V4_BA
|
|
2309
|
+
};
|
|
2310
|
+
|
|
2311
|
+
var NFSe_AN_H = {
|
|
2312
|
+
NFSe_Autorizacao: "https://sefin.producaorestrita.nfse.gov.br/SefinNacional/nfse",
|
|
2313
|
+
NFSe_Consulta: "https://sefin.producaorestrita.nfse.gov.br/SefinNacional/nfse",
|
|
2314
|
+
NFSe_ConsultaDPS: "https://sefin.producaorestrita.nfse.gov.br/SefinNacional/dps",
|
|
2315
|
+
NFSe_Eventos: "https://sefin.producaorestrita.nfse.gov.br/SefinNacional/nfse",
|
|
2316
|
+
NFSe_Distribuicao: "https://adn.producaorestrita.nfse.gov.br/contribuintes/DFe",
|
|
2317
|
+
NFSe_EventosPorChave: "https://adn.producaorestrita.nfse.gov.br/contribuintes/NFSe",
|
|
2318
|
+
NFSe_DANFSe: "https://adn.producaorestrita.nfse.gov.br/danfse",
|
|
2319
|
+
NFSe_ParametrosMunicipais: "https://adn.producaorestrita.nfse.gov.br/parametrizacao"
|
|
2320
|
+
};
|
|
2321
|
+
var NFSe_AN_P = {
|
|
2322
|
+
NFSe_Autorizacao: "https://sefin.nfse.gov.br/SefinNacional/nfse",
|
|
2323
|
+
NFSe_Consulta: "https://sefin.nfse.gov.br/SefinNacional/nfse",
|
|
2324
|
+
NFSe_ConsultaDPS: "https://sefin.nfse.gov.br/SefinNacional/dps",
|
|
2325
|
+
NFSe_Eventos: "https://sefin.nfse.gov.br/SefinNacional/nfse",
|
|
2326
|
+
NFSe_Distribuicao: "https://adn.nfse.gov.br/contribuintes/DFe",
|
|
2327
|
+
NFSe_EventosPorChave: "https://adn.nfse.gov.br/contribuintes/NFSe",
|
|
2328
|
+
NFSe_DANFSe: "https://adn.nfse.gov.br/danfse",
|
|
2329
|
+
NFSe_ParametrosMunicipais: "https://adn.nfse.gov.br/parametrizacao"
|
|
2330
|
+
};
|
|
2331
|
+
var NFSeServicosUrl = {
|
|
2332
|
+
NFSe_AN_H: NFSe_AN_H,
|
|
2333
|
+
NFSe_AN_P: NFSe_AN_P
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
/*
|
|
2337
|
+
* This file is part of Treeunfe DFe.
|
|
2338
|
+
*
|
|
2339
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
2340
|
+
* it under the terms of the GNU General Public License as published by
|
|
2341
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
2342
|
+
* (at your option) any later version.
|
|
2343
|
+
*
|
|
2344
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
2345
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
2346
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
2347
|
+
* GNU General Public License for more details.
|
|
2348
|
+
*
|
|
2349
|
+
* You should have received a copy of the GNU General Public License
|
|
2350
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
2351
|
+
*/
|
|
2352
|
+
class XmlParser {
|
|
2353
|
+
constructor() {
|
|
2354
|
+
this.findInObj = (obj, chave) => {
|
|
2355
|
+
if (obj.hasOwnProperty(chave)) {
|
|
2356
|
+
return obj[chave];
|
|
2357
|
+
}
|
|
2358
|
+
for (let prop in obj) {
|
|
2359
|
+
if (typeof obj[prop] === 'object') {
|
|
2360
|
+
const result = this.findInObj(obj[prop], chave); // Passar a chave aqui
|
|
2361
|
+
if (result) {
|
|
2362
|
+
return result;
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
return '';
|
|
2367
|
+
};
|
|
2368
|
+
}
|
|
2369
|
+
removeJsonTextAttribute(value, parentElement) {
|
|
2370
|
+
const pOpKeys = Object.keys(parentElement._parent);
|
|
2371
|
+
const keyNo = pOpKeys.length;
|
|
2372
|
+
const keyName = pOpKeys[keyNo - 1];
|
|
2373
|
+
const arrOfKey = parentElement._parent[keyName];
|
|
2374
|
+
const arrOfKeyLen = arrOfKey.length;
|
|
2375
|
+
if (arrOfKeyLen > 0) {
|
|
2376
|
+
const arr = arrOfKey;
|
|
2377
|
+
const arrIndex = arrOfKey.length - 1;
|
|
2378
|
+
arr[arrIndex] = value;
|
|
2379
|
+
}
|
|
2380
|
+
else {
|
|
2381
|
+
parentElement._parent[keyName] = value;
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
getStatusServicoBody(jsonData) {
|
|
2385
|
+
return this.findInObj(jsonData, 'retConsStatServ');
|
|
2386
|
+
}
|
|
2387
|
+
getConsultaProtocoloBody(jsonData) {
|
|
2388
|
+
return this.findInObj(jsonData, 'retConsSitNFe');
|
|
2389
|
+
}
|
|
2390
|
+
getRecepcaoEventoBody(jsonData) {
|
|
2391
|
+
return this.findInObj(jsonData, 'retEnvEvento');
|
|
2392
|
+
}
|
|
2393
|
+
getDistribuicaoDFe(jsonData) {
|
|
2394
|
+
// Tenta encontrar resposta NFe primeiro
|
|
2395
|
+
let result = this.findInObj(jsonData, 'nfeDistDFeInteresseResult');
|
|
2396
|
+
// Se não encontrar, tenta resposta CTe
|
|
2397
|
+
if (!result) {
|
|
2398
|
+
result = this.findInObj(jsonData, 'cteDistDFeInteresseResult');
|
|
2399
|
+
}
|
|
2400
|
+
return result;
|
|
2401
|
+
}
|
|
2402
|
+
getDistribuicaoDFeProcBody(jsonData) {
|
|
2403
|
+
return this.findInObj(jsonData, 'NFe');
|
|
2404
|
+
}
|
|
2405
|
+
getDistribuicaoDFeResBody(jsonData) {
|
|
2406
|
+
// Tenta encontrar resNFe primeiro, senão tenta resCTe
|
|
2407
|
+
let result = this.findInObj(jsonData, 'resNFe');
|
|
2408
|
+
if (!result) {
|
|
2409
|
+
result = this.findInObj(jsonData, 'resCTe');
|
|
2410
|
+
}
|
|
2411
|
+
return result;
|
|
2412
|
+
}
|
|
2413
|
+
getDistribuicaoDFeEventBody(jsonData) {
|
|
2414
|
+
return this.findInObj(jsonData, 'evento');
|
|
2415
|
+
}
|
|
2416
|
+
getAutorizacaoEventBody(jsonData) {
|
|
2417
|
+
return this.findInObj(jsonData, 'retEnviNFe');
|
|
2418
|
+
}
|
|
2419
|
+
getAutorizacaoFinalEventBody(jsonData) {
|
|
2420
|
+
return this.findInObj(jsonData, 'nfeProc');
|
|
2421
|
+
}
|
|
2422
|
+
getAutorizacaoRetornoEventBody(jsonData) {
|
|
2423
|
+
return this.findInObj(jsonData, 'protNFe');
|
|
2424
|
+
}
|
|
2425
|
+
getInutilizacaoRetornoEventBody(jsonData) {
|
|
2426
|
+
return this.findInObj(jsonData, 'infInut');
|
|
2427
|
+
}
|
|
2428
|
+
convertXmlToJson(xml, metodo, nsu) {
|
|
2429
|
+
logger.info(`Convertendo XML para JSON [${metodo}]`, {
|
|
2430
|
+
context: 'XmlParser',
|
|
2431
|
+
});
|
|
2432
|
+
const jsonAsString = convert.xml2json(xml, {
|
|
2433
|
+
compact: true,
|
|
2434
|
+
spaces: 2,
|
|
2435
|
+
ignoreAttributes: true,
|
|
2436
|
+
ignoreDeclaration: true,
|
|
2437
|
+
trim: true,
|
|
2438
|
+
ignoreInstruction: true,
|
|
2439
|
+
ignoreComment: true,
|
|
2440
|
+
ignoreCdata: true,
|
|
2441
|
+
ignoreDoctype: true,
|
|
2442
|
+
textFn: this.removeJsonTextAttribute,
|
|
2443
|
+
});
|
|
2444
|
+
const jsonData = JSON.parse(jsonAsString);
|
|
2445
|
+
let jsonBody;
|
|
2446
|
+
switch (metodo) {
|
|
2447
|
+
case 'NFEStatusServico':
|
|
2448
|
+
jsonBody = this.getStatusServicoBody(jsonData);
|
|
2449
|
+
break;
|
|
2450
|
+
case 'NFEConsultaProtocolo':
|
|
2451
|
+
jsonBody = this.getConsultaProtocoloBody(jsonData);
|
|
2452
|
+
break;
|
|
2453
|
+
case 'RecepcaoEvento':
|
|
2454
|
+
jsonBody = this.getRecepcaoEventoBody(jsonData);
|
|
2455
|
+
break;
|
|
2456
|
+
case 'NFeDistribuicaoDFe':
|
|
2457
|
+
jsonBody = this.getDistribuicaoDFe(jsonData);
|
|
2458
|
+
break;
|
|
2459
|
+
case 'CTeDistribuicaoDFe':
|
|
2460
|
+
jsonBody = this.getDistribuicaoDFe(jsonData);
|
|
2461
|
+
break;
|
|
2462
|
+
case 'NFeDistribuicaoDFe_proc':
|
|
2463
|
+
jsonBody = jsonData;
|
|
2464
|
+
break;
|
|
2465
|
+
case 'NFeDistribuicaoDFe_res':
|
|
2466
|
+
jsonBody = this.getDistribuicaoDFeResBody(jsonData);
|
|
2467
|
+
break;
|
|
2468
|
+
case 'NFeDistribuicaoDFe_event':
|
|
2469
|
+
jsonBody = this.getDistribuicaoDFeEventBody(jsonData);
|
|
2470
|
+
break;
|
|
2471
|
+
case 'CTeDistribuicaoDFe_proc':
|
|
2472
|
+
jsonBody = jsonData;
|
|
2473
|
+
break;
|
|
2474
|
+
case 'CTeDistribuicaoDFe_res':
|
|
2475
|
+
jsonBody = this.getDistribuicaoDFeResBody(jsonData);
|
|
2476
|
+
break;
|
|
2477
|
+
case 'CTeDistribuicaoDFe_event':
|
|
2478
|
+
jsonBody = this.getDistribuicaoDFeEventBody(jsonData);
|
|
2479
|
+
break;
|
|
2480
|
+
case 'NFEAutorizacao':
|
|
2481
|
+
jsonBody = this.getAutorizacaoEventBody(jsonData);
|
|
2482
|
+
break;
|
|
2483
|
+
case 'NFEAutorizacaoFinal':
|
|
2484
|
+
jsonBody = this.getAutorizacaoFinalEventBody(jsonData);
|
|
2485
|
+
break;
|
|
2486
|
+
case 'NFCEAutorizacaoFinal':
|
|
2487
|
+
jsonBody = this.getAutorizacaoFinalEventBody(jsonData);
|
|
2488
|
+
break;
|
|
2489
|
+
case 'NFERetAutorizacao':
|
|
2490
|
+
jsonBody = this.getAutorizacaoRetornoEventBody(jsonData);
|
|
2491
|
+
break;
|
|
2492
|
+
case 'NFEInutilizacao':
|
|
2493
|
+
jsonBody = this.getInutilizacaoRetornoEventBody(jsonData);
|
|
2494
|
+
break;
|
|
2495
|
+
case 'NFSeAutorizacao':
|
|
2496
|
+
// Para NFSe, o XML já está descompactado e pode ser retornado diretamente
|
|
2497
|
+
// ou processado conforme necessário
|
|
2498
|
+
jsonBody = jsonData;
|
|
2499
|
+
break;
|
|
2500
|
+
default:
|
|
2501
|
+
throw new Error('Formato de XML desconhecido');
|
|
2502
|
+
}
|
|
2503
|
+
if (jsonBody) {
|
|
2504
|
+
if (nsu) {
|
|
2505
|
+
jsonBody.nsu = nsu;
|
|
2506
|
+
}
|
|
2507
|
+
jsonBody.xml = xml;
|
|
2508
|
+
}
|
|
2509
|
+
return jsonBody;
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
/**
|
|
2514
|
+
* @description :
|
|
2515
|
+
* @author :
|
|
2516
|
+
* @group :
|
|
2517
|
+
* @created : 21/03/2025 - 21:50:20
|
|
2518
|
+
*
|
|
2519
|
+
* MODIFICATION LOG
|
|
2520
|
+
* - Version : 1.0.0
|
|
2521
|
+
* - Date : 21/03/2025
|
|
2522
|
+
* - Author :
|
|
2523
|
+
* - Modification :
|
|
2524
|
+
**/
|
|
2525
|
+
/*
|
|
2526
|
+
* This file is part of Treeunfe DFe.
|
|
2527
|
+
*
|
|
2528
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
2529
|
+
* it under the terms of the GNU General Public License as published by
|
|
2530
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
2531
|
+
* (at your option) any later version.
|
|
2532
|
+
*
|
|
2533
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
2534
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
2535
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
2536
|
+
* GNU General Public License for more details.
|
|
2537
|
+
*
|
|
2538
|
+
* You should have received a copy of the GNU General Public License
|
|
2539
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
2540
|
+
*/
|
|
2541
|
+
class Utility {
|
|
2542
|
+
constructor(environment) {
|
|
2543
|
+
/**
|
|
2544
|
+
* Função recursiva para encontrar a chave em qualquer nivel do objeto
|
|
2545
|
+
*/
|
|
2546
|
+
this.findInObj = (obj, chave) => {
|
|
2547
|
+
if (obj.hasOwnProperty(chave)) {
|
|
2548
|
+
return obj[chave];
|
|
2549
|
+
}
|
|
2550
|
+
for (let prop in obj) {
|
|
2551
|
+
if (typeof obj[prop] === 'object') {
|
|
2552
|
+
const result = this.findInObj(obj[prop], chave); // Passar a chave aqui
|
|
2553
|
+
if (result) {
|
|
2554
|
+
return result;
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
return '';
|
|
2559
|
+
};
|
|
2560
|
+
/**
|
|
2561
|
+
* Função recursiva para encontrar todas as ocorrências de uma chave em qualquer nivel do objeto
|
|
2562
|
+
*/
|
|
2563
|
+
this.findAllInObj = (obj, chave) => {
|
|
2564
|
+
const results = [];
|
|
2565
|
+
if (obj.hasOwnProperty(chave)) {
|
|
2566
|
+
results.push(obj[chave]);
|
|
2567
|
+
}
|
|
2568
|
+
for (let prop in obj) {
|
|
2569
|
+
if (typeof obj[prop] === 'object' && obj[prop] !== null) {
|
|
2570
|
+
const nestedResults = this.findAllInObj(obj[prop], chave);
|
|
2571
|
+
results.push(...nestedResults);
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
return results;
|
|
2575
|
+
};
|
|
2576
|
+
this.environment = environment;
|
|
2577
|
+
this.xmlParser = new XmlParser();
|
|
2578
|
+
}
|
|
2579
|
+
/**
|
|
2580
|
+
* Método utilitário para criar diretórios
|
|
2581
|
+
*/
|
|
2582
|
+
createDir(path) {
|
|
2583
|
+
if (!fs.existsSync(path)) {
|
|
2584
|
+
fs.mkdirSync(path, { recursive: true });
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
/**
|
|
2588
|
+
* Método utilitário para escrever arquivo
|
|
2589
|
+
*/
|
|
2590
|
+
createFile(path, fileName, file, extension) {
|
|
2591
|
+
if (extension.toLowerCase() === 'json') {
|
|
2592
|
+
fs.writeFileSync(`${path}/${fileName}.${extension}`, JSON.stringify(file));
|
|
2593
|
+
}
|
|
2594
|
+
else {
|
|
2595
|
+
fs.writeFileSync(`${path}/${fileName}.${extension}`, file);
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
/**
|
|
2599
|
+
* Método responsável por gravar o XML como json
|
|
2600
|
+
*/
|
|
2601
|
+
salvaJSON(props) {
|
|
2602
|
+
const { fileName, metodo, path: pathParam, data } = props;
|
|
2603
|
+
let pathJson = pathParam;
|
|
2604
|
+
if (!pathJson || pathJson.trim() === '') {
|
|
2605
|
+
pathJson = `tmp/${metodo}/`;
|
|
2606
|
+
}
|
|
2607
|
+
// Resolve o path para um caminho absoluto
|
|
2608
|
+
const baseDir = path.resolve(process.cwd());
|
|
2609
|
+
const resolvedPath = path.isAbsolute(pathJson) ? pathJson : path.resolve(baseDir, pathJson);
|
|
2610
|
+
logger.info('Gravando JSON', {
|
|
2611
|
+
context: 'XmlBuilder',
|
|
2612
|
+
file: `${resolvedPath}/${fileName}.json`,
|
|
2613
|
+
});
|
|
2614
|
+
this.createDir(resolvedPath);
|
|
2615
|
+
this.createFile(resolvedPath, fileName, data, 'json');
|
|
2616
|
+
}
|
|
2617
|
+
/**
|
|
2618
|
+
* Método responsável por gravar os XML recebidos em disco
|
|
2619
|
+
*/
|
|
2620
|
+
salvaXMLFromJson(config, xmlInJson, fileName = "", metodo = "") {
|
|
2621
|
+
let pathXml = config.pathXMLRetorno;
|
|
2622
|
+
if (!pathXml || pathXml.trim() === '') {
|
|
2623
|
+
pathXml = `tmp/${metodo}/`;
|
|
2624
|
+
}
|
|
2625
|
+
// Resolve o path para um caminho absoluto (mantém compatibilidade com paths relativos e absolutos)
|
|
2626
|
+
const baseDir = path.resolve(process.cwd());
|
|
2627
|
+
const resolvedPath = path.isAbsolute(pathXml) ? pathXml : path.resolve(baseDir, pathXml);
|
|
2628
|
+
logger.info('Gravando XML do JSON', {
|
|
2629
|
+
context: 'XmlBuilder',
|
|
2630
|
+
file: `${resolvedPath}/${fileName || 'xml'}.xml`,
|
|
2631
|
+
});
|
|
2632
|
+
const { xml } = xmlInJson;
|
|
2633
|
+
// Utiliza a função recursiva para encontrar a chave chNFe
|
|
2634
|
+
const chNFe = this.findInObj(xmlInJson, 'chNFe');
|
|
2635
|
+
this.createDir(resolvedPath);
|
|
2636
|
+
this.createFile(resolvedPath, fileName || chNFe, xml, 'xml');
|
|
2637
|
+
}
|
|
2638
|
+
salvaXML(props) {
|
|
2639
|
+
// const stack = new Error().stack?.split('\n');
|
|
2640
|
+
// const callerLine = stack?.[2] || ''; // linha que chamou `salvaXML`
|
|
2641
|
+
// const callerMatch = callerLine.match(/at (\S+)/);
|
|
2642
|
+
// const callerName = callerMatch ? callerMatch[1] : 'desconhecido';
|
|
2643
|
+
// logger.info('Gravando XML', {
|
|
2644
|
+
// context: 'XmlBuilder',
|
|
2645
|
+
// chamadoPor: callerName
|
|
2646
|
+
// });
|
|
2647
|
+
const { fileName, metodo, path: pathParam, data } = props;
|
|
2648
|
+
let pathXml = pathParam;
|
|
2649
|
+
if (!pathXml || pathXml.trim() === '') {
|
|
2650
|
+
pathXml = `tmp/${metodo}/`;
|
|
2651
|
+
}
|
|
2652
|
+
// Resolve o path para um caminho absoluto
|
|
2653
|
+
const baseDir = path.resolve(process.cwd());
|
|
2654
|
+
const resolvedPath = path.isAbsolute(pathXml) ? pathXml : path.resolve(baseDir, pathXml);
|
|
2655
|
+
logger.info('Gravando XML', {
|
|
2656
|
+
context: 'XmlBuilder',
|
|
2657
|
+
file: `${resolvedPath}/${fileName}.xml`,
|
|
2658
|
+
});
|
|
2659
|
+
this.createDir(resolvedPath);
|
|
2660
|
+
this.createFile(resolvedPath, fileName, data, 'xml');
|
|
2661
|
+
}
|
|
2662
|
+
/**
|
|
2663
|
+
* Recupera url para action e metoodo do SOAP
|
|
2664
|
+
*/
|
|
2665
|
+
getSoapInfo1(_uf, metodo) {
|
|
2666
|
+
const methodConfig = soapMethod;
|
|
2667
|
+
const methodInfo = methodConfig[metodo];
|
|
2668
|
+
if (!methodInfo) {
|
|
2669
|
+
throw new Error("Método não encontrado no arquivo de configuração SOAP.");
|
|
2670
|
+
}
|
|
2671
|
+
return {
|
|
2672
|
+
method: methodInfo.method,
|
|
2673
|
+
action: methodInfo.action,
|
|
2674
|
+
};
|
|
2675
|
+
}
|
|
2676
|
+
getSoapInfo(uf, method) {
|
|
2677
|
+
// Detecta se é CTe ou NFe pelo nome do método
|
|
2678
|
+
const isCTe = method.startsWith('CTe');
|
|
2679
|
+
const servicos = isCTe ? CTeServicosUrl : NFeServicosUrl;
|
|
2680
|
+
let chaveMethod = '';
|
|
2681
|
+
let chaveSoap = '';
|
|
2682
|
+
if (isCTe) {
|
|
2683
|
+
// Para CTe, as URLs são diretas (não há variação por UF como em NFe)
|
|
2684
|
+
const soapMethodConfig = soapMethod[method];
|
|
2685
|
+
if (!soapMethodConfig) {
|
|
2686
|
+
throw new Error("Método CTe não encontrado no arquivo de configuração SOAP.");
|
|
2687
|
+
}
|
|
2688
|
+
logger.info(`Buscando URL's do webservice CTe`, {
|
|
2689
|
+
context: 'GerarConsulta',
|
|
2690
|
+
chaveSoap,
|
|
2691
|
+
chaveMethod,
|
|
2692
|
+
CTeServicosUrl: 'src/core/config/CTeServicosUrl.json'
|
|
2693
|
+
});
|
|
2694
|
+
return {
|
|
2695
|
+
method: soapMethodConfig.method,
|
|
2696
|
+
action: soapMethodConfig.action,
|
|
2697
|
+
};
|
|
2698
|
+
}
|
|
2699
|
+
// Lógica existente para NFe
|
|
2700
|
+
switch (uf) {
|
|
2701
|
+
case 'SP':
|
|
2702
|
+
chaveSoap = 'SOAP_V4_SP';
|
|
2703
|
+
break;
|
|
2704
|
+
case 'BA':
|
|
2705
|
+
chaveSoap = 'SOAP_V4_BA';
|
|
2706
|
+
break;
|
|
2707
|
+
default:
|
|
2708
|
+
chaveSoap = 'SOAP_V4';
|
|
2709
|
+
break;
|
|
2710
|
+
}
|
|
2711
|
+
switch (uf) {
|
|
2712
|
+
case 'SP':
|
|
2713
|
+
chaveMethod = 'WSDL_V4_SP';
|
|
2714
|
+
break;
|
|
2715
|
+
default:
|
|
2716
|
+
chaveMethod = 'WSDL_V4';
|
|
2717
|
+
break;
|
|
2718
|
+
}
|
|
2719
|
+
const methodServices = servicos[chaveMethod];
|
|
2720
|
+
const methodUrl = this.getLatestURLConsulta(methodServices, method);
|
|
2721
|
+
const soapServices = servicos[chaveSoap];
|
|
2722
|
+
const soapUrl = this.getLatestURLConsulta(soapServices, method);
|
|
2723
|
+
// soapInfo não é usado, mas mantido para compatibilidade
|
|
2724
|
+
// const soapInfo = {
|
|
2725
|
+
// method: methodUrl,
|
|
2726
|
+
// action: soapUrl,
|
|
2727
|
+
// };
|
|
2728
|
+
logger.info(`Buscando URL's do webservice`, {
|
|
2729
|
+
context: 'GerarConsulta',
|
|
2730
|
+
chaveSoap,
|
|
2731
|
+
chaveMethod,
|
|
2732
|
+
NFeServicosUrl: 'src/core/config/NFeServicosUrl.json'
|
|
2733
|
+
});
|
|
2734
|
+
if (!methodUrl || !soapUrl) {
|
|
2735
|
+
throw new Error("Método não encontrado no arquivo de configuração SOAP.");
|
|
2736
|
+
}
|
|
2737
|
+
return {
|
|
2738
|
+
method: methodUrl,
|
|
2739
|
+
action: soapUrl,
|
|
2740
|
+
};
|
|
2741
|
+
}
|
|
2742
|
+
/**
|
|
2743
|
+
* Método para calcular o hash do CSRT
|
|
2744
|
+
* @param {string} CSRT - CSRT
|
|
2745
|
+
* @param {string} chaveAcesso - Chave de acesso
|
|
2746
|
+
* @returns {string} Hash do CSRT
|
|
2747
|
+
*/
|
|
2748
|
+
calcularHashCSRT(CSRT, chaveAcesso) {
|
|
2749
|
+
const entrada = CSRT + chaveAcesso;
|
|
2750
|
+
return createHash('sha1').update(entrada, 'utf8').digest('base64');
|
|
2751
|
+
}
|
|
2752
|
+
/**
|
|
2753
|
+
* Marco, adicionei este metodo para concatenar todas url incluido as na Usar, mas no fim nao precisei usar por enquanto
|
|
2754
|
+
* @param chave
|
|
2755
|
+
* @returns
|
|
2756
|
+
*/
|
|
2757
|
+
getLatestURLConsultaFix(chave) {
|
|
2758
|
+
const urls = NFeServicosUrl;
|
|
2759
|
+
const temp_urls = { ...urls[chave] };
|
|
2760
|
+
if ('Usar' in temp_urls) {
|
|
2761
|
+
const referencedChave = temp_urls['Usar'];
|
|
2762
|
+
const referencedUrls = urls[referencedChave] || {};
|
|
2763
|
+
Object.keys(referencedUrls).forEach((key) => {
|
|
2764
|
+
if (!(key in temp_urls)) {
|
|
2765
|
+
temp_urls[key] = referencedUrls[key];
|
|
2766
|
+
}
|
|
2767
|
+
});
|
|
2768
|
+
delete temp_urls['Usar'];
|
|
2769
|
+
}
|
|
2770
|
+
return temp_urls;
|
|
2771
|
+
}
|
|
2772
|
+
getLatestURLConsulta(data, metodo) {
|
|
2773
|
+
// Obtem todas as chaves do objeto
|
|
2774
|
+
const keys = Object.keys(data);
|
|
2775
|
+
// Monta o prefixo dinâmico com base no método fornecido
|
|
2776
|
+
const prefix = `${metodo}_`;
|
|
2777
|
+
// Filtra as chaves que começam com o prefixo dinâmico e extrai as versões
|
|
2778
|
+
const versions = keys
|
|
2779
|
+
.map(key => {
|
|
2780
|
+
const match = key.match(new RegExp(`^${prefix}(\\d+\\.\\d+)$`));
|
|
2781
|
+
return match ? parseFloat(match[1]) : null; // Extrai a versão como número
|
|
2782
|
+
})
|
|
2783
|
+
.filter(version => version !== null) // Remove versões que não existem
|
|
2784
|
+
.sort((a, b) => b - a); // Ordena em ordem decrescente
|
|
2785
|
+
// Busca a primeira URL que corresponder à versão mais alta
|
|
2786
|
+
for (let version of versions) {
|
|
2787
|
+
const key = `${prefix}${version.toFixed(2)}`; // Formata a chave
|
|
2788
|
+
if (data[key]) {
|
|
2789
|
+
return data[key]; // Retorna a URL encontrada
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
// Caso não encontre nenhuma versão numerada, retorna a URL sem versão
|
|
2793
|
+
return data[metodo] || null;
|
|
2794
|
+
}
|
|
2795
|
+
;
|
|
2796
|
+
/**
|
|
2797
|
+
* Define o ambiente (UF e Produção ou Homologação) para geração das chaves de recuperação da URL do webservice
|
|
2798
|
+
*/
|
|
2799
|
+
setAmbiente(metodo, ambienteNacional = false, versao, mod) {
|
|
2800
|
+
const config = this.environment.getConfig();
|
|
2801
|
+
if (!config.ambiente) {
|
|
2802
|
+
throw new Error('Configuração de ambiente não encontrada. É necessária para operações de NFe/NFCe.');
|
|
2803
|
+
}
|
|
2804
|
+
const ambiente = config.ambiente === 2 ? 'H' : 'P';
|
|
2805
|
+
const versaoDF = versao !== "" ? versao : config.versaoDF;
|
|
2806
|
+
if (ambienteNacional) {
|
|
2807
|
+
const chaveMae = `${mod}_AN_${ambiente}`;
|
|
2808
|
+
const chaveFilha = `${metodo}_${versaoDF}`;
|
|
2809
|
+
return { chaveMae, chaveFilha };
|
|
2810
|
+
}
|
|
2811
|
+
const chaveMae = `${mod}_${config.UF}_${ambiente}`;
|
|
2812
|
+
const chaveFilha = `${metodo}_${versaoDF}`;
|
|
2813
|
+
return { chaveMae, chaveFilha };
|
|
2814
|
+
}
|
|
2815
|
+
/**
|
|
2816
|
+
* Retorna a url correta do webservice
|
|
2817
|
+
*/
|
|
2818
|
+
getWebServiceUrl(metodo, ambienteNacional = false, versao = "", mod = "NFe") {
|
|
2819
|
+
// Detecta se é CTe
|
|
2820
|
+
const isCTe = metodo.startsWith('CTe');
|
|
2821
|
+
if (isCTe) {
|
|
2822
|
+
const cteUrls = CTeServicosUrl;
|
|
2823
|
+
const config = this.environment.getConfig();
|
|
2824
|
+
if (!config.ambiente) {
|
|
2825
|
+
throw new Error('Configuração de ambiente não encontrada. É necessária para operações de CTe.');
|
|
2826
|
+
}
|
|
2827
|
+
const ambiente = config.ambiente === 1 ? 'P' : 'H';
|
|
2828
|
+
const chave = `CTe_AN_${ambiente}`; // AN = Ambiente Nacional
|
|
2829
|
+
const metodoComVersao = `${metodo}_${versao}`;
|
|
2830
|
+
const url = cteUrls[chave] && cteUrls[chave][metodoComVersao];
|
|
2831
|
+
if (!url) {
|
|
2832
|
+
throw new Error(`Não foi possível recuperar a url para o webservice CTe: ${metodoComVersao} no ambiente ${ambiente}`);
|
|
2833
|
+
}
|
|
2834
|
+
return url;
|
|
2835
|
+
}
|
|
2836
|
+
// Lógica existente para NFe
|
|
2837
|
+
let { chaveMae, chaveFilha } = this.setAmbiente(metodo, ambienteNacional, versao, mod);
|
|
2838
|
+
const urls = NFeServicosUrl;
|
|
2839
|
+
if ('Usar' in urls[chaveMae])
|
|
2840
|
+
chaveMae = urls[chaveMae].Usar;
|
|
2841
|
+
const url = urls[chaveMae] && urls[chaveMae][chaveFilha];
|
|
2842
|
+
if (!url) {
|
|
2843
|
+
throw new Error(`Não foi possível recuperar a url para o webservice: ${chaveFilha}`);
|
|
2844
|
+
}
|
|
2845
|
+
return url;
|
|
2846
|
+
}
|
|
2847
|
+
getUrlNFCe(metodo, ambienteNacional = false, versao = "") {
|
|
2848
|
+
// NFCe usa a mesma configuração base que NFe
|
|
2849
|
+
// const config = this.environment.getConfig();
|
|
2850
|
+
// if (!config.nfe) {
|
|
2851
|
+
// throw new Error('Configuração NFe não encontrada. É necessária para operações de NFCe.');
|
|
2852
|
+
// }
|
|
2853
|
+
let { chaveMae } = this.setAmbiente(metodo, ambienteNacional, versao, 'NFCe');
|
|
2854
|
+
const urls = NFeServicosUrl;
|
|
2855
|
+
// removendo este codigo funciona
|
|
2856
|
+
// if ('Usar' in urls[chaveMae]){
|
|
2857
|
+
// chaveMae = urls[chaveMae].Usar
|
|
2858
|
+
// }
|
|
2859
|
+
// const tempUrls = this.getLatestURLConsultaFix(chaveMae);
|
|
2860
|
+
// const urlnew =tempUrls[metodo];
|
|
2861
|
+
// const chaveFilha = this.getLatestURLConsulta(urls[chaveMae], metodo);
|
|
2862
|
+
const url = urls[chaveMae] && this.getLatestURLConsulta(urls[chaveMae], metodo);
|
|
2863
|
+
if (!url) {
|
|
2864
|
+
throw new Error(`Não foi possível recuperar a url para consulta de NFCe: ${chaveMae}`);
|
|
2865
|
+
}
|
|
2866
|
+
return url;
|
|
2867
|
+
}
|
|
2868
|
+
/**
|
|
2869
|
+
* Retorna a url correta do webservice NFSe
|
|
2870
|
+
* NFSe usa REST API, não SOAP
|
|
2871
|
+
*/
|
|
2872
|
+
getWebServiceUrlNFSe(metodo) {
|
|
2873
|
+
const nfseUrls = NFSeServicosUrl;
|
|
2874
|
+
const config = this.environment.getConfig();
|
|
2875
|
+
// Usa a configuração específica de NFSe se disponível
|
|
2876
|
+
if (!config.ambiente) {
|
|
2877
|
+
throw new Error('Configuração de ambiente não encontrada. É necessária para operações de NFSe.');
|
|
2878
|
+
}
|
|
2879
|
+
const ambiente = config.ambiente === 1 ? 'P' : 'H';
|
|
2880
|
+
const chave = `NFSe_AN_${ambiente}`; // AN = Ambiente Nacional
|
|
2881
|
+
const url = nfseUrls[chave] && nfseUrls[chave][metodo];
|
|
2882
|
+
if (!url) {
|
|
2883
|
+
throw new Error(`Não foi possível recuperar a url para o webservice NFSe: ${metodo} no ambiente ${ambiente}`);
|
|
2884
|
+
}
|
|
2885
|
+
return url;
|
|
2886
|
+
}
|
|
2887
|
+
/**
|
|
2888
|
+
* Função para validar XML com Schema
|
|
2889
|
+
*/
|
|
2890
|
+
formatErrorMessage(message) {
|
|
2891
|
+
// Esta função extrai e formata a mensagem de erro
|
|
2892
|
+
const regex = /\[error\]\s(.+?)\:\s(.+?)\s\((\d+):(\d+)\)/;
|
|
2893
|
+
const match = message.match(regex);
|
|
2894
|
+
if (match) {
|
|
2895
|
+
const [_, errorCode, errorDescription, line, column] = match;
|
|
2896
|
+
return `Erro na Validação do XML: ${errorCode} na linha ${line}, coluna ${column}. Descrição: ${errorDescription}`;
|
|
2897
|
+
}
|
|
2898
|
+
else {
|
|
2899
|
+
return `Erro Não Identificado na Validação do XML: ${message}`; // Retorna a mensagem original se ela não corresponder ao formato esperado
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
validateSchemaJsBased(xml, metodo) {
|
|
2903
|
+
return new Promise(async (resolve, reject) => {
|
|
2904
|
+
try {
|
|
2905
|
+
const { basePath, schemaPath } = getSchema(metodo);
|
|
2906
|
+
const completeXSD = await xsdAssembler.assemble(schemaPath);
|
|
2907
|
+
const xmlDoc = libxmljs.parseXml(xml);
|
|
2908
|
+
const xsdDoc = libxmljs.parseXml(completeXSD, { baseUrl: `${basePath}/` });
|
|
2909
|
+
const isValid = xmlDoc.validate(xsdDoc);
|
|
2910
|
+
if (isValid) {
|
|
2911
|
+
resolve({
|
|
2912
|
+
success: true,
|
|
2913
|
+
message: 'XML válido.',
|
|
2914
|
+
});
|
|
2915
|
+
}
|
|
2916
|
+
else {
|
|
2917
|
+
reject({
|
|
2918
|
+
success: false,
|
|
2919
|
+
message: this.formatErrorMessage(xmlDoc.validationErrors[0].message),
|
|
2920
|
+
});
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
catch (error) {
|
|
2924
|
+
reject({
|
|
2925
|
+
success: false,
|
|
2926
|
+
message: this.formatErrorMessage(error.message),
|
|
2927
|
+
});
|
|
2928
|
+
}
|
|
2929
|
+
});
|
|
2930
|
+
}
|
|
2931
|
+
validateSchemaJavaBased(xml, metodo) {
|
|
2932
|
+
return new Promise(async (resolve, reject) => {
|
|
2933
|
+
try {
|
|
2934
|
+
// Lazy import to avoid installation issues if postinstall script fails
|
|
2935
|
+
const xsdValidator = await import('xsd-schema-validator');
|
|
2936
|
+
const { schemaPath } = getSchema(metodo);
|
|
2937
|
+
xsdValidator.validateXML(xml, schemaPath, (err, validationResult) => {
|
|
2938
|
+
if (err) {
|
|
2939
|
+
reject({
|
|
2940
|
+
success: false,
|
|
2941
|
+
message: this.formatErrorMessage(err.message),
|
|
2942
|
+
});
|
|
2943
|
+
}
|
|
2944
|
+
else if (!validationResult.valid) {
|
|
2945
|
+
reject({
|
|
2946
|
+
success: false,
|
|
2947
|
+
message: this.formatErrorMessage(validationResult.messages[0]),
|
|
2948
|
+
});
|
|
2949
|
+
}
|
|
2950
|
+
else {
|
|
2951
|
+
resolve({
|
|
2952
|
+
success: true,
|
|
2953
|
+
message: 'XML válido.',
|
|
2954
|
+
});
|
|
2955
|
+
}
|
|
2956
|
+
});
|
|
2957
|
+
}
|
|
2958
|
+
catch (error) {
|
|
2959
|
+
reject({
|
|
2960
|
+
success: false,
|
|
2961
|
+
message: this.formatErrorMessage(error.message || 'Erro ao carregar xsd-schema-validator. Certifique-se de que o pacote está instalado corretamente.'),
|
|
2962
|
+
});
|
|
2963
|
+
}
|
|
2964
|
+
});
|
|
2965
|
+
}
|
|
2966
|
+
verificaRejeicao(data, metodo, name) {
|
|
2967
|
+
logger.info(`Verificando retorno [${metodo}]`, {
|
|
2968
|
+
context: 'Utility',
|
|
2969
|
+
});
|
|
2970
|
+
const responseInJson = this.xmlParser.convertXmlToJson(data, metodo);
|
|
2971
|
+
// Salva XML de retorno
|
|
2972
|
+
this.salvaRetorno(data, responseInJson, metodo, name);
|
|
2973
|
+
// Busca todos os xMotivo no objeto
|
|
2974
|
+
const allXMotivos = this.findAllInObj(responseInJson, 'xMotivo');
|
|
2975
|
+
// Verifica se algum xMotivo contém "Rejeição" ou "Rejeicao"
|
|
2976
|
+
for (const xMotivo of allXMotivos) {
|
|
2977
|
+
if (xMotivo && (xMotivo.includes('Rejeição') || xMotivo.includes('Rejeicao'))) {
|
|
2978
|
+
throw new Error(xMotivo);
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
2981
|
+
// Verifica infProt (mantendo verificação original como fallback)
|
|
2982
|
+
const infProt = this.findInObj(responseInJson, 'infProt');
|
|
2983
|
+
if (infProt && (infProt?.xMotivo?.includes('Rejeição') || infProt?.xMotivo?.includes('Rejeicao'))) {
|
|
2984
|
+
throw new Error(infProt?.xMotivo);
|
|
2985
|
+
}
|
|
2986
|
+
return responseInJson;
|
|
2987
|
+
}
|
|
2988
|
+
getProtNFe(xmlRetorno) {
|
|
2989
|
+
let nRec = '';
|
|
2990
|
+
let protNFe;
|
|
2991
|
+
xml2js.parseString(xmlRetorno, (err, result) => {
|
|
2992
|
+
if (err) {
|
|
2993
|
+
console.error('Erro ao parsear o XML para captura do nRec e protNFe:', err);
|
|
2994
|
+
}
|
|
2995
|
+
else {
|
|
2996
|
+
const nRecTag = this.findInObj(result, 'nRec');
|
|
2997
|
+
nRec = nRecTag[0];
|
|
2998
|
+
const protNFeTag = this.findInObj(result, 'protNFe');
|
|
2999
|
+
protNFe = protNFeTag;
|
|
3000
|
+
}
|
|
3001
|
+
});
|
|
3002
|
+
return {
|
|
3003
|
+
protNFe,
|
|
3004
|
+
nRec
|
|
3005
|
+
};
|
|
3006
|
+
}
|
|
3007
|
+
getRequestLogFileName(metodo, tipo) {
|
|
3008
|
+
switch (metodo) {
|
|
3009
|
+
case 'NFEStatusServico':
|
|
3010
|
+
return `NFeStatusServico-${tipo}`;
|
|
3011
|
+
case 'NFEConsultaProtocolo':
|
|
3012
|
+
return `NFeConsultaProtocolo-${tipo}`;
|
|
3013
|
+
case 'NFeDistribuicaoDFe':
|
|
3014
|
+
return `NFeDistribuicaoDFe-${tipo}`;
|
|
3015
|
+
case 'RecepcaoEvento':
|
|
3016
|
+
return `RecepcaoEvento-${tipo}`;
|
|
3017
|
+
case 'NFECancelamento':
|
|
3018
|
+
return `NFECancelamento-${tipo}`;
|
|
3019
|
+
case 'NFEInutilizacao':
|
|
3020
|
+
return `NFEInutilizacao-${tipo}`;
|
|
3021
|
+
case 'NFEAutorizacao':
|
|
3022
|
+
return `NFEAutorizacao-${tipo}`;
|
|
3023
|
+
case 'NFCEAutorizacao':
|
|
3024
|
+
return `NFCEAutorizacao-${tipo}`;
|
|
3025
|
+
case 'NFERetAutorizacao':
|
|
3026
|
+
return `NFERetAutorizacao-${tipo}`;
|
|
3027
|
+
case 'CTeDistribuicaoDFe':
|
|
3028
|
+
return `CTeDistribuicaoDFe-${tipo}`;
|
|
3029
|
+
default:
|
|
3030
|
+
throw new Error('Erro: Requisição de nome para método não implementado.');
|
|
3031
|
+
}
|
|
3032
|
+
}
|
|
3033
|
+
salvaConsulta(xmlConsulta, xmlFormated, metodo, name) {
|
|
3034
|
+
const fileName = name || this.getRequestLogFileName(metodo, 'consulta');
|
|
3035
|
+
const { armazenarXMLConsulta, pathXMLConsulta, armazenarXMLConsultaComTagSoap } = this.environment.config;
|
|
3036
|
+
const xmlConsultaASalvar = armazenarXMLConsultaComTagSoap ? xmlFormated : xmlConsulta;
|
|
3037
|
+
if (armazenarXMLConsulta) {
|
|
3038
|
+
this.salvaXML({
|
|
3039
|
+
data: xmlConsultaASalvar,
|
|
3040
|
+
fileName,
|
|
3041
|
+
metodo,
|
|
3042
|
+
path: pathXMLConsulta,
|
|
3043
|
+
});
|
|
3044
|
+
}
|
|
3045
|
+
}
|
|
3046
|
+
salvaRetorno(xmlRetorno, responseInJson, metodo, name) {
|
|
3047
|
+
const fileName = name || this.getRequestLogFileName(metodo, 'retorno');
|
|
3048
|
+
const { armazenarXMLRetorno, pathXMLRetorno, armazenarRetornoEmJSON } = this.environment.config;
|
|
3049
|
+
if (armazenarXMLRetorno && xmlRetorno) {
|
|
3050
|
+
this.salvaXML({
|
|
3051
|
+
data: xmlRetorno,
|
|
3052
|
+
fileName,
|
|
3053
|
+
metodo,
|
|
3054
|
+
path: pathXMLRetorno,
|
|
3055
|
+
});
|
|
3056
|
+
if (armazenarRetornoEmJSON && responseInJson) {
|
|
3057
|
+
this.salvaJSON({
|
|
3058
|
+
data: responseInJson,
|
|
3059
|
+
fileName,
|
|
3060
|
+
metodo,
|
|
3061
|
+
path: pathXMLRetorno,
|
|
3062
|
+
});
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
/*
|
|
3069
|
+
* This file is part of Treeunfe DFe.
|
|
3070
|
+
*
|
|
3071
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
3072
|
+
* it under the terms of the GNU General Public License as published by
|
|
3073
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
3074
|
+
* (at your option) any later version.
|
|
3075
|
+
*
|
|
3076
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
3077
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
3078
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
3079
|
+
* GNU General Public License for more details.
|
|
3080
|
+
*
|
|
3081
|
+
* You should have received a copy of the GNU General Public License
|
|
3082
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
3083
|
+
*/
|
|
3084
|
+
class ValidaCPFCNPJ {
|
|
3085
|
+
constructor() { }
|
|
3086
|
+
validarCpfCnpj(cpfCnpj) {
|
|
3087
|
+
if (!cpfCnpj || typeof cpfCnpj !== 'string') {
|
|
3088
|
+
return { documentoValido: false, tipoDoDocumento: 'Desconhecido' };
|
|
3089
|
+
}
|
|
3090
|
+
// Remove apenas máscaras e espaços, mantem letras (para CNPJ-alfa)
|
|
3091
|
+
const clean = cpfCnpj.replace(/[.\-\/\s]/g, '').toUpperCase();
|
|
3092
|
+
const isCpf = /^\d{11}$/.test(clean);
|
|
3093
|
+
// 12 primeiras posições alfanuméricas, 2 últimas obrigatoriamente numéricas
|
|
3094
|
+
const isCnpj = /^[A-Z0-9]{12}[0-9]{2}$/.test(clean);
|
|
3095
|
+
if (!isCpf && !isCnpj) {
|
|
3096
|
+
return { documentoValido: false, tipoDoDocumento: 'Desconhecido' };
|
|
3097
|
+
}
|
|
3098
|
+
if (isCpf) {
|
|
3099
|
+
if (clean === "00000000000") {
|
|
3100
|
+
return { documentoValido: false, tipoDoDocumento: 'CPF' };
|
|
3101
|
+
}
|
|
3102
|
+
if (!this.documentoValidoateCpf(clean)) {
|
|
3103
|
+
return { documentoValido: false, tipoDoDocumento: 'CPF' };
|
|
3104
|
+
}
|
|
3105
|
+
return { documentoValido: true, tipoDoDocumento: 'CPF' };
|
|
3106
|
+
}
|
|
3107
|
+
else {
|
|
3108
|
+
// CNPJ (numérico ou alfa conforme regex)
|
|
3109
|
+
if (!this.documentoValidoateCnpj(clean)) {
|
|
3110
|
+
return { documentoValido: false, tipoDoDocumento: 'CNPJ' };
|
|
3111
|
+
}
|
|
3112
|
+
return { documentoValido: true, tipoDoDocumento: 'CNPJ' };
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
documentoValidoateCpf(cpf) {
|
|
3116
|
+
let sum = 0;
|
|
3117
|
+
let remainder;
|
|
3118
|
+
for (let i = 1; i <= 9; i++) {
|
|
3119
|
+
sum += parseInt(cpf.substring(i - 1, i), 10) * (11 - i);
|
|
3120
|
+
}
|
|
3121
|
+
remainder = (sum * 10) % 11;
|
|
3122
|
+
if ((remainder === 10) || (remainder === 11))
|
|
3123
|
+
remainder = 0;
|
|
3124
|
+
if (remainder !== parseInt(cpf.substring(9, 10), 10))
|
|
3125
|
+
return false;
|
|
3126
|
+
sum = 0;
|
|
3127
|
+
for (let i = 1; i <= 10; i++) {
|
|
3128
|
+
sum += parseInt(cpf.substring(i - 1, i), 10) * (12 - i);
|
|
3129
|
+
}
|
|
3130
|
+
remainder = (sum * 10) % 11;
|
|
3131
|
+
if ((remainder === 10) || (remainder === 11))
|
|
3132
|
+
remainder = 0;
|
|
3133
|
+
if (remainder !== parseInt(cpf.substring(10, 11), 10))
|
|
3134
|
+
return false;
|
|
3135
|
+
return true;
|
|
3136
|
+
}
|
|
3137
|
+
documentoValidoateCnpj(cnpj) {
|
|
3138
|
+
// aceita 14 chars: 12 (alfanum) + 2 (num)
|
|
3139
|
+
if (!/^[A-Z0-9]{12}[0-9]{2}$/.test(cnpj))
|
|
3140
|
+
return false;
|
|
3141
|
+
// rejeita CNPJ zerado (caso numérico)
|
|
3142
|
+
if (cnpj === "00000000000000")
|
|
3143
|
+
return false;
|
|
3144
|
+
// converte cada caractere -> charCode - 48 (conforme NT)
|
|
3145
|
+
const vals = [];
|
|
3146
|
+
for (let i = 0; i < 14; i++) {
|
|
3147
|
+
const ch = cnpj.charAt(i);
|
|
3148
|
+
if (!/[0-9A-Z]/.test(ch))
|
|
3149
|
+
return false; // redundante mas seguro
|
|
3150
|
+
vals.push(cnpj.charCodeAt(i) - 48);
|
|
3151
|
+
}
|
|
3152
|
+
// pesos do CNPJ
|
|
3153
|
+
const pesos1 = [5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2]; // para primeiro DV (12 posições)
|
|
3154
|
+
const pesos2 = [6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2]; // para segundo DV (13 posições)
|
|
3155
|
+
// calcula DV1 a partir das 12 primeiras posições
|
|
3156
|
+
let soma1 = 0;
|
|
3157
|
+
for (let i = 0; i < 12; i++)
|
|
3158
|
+
soma1 += vals[i] * pesos1[i];
|
|
3159
|
+
const resto1 = soma1 % 11;
|
|
3160
|
+
const dv1 = resto1 < 2 ? 0 : 11 - resto1;
|
|
3161
|
+
// verifica com o primeiro DV informado (posição 12)
|
|
3162
|
+
if (dv1 !== vals[12])
|
|
3163
|
+
return false;
|
|
3164
|
+
// calcula DV2 usando as 12 primeiras posições + dv1 calculado (não confiar no dígito informado)
|
|
3165
|
+
const valsParaDV2 = vals.slice(0, 12).concat([dv1]);
|
|
3166
|
+
let soma2 = 0;
|
|
3167
|
+
for (let i = 0; i < 13; i++)
|
|
3168
|
+
soma2 += valsParaDV2[i] * pesos2[i];
|
|
3169
|
+
const resto2 = soma2 % 11;
|
|
3170
|
+
const dv2 = resto2 < 2 ? 0 : 11 - resto2;
|
|
3171
|
+
// compara com o segundo DV informado (posição 13)
|
|
3172
|
+
if (dv2 !== vals[13])
|
|
3173
|
+
return false;
|
|
3174
|
+
return true;
|
|
3175
|
+
}
|
|
3176
|
+
mascaraCnpjCpf(cpfcnpj) {
|
|
3177
|
+
if (!cpfcnpj || typeof cpfcnpj !== 'string')
|
|
3178
|
+
return cpfcnpj;
|
|
3179
|
+
let clean = cpfcnpj.replace(/[.\-\/\s]/g, '').toUpperCase();
|
|
3180
|
+
if (clean.length === 11 && /^\d{11}$/.test(clean)) { // CPF
|
|
3181
|
+
return clean.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/, '$1.$2.$3-$4');
|
|
3182
|
+
}
|
|
3183
|
+
else if (clean.length === 14) { // CNPJ alfa ou numérico
|
|
3184
|
+
return clean.replace(/(.{2})(.{3})(.{3})(.{4})(.{2})/, '$1.$2.$3/$4-$5');
|
|
3185
|
+
}
|
|
3186
|
+
else {
|
|
3187
|
+
return cpfcnpj;
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
function filterFieldsByType(source, requiredFields) {
|
|
3193
|
+
const result = {};
|
|
3194
|
+
for (const key of requiredFields) {
|
|
3195
|
+
if (key in source) {
|
|
3196
|
+
if (source[key] !== '')
|
|
3197
|
+
result[key] = source[key];
|
|
3198
|
+
}
|
|
3199
|
+
}
|
|
3200
|
+
return result;
|
|
3201
|
+
}
|
|
3202
|
+
const COFINSMap = {
|
|
3203
|
+
'01': 'COFINSAliq',
|
|
3204
|
+
'02': 'COFINSAliq',
|
|
3205
|
+
'03': 'COFINSQtde',
|
|
3206
|
+
'04': 'COFINSNT',
|
|
3207
|
+
'05': 'COFINSNT',
|
|
3208
|
+
'06': 'COFINSNT',
|
|
3209
|
+
'07': 'COFINSNT',
|
|
3210
|
+
'08': 'COFINSNT',
|
|
3211
|
+
'09': 'COFINSNT',
|
|
3212
|
+
'49': 'COFINSOutr',
|
|
3213
|
+
'50': 'COFINSOutr',
|
|
3214
|
+
'51': 'COFINSOutr',
|
|
3215
|
+
'52': 'COFINSOutr',
|
|
3216
|
+
'53': 'COFINSOutr',
|
|
3217
|
+
'54': 'COFINSOutr',
|
|
3218
|
+
'55': 'COFINSOutr',
|
|
3219
|
+
'56': 'COFINSOutr',
|
|
3220
|
+
'60': 'COFINSOutr',
|
|
3221
|
+
'61': 'COFINSOutr',
|
|
3222
|
+
'62': 'COFINSOutr',
|
|
3223
|
+
'63': 'COFINSOutr',
|
|
3224
|
+
'64': 'COFINSOutr',
|
|
3225
|
+
'65': 'COFINSOutr',
|
|
3226
|
+
'66': 'COFINSOutr',
|
|
3227
|
+
'67': 'COFINSOutr',
|
|
3228
|
+
'70': 'COFINSOutr',
|
|
3229
|
+
'71': 'COFINSOutr',
|
|
3230
|
+
'72': 'COFINSOutr',
|
|
3231
|
+
'73': 'COFINSOutr',
|
|
3232
|
+
'74': 'COFINSOutr',
|
|
3233
|
+
'75': 'COFINSOutr',
|
|
3234
|
+
'98': 'COFINSOutr',
|
|
3235
|
+
'99': 'COFINSOutr',
|
|
3236
|
+
};
|
|
3237
|
+
const PISMap = {
|
|
3238
|
+
'01': 'PISAliq',
|
|
3239
|
+
'02': 'PISAliq',
|
|
3240
|
+
'03': 'PISQtde',
|
|
3241
|
+
'04': 'PISNT',
|
|
3242
|
+
'05': 'PISNT',
|
|
3243
|
+
'06': 'PISNT',
|
|
3244
|
+
'07': 'PISNT',
|
|
3245
|
+
'08': 'PISNT',
|
|
3246
|
+
'09': 'PISNT',
|
|
3247
|
+
'49': 'PISOutr',
|
|
3248
|
+
'50': 'PISOutr',
|
|
3249
|
+
'51': 'PISOutr',
|
|
3250
|
+
'52': 'PISOutr',
|
|
3251
|
+
'53': 'PISOutr',
|
|
3252
|
+
'54': 'PISOutr',
|
|
3253
|
+
'55': 'PISOutr',
|
|
3254
|
+
'56': 'PISOutr',
|
|
3255
|
+
'60': 'PISOutr',
|
|
3256
|
+
'61': 'PISOutr',
|
|
3257
|
+
'62': 'PISOutr',
|
|
3258
|
+
'63': 'PISOutr',
|
|
3259
|
+
'64': 'PISOutr',
|
|
3260
|
+
'65': 'PISOutr',
|
|
3261
|
+
'66': 'PISOutr',
|
|
3262
|
+
'67': 'PISOutr',
|
|
3263
|
+
'70': 'PISOutr',
|
|
3264
|
+
'71': 'PISOutr',
|
|
3265
|
+
'72': 'PISOutr',
|
|
3266
|
+
'73': 'PISOutr',
|
|
3267
|
+
'74': 'PISOutr',
|
|
3268
|
+
'75': 'PISOutr',
|
|
3269
|
+
'98': 'PISOutr',
|
|
3270
|
+
'99': 'PISOutr',
|
|
3271
|
+
};
|
|
3272
|
+
const ICMSMap = {
|
|
3273
|
+
'00': 'ICMS00',
|
|
3274
|
+
'02': 'ICMS02',
|
|
3275
|
+
'10': 'ICMS10',
|
|
3276
|
+
'20': 'ICMS20',
|
|
3277
|
+
'30': 'ICMS30',
|
|
3278
|
+
'40': 'ICMS40',
|
|
3279
|
+
'41': 'ICMS40',
|
|
3280
|
+
'50': 'ICMS40',
|
|
3281
|
+
'51': 'ICMS51',
|
|
3282
|
+
'60': 'ICMS60',
|
|
3283
|
+
'61': 'ICMS61',
|
|
3284
|
+
'70': 'ICMS70',
|
|
3285
|
+
'90': 'ICMS90',
|
|
3286
|
+
'101': 'ICMSSN101',
|
|
3287
|
+
'102': 'ICMSSN102',
|
|
3288
|
+
'103': 'ICMSSN102',
|
|
3289
|
+
'201': 'ICMSSN201',
|
|
3290
|
+
'202': 'ICMSSN202',
|
|
3291
|
+
'203': 'ICMSSN202',
|
|
3292
|
+
'500': 'ICMSSN500',
|
|
3293
|
+
'900': 'ICMSSN900',
|
|
3294
|
+
};
|
|
3295
|
+
const mountCOFINS = (cofins) => {
|
|
3296
|
+
const { CST } = cofins;
|
|
3297
|
+
const cst_cofins = CST;
|
|
3298
|
+
let cofinsKey = COFINSMap[CST];
|
|
3299
|
+
if (!cofinsKey) {
|
|
3300
|
+
console.warn(`Código de situação tributária do COFINS ${cst_cofins} não é reconhecido. Alterado para padrão 'COFINSAliq'.`);
|
|
3301
|
+
cofinsKey = 'COFINSAliq';
|
|
3302
|
+
}
|
|
3303
|
+
const requiredFields = {
|
|
3304
|
+
COFINSAliq: ['CST', 'vBC', 'pCOFINS', 'vCOFINS'],
|
|
3305
|
+
COFINSQtde: ['CST', 'qBCProd', 'vAliqProd', 'vCOFINS'],
|
|
3306
|
+
COFINSNT: ['CST'],
|
|
3307
|
+
COFINSOutr: ['CST', 'vBC', 'pCOFINS', 'qBCProd', 'vAliqProd', 'vCOFINS'],
|
|
3308
|
+
};
|
|
3309
|
+
if (cofinsKey in requiredFields) {
|
|
3310
|
+
const required = requiredFields[cofinsKey];
|
|
3311
|
+
const cofinsProperties = filterFieldsByType(cofins, required);
|
|
3312
|
+
const cofinsObject = { [cofinsKey]: cofinsProperties };
|
|
3313
|
+
return cofinsObject;
|
|
3314
|
+
}
|
|
3315
|
+
console.warn(`Chave COFINS '${cofinsKey}' não reconhecida.`);
|
|
3316
|
+
return {};
|
|
3317
|
+
};
|
|
3318
|
+
const mountPIS = (pis) => {
|
|
3319
|
+
const { CST } = pis;
|
|
3320
|
+
const cst_pis = CST;
|
|
3321
|
+
let pisKey = PISMap[cst_pis];
|
|
3322
|
+
if (!pisKey) {
|
|
3323
|
+
console.warn(`Código de situação tributária do PIS ${cst_pis} não é reconhecido. Alterado para padrão 'PISAliq'.`);
|
|
3324
|
+
pisKey = 'PISAliq';
|
|
3325
|
+
}
|
|
3326
|
+
const requiredFields = {
|
|
3327
|
+
PISAliq: ['CST', 'vBC', 'pPIS', 'vPIS'],
|
|
3328
|
+
PISQtde: ['CST', 'qBCProd', 'vAliqProd', 'vPIS'],
|
|
3329
|
+
PISNT: ['CST'],
|
|
3330
|
+
PISOutr: ['CST', 'vBC', 'pPIS', 'qBCProd', 'vAliqProd', 'vPIS'],
|
|
3331
|
+
};
|
|
3332
|
+
if (pisKey in requiredFields) {
|
|
3333
|
+
const required = requiredFields[pisKey];
|
|
3334
|
+
const pisProperties = filterFieldsByType(pis, required);
|
|
3335
|
+
const pisObject = { [pisKey]: pisProperties };
|
|
3336
|
+
return pisObject;
|
|
3337
|
+
}
|
|
3338
|
+
console.warn(`Chave PIS '${pisKey}' não reconhecida.`);
|
|
3339
|
+
return {};
|
|
3340
|
+
};
|
|
3341
|
+
const mountICMS = (icms) => {
|
|
3342
|
+
const { CST, CSOSN } = icms;
|
|
3343
|
+
let cod_sit = CST;
|
|
3344
|
+
if (CST?.trim()?.length > 0) {
|
|
3345
|
+
cod_sit = CST.length > 2 ? CST.substring(1, 3) : CST;
|
|
3346
|
+
}
|
|
3347
|
+
else if (CSOSN) {
|
|
3348
|
+
CSOSN?.trim()?.length > 3 ? cod_sit = CSOSN.substring(1, 4) : cod_sit = String(CSOSN);
|
|
3349
|
+
}
|
|
3350
|
+
let icmsKey = ICMSMap[cod_sit];
|
|
3351
|
+
if (!icmsKey) {
|
|
3352
|
+
console.warn(`Código de situação tributária ${cod_sit} não é reconhecido. Alterado para padrão 'ICMS00'.`);
|
|
3353
|
+
icmsKey = 'ICMS00';
|
|
3354
|
+
}
|
|
3355
|
+
const requiredFields = {
|
|
3356
|
+
ICMS00: ['orig', 'CST', 'modBC', 'vBC', 'pICMS', 'vICMS', 'pFCP', 'vFCP'],
|
|
3357
|
+
ICMS02: ['orig', 'CST', 'qBCMono', 'adRemICMS', 'vICMSMono'],
|
|
3358
|
+
ICMS10: ['orig', 'CST', 'modBC', 'vBC', 'pICMS', 'vICMS', 'vBCFCP', 'pFCP', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'vICMSSTDeson', 'motDesICMSST'],
|
|
3359
|
+
ICMS15: ['orig', 'CST', 'qBCMono', 'adRemICMS', 'vICMSMono', 'qBCMonoReten', 'adRemICMSReten', 'vICMSMonoReten', 'pRedAdRem', 'motRedAdRem'],
|
|
3360
|
+
ICMS20: ['orig', 'CST', 'modBC', 'pRedBC', 'vBC', 'pICMS', 'vICMS', 'vBCFCP', 'pFCP', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson'],
|
|
3361
|
+
ICMS30: ['orig', 'CST', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'vBCFCPST', 'pFCPST', 'vFCPST', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson'],
|
|
3362
|
+
ICMS40: ['orig', 'CST', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson'],
|
|
3363
|
+
ICMS41: ['orig', 'CST', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson'],
|
|
3364
|
+
ICMS50: ['orig', 'CST', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson'],
|
|
3365
|
+
ICMS51: ['orig', 'CST', 'modBC', 'pRedBC', 'vBC', 'pICMS', 'vICMS', 'vICMSOp', 'pDif', 'vICMSDif'],
|
|
3366
|
+
ICMS53: ['orig', 'CST', 'qBCMono', 'adRemICMS', 'vICMSMonoOp', 'pDif', 'vICMSMonoDif', 'vICMSMono', 'qBCMonoDif', 'adRemICMSDif'],
|
|
3367
|
+
ICMS60: ['orig', 'CST', 'vBCSTRet', 'pST', 'vICMSSubstituto', 'vICMSSTRet', 'vBCFCPSTRet', 'pFCPSTRet', 'vFCPSTRet', 'pRedBCEfet', 'vBCEfet', 'pICMSEfet', 'vICMSEfet'],
|
|
3368
|
+
ICMS61: ['orig', 'CST', 'qBCMonoRet', 'adRemICMSRet', 'vICMSMonoRet'],
|
|
3369
|
+
ICMS70: ['orig', 'CST', 'modBC', 'pRedBC', 'vBC', 'pICMS', 'vICMS', 'vBCST', 'pICMSST', 'vICMSST', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson', 'modBCST', 'pMVAST', 'pRedBCST'],
|
|
3370
|
+
ICMS90: ['orig', 'CST', 'modBC', 'vBC', 'pRedBC', 'pICMS', 'vICMS', 'vBCFCP', 'pFCP', 'vFCP', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'vBCFCPST', 'pFCPST', 'vFCPST', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson'],
|
|
3371
|
+
ICMSPart: ['orig', 'CST', 'modBC', 'vBC', 'pRedBC', 'pICMS', 'vICMS', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'pBCOp', 'UFST', 'vBCFCPST', 'pFCPST', 'vFCPST'],
|
|
3372
|
+
ICMSST: ['orig', 'CST', 'vBCSTRet', 'pST', 'vICMSSubstituto', 'vICMSSTRet', 'vBCFCPSTRet', 'pFCPSTRet', 'vFCPSTRet', 'vBCSTDest', 'vICMSSTDest'],
|
|
3373
|
+
ICMSSN101: ['orig', 'CSOSN', 'pCredSN', 'vCredICMSSN'],
|
|
3374
|
+
ICMSSN102: ['orig', 'CSOSN'],
|
|
3375
|
+
ICMSSN201: ['orig', 'CSOSN', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'pFCPST', 'vFCPST'],
|
|
3376
|
+
ICMSSN202: ['orig', 'CSOSN', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'vFCPST', 'vBCFCPST', 'pFCPST'],
|
|
3377
|
+
ICMSSN500: ['orig', 'CSOSN', 'vBCSTRet', 'pST', 'vICMSSubstituto', 'vICMSSTRet', 'vBCFCPSTRet', 'pFCPSTRet', 'vFCPSTRet', 'pRedBCEfet', 'vBCEfet', 'pICMSEfet', 'vICMSEfet'],
|
|
3378
|
+
ICMSSN900: ['orig', 'CSOSN', 'modBC', 'vBC', 'pRedBC', 'pICMS', 'vICMS', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'vBCFCPST', 'pFCPST', 'vFCPST', 'pCredSN', 'vCredICMSSN'],
|
|
3379
|
+
};
|
|
3380
|
+
if (icmsKey in requiredFields) {
|
|
3381
|
+
// Obtém os campos obrigatórios para o tipo ICMS
|
|
3382
|
+
const required = requiredFields[icmsKey];
|
|
3383
|
+
// Filtra as propriedades do item de acordo com os campos obrigatórios do tipo ICMS
|
|
3384
|
+
const icmsProperties = filterFieldsByType(icms, required);
|
|
3385
|
+
// Monta o objeto ICMS usando a chave dinâmica e as propriedades filtradas
|
|
3386
|
+
const icmsObject = { [icmsKey]: icmsProperties };
|
|
3387
|
+
return icmsObject;
|
|
3388
|
+
}
|
|
3389
|
+
console.warn(`Chave ICMS '${icmsKey}' não reconhecida.`);
|
|
3390
|
+
return {};
|
|
3391
|
+
};
|
|
3392
|
+
|
|
3393
|
+
class BaseNFe {
|
|
3394
|
+
constructor(environment, utility, xmlBuilder, metodo, axios, saveFiles, gerarConsulta) {
|
|
3395
|
+
this.environment = environment;
|
|
3396
|
+
this.utility = utility;
|
|
3397
|
+
this.xmlBuilder = xmlBuilder;
|
|
3398
|
+
this.metodo = metodo;
|
|
3399
|
+
this.axios = axios;
|
|
3400
|
+
this.saveFiles = saveFiles;
|
|
3401
|
+
this.gerarConsulta = gerarConsulta;
|
|
3402
|
+
this.chaveNfe = "";
|
|
3403
|
+
this.modelo = 'NFe';
|
|
3404
|
+
}
|
|
3405
|
+
/**
|
|
3406
|
+
* Método de geração do XML - Deve ser implementado pelas subclasses
|
|
3407
|
+
*/
|
|
3408
|
+
gerarXml(_data) {
|
|
3409
|
+
throw new Error("O método 'gerarXml' não foi implementado na subclasse.");
|
|
3410
|
+
}
|
|
3411
|
+
setContentType() {
|
|
3412
|
+
const UF = this.environment.config.UF;
|
|
3413
|
+
const ufsAppSoad = ['MG', 'GO', 'MT', 'MS', 'AM', 'DF'];
|
|
3414
|
+
if (ufsAppSoad.includes(UF)) {
|
|
3415
|
+
return 'application/soap+xml';
|
|
3416
|
+
}
|
|
3417
|
+
return 'text/xml; charset=utf-8';
|
|
3418
|
+
}
|
|
3419
|
+
async callWebService(xmlConsulta, webServiceUrl, ContentType, action, agent) {
|
|
3420
|
+
const startTime = Date.now();
|
|
3421
|
+
const headers = {
|
|
3422
|
+
'Content-Type': ContentType,
|
|
3423
|
+
};
|
|
3424
|
+
logger.http('Iniciando comunicação com o webservice', {
|
|
3425
|
+
context: `BaseNFe`,
|
|
3426
|
+
method: this.metodo,
|
|
3427
|
+
url: webServiceUrl,
|
|
3428
|
+
action,
|
|
3429
|
+
headers,
|
|
3430
|
+
});
|
|
3431
|
+
const response = await this.axios.post(webServiceUrl, xmlConsulta, {
|
|
3432
|
+
headers,
|
|
3433
|
+
httpsAgent: agent
|
|
3434
|
+
});
|
|
3435
|
+
const duration = Date.now() - startTime;
|
|
3436
|
+
logger.http('Comunicação concluída com sucesso', {
|
|
3437
|
+
context: `BaseNFe`,
|
|
3438
|
+
method: this.metodo,
|
|
3439
|
+
duration: `${duration}ms`,
|
|
3440
|
+
responseSize: response.data ? JSON.stringify(response.data).length : 0
|
|
3441
|
+
});
|
|
3442
|
+
return response;
|
|
3443
|
+
}
|
|
3444
|
+
/**
|
|
3445
|
+
* Método para obter o modelo
|
|
3446
|
+
*/
|
|
3447
|
+
getModelo(_data) {
|
|
3448
|
+
return this.modelo || 'NFe';
|
|
3449
|
+
}
|
|
3450
|
+
/**
|
|
3451
|
+
* Executa a requisição ao webservice SEFAZ
|
|
3452
|
+
* @param {any} [data] - Dados opcionais usados para gerar o XML em algumas subclasses.
|
|
3453
|
+
* @returns {Promise<any>} A resposta do webservice em JSON.
|
|
3454
|
+
*/
|
|
3455
|
+
async Exec(data) {
|
|
3456
|
+
let xmlConsulta = '';
|
|
3457
|
+
let xmlConsultaSoap = '';
|
|
3458
|
+
// webServiceUrlTmp não é usado, mas mantido para compatibilidade
|
|
3459
|
+
// let webServiceUrlTmp: string = '';
|
|
3460
|
+
let responseInJson = undefined;
|
|
3461
|
+
let xmlRetorno = {};
|
|
3462
|
+
const ContentType = this.setContentType();
|
|
3463
|
+
try {
|
|
3464
|
+
// Gerando XML específico
|
|
3465
|
+
xmlConsulta = this.gerarXml(data);
|
|
3466
|
+
const modelo = this.getModelo(data);
|
|
3467
|
+
const { xmlFormated, agent, webServiceUrl, action } = await this.gerarConsulta.gerarConsulta(xmlConsulta, this.metodo, undefined, undefined, modelo);
|
|
3468
|
+
xmlConsultaSoap = xmlFormated;
|
|
3469
|
+
// webServiceUrlTmp não é usado, mas mantido para compatibilidade
|
|
3470
|
+
// webServiceUrlTmp = webServiceUrl;
|
|
3471
|
+
const xmlRetorno = await this.callWebService(xmlFormated, webServiceUrl, ContentType, action, agent);
|
|
3472
|
+
// Instanciando classe de utilitários com lib xml-js e convertendo XML para XmlParser
|
|
3473
|
+
const json = new XmlParser();
|
|
3474
|
+
responseInJson = json.convertXmlToJson(xmlRetorno.data, this.metodo);
|
|
3475
|
+
// Gera erro em caso de Rejeição
|
|
3476
|
+
if (responseInJson && responseInJson.xMotivo && responseInJson.xMotivo.includes('Rejeição')) {
|
|
3477
|
+
throw new Error(responseInJson.xMotivo);
|
|
3478
|
+
}
|
|
3479
|
+
return responseInJson;
|
|
3480
|
+
}
|
|
3481
|
+
finally {
|
|
3482
|
+
this.saveFiles.salvaArquivos(xmlConsulta, responseInJson, xmlRetorno, this.metodo, xmlConsultaSoap);
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
}
|
|
3486
|
+
|
|
3487
|
+
class BaseNFSe {
|
|
3488
|
+
constructor(environment, utility, xmlBuilder, metodo, axios, saveFiles, gerarConsulta) {
|
|
3489
|
+
this.environment = environment;
|
|
3490
|
+
this.utility = utility;
|
|
3491
|
+
this.xmlBuilder = xmlBuilder;
|
|
3492
|
+
this.metodo = metodo;
|
|
3493
|
+
this.axios = axios;
|
|
3494
|
+
this.saveFiles = saveFiles;
|
|
3495
|
+
this.gerarConsulta = gerarConsulta;
|
|
3496
|
+
}
|
|
3497
|
+
/**
|
|
3498
|
+
* Método de preparação dos dados - Deve ser implementado pelas subclasses
|
|
3499
|
+
*/
|
|
3500
|
+
prepararDados(_data) {
|
|
3501
|
+
throw new Error("O método 'prepararDados' não foi implementado na subclasse.");
|
|
3502
|
+
}
|
|
3503
|
+
/**
|
|
3504
|
+
* Método para obter a URL base do webservice
|
|
3505
|
+
*/
|
|
3506
|
+
getWebServiceUrl() {
|
|
3507
|
+
return this.utility.getWebServiceUrlNFSe(this.metodo);
|
|
3508
|
+
}
|
|
3509
|
+
/**
|
|
3510
|
+
* Método para obter o método HTTP (GET, POST, etc)
|
|
3511
|
+
*/
|
|
3512
|
+
getHttpMethod() {
|
|
3513
|
+
return 'POST'; // Padrão para NFSe
|
|
3514
|
+
}
|
|
3515
|
+
/**
|
|
3516
|
+
* Método para obter o path adicional da URL (ex: /nfse/{chaveAcesso})
|
|
3517
|
+
*/
|
|
3518
|
+
getUrlPath(_data) {
|
|
3519
|
+
return '';
|
|
3520
|
+
}
|
|
3521
|
+
/**
|
|
3522
|
+
* Método para obter query parameters
|
|
3523
|
+
*/
|
|
3524
|
+
getQueryParams(_data) {
|
|
3525
|
+
return {};
|
|
3526
|
+
}
|
|
3527
|
+
/**
|
|
3528
|
+
* Executa a requisição ao webservice NFSe (REST API)
|
|
3529
|
+
* @param {any} [data] - Dados opcionais usados para preparar a requisição.
|
|
3530
|
+
* @returns {Promise<any>} A resposta do webservice em JSON.
|
|
3531
|
+
*/
|
|
3532
|
+
async Exec(data) {
|
|
3533
|
+
let requestData = null;
|
|
3534
|
+
let webServiceUrl = '';
|
|
3535
|
+
let responseInJson = undefined;
|
|
3536
|
+
let response = {};
|
|
3537
|
+
let errorResponse = null;
|
|
3538
|
+
try {
|
|
3539
|
+
// Prepara dados específicos
|
|
3540
|
+
requestData = this.prepararDados(data);
|
|
3541
|
+
// Obtém URL base
|
|
3542
|
+
const baseUrl = this.getWebServiceUrl();
|
|
3543
|
+
const path = this.getUrlPath(data);
|
|
3544
|
+
const queryParams = this.getQueryParams(data);
|
|
3545
|
+
// Monta URL completa
|
|
3546
|
+
webServiceUrl = baseUrl + path;
|
|
3547
|
+
if (Object.keys(queryParams).length > 0) {
|
|
3548
|
+
const queryString = new URLSearchParams(queryParams).toString();
|
|
3549
|
+
webServiceUrl += `?${queryString}`;
|
|
3550
|
+
}
|
|
3551
|
+
const httpMethod = this.getHttpMethod();
|
|
3552
|
+
logger.http('Iniciando comunicação com o webservice NFSe', {
|
|
3553
|
+
context: `BaseNFSe`,
|
|
3554
|
+
method: this.metodo,
|
|
3555
|
+
httpMethod,
|
|
3556
|
+
url: webServiceUrl,
|
|
3557
|
+
});
|
|
3558
|
+
// Executa requisição REST
|
|
3559
|
+
// Obtém o agent HTTPS do environment para garantir autenticação mútua TLS
|
|
3560
|
+
const agent = this.environment.getHttpAgent();
|
|
3561
|
+
const requestConfig = {
|
|
3562
|
+
headers: {
|
|
3563
|
+
'Content-Type': 'application/json',
|
|
3564
|
+
'Accept': 'application/json',
|
|
3565
|
+
},
|
|
3566
|
+
// Garante que o httpsAgent seja usado explicitamente para autenticação mútua TLS
|
|
3567
|
+
httpsAgent: agent
|
|
3568
|
+
};
|
|
3569
|
+
if (httpMethod === 'GET') {
|
|
3570
|
+
response = await this.axios.get(webServiceUrl, requestConfig);
|
|
3571
|
+
}
|
|
3572
|
+
else if (httpMethod === 'POST') {
|
|
3573
|
+
response = await this.axios.post(webServiceUrl, requestData, requestConfig);
|
|
3574
|
+
}
|
|
3575
|
+
else if (httpMethod === 'PUT') {
|
|
3576
|
+
response = await this.axios.put(webServiceUrl, requestData, requestConfig);
|
|
3577
|
+
}
|
|
3578
|
+
else if (httpMethod === 'DELETE') {
|
|
3579
|
+
response = await this.axios.delete(webServiceUrl, requestConfig);
|
|
3580
|
+
}
|
|
3581
|
+
logger.http('Comunicação concluída com sucesso', {
|
|
3582
|
+
context: `BaseNFSe`,
|
|
3583
|
+
method: this.metodo,
|
|
3584
|
+
responseSize: response.data ? JSON.stringify(response.data).length : 0
|
|
3585
|
+
});
|
|
3586
|
+
// NFSe retorna JSON diretamente
|
|
3587
|
+
responseInJson = response.data;
|
|
3588
|
+
// Verifica se há erros na resposta
|
|
3589
|
+
if (responseInJson) {
|
|
3590
|
+
if (responseInJson.erros && Array.isArray(responseInJson.erros) && responseInJson.erros.length > 0) {
|
|
3591
|
+
const primeiroErro = responseInJson.erros[0];
|
|
3592
|
+
const mensagemErro = primeiroErro.descricao || primeiroErro.Descricao || 'Erro desconhecido';
|
|
3593
|
+
throw new Error(mensagemErro);
|
|
3594
|
+
}
|
|
3595
|
+
if (responseInJson.Erros && Array.isArray(responseInJson.Erros) && responseInJson.Erros.length > 0) {
|
|
3596
|
+
const primeiroErro = responseInJson.Erros[0];
|
|
3597
|
+
const mensagemErro = primeiroErro.Descricao || primeiroErro.descricao || 'Erro desconhecido';
|
|
3598
|
+
throw new Error(mensagemErro);
|
|
3599
|
+
}
|
|
3600
|
+
}
|
|
3601
|
+
return responseInJson || {};
|
|
3602
|
+
}
|
|
3603
|
+
catch (error) {
|
|
3604
|
+
// Armazena a resposta de erro para uso no finally
|
|
3605
|
+
errorResponse = error.response;
|
|
3606
|
+
// Tenta extrair mais informações do erro
|
|
3607
|
+
let errorMessage = error.message || 'Erro desconhecido';
|
|
3608
|
+
let errorDetails = {};
|
|
3609
|
+
if (error.response) {
|
|
3610
|
+
// Erro de resposta HTTP
|
|
3611
|
+
errorDetails = {
|
|
3612
|
+
status: error.response.status,
|
|
3613
|
+
statusText: error.response.statusText,
|
|
3614
|
+
headers: error.response.headers,
|
|
3615
|
+
data: error.response.data
|
|
3616
|
+
};
|
|
3617
|
+
// Tenta extrair mensagem do body da resposta
|
|
3618
|
+
if (error.response.data) {
|
|
3619
|
+
if (typeof error.response.data === 'string') {
|
|
3620
|
+
errorMessage = `HTTP ${error.response.status}: ${error.response.data}`;
|
|
3621
|
+
}
|
|
3622
|
+
else if (error.response.data.message) {
|
|
3623
|
+
errorMessage = error.response.data.message;
|
|
3624
|
+
}
|
|
3625
|
+
else if (error.response.data.descricao) {
|
|
3626
|
+
errorMessage = error.response.data.descricao;
|
|
3627
|
+
}
|
|
3628
|
+
else if (error.response.data.Descricao) {
|
|
3629
|
+
errorMessage = error.response.data.Descricao;
|
|
3630
|
+
}
|
|
3631
|
+
else {
|
|
3632
|
+
errorMessage = `HTTP ${error.response.status}: ${JSON.stringify(error.response.data)}`;
|
|
3633
|
+
}
|
|
3634
|
+
}
|
|
3635
|
+
else {
|
|
3636
|
+
errorMessage = `HTTP ${error.response.status}: ${error.response.statusText}`;
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3639
|
+
else if (error.request) {
|
|
3640
|
+
// Erro de requisição (sem resposta)
|
|
3641
|
+
errorDetails = {
|
|
3642
|
+
request: 'Requisição enviada mas sem resposta do servidor'
|
|
3643
|
+
};
|
|
3644
|
+
}
|
|
3645
|
+
logger.error('Erro na comunicação com webservice NFSe', {
|
|
3646
|
+
error: error.message,
|
|
3647
|
+
details: errorDetails,
|
|
3648
|
+
url: webServiceUrl
|
|
3649
|
+
}, {
|
|
3650
|
+
context: `BaseNFSe`,
|
|
3651
|
+
method: this.metodo,
|
|
3652
|
+
});
|
|
3653
|
+
// Cria um erro mais informativo
|
|
3654
|
+
const enhancedError = new Error(errorMessage);
|
|
3655
|
+
enhancedError.status = error.response?.status;
|
|
3656
|
+
enhancedError.response = error.response;
|
|
3657
|
+
throw enhancedError;
|
|
3658
|
+
}
|
|
3659
|
+
finally {
|
|
3660
|
+
// Salva arquivos de log
|
|
3661
|
+
const config = this.environment.getConfig();
|
|
3662
|
+
try {
|
|
3663
|
+
// Salva XML da consulta (quando disponível na resposta)
|
|
3664
|
+
if (config.armazenarXMLConsulta) {
|
|
3665
|
+
const retornoData = response?.data || errorResponse?.data || {};
|
|
3666
|
+
// Para consultas GET, não há requestData, mas podemos salvar o XML da resposta
|
|
3667
|
+
if (requestData) {
|
|
3668
|
+
// Se houver requestData (POST/PUT), salva como JSON
|
|
3669
|
+
this.utility.salvaJSON({
|
|
3670
|
+
data: requestData,
|
|
3671
|
+
fileName: `NFSe_${this.metodo}-consulta`, // Prefixo NFSe_ para identificar origem
|
|
3672
|
+
metodo: this.metodo,
|
|
3673
|
+
path: config.pathXMLConsulta,
|
|
3674
|
+
});
|
|
3675
|
+
}
|
|
3676
|
+
// Se a resposta contiver nfseXmlGZipB64 (XML da NFSe), extrai e salva
|
|
3677
|
+
// NFSe consultada é uma NFSe autorizada, então deve ser salva em pathXMLAutorizacao
|
|
3678
|
+
if (retornoData && retornoData.nfseXmlGZipB64) {
|
|
3679
|
+
try {
|
|
3680
|
+
const nfseBuffer = Buffer.from(retornoData.nfseXmlGZipB64, 'base64');
|
|
3681
|
+
const nfseXml = gunzipSync(nfseBuffer).toString('utf-8');
|
|
3682
|
+
// Usa a chave de acesso como nome do arquivo (se disponível)
|
|
3683
|
+
const chaveAcesso = retornoData.chaveAcesso || data?.chaveAcesso;
|
|
3684
|
+
const fileName = chaveAcesso || `NFSe_${this.metodo}-consulta`;
|
|
3685
|
+
// Salva em pathXMLAutorizacao, pois é uma NFSe autorizada
|
|
3686
|
+
if (config.armazenarXMLAutorizacao && config.pathXMLAutorizacao) {
|
|
3687
|
+
this.utility.salvaXML({
|
|
3688
|
+
data: nfseXml,
|
|
3689
|
+
fileName: fileName,
|
|
3690
|
+
metodo: this.metodo,
|
|
3691
|
+
path: config.pathXMLAutorizacao,
|
|
3692
|
+
});
|
|
3693
|
+
logger.info('XML da NFSe consultada salvo com sucesso', {
|
|
3694
|
+
context: 'BaseNFSe',
|
|
3695
|
+
method: this.metodo,
|
|
3696
|
+
fileName: fileName,
|
|
3697
|
+
path: config.pathXMLAutorizacao,
|
|
3698
|
+
});
|
|
3699
|
+
}
|
|
3700
|
+
}
|
|
3701
|
+
catch (xmlError) {
|
|
3702
|
+
logger.error('Erro ao processar XML da NFSe consultada', {
|
|
3703
|
+
context: 'BaseNFSe',
|
|
3704
|
+
method: this.metodo,
|
|
3705
|
+
error: xmlError.message,
|
|
3706
|
+
});
|
|
3707
|
+
}
|
|
3708
|
+
}
|
|
3709
|
+
}
|
|
3710
|
+
// Para NFSe, o retorno é JSON, então só salva se armazenarRetornoEmJSON estiver habilitado
|
|
3711
|
+
if (config.armazenarXMLRetorno && config.armazenarRetornoEmJSON) {
|
|
3712
|
+
// Para NFSe, o retorno também é JSON
|
|
3713
|
+
const retornoData = response?.data || errorResponse?.data || {};
|
|
3714
|
+
if (retornoData && Object.keys(retornoData).length > 0) {
|
|
3715
|
+
this.utility.salvaJSON({
|
|
3716
|
+
data: retornoData,
|
|
3717
|
+
fileName: `NFSe_${this.metodo}-retorno`, // Prefixo NFSe_ para identificar origem
|
|
3718
|
+
metodo: this.metodo,
|
|
3719
|
+
path: config.pathXMLRetorno,
|
|
3720
|
+
});
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3723
|
+
if (config.armazenarRetornoEmJSON && responseInJson) {
|
|
3724
|
+
this.utility.salvaJSON({
|
|
3725
|
+
data: responseInJson,
|
|
3726
|
+
fileName: `NFSe_${this.metodo}-retorno-json`, // Prefixo NFSe_ para identificar origem
|
|
3727
|
+
metodo: this.metodo,
|
|
3728
|
+
path: config.pathRetornoEmJSON,
|
|
3729
|
+
});
|
|
3730
|
+
}
|
|
3731
|
+
}
|
|
3732
|
+
catch (saveError) {
|
|
3733
|
+
// Não interrompe o fluxo se houver erro ao salvar arquivos
|
|
3734
|
+
logger.error('Erro ao salvar arquivos de log', saveError, {
|
|
3735
|
+
context: 'BaseNFSe',
|
|
3736
|
+
method: this.metodo,
|
|
3737
|
+
});
|
|
3738
|
+
}
|
|
3739
|
+
}
|
|
3740
|
+
}
|
|
3741
|
+
}
|
|
3742
|
+
|
|
3743
|
+
class GerarConsulta {
|
|
3744
|
+
constructor(environment, utility, xmlBuilder) {
|
|
3745
|
+
this.environment = environment;
|
|
3746
|
+
this.utility = utility;
|
|
3747
|
+
this.xmlBuilder = xmlBuilder;
|
|
3748
|
+
}
|
|
3749
|
+
createSoapEnvelop(xmlConsulta, _metodo, method, rootTag = false, tag = "", dadosMsgTag = "nfeDadosMsg") {
|
|
3750
|
+
logger.info(`Adicionando SOAP ao XML`, {
|
|
3751
|
+
context: 'GerarConsulta',
|
|
3752
|
+
});
|
|
3753
|
+
// Criando envelop SOAP (estrutura para e envio do XML)
|
|
3754
|
+
let rootTagObj = null;
|
|
3755
|
+
if (rootTag) {
|
|
3756
|
+
rootTagObj = {
|
|
3757
|
+
tag,
|
|
3758
|
+
namespace: method,
|
|
3759
|
+
};
|
|
3760
|
+
}
|
|
3761
|
+
return this.xmlBuilder.buildSoapEnvelope(xmlConsulta, method, 'soap12', rootTagObj, dadosMsgTag);
|
|
3762
|
+
}
|
|
3763
|
+
async gerarConsulta(xmlConsulta, metodo, ambienteNacional = false, versao = "", mod = "NFe", rootTag = false, tag = "", dadosMsgTag = "nfeDadosMsg") {
|
|
3764
|
+
try {
|
|
3765
|
+
const config = this.environment.getConfig();
|
|
3766
|
+
// Valida Schema
|
|
3767
|
+
if (config.useForSchemaValidation !== 'validateSchemaJsBased') {
|
|
3768
|
+
logger.info(`Validando XML com xsd-schema-validator`, {
|
|
3769
|
+
context: 'GerarConsulta',
|
|
3770
|
+
obs: 'Validação necessita do JAVA instaldo no ambiente',
|
|
3771
|
+
});
|
|
3772
|
+
await this.utility.validateSchemaJavaBased(xmlConsulta, metodo);
|
|
3773
|
+
}
|
|
3774
|
+
else {
|
|
3775
|
+
logger.info(`Validando XML com xsd-assembler`, {
|
|
3776
|
+
context: 'GerarConsulta',
|
|
3777
|
+
obs: 'Validação com nodejs',
|
|
3778
|
+
});
|
|
3779
|
+
await this.utility.validateSchemaJsBased(xmlConsulta, metodo);
|
|
3780
|
+
}
|
|
3781
|
+
// Capturando a url do método para o namespace xmlns
|
|
3782
|
+
const { method, action } = this.utility.getSoapInfo(config.UF, metodo);
|
|
3783
|
+
const xmlFormated = this.createSoapEnvelop(xmlConsulta, metodo, method, rootTag, tag, dadosMsgTag);
|
|
3784
|
+
// Retorna o Http.Agent contendo os certificados das Autoridades Certificadoras
|
|
3785
|
+
const agent = this.environment.getHttpAgent();
|
|
3786
|
+
// Retorna a url do webservice NFEStatusServico
|
|
3787
|
+
const webServiceUrl = this.utility.getWebServiceUrl(metodo, ambienteNacional, versao, mod);
|
|
3788
|
+
return {
|
|
3789
|
+
xmlFormated,
|
|
3790
|
+
agent,
|
|
3791
|
+
webServiceUrl,
|
|
3792
|
+
action
|
|
3793
|
+
};
|
|
3794
|
+
}
|
|
3795
|
+
catch (error) {
|
|
3796
|
+
logger.error(`Erro ao gerar dados de consulta para o webservice`, error, { context: 'GerarConsulta', method: 'gerarConsulta', service: metodo });
|
|
3797
|
+
throw new Error(error.message);
|
|
3798
|
+
}
|
|
3799
|
+
}
|
|
3800
|
+
}
|
|
3801
|
+
|
|
3802
|
+
/*
|
|
3803
|
+
* This file is part of Treeunfe DFe.
|
|
3804
|
+
*
|
|
3805
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
3806
|
+
* it under the terms of the GNU General Public License as published by
|
|
3807
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
3808
|
+
* (at your option) any later version.
|
|
3809
|
+
*
|
|
3810
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
3811
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
3812
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
3813
|
+
* GNU General Public License for more details.
|
|
3814
|
+
*
|
|
3815
|
+
* You should have received a copy of the GNU General Public License
|
|
3816
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
3817
|
+
*/
|
|
3818
|
+
class SaveFiles {
|
|
3819
|
+
constructor(environment, utility) {
|
|
3820
|
+
this.environment = environment;
|
|
3821
|
+
this.utility = utility;
|
|
3822
|
+
}
|
|
3823
|
+
salvaArquivos(xmlConsulta, responseInJson, xmlRetorno, metodo, xmlFormated, _options) {
|
|
3824
|
+
// Recupera configuração do ambiente para verificar se os arquivos gerados serão gravados em disco
|
|
3825
|
+
const config = this.environment.getConfig();
|
|
3826
|
+
let dateAndTimeInFileName = config.incluirTimestampNoNomeDosArquivos;
|
|
3827
|
+
const { armazenarXMLConsultaComTagSoap } = this.environment.config;
|
|
3828
|
+
const xmlConsultaASalvar = armazenarXMLConsultaComTagSoap ? xmlFormated : xmlConsulta;
|
|
3829
|
+
const createFileName = (prefix) => {
|
|
3830
|
+
const dtaTime = dateAndTimeInFileName ? `-${format(new Date(), 'dd-MM-yyyy-HHmm')}` : '';
|
|
3831
|
+
const baseFileName = `${metodo}`;
|
|
3832
|
+
const prefixPart = prefix ? `-${prefix}` : '';
|
|
3833
|
+
const nfePart = responseInJson && responseInJson.chNFe ? `-${responseInJson.chNFe}` : '';
|
|
3834
|
+
const dateTimePart = dtaTime;
|
|
3835
|
+
return `${baseFileName}${prefixPart}${nfePart}${dateTimePart}`;
|
|
3836
|
+
};
|
|
3837
|
+
const salvarArquivo = (data, prefix, path, fileType) => {
|
|
3838
|
+
const fileName = createFileName(prefix);
|
|
3839
|
+
const method = fileType === 'xml' ? 'salvaXML' : 'salvaJSON';
|
|
3840
|
+
this.utility[method]({
|
|
3841
|
+
data: data || '',
|
|
3842
|
+
fileName,
|
|
3843
|
+
metodo: metodo,
|
|
3844
|
+
path,
|
|
3845
|
+
});
|
|
3846
|
+
};
|
|
3847
|
+
if (config.armazenarXMLConsulta) {
|
|
3848
|
+
salvarArquivo(xmlConsultaASalvar, 'consulta', config.pathXMLConsulta, 'xml');
|
|
3849
|
+
}
|
|
3850
|
+
if (config.armazenarXMLRetorno) {
|
|
3851
|
+
salvarArquivo(xmlRetorno.data, 'retorno', config.pathXMLRetorno, 'xml');
|
|
3852
|
+
}
|
|
3853
|
+
if (config.armazenarRetornoEmJSON) {
|
|
3854
|
+
salvarArquivo(responseInJson, undefined, config.pathRetornoEmJSON, 'json');
|
|
3855
|
+
}
|
|
3856
|
+
}
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
/*
|
|
3860
|
+
* This file is part of Treeunfe DFe.
|
|
3861
|
+
*
|
|
3862
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
3863
|
+
* it under the terms of the GNU General Public License as published by
|
|
3864
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
3865
|
+
* (at your option) any later version.
|
|
3866
|
+
*
|
|
3867
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
3868
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
3869
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
3870
|
+
* GNU General Public License for more details.
|
|
3871
|
+
*
|
|
3872
|
+
* You should have received a copy of the GNU General Public License
|
|
3873
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
3874
|
+
*/
|
|
3875
|
+
class XmlBuilder {
|
|
3876
|
+
constructor(environment) {
|
|
3877
|
+
this.environment = environment;
|
|
3878
|
+
}
|
|
3879
|
+
/**
|
|
3880
|
+
* Método para assinar o XML
|
|
3881
|
+
*/
|
|
3882
|
+
assinarXML(xml, tagAssinar) {
|
|
3883
|
+
const transforms = [
|
|
3884
|
+
'http://www.w3.org/2000/09/xmldsig#enveloped-signature',
|
|
3885
|
+
'http://www.w3.org/TR/2001/REC-xml-c14n-20010315'
|
|
3886
|
+
];
|
|
3887
|
+
const signedXmlObj = new SignedXml({
|
|
3888
|
+
publicCert: this.environment.getCert(),
|
|
3889
|
+
privateKey: this.environment.getCertKey(),
|
|
3890
|
+
canonicalizationAlgorithm: "http://www.w3.org/TR/2001/REC-xml-c14n-20010315",
|
|
3891
|
+
implicitTransforms: ['http://www.w3.org/TR/2001/REC-xml-c14n-20010315']
|
|
3892
|
+
});
|
|
3893
|
+
signedXmlObj.addReference({ xpath: `//*[local-name(.)='${tagAssinar}']`, digestAlgorithm: 'http://www.w3.org/2000/09/xmldsig#sha1', transforms });
|
|
3894
|
+
signedXmlObj.signatureAlgorithm = 'http://www.w3.org/2000/09/xmldsig#rsa-sha1';
|
|
3895
|
+
// Assinar o XML
|
|
3896
|
+
signedXmlObj.computeSignature(xml);
|
|
3897
|
+
// Obter o XML assinado
|
|
3898
|
+
return signedXmlObj.getSignedXml();
|
|
3899
|
+
}
|
|
3900
|
+
/**
|
|
3901
|
+
* Método que converte Objeto em XML
|
|
3902
|
+
*/
|
|
3903
|
+
serializeXml(obj, rootTag, metodo) {
|
|
3904
|
+
logger.info('Gerando XML', {
|
|
3905
|
+
context: 'XmlBuilder',
|
|
3906
|
+
metodo,
|
|
3907
|
+
rootTag,
|
|
3908
|
+
});
|
|
3909
|
+
let builder = new xml2js.Builder({
|
|
3910
|
+
rootName: rootTag,
|
|
3911
|
+
headless: true,
|
|
3912
|
+
renderOpts: {
|
|
3913
|
+
pretty: false
|
|
3914
|
+
},
|
|
3915
|
+
// cdata: true
|
|
3916
|
+
});
|
|
3917
|
+
return builder.buildObject(obj);
|
|
3918
|
+
}
|
|
3919
|
+
/**
|
|
3920
|
+
* Método genérico para geração do XML
|
|
3921
|
+
*/
|
|
3922
|
+
gerarXml(xmlObject, rootTag, metodo) {
|
|
3923
|
+
return this.serializeXml(xmlObject, rootTag, metodo);
|
|
3924
|
+
}
|
|
3925
|
+
/**
|
|
3926
|
+
* Método utilizado para cirar um envelop SOAP - Formato de mensagem para serviço SOAP (como o da SEFAZ)
|
|
3927
|
+
*/
|
|
3928
|
+
buildSoapEnvelope(xml, soapMethod, soapVersion = "soap12", rootTagObj = null, dadosMsgTag = "nfeDadosMsg") {
|
|
3929
|
+
const soapNamespaces = {
|
|
3930
|
+
'soap12': 'http://www.w3.org/2003/05/soap-envelope', // SOAP 1.2
|
|
3931
|
+
'soap': 'http://schemas.xmlsoap.org/soap/envelope/' // SOAP 1.1
|
|
3932
|
+
};
|
|
3933
|
+
const soapNamespace = soapNamespaces[soapVersion] || soapNamespaces['soap12'];
|
|
3934
|
+
// Estrutura básica do envelope SOAP
|
|
3935
|
+
let soapEnvelopeObj = {
|
|
3936
|
+
'$': {
|
|
3937
|
+
[`xmlns:${soapVersion}`]: soapNamespace,
|
|
3938
|
+
'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
|
|
3939
|
+
'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema'
|
|
3940
|
+
},
|
|
3941
|
+
[`${soapVersion}:Body`]: {}
|
|
3942
|
+
};
|
|
3943
|
+
// Condicionando a inclusão de 'rootTagObj'
|
|
3944
|
+
if (rootTagObj && rootTagObj.tag) {
|
|
3945
|
+
let bodyContent = {
|
|
3946
|
+
[dadosMsgTag]: {
|
|
3947
|
+
'$': {
|
|
3948
|
+
'xmlns': soapMethod
|
|
3949
|
+
},
|
|
3950
|
+
_: '[XML]'
|
|
3951
|
+
}
|
|
3952
|
+
};
|
|
3953
|
+
if (rootTagObj.namespace) {
|
|
3954
|
+
bodyContent['$'] = { 'xmlns': rootTagObj.namespace };
|
|
3955
|
+
}
|
|
3956
|
+
soapEnvelopeObj[`${soapVersion}:Body`][rootTagObj.tag] = bodyContent;
|
|
3957
|
+
}
|
|
3958
|
+
else {
|
|
3959
|
+
soapEnvelopeObj[`${soapVersion}:Body`] = {
|
|
3960
|
+
[dadosMsgTag]: {
|
|
3961
|
+
'$': {
|
|
3962
|
+
'xmlns': soapMethod
|
|
3963
|
+
},
|
|
3964
|
+
_: '[XML]'
|
|
3965
|
+
}
|
|
3966
|
+
};
|
|
3967
|
+
}
|
|
3968
|
+
// Serializar o objeto do envelope SOAP para XML
|
|
3969
|
+
let soapEnvXml = this.serializeXml(soapEnvelopeObj, `${soapVersion}:Envelope`);
|
|
3970
|
+
return soapEnvXml.replace('[XML]', xml);
|
|
3971
|
+
}
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
export { AxiosHttpClient, BaseNFSe, BaseNFe, Environment, GerarConsulta, HttpClientBuilder, LoadCertificate, SaveFiles, getSchema as SchemaLoader, Utility, ValidaCPFCNPJ, ValidateEnvironment, XmlBuilder, XmlParser, getCodIBGE, getDesTipoPag, logger, mountCOFINS, mountICMS, mountPIS };
|
|
3975
|
+
//# sourceMappingURL=index.mjs.map
|