nuvemfiscal_sdk_ruby 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +757 -0
- data/Rakefile +10 -0
- data/docs/AtvEvento.md +30 -0
- data/docs/BeneficioMunicipal.md +24 -0
- data/docs/CServ.md +26 -0
- data/docs/CepApi.md +82 -0
- data/docs/CepEndereco.md +32 -0
- data/docs/CnpjApi.md +169 -0
- data/docs/CnpjCnae.md +20 -0
- data/docs/CnpjCnaeSecundario.md +20 -0
- data/docs/CnpjEmpresa.md +60 -0
- data/docs/CnpjEndereco.md +32 -0
- data/docs/CnpjFaixaEtaria.md +20 -0
- data/docs/CnpjIdentificadorSocio.md +20 -0
- data/docs/CnpjListagem.md +20 -0
- data/docs/CnpjMotivoSituacaoCadastral.md +22 -0
- data/docs/CnpjMunicipio.md +22 -0
- data/docs/CnpjNaturezaJuridica.md +20 -0
- data/docs/CnpjOpcaoSimei.md +22 -0
- data/docs/CnpjOpcaoSimples.md +22 -0
- data/docs/CnpjPais.md +20 -0
- data/docs/CnpjPorteEmpresa.md +20 -0
- data/docs/CnpjQualificacaoSocio.md +20 -0
- data/docs/CnpjRepresentanteLegal.md +22 -0
- data/docs/CnpjSituacaoCadastral.md +22 -0
- data/docs/CnpjSituacaoEspecial.md +22 -0
- data/docs/CnpjSocio.md +32 -0
- data/docs/CnpjTelefone.md +20 -0
- data/docs/ComExterior.md +36 -0
- data/docs/ContaApi.md +150 -0
- data/docs/ContaCota.md +22 -0
- data/docs/ContaCotaListagem.md +20 -0
- data/docs/CteApi.md +1515 -0
- data/docs/CteCartaCorrecao.md +46 -0
- data/docs/CteInfCorrecao.md +24 -0
- data/docs/CtePedidoCancelamento.md +18 -0
- data/docs/CtePedidoCartaCorrecao.md +18 -0
- data/docs/CtePedidoEmissao.md +24 -0
- data/docs/CteSefazAereo.md +28 -0
- data/docs/CteSefazAquav.md +34 -0
- data/docs/CteSefazAutXML.md +20 -0
- data/docs/CteSefazBalsa.md +18 -0
- data/docs/CteSefazCobr.md +20 -0
- data/docs/CteSefazComData.md +20 -0
- data/docs/CteSefazComHora.md +20 -0
- data/docs/CteSefazComp.md +20 -0
- data/docs/CteSefazCompl.md +36 -0
- data/docs/CteSefazDest.md +32 -0
- data/docs/CteSefazDetCont.md +22 -0
- data/docs/CteSefazDetContInfDoc.md +20 -0
- data/docs/CteSefazDetContInfDocInfNF.md +22 -0
- data/docs/CteSefazDetContInfDocInfNFe.md +20 -0
- data/docs/CteSefazDocAnt.md +18 -0
- data/docs/CteSefazDup.md +22 -0
- data/docs/CteSefazDuto.md +22 -0
- data/docs/CteSefazEmiDocAnt.md +28 -0
- data/docs/CteSefazEmiOcc.md +26 -0
- data/docs/CteSefazEmit.md +32 -0
- data/docs/CteSefazEndeEmi.md +34 -0
- data/docs/CteSefazEnderFer.md +32 -0
- data/docs/CteSefazEndereco.md +36 -0
- data/docs/CteSefazEntrega.md +28 -0
- data/docs/CteSefazExped.md +30 -0
- data/docs/CteSefazFat.md +24 -0
- data/docs/CteSefazFerroEnv.md +26 -0
- data/docs/CteSefazFerrov.md +22 -0
- data/docs/CteSefazFluxo.md +24 -0
- data/docs/CteSefazICMS00.md +24 -0
- data/docs/CteSefazICMS20.md +30 -0
- data/docs/CteSefazICMS45.md +22 -0
- data/docs/CteSefazICMS60.md +30 -0
- data/docs/CteSefazICMS90.md +32 -0
- data/docs/CteSefazICMSOutraUF.md +30 -0
- data/docs/CteSefazICMSSN.md +20 -0
- data/docs/CteSefazICMSUFFim.md +30 -0
- data/docs/CteSefazIdDocAnt.md +20 -0
- data/docs/CteSefazIdDocAntEle.md +18 -0
- data/docs/CteSefazIdDocAntPap.md +26 -0
- data/docs/CteSefazIde.md +84 -0
- data/docs/CteSefazImp.md +30 -0
- data/docs/CteSefazInfCTeMultimodal.md +18 -0
- data/docs/CteSefazInfCTeNorm.md +34 -0
- data/docs/CteSefazInfCTeSupl.md +18 -0
- data/docs/CteSefazInfCarga.md +26 -0
- data/docs/CteSefazInfCte.md +48 -0
- data/docs/CteSefazInfCteComp.md +18 -0
- data/docs/CteSefazInfCteImp.md +24 -0
- data/docs/CteSefazInfCteSub.md +20 -0
- data/docs/CteSefazInfDoc.md +22 -0
- data/docs/CteSefazInfGlobalizado.md +18 -0
- data/docs/CteSefazInfModal.md +30 -0
- data/docs/CteSefazInfNF.md +52 -0
- data/docs/CteSefazInfNFe.md +26 -0
- data/docs/CteSefazInfOutros.md +32 -0
- data/docs/CteSefazInfQ.md +22 -0
- data/docs/CteSefazInfSeg.md +20 -0
- data/docs/CteSefazInfServVinc.md +18 -0
- data/docs/CteSefazInfSolicNFF.md +18 -0
- data/docs/CteSefazInfTotAP.md +20 -0
- data/docs/CteSefazLacUnidCarga.md +18 -0
- data/docs/CteSefazLacUnidTransp.md +18 -0
- data/docs/CteSefazLacre.md +18 -0
- data/docs/CteSefazMultimodal.md +22 -0
- data/docs/CteSefazNatCarga.md +20 -0
- data/docs/CteSefazNoInter.md +22 -0
- data/docs/CteSefazNoPeriodo.md +22 -0
- data/docs/CteSefazObsCont.md +20 -0
- data/docs/CteSefazObsFisco.md +20 -0
- data/docs/CteSefazOcc.md +24 -0
- data/docs/CteSefazPass.md +18 -0
- data/docs/CteSefazPeri.md +22 -0
- data/docs/CteSefazReceb.md +30 -0
- data/docs/CteSefazRem.md +32 -0
- data/docs/CteSefazRespTec.md +28 -0
- data/docs/CteSefazRodo.md +20 -0
- data/docs/CteSefazSeg.md +22 -0
- data/docs/CteSefazSemData.md +18 -0
- data/docs/CteSefazSemHora.md +18 -0
- data/docs/CteSefazTarifa.md +22 -0
- data/docs/CteSefazToma3.md +18 -0
- data/docs/CteSefazToma4.md +34 -0
- data/docs/CteSefazTrafMut.md +26 -0
- data/docs/CteSefazUnidCarga.md +24 -0
- data/docs/CteSefazUnidadeTransp.md +26 -0
- data/docs/CteSefazVPrest.md +22 -0
- data/docs/CteSefazVeicNovos.md +28 -0
- data/docs/DPS.md +20 -0
- data/docs/Dfe.md +42 -0
- data/docs/DfeAutorEvento.md +18 -0
- data/docs/DfeAutorizacao.md +46 -0
- data/docs/DfeCancelamento.md +46 -0
- data/docs/DfeCartaCorrecao.md +46 -0
- data/docs/DfeContribuinteEndereco.md +38 -0
- data/docs/DfeContribuinteInfCad.md +50 -0
- data/docs/DfeContribuinteInfCons.md +34 -0
- data/docs/DfeEvento.md +44 -0
- data/docs/DfeEventoListagem.md +20 -0
- data/docs/DfeInutilizacao.md +58 -0
- data/docs/DfeListagem.md +20 -0
- data/docs/DfeLote.md +32 -0
- data/docs/DfeLoteListagem.md +20 -0
- data/docs/DfePedidoEnvioEmail.md +18 -0
- data/docs/DfePedidoInutilizacao.md +30 -0
- data/docs/DfeRecibo.md +28 -0
- data/docs/DfeSefazStatus.md +30 -0
- data/docs/DfeSincronizacao.md +26 -0
- data/docs/DistribuicaoNfe.md +46 -0
- data/docs/DistribuicaoNfeDocumento.md +52 -0
- data/docs/DistribuicaoNfeDocumentoListagem.md +20 -0
- data/docs/DistribuicaoNfeEvento.md +44 -0
- data/docs/DistribuicaoNfeListagem.md +20 -0
- data/docs/DistribuicaoNfeNota.md +32 -0
- data/docs/DistribuicaoNfeNotaListagem.md +20 -0
- data/docs/DistribuicaoNfePedido.md +32 -0
- data/docs/DistribuicaoNfePedidoManifestacao.md +26 -0
- data/docs/DistribuioNFEApi.md +880 -0
- data/docs/DocDedRed.md +40 -0
- data/docs/DocNFNFS.md +22 -0
- data/docs/DocOutNFSe.md +22 -0
- data/docs/Email.md +34 -0
- data/docs/EmailApi.md +169 -0
- data/docs/EmailAttachment.md +20 -0
- data/docs/EmailEvent.md +24 -0
- data/docs/EmailListagem.md +20 -0
- data/docs/EmailResumo.md +26 -0
- data/docs/EmailStatusResponse.md +22 -0
- data/docs/Empresa.md +36 -0
- data/docs/EmpresaApi.md +1947 -0
- data/docs/EmpresaCertificado.md +32 -0
- data/docs/EmpresaConfigCte.md +20 -0
- data/docs/EmpresaConfigDistribuicaoNfe.md +22 -0
- data/docs/EmpresaConfigMdfe.md +18 -0
- data/docs/EmpresaConfigNfce.md +22 -0
- data/docs/EmpresaConfigNfceSefaz.md +20 -0
- data/docs/EmpresaConfigNfcom.md +20 -0
- data/docs/EmpresaConfigNfe.md +20 -0
- data/docs/EmpresaConfigNfse.md +26 -0
- data/docs/EmpresaConfigNfseRegTrib.md +22 -0
- data/docs/EmpresaConfigPrefeitura.md +22 -0
- data/docs/EmpresaConfigRps.md +22 -0
- data/docs/EmpresaEndereco.md +36 -0
- data/docs/EmpresaListagem.md +20 -0
- data/docs/EmpresaPedidoCadastroCertificado.md +20 -0
- data/docs/EnderExt.md +24 -0
- data/docs/EnderExtSimples.md +22 -0
- data/docs/EnderNac.md +20 -0
- data/docs/Endereco.md +28 -0
- data/docs/EnderecoEmail.md +18 -0
- data/docs/EnderecoSimples.md +28 -0
- data/docs/ExigSuspensa.md +20 -0
- data/docs/ExploracaoRodoviaria.md +30 -0
- data/docs/InfDPS.md +36 -0
- data/docs/InfoCompl.md +22 -0
- data/docs/InfoDedRed.md +22 -0
- data/docs/InfoFornecDocDedRed.md +36 -0
- data/docs/InfoIntermediario.md +36 -0
- data/docs/InfoObra.md +22 -0
- data/docs/InfoPrestador.md +20 -0
- data/docs/InfoTomador.md +38 -0
- data/docs/InfoTributacao.md +22 -0
- data/docs/InfoValores.md +24 -0
- data/docs/ListaDocDedRed.md +18 -0
- data/docs/LocPrest.md +20 -0
- data/docs/LocacaoSublocacao.md +24 -0
- data/docs/ManifestacaoNfeListagem.md +20 -0
- data/docs/MdfeApi.md +1979 -0
- data/docs/MdfeDocumentoVinculado.md +22 -0
- data/docs/MdfeEncerramento.md +50 -0
- data/docs/MdfeInclusaoCondutor.md +48 -0
- data/docs/MdfeInclusaoDfe.md +50 -0
- data/docs/MdfeNaoEncerrado.md +20 -0
- data/docs/MdfeNaoEncerrados.md +28 -0
- data/docs/MdfePedidoCancelamento.md +18 -0
- data/docs/MdfePedidoEmissao.md +24 -0
- data/docs/MdfePedidoEmissaoLote.md +24 -0
- data/docs/MdfePedidoEncerramento.md +22 -0
- data/docs/MdfePedidoInclusaoCondutor.md +20 -0
- data/docs/MdfePedidoInclusaoDfe.md +24 -0
- data/docs/MdfeSefazAereo.md +28 -0
- data/docs/MdfeSefazAquav.md +44 -0
- data/docs/MdfeSefazAutXML.md +20 -0
- data/docs/MdfeSefazComp.md +22 -0
- data/docs/MdfeSefazCondutor.md +20 -0
- data/docs/MdfeSefazDisp.md +28 -0
- data/docs/MdfeSefazEmit.md +28 -0
- data/docs/MdfeSefazEndeEmi.md +36 -0
- data/docs/MdfeSefazFerrov.md +20 -0
- data/docs/MdfeSefazIde.md +58 -0
- data/docs/MdfeSefazInfANTT.md +26 -0
- data/docs/MdfeSefazInfAdic.md +20 -0
- data/docs/MdfeSefazInfBanc.md +24 -0
- data/docs/MdfeSefazInfCIOT.md +22 -0
- data/docs/MdfeSefazInfCTe.md +28 -0
- data/docs/MdfeSefazInfContratante.md +26 -0
- data/docs/MdfeSefazInfContrato.md +20 -0
- data/docs/MdfeSefazInfDoc.md +18 -0
- data/docs/MdfeSefazInfEmbComb.md +20 -0
- data/docs/MdfeSefazInfEntregaParcial.md +20 -0
- data/docs/MdfeSefazInfLocalCarrega.md +22 -0
- data/docs/MdfeSefazInfLocalDescarrega.md +22 -0
- data/docs/MdfeSefazInfLotacao.md +20 -0
- data/docs/MdfeSefazInfMDFe.md +44 -0
- data/docs/MdfeSefazInfMDFeSupl.md +18 -0
- data/docs/MdfeSefazInfMDFeTransp.md +24 -0
- data/docs/MdfeSefazInfMDFeTranspPeri.md +28 -0
- data/docs/MdfeSefazInfModal.md +26 -0
- data/docs/MdfeSefazInfMunCarrega.md +20 -0
- data/docs/MdfeSefazInfMunDescarga.md +26 -0
- data/docs/MdfeSefazInfNFe.md +26 -0
- data/docs/MdfeSefazInfNFePeri.md +28 -0
- data/docs/MdfeSefazInfPag.md +42 -0
- data/docs/MdfeSefazInfPercurso.md +18 -0
- data/docs/MdfeSefazInfPrazo.md +22 -0
- data/docs/MdfeSefazInfResp.md +22 -0
- data/docs/MdfeSefazInfSeg.md +20 -0
- data/docs/MdfeSefazInfSolicNFF.md +18 -0
- data/docs/MdfeSefazInfTermCarreg.md +20 -0
- data/docs/MdfeSefazInfTermDescarreg.md +20 -0
- data/docs/MdfeSefazInfUnidCargaVazia.md +20 -0
- data/docs/MdfeSefazInfUnidTranspVazia.md +20 -0
- data/docs/MdfeSefazLacRodo.md +18 -0
- data/docs/MdfeSefazLacUnidCarga.md +18 -0
- data/docs/MdfeSefazLacUnidTransp.md +18 -0
- data/docs/MdfeSefazLacres.md +18 -0
- data/docs/MdfeSefazPeri.md +28 -0
- data/docs/MdfeSefazProdPred.md +26 -0
- data/docs/MdfeSefazProp.md +30 -0
- data/docs/MdfeSefazRespTec.md +28 -0
- data/docs/MdfeSefazRodo.md +26 -0
- data/docs/MdfeSefazSeg.md +24 -0
- data/docs/MdfeSefazTot.md +28 -0
- data/docs/MdfeSefazTrem.md +26 -0
- data/docs/MdfeSefazUnidCarga.md +24 -0
- data/docs/MdfeSefazUnidadeTransp.md +26 -0
- data/docs/MdfeSefazVag.md +30 -0
- data/docs/MdfeSefazValePed.md +20 -0
- data/docs/MdfeSefazVeicReboque.md +34 -0
- data/docs/MdfeSefazVeicReboqueProp.md +30 -0
- data/docs/MdfeSefazVeicTracao.md +38 -0
- data/docs/NfceApi.md +2173 -0
- data/docs/NfcomApi.md +775 -0
- data/docs/NfcomPedidoCancelamento.md +18 -0
- data/docs/NfcomPedidoEmissao.md +22 -0
- data/docs/NfcomSefazAssinante.md +36 -0
- data/docs/NfcomSefazAutXML.md +20 -0
- data/docs/NfcomSefazCOFINS.md +24 -0
- data/docs/NfcomSefazDest.md +32 -0
- data/docs/NfcomSefazDet.md +34 -0
- data/docs/NfcomSefazEmit.md +30 -0
- data/docs/NfcomSefazEndeDest.md +40 -0
- data/docs/NfcomSefazEndeEmi.md +36 -0
- data/docs/NfcomSefazFUNTTEL.md +22 -0
- data/docs/NfcomSefazFUST.md +22 -0
- data/docs/NfcomSefazGCofat.md +20 -0
- data/docs/NfcomSefazGCofatGNF.md +28 -0
- data/docs/NfcomSefazGFat.md +36 -0
- data/docs/NfcomSefazGFatCentral.md +20 -0
- data/docs/NfcomSefazGFidelidade.md +24 -0
- data/docs/NfcomSefazGNF.md +28 -0
- data/docs/NfcomSefazGPIX.md +18 -0
- data/docs/NfcomSefazGProc.md +20 -0
- data/docs/NfcomSefazGProcRef.md +42 -0
- data/docs/NfcomSefazGRessarc.md +26 -0
- data/docs/NfcomSefazGSub.md +22 -0
- data/docs/NfcomSefazICMS00.md +28 -0
- data/docs/NfcomSefazICMS20.md +34 -0
- data/docs/NfcomSefazICMS40.md +22 -0
- data/docs/NfcomSefazICMS51.md +22 -0
- data/docs/NfcomSefazICMS90.md +32 -0
- data/docs/NfcomSefazICMSSN.md +20 -0
- data/docs/NfcomSefazICMSTot.md +24 -0
- data/docs/NfcomSefazICMSUFDest.md +32 -0
- data/docs/NfcomSefazIde.md +54 -0
- data/docs/NfcomSefazImposto.md +42 -0
- data/docs/NfcomSefazInfAdic.md +20 -0
- data/docs/NfcomSefazInfNFCom.md +48 -0
- data/docs/NfcomSefazPIS.md +24 -0
- data/docs/NfcomSefazProd.md +42 -0
- data/docs/NfcomSefazRespTec.md +28 -0
- data/docs/NfcomSefazRetTrib.md +26 -0
- data/docs/NfcomSefazTotal.md +36 -0
- data/docs/NfcomSefazVRetTribTot.md +24 -0
- data/docs/NfeApi.md +2461 -0
- data/docs/NfePedidoCancelamento.md +18 -0
- data/docs/NfePedidoCartaCorrecao.md +18 -0
- data/docs/NfePedidoEmissao.md +24 -0
- data/docs/NfePedidoEmissaoLote.md +24 -0
- data/docs/NfeSefazAdi.md +26 -0
- data/docs/NfeSefazArma.md +24 -0
- data/docs/NfeSefazAutXML.md +20 -0
- data/docs/NfeSefazAvulsa.md +38 -0
- data/docs/NfeSefazCIDE.md +22 -0
- data/docs/NfeSefazCOFINS.md +24 -0
- data/docs/NfeSefazCOFINSAliq.md +24 -0
- data/docs/NfeSefazCOFINSNT.md +18 -0
- data/docs/NfeSefazCOFINSOutr.md +28 -0
- data/docs/NfeSefazCOFINSQtde.md +24 -0
- data/docs/NfeSefazCOFINSST.md +28 -0
- data/docs/NfeSefazCana.md +36 -0
- data/docs/NfeSefazCard.md +28 -0
- data/docs/NfeSefazCobr.md +20 -0
- data/docs/NfeSefazComb.md +42 -0
- data/docs/NfeSefazCompra.md +22 -0
- data/docs/NfeSefazDI.md +42 -0
- data/docs/NfeSefazDeduc.md +20 -0
- data/docs/NfeSefazDest.md +36 -0
- data/docs/NfeSefazDet.md +28 -0
- data/docs/NfeSefazDetExport.md +20 -0
- data/docs/NfeSefazDetPag.md +32 -0
- data/docs/NfeSefazDup.md +22 -0
- data/docs/NfeSefazEmit.md +36 -0
- data/docs/NfeSefazEncerrante.md +26 -0
- data/docs/NfeSefazEnderEmi.md +38 -0
- data/docs/NfeSefazEndereco.md +38 -0
- data/docs/NfeSefazExportInd.md +22 -0
- data/docs/NfeSefazExporta.md +22 -0
- data/docs/NfeSefazFat.md +24 -0
- data/docs/NfeSefazForDia.md +20 -0
- data/docs/NfeSefazGCred.md +22 -0
- data/docs/NfeSefazICMS.md +58 -0
- data/docs/NfeSefazICMS00.md +32 -0
- data/docs/NfeSefazICMS02.md +26 -0
- data/docs/NfeSefazICMS10.md +56 -0
- data/docs/NfeSefazICMS15.md +36 -0
- data/docs/NfeSefazICMS20.md +42 -0
- data/docs/NfeSefazICMS30.md +44 -0
- data/docs/NfeSefazICMS40.md +26 -0
- data/docs/NfeSefazICMS51.md +50 -0
- data/docs/NfeSefazICMS53.md +36 -0
- data/docs/NfeSefazICMS60.md +42 -0
- data/docs/NfeSefazICMS61.md +26 -0
- data/docs/NfeSefazICMS70.md +64 -0
- data/docs/NfeSefazICMS90.md +64 -0
- data/docs/NfeSefazICMSPart.md +52 -0
- data/docs/NfeSefazICMSSN101.md +24 -0
- data/docs/NfeSefazICMSSN102.md +20 -0
- data/docs/NfeSefazICMSSN201.md +42 -0
- data/docs/NfeSefazICMSSN202.md +38 -0
- data/docs/NfeSefazICMSSN500.md +42 -0
- data/docs/NfeSefazICMSSN900.md +52 -0
- data/docs/NfeSefazICMSST.md +46 -0
- data/docs/NfeSefazICMSTot.md +74 -0
- data/docs/NfeSefazICMSUFDest.md +34 -0
- data/docs/NfeSefazII.md +24 -0
- data/docs/NfeSefazIPINT.md +18 -0
- data/docs/NfeSefazIPITrib.md +28 -0
- data/docs/NfeSefazISSQN.md +48 -0
- data/docs/NfeSefazISSQNtot.md +40 -0
- data/docs/NfeSefazIde.md +64 -0
- data/docs/NfeSefazImposto.md +36 -0
- data/docs/NfeSefazImpostoDevol.md +20 -0
- data/docs/NfeSefazImpostoDevolIPI.md +18 -0
- data/docs/NfeSefazInfAdic.md +26 -0
- data/docs/NfeSefazInfAdicObsCont.md +20 -0
- data/docs/NfeSefazInfAdicObsFisco.md +20 -0
- data/docs/NfeSefazInfIntermed.md +20 -0
- data/docs/NfeSefazInfNFe.md +58 -0
- data/docs/NfeSefazInfNFeSupl.md +20 -0
- data/docs/NfeSefazInfProdEmb.md +22 -0
- data/docs/NfeSefazInfProdNFF.md +20 -0
- data/docs/NfeSefazInfRespTec.md +28 -0
- data/docs/NfeSefazInfSolicNFF.md +18 -0
- data/docs/NfeSefazIpi.md +28 -0
- data/docs/NfeSefazLacres.md +18 -0
- data/docs/NfeSefazLocal.md +48 -0
- data/docs/NfeSefazMed.md +22 -0
- data/docs/NfeSefazNFref.md +28 -0
- data/docs/NfeSefazObsCont.md +20 -0
- data/docs/NfeSefazObsFisco.md +20 -0
- data/docs/NfeSefazObsItem.md +20 -0
- data/docs/NfeSefazOrigComb.md +22 -0
- data/docs/NfeSefazPIS.md +24 -0
- data/docs/NfeSefazPISAliq.md +24 -0
- data/docs/NfeSefazPISNT.md +18 -0
- data/docs/NfeSefazPISOutr.md +28 -0
- data/docs/NfeSefazPISQtde.md +24 -0
- data/docs/NfeSefazPISST.md +28 -0
- data/docs/NfeSefazPag.md +20 -0
- data/docs/NfeSefazProcRef.md +22 -0
- data/docs/NfeSefazProd.md +96 -0
- data/docs/NfeSefazRastro.md +26 -0
- data/docs/NfeSefazRefECF.md +22 -0
- data/docs/NfeSefazRefNF.md +28 -0
- data/docs/NfeSefazRefNFP.md +32 -0
- data/docs/NfeSefazRetTransp.md +28 -0
- data/docs/NfeSefazRetTrib.md +30 -0
- data/docs/NfeSefazTotal.md +22 -0
- data/docs/NfeSefazTransp.md +32 -0
- data/docs/NfeSefazTransporta.md +30 -0
- data/docs/NfeSefazVeicProd.md +64 -0
- data/docs/NfeSefazVeiculo.md +22 -0
- data/docs/NfeSefazVol.md +30 -0
- data/docs/Nfse.md +42 -0
- data/docs/NfseApi.md +1311 -0
- data/docs/NfseCancelamento.md +28 -0
- data/docs/NfseCidadeMetadados.md +28 -0
- data/docs/NfseCidadesAtendidas.md +20 -0
- data/docs/NfseDpsPedidoEmissao.md +24 -0
- data/docs/NfseListagem.md +20 -0
- data/docs/NfseLoteDpsPedidoEmissao.md +24 -0
- data/docs/NfseMensagemRetorno.md +22 -0
- data/docs/NfsePedidoCancelamento.md +20 -0
- data/docs/NfsePedidoEmissao.md +20 -0
- data/docs/NfsePedidoSincronizacao.md +18 -0
- data/docs/NfseSincronizacao.md +20 -0
- data/docs/Rps.md +34 -0
- data/docs/RpsDados.md +20 -0
- data/docs/RpsDadosConstrucaoCivil.md +20 -0
- data/docs/RpsDadosIntermediario.md +22 -0
- data/docs/RpsDadosPrestador.md +40 -0
- data/docs/RpsDadosServico.md +46 -0
- data/docs/RpsDadosTomador.md +28 -0
- data/docs/RpsDadosTomadorEndereco.md +36 -0
- data/docs/RpsIdentificacao.md +22 -0
- data/docs/RpsIdentificacaoPrestador.md +18 -0
- data/docs/RpsLote.md +30 -0
- data/docs/RpsLoteListagem.md +20 -0
- data/docs/RpsPedidoEmissao.md +36 -0
- data/docs/RpsPedidoEmissaoLote.md +22 -0
- data/docs/RpsServicoValores.md +56 -0
- data/docs/Serv.md +32 -0
- data/docs/Substituicao.md +22 -0
- data/docs/TribFederal.md +24 -0
- data/docs/TribMunicipal.md +38 -0
- data/docs/TribOutrosPisCofins.md +30 -0
- data/docs/TribTotal.md +24 -0
- data/docs/TribTotalMonet.md +22 -0
- data/docs/TribTotalPercent.md +22 -0
- data/docs/VDescCondIncond.md +20 -0
- data/docs/VServPrest.md +20 -0
- data/git_push.sh +57 -0
- data/lib/nuvemfiscal_sdk_ruby/api/cep_api.rb +85 -0
- data/lib/nuvemfiscal_sdk_ruby/api/cnpj_api.rb +172 -0
- data/lib/nuvemfiscal_sdk_ruby/api/conta_api.rb +138 -0
- data/lib/nuvemfiscal_sdk_ruby/api/cte_api.rb +1316 -0
- data/lib/nuvemfiscal_sdk_ruby/api/distribuio_nfe_api.rb +806 -0
- data/lib/nuvemfiscal_sdk_ruby/api/email_api.rb +164 -0
- data/lib/nuvemfiscal_sdk_ruby/api/empresa_api.rb +1738 -0
- data/lib/nuvemfiscal_sdk_ruby/api/mdfe_api.rb +1740 -0
- data/lib/nuvemfiscal_sdk_ruby/api/nfce_api.rb +1946 -0
- data/lib/nuvemfiscal_sdk_ruby/api/nfcom_api.rb +688 -0
- data/lib/nuvemfiscal_sdk_ruby/api/nfe_api.rb +2176 -0
- data/lib/nuvemfiscal_sdk_ruby/api/nfse_api.rb +1167 -0
- data/lib/nuvemfiscal_sdk_ruby/api_client.rb +394 -0
- data/lib/nuvemfiscal_sdk_ruby/api_error.rb +58 -0
- data/lib/nuvemfiscal_sdk_ruby/configuration.rb +315 -0
- data/lib/nuvemfiscal_sdk_ruby/models/atv_evento.rb +381 -0
- data/lib/nuvemfiscal_sdk_ruby/models/beneficio_municipal.rb +284 -0
- data/lib/nuvemfiscal_sdk_ruby/models/c_serv.rb +289 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cep_endereco.rb +277 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_cnae.rb +226 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_cnae_secundario.rb +226 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_empresa.rb +418 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_endereco.rb +285 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_faixa_etaria.rb +226 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_identificador_socio.rb +226 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_motivo_situacao_cadastral.rb +236 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_municipio.rb +236 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_natureza_juridica.rb +226 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_opcao_simei.rb +238 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_opcao_simples.rb +238 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_pais.rb +226 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_porte_empresa.rb +226 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_qualificacao_socio.rb +226 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_representante_legal.rb +235 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_situacao_cadastral.rb +236 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_situacao_especial.rb +236 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_socio.rb +281 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cnpj_telefone.rb +226 -0
- data/lib/nuvemfiscal_sdk_ruby/models/com_exterior.rb +410 -0
- data/lib/nuvemfiscal_sdk_ruby/models/conta_cota.rb +232 -0
- data/lib/nuvemfiscal_sdk_ruby/models/conta_cota_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_carta_correcao.rb +428 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_inf_correcao.rb +351 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_pedido_cancelamento.rb +215 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_pedido_carta_correcao.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_pedido_emissao.rb +307 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_aereo.rb +308 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_aquav.rb +412 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_aut_xml.rb +228 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_balsa.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_cobr.rb +226 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_com_data.rb +232 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_com_hora.rb +232 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_comp.rb +271 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_compl.rb +494 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_dest.rb +349 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_det_cont.rb +282 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_det_cont_inf_doc.rb +228 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_det_cont_inf_doc_inf_nf.rb +306 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_det_cont_inf_doc_inf_nfe.rb +260 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_doc_ant.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_dup.rb +278 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_duto.rb +258 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_emi_doc_ant.rb +348 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_emi_occ.rb +305 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_emit.rb +340 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_ende_emi.rb +425 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_ender_fer.rb +424 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_endereco.rb +472 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_entrega.rb +260 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_exped.rb +338 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_fat.rb +319 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_ferro_env.rb +333 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_ferrov.rb +265 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_fluxo.rb +322 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icms00.rb +303 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icms20.rb +383 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icms45.rb +271 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icms60.rb +381 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icms90.rb +407 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icms_outra_uf.rb +381 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icmssn.rb +232 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icmsuf_fim.rb +402 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_id_doc_ant.rb +228 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_id_doc_ant_ele.rb +234 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_id_doc_ant_pap.rb +341 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_ide.rb +864 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_imp.rb +269 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_carga.rb +367 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte.rb +426 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte_comp.rb +234 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte_imp.rb +292 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte_multimodal.rb +234 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte_norm.rb +303 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte_sub.rb +230 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte_supl.rb +241 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_doc.rb +239 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_globalizado.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_modal.rb +273 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_nf.rb +651 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_nfe.rb +302 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_outros.rb +359 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_q.rb +284 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_seg.rb +256 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_serv_vinc.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_solic_nff.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_tot_ap.rb +247 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_lac_unid_carga.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_lac_unid_transp.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_lacre.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_multimodal.rb +265 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_nat_carga.rb +253 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_no_inter.rb +245 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_no_periodo.rb +245 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_obs_cont.rb +280 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_obs_fisco.rb +280 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_occ.rb +300 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_pass.rb +240 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_peri.rb +272 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_receb.rb +338 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_rem.rb +349 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_resp_tec.rb +367 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_rodo.rb +249 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_seg.rb +296 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_sem_data.rb +219 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_sem_hora.rb +219 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_tarifa.rb +297 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_toma3.rb +219 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_toma4.rb +386 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_traf_mut.rb +297 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_unid_carga.rb +293 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_unidade_transp.rb +304 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_v_prest.rb +273 -0
- data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_veic_novos.rb +401 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe.rb +374 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_autor_evento.rb +215 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_autorizacao.rb +400 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_cancelamento.rb +400 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_carta_correcao.rb +400 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_contribuinte_endereco.rb +483 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_contribuinte_inf_cad.rb +475 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_contribuinte_inf_cons.rb +363 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_evento.rb +390 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_evento_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_inutilizacao.rb +453 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_lote.rb +329 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_lote_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_pedido_envio_email.rb +236 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_pedido_inutilizacao.rb +470 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_recibo.rb +265 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_sefaz_status.rb +323 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dfe_sincronizacao.rb +289 -0
- data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe.rb +478 -0
- data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_documento.rb +448 -0
- data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_documento_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_evento.rb +397 -0
- data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_nota.rb +293 -0
- data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_nota_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_pedido.rb +358 -0
- data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_pedido_manifestacao.rb +342 -0
- data/lib/nuvemfiscal_sdk_ruby/models/doc_ded_red.rb +472 -0
- data/lib/nuvemfiscal_sdk_ruby/models/doc_nfnfs.rb +293 -0
- data/lib/nuvemfiscal_sdk_ruby/models/doc_out_nfse.rb +269 -0
- data/lib/nuvemfiscal_sdk_ruby/models/dps.rb +228 -0
- data/lib/nuvemfiscal_sdk_ruby/models/email.rb +337 -0
- data/lib/nuvemfiscal_sdk_ruby/models/email_attachment.rb +242 -0
- data/lib/nuvemfiscal_sdk_ruby/models/email_event.rb +242 -0
- data/lib/nuvemfiscal_sdk_ruby/models/email_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/email_resumo.rb +295 -0
- data/lib/nuvemfiscal_sdk_ruby/models/email_status_response.rb +275 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa.rb +408 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_certificado.rb +277 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_cte.rb +266 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_distribuicao_nfe.rb +282 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_mdfe.rb +256 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_nfce.rb +282 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_nfce_sefaz.rb +258 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_nfcom.rb +266 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_nfe.rb +266 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_nfse.rb +302 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_nfse_reg_trib.rb +239 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_prefeitura.rb +293 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_rps.rb +257 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_endereco.rb +466 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/empresa_pedido_cadastro_certificado.rb +260 -0
- data/lib/nuvemfiscal_sdk_ruby/models/ender_ext.rb +330 -0
- data/lib/nuvemfiscal_sdk_ruby/models/ender_ext_simples.rb +317 -0
- data/lib/nuvemfiscal_sdk_ruby/models/ender_nac.rb +228 -0
- data/lib/nuvemfiscal_sdk_ruby/models/endereco.rb +364 -0
- data/lib/nuvemfiscal_sdk_ruby/models/endereco_email.rb +222 -0
- data/lib/nuvemfiscal_sdk_ruby/models/endereco_simples.rb +372 -0
- data/lib/nuvemfiscal_sdk_ruby/models/exig_suspensa.rb +232 -0
- data/lib/nuvemfiscal_sdk_ruby/models/exploracao_rodoviaria.rb +297 -0
- data/lib/nuvemfiscal_sdk_ruby/models/inf_dps.rb +351 -0
- data/lib/nuvemfiscal_sdk_ruby/models/info_compl.rb +311 -0
- data/lib/nuvemfiscal_sdk_ruby/models/info_ded_red.rb +267 -0
- data/lib/nuvemfiscal_sdk_ruby/models/info_fornec_doc_ded_red.rb +457 -0
- data/lib/nuvemfiscal_sdk_ruby/models/info_intermediario.rb +457 -0
- data/lib/nuvemfiscal_sdk_ruby/models/info_obra.rb +285 -0
- data/lib/nuvemfiscal_sdk_ruby/models/info_prestador.rb +258 -0
- data/lib/nuvemfiscal_sdk_ruby/models/info_tomador.rb +470 -0
- data/lib/nuvemfiscal_sdk_ruby/models/info_tributacao.rb +240 -0
- data/lib/nuvemfiscal_sdk_ruby/models/info_valores.rb +256 -0
- data/lib/nuvemfiscal_sdk_ruby/models/lista_doc_ded_red.rb +252 -0
- data/lib/nuvemfiscal_sdk_ruby/models/loc_prest.rb +228 -0
- data/lib/nuvemfiscal_sdk_ruby/models/locacao_sublocacao.rb +306 -0
- data/lib/nuvemfiscal_sdk_ruby/models/manifestacao_nfe_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_documento_vinculado.rb +235 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_encerramento.rb +420 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_inclusao_condutor.rb +410 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_inclusao_dfe.rb +422 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_nao_encerrado.rb +231 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_nao_encerrados.rb +273 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_pedido_cancelamento.rb +215 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_pedido_emissao.rb +307 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_pedido_emissao_lote.rb +340 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_pedido_encerramento.rb +250 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_pedido_inclusao_condutor.rb +267 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_pedido_inclusao_dfe.rb +246 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_aereo.rb +404 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_aquav.rb +575 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_aut_xml.rb +228 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_comp.rb +282 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_condutor.rb +256 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_disp.rb +291 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_emit.rb +318 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_ende_emi.rb +460 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_ferrov.rb +259 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_ide.rb +609 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_adic.rb +276 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_antt.rb +259 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_banc.rb +322 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_ciot.rb +241 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_contratante.rb +307 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_contrato.rb +271 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_cte.rb +287 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_doc.rb +252 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_emb_comb.rb +280 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_entrega_parcial.rb +262 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_local_carrega.rb +239 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_local_descarrega.rb +239 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_lotacao.rb +238 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_mdfe.rb +398 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_mdfe_supl.rb +241 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_mdfe_transp.rb +267 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_mdfe_transp_peri.rb +396 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_modal.rb +255 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_mun_carrega.rb +256 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_mun_descarga.rb +346 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_nfe.rb +278 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_nfe_peri.rb +396 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_pag.rb +462 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_percurso.rb +219 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_prazo.rb +284 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_resp.rb +241 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_seg.rb +256 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_solic_nff.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_term_carreg.rb +280 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_term_descarreg.rb +280 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_unid_carga_vazia.rb +256 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_unid_transp_vazia.rb +256 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_lac_rodo.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_lac_unid_carga.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_lac_unid_transp.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_lacres.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_peri.rb +396 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_prod_pred.rb +287 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_prop.rb +313 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_resp_tec.rb +367 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_rodo.rb +307 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_seg.rb +278 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_tot.rb +380 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_trem.rb +365 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_unid_carga.rb +278 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_unidade_transp.rb +304 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_vag.rb +401 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_vale_ped.rb +254 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_veic_reboque.rb +431 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_veic_reboque_prop.rb +313 -0
- data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_veic_tracao.rb +488 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_pedido_cancelamento.rb +215 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_pedido_emissao.rb +298 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_assinante.rb +370 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_aut_xml.rb +228 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_cofins.rb +303 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_dest.rb +375 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_det.rb +376 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_emit.rb +331 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_ende_dest.rb +520 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_ende_emi.rb +460 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_funttel.rb +290 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_fust.rb +290 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_cofat.rb +241 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_cofat_gnf.rb +378 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_fat.rb +438 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_fat_central.rb +232 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_fidelidade.rb +306 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_proc.rb +256 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_proc_ref.rb +525 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_ressarc.rb +337 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_sub.rb +278 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_gnf.rb +378 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_gpix.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icms00.rb +355 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icms20.rb +435 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icms40.rb +271 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icms51.rb +271 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icms90.rb +401 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icms_tot.rb +318 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icmssn.rb +232 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icmsuf_dest.rb +410 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_ide.rb +579 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_imposto.rb +327 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_inf_adic.rb +272 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_inf_nf_com.rb +449 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_pis.rb +303 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_prod.rb +480 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_resp_tec.rb +367 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_ret_trib.rb +346 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_total.rb +462 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_v_ret_trib_tot.rb +318 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_pedido_cancelamento.rb +215 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_pedido_carta_correcao.rb +234 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_pedido_emissao.rb +307 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_pedido_emissao_lote.rb +347 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_adi.rb +376 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_arma.rb +330 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_aut_xml.rb +258 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_avulsa.rb +489 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cana.rb +500 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_card.rb +352 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cide.rb +290 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cobr.rb +245 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cofins.rb +242 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cofins_aliq.rb +303 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cofins_outr.rb +351 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cofins_qtde.rb +303 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cofinsnt.rb +219 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cofinsst.rb +349 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_comb.rb +544 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_compra.rb +311 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_deduc.rb +271 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_dest.rb +433 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_det.rb +328 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_det_export.rb +250 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_det_pag.rb +350 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_di.rb +517 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_dup.rb +280 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_emit.rb +446 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_encerrante.rb +371 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ender_emi.rb +447 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_endereco.rb +483 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_export_ind.rb +275 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_exporta.rb +291 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_fat.rb +319 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_for_dia.rb +271 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_g_cred.rb +275 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms.rb +395 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms00.rb +381 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms02.rb +314 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms10.rb +671 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms15.rb +442 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms20.rb +483 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms30.rb +507 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms40.rb +280 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms51.rb +601 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms53.rb +449 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms60.rb +518 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms61.rb +314 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms70.rb +747 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms90.rb +729 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_part.rb +623 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb +998 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmssn101.rb +288 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmssn102.rb +232 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmssn201.rb +515 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmssn202.rb +459 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmssn500.rb +518 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmssn900.rb +618 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmsst.rb +578 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmsuf_dest.rb +452 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ide.rb +663 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ii.rb +318 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_imposto.rb +313 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_imposto_devol.rb +258 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_imposto_devol_ipi.rb +234 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_adic.rb +366 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_adic_obs_cont.rb +274 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_adic_obs_fisco.rb +274 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_intermed.rb +271 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_nfe.rb +494 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_nfe_supl.rb +276 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_prod_emb.rb +308 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_prod_nff.rb +247 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_resp_tec.rb +382 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_solic_nff.rb +243 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ipi.rb +332 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ipi_trib.rb +350 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ipint.rb +218 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_issq_ntot.rb +490 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_issqn.rb +564 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_lacres.rb +242 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_local.rb +631 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_med.rb +282 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_n_fref.rb +311 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_obs_cont.rb +274 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_obs_fisco.rb +274 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_obs_item.rb +224 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_orig_comb.rb +269 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pag.rb +278 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pis.rb +242 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pis_aliq.rb +303 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pis_outr.rb +351 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pis_qtde.rb +303 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pisnt.rb +219 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pisst.rb +349 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_proc_ref.rb +267 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_prod.rb +1134 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_rastro.rb +330 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ref_ecf.rb +293 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ref_nf.rb +347 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ref_nfp.rb +399 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ret_transp.rb +344 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ret_trib.rb +388 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_total.rb +240 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_transp.rb +376 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_transporta.rb +400 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_veic_prod.rb +971 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_veiculo.rb +265 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_vol.rb +404 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfse.rb +372 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfse_cancelamento.rb +297 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfse_cidade_metadados.rb +291 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfse_cidades_atendidas.rb +227 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfse_dps_pedido_emissao.rb +320 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfse_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfse_lote_dps_pedido_emissao.rb +334 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfse_mensagem_retorno.rb +232 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfse_pedido_cancelamento.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfse_pedido_emissao.rb +272 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfse_pedido_sincronizacao.rb +215 -0
- data/lib/nuvemfiscal_sdk_ruby/models/nfse_sincronizacao.rb +260 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps.rb +317 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_dados.rb +223 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_dados_construcao_civil.rb +223 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_dados_intermediario.rb +232 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_dados_prestador.rb +313 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_dados_servico.rb +396 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_dados_tomador.rb +271 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_dados_tomador_endereco.rb +363 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_identificacao.rb +232 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_identificacao_prestador.rb +222 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_lote.rb +317 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_lote_listagem.rb +225 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_pedido_emissao.rb +370 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_pedido_emissao_lote.rb +311 -0
- data/lib/nuvemfiscal_sdk_ruby/models/rps_servico_valores.rb +394 -0
- data/lib/nuvemfiscal_sdk_ruby/models/serv.rb +285 -0
- data/lib/nuvemfiscal_sdk_ruby/models/substituicao.rb +282 -0
- data/lib/nuvemfiscal_sdk_ruby/models/trib_federal.rb +293 -0
- data/lib/nuvemfiscal_sdk_ruby/models/trib_municipal.rb +385 -0
- data/lib/nuvemfiscal_sdk_ruby/models/trib_outros_pis_cofins.rb +360 -0
- data/lib/nuvemfiscal_sdk_ruby/models/trib_total.rb +261 -0
- data/lib/nuvemfiscal_sdk_ruby/models/trib_total_monet.rb +290 -0
- data/lib/nuvemfiscal_sdk_ruby/models/trib_total_percent.rb +290 -0
- data/lib/nuvemfiscal_sdk_ruby/models/v_desc_cond_incond.rb +258 -0
- data/lib/nuvemfiscal_sdk_ruby/models/v_serv_prest.rb +260 -0
- data/lib/nuvemfiscal_sdk_ruby/version.rb +15 -0
- data/lib/nuvemfiscal_sdk_ruby.rb +507 -0
- data/nuvemfiscal_sdk_ruby.gemspec +39 -0
- data/spec/api/cep_api_spec.rb +47 -0
- data/spec/api/cnpj_api_spec.rb +64 -0
- data/spec/api/conta_api_spec.rb +56 -0
- data/spec/api/cte_api_spec.rb +275 -0
- data/spec/api/distribuio_nfe_api_spec.rb +187 -0
- data/spec/api/email_api_spec.rb +64 -0
- data/spec/api/empresa_api_spec.rb +341 -0
- data/spec/api/mdfe_api_spec.rb +353 -0
- data/spec/api/nfce_api_spec.rb +395 -0
- data/spec/api/nfcom_api_spec.rb +161 -0
- data/spec/api/nfe_api_spec.rb +437 -0
- data/spec/api/nfse_api_spec.rb +249 -0
- data/spec/models/atv_evento_spec.rb +72 -0
- data/spec/models/beneficio_municipal_spec.rb +54 -0
- data/spec/models/c_serv_spec.rb +60 -0
- data/spec/models/cep_endereco_spec.rb +78 -0
- data/spec/models/cnpj_cnae_secundario_spec.rb +42 -0
- data/spec/models/cnpj_cnae_spec.rb +42 -0
- data/spec/models/cnpj_empresa_spec.rb +162 -0
- data/spec/models/cnpj_endereco_spec.rb +78 -0
- data/spec/models/cnpj_faixa_etaria_spec.rb +42 -0
- data/spec/models/cnpj_identificador_socio_spec.rb +42 -0
- data/spec/models/cnpj_listagem_spec.rb +42 -0
- data/spec/models/cnpj_motivo_situacao_cadastral_spec.rb +48 -0
- data/spec/models/cnpj_municipio_spec.rb +48 -0
- data/spec/models/cnpj_natureza_juridica_spec.rb +42 -0
- data/spec/models/cnpj_opcao_simei_spec.rb +48 -0
- data/spec/models/cnpj_opcao_simples_spec.rb +48 -0
- data/spec/models/cnpj_pais_spec.rb +42 -0
- data/spec/models/cnpj_porte_empresa_spec.rb +42 -0
- data/spec/models/cnpj_qualificacao_socio_spec.rb +42 -0
- data/spec/models/cnpj_representante_legal_spec.rb +48 -0
- data/spec/models/cnpj_situacao_cadastral_spec.rb +48 -0
- data/spec/models/cnpj_situacao_especial_spec.rb +48 -0
- data/spec/models/cnpj_socio_spec.rb +78 -0
- data/spec/models/cnpj_telefone_spec.rb +42 -0
- data/spec/models/com_exterior_spec.rb +90 -0
- data/spec/models/conta_cota_listagem_spec.rb +42 -0
- data/spec/models/conta_cota_spec.rb +48 -0
- data/spec/models/cte_carta_correcao_spec.rb +128 -0
- data/spec/models/cte_inf_correcao_spec.rb +54 -0
- data/spec/models/cte_pedido_cancelamento_spec.rb +36 -0
- data/spec/models/cte_pedido_carta_correcao_spec.rb +36 -0
- data/spec/models/cte_pedido_emissao_spec.rb +58 -0
- data/spec/models/cte_sefaz_aereo_spec.rb +66 -0
- data/spec/models/cte_sefaz_aquav_spec.rb +84 -0
- data/spec/models/cte_sefaz_aut_xml_spec.rb +42 -0
- data/spec/models/cte_sefaz_balsa_spec.rb +36 -0
- data/spec/models/cte_sefaz_cobr_spec.rb +42 -0
- data/spec/models/cte_sefaz_com_data_spec.rb +42 -0
- data/spec/models/cte_sefaz_com_hora_spec.rb +42 -0
- data/spec/models/cte_sefaz_comp_spec.rb +42 -0
- data/spec/models/cte_sefaz_compl_spec.rb +90 -0
- data/spec/models/cte_sefaz_dest_spec.rb +78 -0
- data/spec/models/cte_sefaz_det_cont_inf_doc_inf_nf_spec.rb +48 -0
- data/spec/models/cte_sefaz_det_cont_inf_doc_inf_nfe_spec.rb +42 -0
- data/spec/models/cte_sefaz_det_cont_inf_doc_spec.rb +42 -0
- data/spec/models/cte_sefaz_det_cont_spec.rb +48 -0
- data/spec/models/cte_sefaz_doc_ant_spec.rb +36 -0
- data/spec/models/cte_sefaz_dup_spec.rb +48 -0
- data/spec/models/cte_sefaz_duto_spec.rb +48 -0
- data/spec/models/cte_sefaz_emi_doc_ant_spec.rb +66 -0
- data/spec/models/cte_sefaz_emi_occ_spec.rb +60 -0
- data/spec/models/cte_sefaz_emit_spec.rb +78 -0
- data/spec/models/cte_sefaz_ende_emi_spec.rb +84 -0
- data/spec/models/cte_sefaz_ender_fer_spec.rb +78 -0
- data/spec/models/cte_sefaz_endereco_spec.rb +90 -0
- data/spec/models/cte_sefaz_entrega_spec.rb +66 -0
- data/spec/models/cte_sefaz_exped_spec.rb +72 -0
- data/spec/models/cte_sefaz_fat_spec.rb +54 -0
- data/spec/models/cte_sefaz_ferro_env_spec.rb +60 -0
- data/spec/models/cte_sefaz_ferrov_spec.rb +48 -0
- data/spec/models/cte_sefaz_fluxo_spec.rb +54 -0
- data/spec/models/cte_sefaz_icms00_spec.rb +54 -0
- data/spec/models/cte_sefaz_icms20_spec.rb +72 -0
- data/spec/models/cte_sefaz_icms45_spec.rb +48 -0
- data/spec/models/cte_sefaz_icms60_spec.rb +72 -0
- data/spec/models/cte_sefaz_icms90_spec.rb +78 -0
- data/spec/models/cte_sefaz_icms_outra_uf_spec.rb +72 -0
- data/spec/models/cte_sefaz_icmssn_spec.rb +42 -0
- data/spec/models/cte_sefaz_icmsuf_fim_spec.rb +72 -0
- data/spec/models/cte_sefaz_id_doc_ant_ele_spec.rb +36 -0
- data/spec/models/cte_sefaz_id_doc_ant_pap_spec.rb +60 -0
- data/spec/models/cte_sefaz_id_doc_ant_spec.rb +42 -0
- data/spec/models/cte_sefaz_ide_spec.rb +234 -0
- data/spec/models/cte_sefaz_imp_spec.rb +72 -0
- data/spec/models/cte_sefaz_inf_carga_spec.rb +60 -0
- data/spec/models/cte_sefaz_inf_cte_comp_spec.rb +36 -0
- data/spec/models/cte_sefaz_inf_cte_imp_spec.rb +54 -0
- data/spec/models/cte_sefaz_inf_cte_multimodal_spec.rb +36 -0
- data/spec/models/cte_sefaz_inf_cte_norm_spec.rb +84 -0
- data/spec/models/cte_sefaz_inf_cte_spec.rb +126 -0
- data/spec/models/cte_sefaz_inf_cte_sub_spec.rb +42 -0
- data/spec/models/cte_sefaz_inf_cte_supl_spec.rb +36 -0
- data/spec/models/cte_sefaz_inf_doc_spec.rb +48 -0
- data/spec/models/cte_sefaz_inf_globalizado_spec.rb +36 -0
- data/spec/models/cte_sefaz_inf_modal_spec.rb +72 -0
- data/spec/models/cte_sefaz_inf_nf_spec.rb +138 -0
- data/spec/models/cte_sefaz_inf_nfe_spec.rb +60 -0
- data/spec/models/cte_sefaz_inf_outros_spec.rb +78 -0
- data/spec/models/cte_sefaz_inf_q_spec.rb +48 -0
- data/spec/models/cte_sefaz_inf_seg_spec.rb +42 -0
- data/spec/models/cte_sefaz_inf_serv_vinc_spec.rb +36 -0
- data/spec/models/cte_sefaz_inf_solic_nff_spec.rb +36 -0
- data/spec/models/cte_sefaz_inf_tot_ap_spec.rb +42 -0
- data/spec/models/cte_sefaz_lac_unid_carga_spec.rb +36 -0
- data/spec/models/cte_sefaz_lac_unid_transp_spec.rb +36 -0
- data/spec/models/cte_sefaz_lacre_spec.rb +36 -0
- data/spec/models/cte_sefaz_multimodal_spec.rb +48 -0
- data/spec/models/cte_sefaz_nat_carga_spec.rb +42 -0
- data/spec/models/cte_sefaz_no_inter_spec.rb +48 -0
- data/spec/models/cte_sefaz_no_periodo_spec.rb +48 -0
- data/spec/models/cte_sefaz_obs_cont_spec.rb +42 -0
- data/spec/models/cte_sefaz_obs_fisco_spec.rb +42 -0
- data/spec/models/cte_sefaz_occ_spec.rb +54 -0
- data/spec/models/cte_sefaz_pass_spec.rb +36 -0
- data/spec/models/cte_sefaz_peri_spec.rb +48 -0
- data/spec/models/cte_sefaz_receb_spec.rb +72 -0
- data/spec/models/cte_sefaz_rem_spec.rb +78 -0
- data/spec/models/cte_sefaz_resp_tec_spec.rb +66 -0
- data/spec/models/cte_sefaz_rodo_spec.rb +42 -0
- data/spec/models/cte_sefaz_seg_spec.rb +48 -0
- data/spec/models/cte_sefaz_sem_data_spec.rb +36 -0
- data/spec/models/cte_sefaz_sem_hora_spec.rb +36 -0
- data/spec/models/cte_sefaz_tarifa_spec.rb +48 -0
- data/spec/models/cte_sefaz_toma3_spec.rb +36 -0
- data/spec/models/cte_sefaz_toma4_spec.rb +84 -0
- data/spec/models/cte_sefaz_traf_mut_spec.rb +60 -0
- data/spec/models/cte_sefaz_unid_carga_spec.rb +54 -0
- data/spec/models/cte_sefaz_unidade_transp_spec.rb +60 -0
- data/spec/models/cte_sefaz_v_prest_spec.rb +48 -0
- data/spec/models/cte_sefaz_veic_novos_spec.rb +66 -0
- data/spec/models/dfe_autor_evento_spec.rb +36 -0
- data/spec/models/dfe_autorizacao_spec.rb +128 -0
- data/spec/models/dfe_cancelamento_spec.rb +128 -0
- data/spec/models/dfe_carta_correcao_spec.rb +128 -0
- data/spec/models/dfe_contribuinte_endereco_spec.rb +96 -0
- data/spec/models/dfe_contribuinte_inf_cad_spec.rb +132 -0
- data/spec/models/dfe_contribuinte_inf_cons_spec.rb +84 -0
- data/spec/models/dfe_evento_listagem_spec.rb +42 -0
- data/spec/models/dfe_evento_spec.rb +122 -0
- data/spec/models/dfe_inutilizacao_spec.rb +164 -0
- data/spec/models/dfe_listagem_spec.rb +42 -0
- data/spec/models/dfe_lote_listagem_spec.rb +42 -0
- data/spec/models/dfe_lote_spec.rb +86 -0
- data/spec/models/dfe_pedido_envio_email_spec.rb +36 -0
- data/spec/models/dfe_pedido_inutilizacao_spec.rb +76 -0
- data/spec/models/dfe_recibo_spec.rb +66 -0
- data/spec/models/dfe_sefaz_status_spec.rb +80 -0
- data/spec/models/dfe_sincronizacao_spec.rb +64 -0
- data/spec/models/dfe_spec.rb +116 -0
- data/spec/models/distribuicao_nfe_documento_listagem_spec.rb +42 -0
- data/spec/models/distribuicao_nfe_documento_spec.rb +142 -0
- data/spec/models/distribuicao_nfe_evento_spec.rb +122 -0
- data/spec/models/distribuicao_nfe_listagem_spec.rb +42 -0
- data/spec/models/distribuicao_nfe_nota_listagem_spec.rb +42 -0
- data/spec/models/distribuicao_nfe_nota_spec.rb +78 -0
- data/spec/models/distribuicao_nfe_pedido_manifestacao_spec.rb +64 -0
- data/spec/models/distribuicao_nfe_pedido_spec.rb +86 -0
- data/spec/models/distribuicao_nfe_spec.rb +132 -0
- data/spec/models/doc_ded_red_spec.rb +102 -0
- data/spec/models/doc_nfnfs_spec.rb +48 -0
- data/spec/models/doc_out_nfse_spec.rb +48 -0
- data/spec/models/dps_spec.rb +42 -0
- data/spec/models/email_attachment_spec.rb +42 -0
- data/spec/models/email_event_spec.rb +54 -0
- data/spec/models/email_listagem_spec.rb +42 -0
- data/spec/models/email_resumo_spec.rb +64 -0
- data/spec/models/email_spec.rb +88 -0
- data/spec/models/email_status_response_spec.rb +52 -0
- data/spec/models/empresa_certificado_spec.rb +78 -0
- data/spec/models/empresa_config_cte_spec.rb +46 -0
- data/spec/models/empresa_config_distribuicao_nfe_spec.rb +52 -0
- data/spec/models/empresa_config_mdfe_spec.rb +40 -0
- data/spec/models/empresa_config_nfce_sefaz_spec.rb +42 -0
- data/spec/models/empresa_config_nfce_spec.rb +52 -0
- data/spec/models/empresa_config_nfcom_spec.rb +46 -0
- data/spec/models/empresa_config_nfe_spec.rb +46 -0
- data/spec/models/empresa_config_nfse_reg_trib_spec.rb +48 -0
- data/spec/models/empresa_config_nfse_spec.rb +64 -0
- data/spec/models/empresa_config_prefeitura_spec.rb +48 -0
- data/spec/models/empresa_config_rps_spec.rb +48 -0
- data/spec/models/empresa_endereco_spec.rb +90 -0
- data/spec/models/empresa_listagem_spec.rb +42 -0
- data/spec/models/empresa_pedido_cadastro_certificado_spec.rb +42 -0
- data/spec/models/empresa_spec.rb +90 -0
- data/spec/models/ender_ext_simples_spec.rb +48 -0
- data/spec/models/ender_ext_spec.rb +54 -0
- data/spec/models/ender_nac_spec.rb +42 -0
- data/spec/models/endereco_email_spec.rb +36 -0
- data/spec/models/endereco_simples_spec.rb +66 -0
- data/spec/models/endereco_spec.rb +66 -0
- data/spec/models/exig_suspensa_spec.rb +42 -0
- data/spec/models/exploracao_rodoviaria_spec.rb +72 -0
- data/spec/models/inf_dps_spec.rb +90 -0
- data/spec/models/info_compl_spec.rb +48 -0
- data/spec/models/info_ded_red_spec.rb +48 -0
- data/spec/models/info_fornec_doc_ded_red_spec.rb +90 -0
- data/spec/models/info_intermediario_spec.rb +90 -0
- data/spec/models/info_obra_spec.rb +48 -0
- data/spec/models/info_prestador_spec.rb +42 -0
- data/spec/models/info_tomador_spec.rb +96 -0
- data/spec/models/info_tributacao_spec.rb +48 -0
- data/spec/models/info_valores_spec.rb +54 -0
- data/spec/models/lista_doc_ded_red_spec.rb +36 -0
- data/spec/models/loc_prest_spec.rb +42 -0
- data/spec/models/locacao_sublocacao_spec.rb +54 -0
- data/spec/models/manifestacao_nfe_listagem_spec.rb +42 -0
- data/spec/models/mdfe_documento_vinculado_spec.rb +48 -0
- data/spec/models/mdfe_encerramento_spec.rb +140 -0
- data/spec/models/mdfe_inclusao_condutor_spec.rb +134 -0
- data/spec/models/mdfe_inclusao_dfe_spec.rb +140 -0
- data/spec/models/mdfe_nao_encerrado_spec.rb +42 -0
- data/spec/models/mdfe_nao_encerrados_spec.rb +66 -0
- data/spec/models/mdfe_pedido_cancelamento_spec.rb +36 -0
- data/spec/models/mdfe_pedido_emissao_lote_spec.rb +58 -0
- data/spec/models/mdfe_pedido_emissao_spec.rb +58 -0
- data/spec/models/mdfe_pedido_encerramento_spec.rb +48 -0
- data/spec/models/mdfe_pedido_inclusao_condutor_spec.rb +42 -0
- data/spec/models/mdfe_pedido_inclusao_dfe_spec.rb +54 -0
- data/spec/models/mdfe_sefaz_aereo_spec.rb +66 -0
- data/spec/models/mdfe_sefaz_aquav_spec.rb +114 -0
- data/spec/models/mdfe_sefaz_aut_xml_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_comp_spec.rb +48 -0
- data/spec/models/mdfe_sefaz_condutor_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_disp_spec.rb +66 -0
- data/spec/models/mdfe_sefaz_emit_spec.rb +66 -0
- data/spec/models/mdfe_sefaz_ende_emi_spec.rb +90 -0
- data/spec/models/mdfe_sefaz_ferrov_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_ide_spec.rb +156 -0
- data/spec/models/mdfe_sefaz_inf_adic_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_inf_antt_spec.rb +60 -0
- data/spec/models/mdfe_sefaz_inf_banc_spec.rb +54 -0
- data/spec/models/mdfe_sefaz_inf_ciot_spec.rb +48 -0
- data/spec/models/mdfe_sefaz_inf_contratante_spec.rb +60 -0
- data/spec/models/mdfe_sefaz_inf_contrato_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_inf_cte_spec.rb +66 -0
- data/spec/models/mdfe_sefaz_inf_doc_spec.rb +36 -0
- data/spec/models/mdfe_sefaz_inf_emb_comb_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_inf_entrega_parcial_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_inf_local_carrega_spec.rb +48 -0
- data/spec/models/mdfe_sefaz_inf_local_descarrega_spec.rb +48 -0
- data/spec/models/mdfe_sefaz_inf_lotacao_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_inf_mdfe_spec.rb +114 -0
- data/spec/models/mdfe_sefaz_inf_mdfe_supl_spec.rb +36 -0
- data/spec/models/mdfe_sefaz_inf_mdfe_transp_peri_spec.rb +66 -0
- data/spec/models/mdfe_sefaz_inf_mdfe_transp_spec.rb +54 -0
- data/spec/models/mdfe_sefaz_inf_modal_spec.rb +60 -0
- data/spec/models/mdfe_sefaz_inf_mun_carrega_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_inf_mun_descarga_spec.rb +60 -0
- data/spec/models/mdfe_sefaz_inf_nfe_peri_spec.rb +66 -0
- data/spec/models/mdfe_sefaz_inf_nfe_spec.rb +60 -0
- data/spec/models/mdfe_sefaz_inf_pag_spec.rb +108 -0
- data/spec/models/mdfe_sefaz_inf_percurso_spec.rb +36 -0
- data/spec/models/mdfe_sefaz_inf_prazo_spec.rb +48 -0
- data/spec/models/mdfe_sefaz_inf_resp_spec.rb +48 -0
- data/spec/models/mdfe_sefaz_inf_seg_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_inf_solic_nff_spec.rb +36 -0
- data/spec/models/mdfe_sefaz_inf_term_carreg_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_inf_term_descarreg_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_inf_unid_carga_vazia_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_inf_unid_transp_vazia_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_lac_rodo_spec.rb +36 -0
- data/spec/models/mdfe_sefaz_lac_unid_carga_spec.rb +36 -0
- data/spec/models/mdfe_sefaz_lac_unid_transp_spec.rb +36 -0
- data/spec/models/mdfe_sefaz_lacres_spec.rb +36 -0
- data/spec/models/mdfe_sefaz_peri_spec.rb +66 -0
- data/spec/models/mdfe_sefaz_prod_pred_spec.rb +60 -0
- data/spec/models/mdfe_sefaz_prop_spec.rb +72 -0
- data/spec/models/mdfe_sefaz_resp_tec_spec.rb +66 -0
- data/spec/models/mdfe_sefaz_rodo_spec.rb +60 -0
- data/spec/models/mdfe_sefaz_seg_spec.rb +54 -0
- data/spec/models/mdfe_sefaz_tot_spec.rb +66 -0
- data/spec/models/mdfe_sefaz_trem_spec.rb +60 -0
- data/spec/models/mdfe_sefaz_unid_carga_spec.rb +54 -0
- data/spec/models/mdfe_sefaz_unidade_transp_spec.rb +60 -0
- data/spec/models/mdfe_sefaz_vag_spec.rb +72 -0
- data/spec/models/mdfe_sefaz_vale_ped_spec.rb +42 -0
- data/spec/models/mdfe_sefaz_veic_reboque_prop_spec.rb +72 -0
- data/spec/models/mdfe_sefaz_veic_reboque_spec.rb +84 -0
- data/spec/models/mdfe_sefaz_veic_tracao_spec.rb +96 -0
- data/spec/models/nfcom_pedido_cancelamento_spec.rb +36 -0
- data/spec/models/nfcom_pedido_emissao_spec.rb +52 -0
- data/spec/models/nfcom_sefaz_assinante_spec.rb +90 -0
- data/spec/models/nfcom_sefaz_aut_xml_spec.rb +42 -0
- data/spec/models/nfcom_sefaz_cofins_spec.rb +54 -0
- data/spec/models/nfcom_sefaz_dest_spec.rb +78 -0
- data/spec/models/nfcom_sefaz_det_spec.rb +84 -0
- data/spec/models/nfcom_sefaz_emit_spec.rb +72 -0
- data/spec/models/nfcom_sefaz_ende_dest_spec.rb +102 -0
- data/spec/models/nfcom_sefaz_ende_emi_spec.rb +90 -0
- data/spec/models/nfcom_sefaz_funttel_spec.rb +48 -0
- data/spec/models/nfcom_sefaz_fust_spec.rb +48 -0
- data/spec/models/nfcom_sefaz_g_cofat_gnf_spec.rb +66 -0
- data/spec/models/nfcom_sefaz_g_cofat_spec.rb +42 -0
- data/spec/models/nfcom_sefaz_g_fat_central_spec.rb +42 -0
- data/spec/models/nfcom_sefaz_g_fat_spec.rb +90 -0
- data/spec/models/nfcom_sefaz_g_fidelidade_spec.rb +54 -0
- data/spec/models/nfcom_sefaz_g_proc_ref_spec.rb +108 -0
- data/spec/models/nfcom_sefaz_g_proc_spec.rb +42 -0
- data/spec/models/nfcom_sefaz_g_ressarc_spec.rb +60 -0
- data/spec/models/nfcom_sefaz_g_sub_spec.rb +48 -0
- data/spec/models/nfcom_sefaz_gnf_spec.rb +66 -0
- data/spec/models/nfcom_sefaz_gpix_spec.rb +36 -0
- data/spec/models/nfcom_sefaz_icms00_spec.rb +66 -0
- data/spec/models/nfcom_sefaz_icms20_spec.rb +84 -0
- data/spec/models/nfcom_sefaz_icms40_spec.rb +48 -0
- data/spec/models/nfcom_sefaz_icms51_spec.rb +48 -0
- data/spec/models/nfcom_sefaz_icms90_spec.rb +78 -0
- data/spec/models/nfcom_sefaz_icms_tot_spec.rb +54 -0
- data/spec/models/nfcom_sefaz_icmssn_spec.rb +42 -0
- data/spec/models/nfcom_sefaz_icmsuf_dest_spec.rb +78 -0
- data/spec/models/nfcom_sefaz_ide_spec.rb +144 -0
- data/spec/models/nfcom_sefaz_imposto_spec.rb +108 -0
- data/spec/models/nfcom_sefaz_inf_adic_spec.rb +42 -0
- data/spec/models/nfcom_sefaz_inf_nf_com_spec.rb +126 -0
- data/spec/models/nfcom_sefaz_pis_spec.rb +54 -0
- data/spec/models/nfcom_sefaz_prod_spec.rb +108 -0
- data/spec/models/nfcom_sefaz_resp_tec_spec.rb +66 -0
- data/spec/models/nfcom_sefaz_ret_trib_spec.rb +60 -0
- data/spec/models/nfcom_sefaz_total_spec.rb +90 -0
- data/spec/models/nfcom_sefaz_v_ret_trib_tot_spec.rb +54 -0
- data/spec/models/nfe_pedido_cancelamento_spec.rb +36 -0
- data/spec/models/nfe_pedido_carta_correcao_spec.rb +36 -0
- data/spec/models/nfe_pedido_emissao_lote_spec.rb +58 -0
- data/spec/models/nfe_pedido_emissao_spec.rb +58 -0
- data/spec/models/nfe_sefaz_adi_spec.rb +60 -0
- data/spec/models/nfe_sefaz_arma_spec.rb +54 -0
- data/spec/models/nfe_sefaz_aut_xml_spec.rb +42 -0
- data/spec/models/nfe_sefaz_avulsa_spec.rb +96 -0
- data/spec/models/nfe_sefaz_cana_spec.rb +90 -0
- data/spec/models/nfe_sefaz_card_spec.rb +66 -0
- data/spec/models/nfe_sefaz_cide_spec.rb +48 -0
- data/spec/models/nfe_sefaz_cobr_spec.rb +42 -0
- data/spec/models/nfe_sefaz_cofins_aliq_spec.rb +54 -0
- data/spec/models/nfe_sefaz_cofins_outr_spec.rb +66 -0
- data/spec/models/nfe_sefaz_cofins_qtde_spec.rb +54 -0
- data/spec/models/nfe_sefaz_cofins_spec.rb +54 -0
- data/spec/models/nfe_sefaz_cofinsnt_spec.rb +36 -0
- data/spec/models/nfe_sefaz_cofinsst_spec.rb +66 -0
- data/spec/models/nfe_sefaz_comb_spec.rb +108 -0
- data/spec/models/nfe_sefaz_compra_spec.rb +48 -0
- data/spec/models/nfe_sefaz_deduc_spec.rb +42 -0
- data/spec/models/nfe_sefaz_dest_spec.rb +90 -0
- data/spec/models/nfe_sefaz_det_export_spec.rb +42 -0
- data/spec/models/nfe_sefaz_det_pag_spec.rb +78 -0
- data/spec/models/nfe_sefaz_det_spec.rb +66 -0
- data/spec/models/nfe_sefaz_di_spec.rb +108 -0
- data/spec/models/nfe_sefaz_dup_spec.rb +48 -0
- data/spec/models/nfe_sefaz_emit_spec.rb +90 -0
- data/spec/models/nfe_sefaz_encerrante_spec.rb +60 -0
- data/spec/models/nfe_sefaz_ender_emi_spec.rb +96 -0
- data/spec/models/nfe_sefaz_endereco_spec.rb +96 -0
- data/spec/models/nfe_sefaz_export_ind_spec.rb +48 -0
- data/spec/models/nfe_sefaz_exporta_spec.rb +48 -0
- data/spec/models/nfe_sefaz_fat_spec.rb +54 -0
- data/spec/models/nfe_sefaz_for_dia_spec.rb +42 -0
- data/spec/models/nfe_sefaz_g_cred_spec.rb +48 -0
- data/spec/models/nfe_sefaz_icms00_spec.rb +78 -0
- data/spec/models/nfe_sefaz_icms02_spec.rb +60 -0
- data/spec/models/nfe_sefaz_icms10_spec.rb +150 -0
- data/spec/models/nfe_sefaz_icms15_spec.rb +90 -0
- data/spec/models/nfe_sefaz_icms20_spec.rb +108 -0
- data/spec/models/nfe_sefaz_icms30_spec.rb +114 -0
- data/spec/models/nfe_sefaz_icms40_spec.rb +60 -0
- data/spec/models/nfe_sefaz_icms51_spec.rb +132 -0
- data/spec/models/nfe_sefaz_icms53_spec.rb +90 -0
- data/spec/models/nfe_sefaz_icms60_spec.rb +108 -0
- data/spec/models/nfe_sefaz_icms61_spec.rb +60 -0
- data/spec/models/nfe_sefaz_icms70_spec.rb +174 -0
- data/spec/models/nfe_sefaz_icms90_spec.rb +174 -0
- data/spec/models/nfe_sefaz_icms_part_spec.rb +138 -0
- data/spec/models/nfe_sefaz_icms_spec.rb +156 -0
- data/spec/models/nfe_sefaz_icms_tot_spec.rb +204 -0
- data/spec/models/nfe_sefaz_icmssn101_spec.rb +54 -0
- data/spec/models/nfe_sefaz_icmssn102_spec.rb +42 -0
- data/spec/models/nfe_sefaz_icmssn201_spec.rb +108 -0
- data/spec/models/nfe_sefaz_icmssn202_spec.rb +96 -0
- data/spec/models/nfe_sefaz_icmssn500_spec.rb +108 -0
- data/spec/models/nfe_sefaz_icmssn900_spec.rb +138 -0
- data/spec/models/nfe_sefaz_icmsst_spec.rb +120 -0
- data/spec/models/nfe_sefaz_icmsuf_dest_spec.rb +84 -0
- data/spec/models/nfe_sefaz_ide_spec.rb +174 -0
- data/spec/models/nfe_sefaz_ii_spec.rb +54 -0
- data/spec/models/nfe_sefaz_imposto_devol_ipi_spec.rb +36 -0
- data/spec/models/nfe_sefaz_imposto_devol_spec.rb +42 -0
- data/spec/models/nfe_sefaz_imposto_spec.rb +90 -0
- data/spec/models/nfe_sefaz_inf_adic_obs_cont_spec.rb +42 -0
- data/spec/models/nfe_sefaz_inf_adic_obs_fisco_spec.rb +42 -0
- data/spec/models/nfe_sefaz_inf_adic_spec.rb +60 -0
- data/spec/models/nfe_sefaz_inf_intermed_spec.rb +42 -0
- data/spec/models/nfe_sefaz_inf_nfe_spec.rb +156 -0
- data/spec/models/nfe_sefaz_inf_nfe_supl_spec.rb +42 -0
- data/spec/models/nfe_sefaz_inf_prod_emb_spec.rb +48 -0
- data/spec/models/nfe_sefaz_inf_prod_nff_spec.rb +42 -0
- data/spec/models/nfe_sefaz_inf_resp_tec_spec.rb +66 -0
- data/spec/models/nfe_sefaz_inf_solic_nff_spec.rb +36 -0
- data/spec/models/nfe_sefaz_ipi_spec.rb +66 -0
- data/spec/models/nfe_sefaz_ipi_trib_spec.rb +66 -0
- data/spec/models/nfe_sefaz_ipint_spec.rb +36 -0
- data/spec/models/nfe_sefaz_issq_ntot_spec.rb +102 -0
- data/spec/models/nfe_sefaz_issqn_spec.rb +126 -0
- data/spec/models/nfe_sefaz_lacres_spec.rb +36 -0
- data/spec/models/nfe_sefaz_local_spec.rb +126 -0
- data/spec/models/nfe_sefaz_med_spec.rb +48 -0
- data/spec/models/nfe_sefaz_n_fref_spec.rb +66 -0
- data/spec/models/nfe_sefaz_obs_cont_spec.rb +42 -0
- data/spec/models/nfe_sefaz_obs_fisco_spec.rb +42 -0
- data/spec/models/nfe_sefaz_obs_item_spec.rb +42 -0
- data/spec/models/nfe_sefaz_orig_comb_spec.rb +48 -0
- data/spec/models/nfe_sefaz_pag_spec.rb +42 -0
- data/spec/models/nfe_sefaz_pis_aliq_spec.rb +54 -0
- data/spec/models/nfe_sefaz_pis_outr_spec.rb +66 -0
- data/spec/models/nfe_sefaz_pis_qtde_spec.rb +54 -0
- data/spec/models/nfe_sefaz_pis_spec.rb +54 -0
- data/spec/models/nfe_sefaz_pisnt_spec.rb +36 -0
- data/spec/models/nfe_sefaz_pisst_spec.rb +66 -0
- data/spec/models/nfe_sefaz_proc_ref_spec.rb +48 -0
- data/spec/models/nfe_sefaz_prod_spec.rb +270 -0
- data/spec/models/nfe_sefaz_rastro_spec.rb +60 -0
- data/spec/models/nfe_sefaz_ref_ecf_spec.rb +48 -0
- data/spec/models/nfe_sefaz_ref_nf_spec.rb +66 -0
- data/spec/models/nfe_sefaz_ref_nfp_spec.rb +78 -0
- data/spec/models/nfe_sefaz_ret_transp_spec.rb +66 -0
- data/spec/models/nfe_sefaz_ret_trib_spec.rb +72 -0
- data/spec/models/nfe_sefaz_total_spec.rb +48 -0
- data/spec/models/nfe_sefaz_transp_spec.rb +78 -0
- data/spec/models/nfe_sefaz_transporta_spec.rb +72 -0
- data/spec/models/nfe_sefaz_veic_prod_spec.rb +174 -0
- data/spec/models/nfe_sefaz_veiculo_spec.rb +48 -0
- data/spec/models/nfe_sefaz_vol_spec.rb +72 -0
- data/spec/models/nfse_cancelamento_spec.rb +70 -0
- data/spec/models/nfse_cidade_metadados_spec.rb +74 -0
- data/spec/models/nfse_cidades_atendidas_spec.rb +42 -0
- data/spec/models/nfse_dps_pedido_emissao_spec.rb +62 -0
- data/spec/models/nfse_listagem_spec.rb +42 -0
- data/spec/models/nfse_lote_dps_pedido_emissao_spec.rb +62 -0
- data/spec/models/nfse_mensagem_retorno_spec.rb +48 -0
- data/spec/models/nfse_pedido_cancelamento_spec.rb +42 -0
- data/spec/models/nfse_pedido_emissao_spec.rb +46 -0
- data/spec/models/nfse_pedido_sincronizacao_spec.rb +36 -0
- data/spec/models/nfse_sincronizacao_spec.rb +46 -0
- data/spec/models/nfse_spec.rb +116 -0
- data/spec/models/rps_dados_construcao_civil_spec.rb +42 -0
- data/spec/models/rps_dados_intermediario_spec.rb +48 -0
- data/spec/models/rps_dados_prestador_spec.rb +102 -0
- data/spec/models/rps_dados_servico_spec.rb +120 -0
- data/spec/models/rps_dados_spec.rb +42 -0
- data/spec/models/rps_dados_tomador_endereco_spec.rb +90 -0
- data/spec/models/rps_dados_tomador_spec.rb +66 -0
- data/spec/models/rps_identificacao_prestador_spec.rb +36 -0
- data/spec/models/rps_identificacao_spec.rb +48 -0
- data/spec/models/rps_lote_listagem_spec.rb +42 -0
- data/spec/models/rps_lote_spec.rb +80 -0
- data/spec/models/rps_pedido_emissao_lote_spec.rb +52 -0
- data/spec/models/rps_pedido_emissao_spec.rb +90 -0
- data/spec/models/rps_servico_valores_spec.rb +150 -0
- data/spec/models/rps_spec.rb +84 -0
- data/spec/models/serv_spec.rb +78 -0
- data/spec/models/substituicao_spec.rb +48 -0
- data/spec/models/trib_federal_spec.rb +54 -0
- data/spec/models/trib_municipal_spec.rb +96 -0
- data/spec/models/trib_outros_pis_cofins_spec.rb +72 -0
- data/spec/models/trib_total_monet_spec.rb +48 -0
- data/spec/models/trib_total_percent_spec.rb +48 -0
- data/spec/models/trib_total_spec.rb +54 -0
- data/spec/models/v_desc_cond_incond_spec.rb +42 -0
- data/spec/models/v_serv_prest_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1967 -0
@@ -0,0 +1,394 @@
|
|
1
|
+
=begin
|
2
|
+
#API Nuvem Fiscal
|
3
|
+
|
4
|
+
#API para automação comercial e documentos fiscais.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.44.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'json'
|
15
|
+
require 'logger'
|
16
|
+
require 'tempfile'
|
17
|
+
require 'time'
|
18
|
+
require 'typhoeus'
|
19
|
+
|
20
|
+
|
21
|
+
module NuvemfiscalSdkRuby
|
22
|
+
class ApiClient
|
23
|
+
# The Configuration object holding settings to be used in the API client.
|
24
|
+
attr_accessor :config
|
25
|
+
|
26
|
+
# Defines the headers to be used in HTTP requests of all API calls by default.
|
27
|
+
#
|
28
|
+
# @return [Hash]
|
29
|
+
attr_accessor :default_headers
|
30
|
+
|
31
|
+
# Initializes the ApiClient
|
32
|
+
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
33
|
+
def initialize(config = Configuration.default)
|
34
|
+
@config = config
|
35
|
+
@user_agent = "OpenAPI-Generator/#{VERSION}/ruby"
|
36
|
+
@default_headers = {
|
37
|
+
'Content-Type' => 'application/json',
|
38
|
+
'User-Agent' => @user_agent
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.default
|
43
|
+
@@default ||= ApiClient.new
|
44
|
+
end
|
45
|
+
|
46
|
+
# Call an API with given options.
|
47
|
+
#
|
48
|
+
# @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
|
49
|
+
# the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
|
50
|
+
def call_api(http_method, path, opts = {})
|
51
|
+
request = build_request(http_method, path, opts)
|
52
|
+
tempfile = download_file(request) if opts[:return_type] == 'File'
|
53
|
+
response = request.run
|
54
|
+
|
55
|
+
if @config.debugging
|
56
|
+
@config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
|
57
|
+
end
|
58
|
+
|
59
|
+
unless response.success?
|
60
|
+
if response.timed_out?
|
61
|
+
fail ApiError.new('Connection timed out')
|
62
|
+
elsif response.code == 0
|
63
|
+
# Errors from libcurl will be made visible here
|
64
|
+
fail ApiError.new(:code => 0,
|
65
|
+
:message => response.return_message)
|
66
|
+
else
|
67
|
+
fail ApiError.new(:code => response.code,
|
68
|
+
:response_headers => response.headers,
|
69
|
+
:response_body => response.body),
|
70
|
+
response.status_message
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
if opts[:return_type] == 'File'
|
75
|
+
data = tempfile
|
76
|
+
elsif opts[:return_type]
|
77
|
+
data = deserialize(response, opts[:return_type])
|
78
|
+
else
|
79
|
+
data = nil
|
80
|
+
end
|
81
|
+
return data, response.code, response.headers
|
82
|
+
end
|
83
|
+
|
84
|
+
# Builds the HTTP request
|
85
|
+
#
|
86
|
+
# @param [String] http_method HTTP method/verb (e.g. POST)
|
87
|
+
# @param [String] path URL path (e.g. /account/new)
|
88
|
+
# @option opts [Hash] :header_params Header parameters
|
89
|
+
# @option opts [Hash] :query_params Query parameters
|
90
|
+
# @option opts [Hash] :form_params Query parameters
|
91
|
+
# @option opts [Object] :body HTTP body (JSON/XML)
|
92
|
+
# @return [Typhoeus::Request] A Typhoeus Request
|
93
|
+
def build_request(http_method, path, opts = {})
|
94
|
+
url = build_request_url(path, opts)
|
95
|
+
http_method = http_method.to_sym.downcase
|
96
|
+
|
97
|
+
header_params = @default_headers.merge(opts[:header_params] || {})
|
98
|
+
query_params = opts[:query_params] || {}
|
99
|
+
form_params = opts[:form_params] || {}
|
100
|
+
follow_location = opts[:follow_location] || true
|
101
|
+
|
102
|
+
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
103
|
+
|
104
|
+
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
|
105
|
+
_verify_ssl_host = @config.verify_ssl_host ? 2 : 0
|
106
|
+
|
107
|
+
req_opts = {
|
108
|
+
:method => http_method,
|
109
|
+
:headers => header_params,
|
110
|
+
:params => query_params,
|
111
|
+
:params_encoding => @config.params_encoding,
|
112
|
+
:timeout => @config.timeout,
|
113
|
+
:ssl_verifypeer => @config.verify_ssl,
|
114
|
+
:ssl_verifyhost => _verify_ssl_host,
|
115
|
+
:sslcert => @config.cert_file,
|
116
|
+
:sslkey => @config.key_file,
|
117
|
+
:verbose => @config.debugging,
|
118
|
+
:followlocation => follow_location
|
119
|
+
}
|
120
|
+
|
121
|
+
# set custom cert, if provided
|
122
|
+
req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
|
123
|
+
|
124
|
+
if [:post, :patch, :put, :delete].include?(http_method)
|
125
|
+
req_body = build_request_body(header_params, form_params, opts[:body])
|
126
|
+
req_opts.update :body => req_body
|
127
|
+
if @config.debugging
|
128
|
+
@config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
Typhoeus::Request.new(url, req_opts)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Builds the HTTP request body
|
136
|
+
#
|
137
|
+
# @param [Hash] header_params Header parameters
|
138
|
+
# @param [Hash] form_params Query parameters
|
139
|
+
# @param [Object] body HTTP body (JSON/XML)
|
140
|
+
# @return [String] HTTP body data in the form of string
|
141
|
+
def build_request_body(header_params, form_params, body)
|
142
|
+
# http form
|
143
|
+
if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
|
144
|
+
header_params['Content-Type'] == 'multipart/form-data'
|
145
|
+
data = {}
|
146
|
+
form_params.each do |key, value|
|
147
|
+
case value
|
148
|
+
when ::File, ::Array, nil
|
149
|
+
# let typhoeus handle File, Array and nil parameters
|
150
|
+
data[key] = value
|
151
|
+
else
|
152
|
+
data[key] = value.to_s
|
153
|
+
end
|
154
|
+
end
|
155
|
+
elsif body
|
156
|
+
data = body.is_a?(String) ? body : body.to_json
|
157
|
+
else
|
158
|
+
data = nil
|
159
|
+
end
|
160
|
+
data
|
161
|
+
end
|
162
|
+
|
163
|
+
# Save response body into a file in (the defined) temporary folder, using the filename
|
164
|
+
# from the "Content-Disposition" header if provided, otherwise a random filename.
|
165
|
+
# The response body is written to the file in chunks in order to handle files which
|
166
|
+
# size is larger than maximum Ruby String or even larger than the maximum memory a Ruby
|
167
|
+
# process can use.
|
168
|
+
#
|
169
|
+
# @see Configuration#temp_folder_path
|
170
|
+
#
|
171
|
+
# @return [Tempfile] the tempfile generated
|
172
|
+
def download_file(request)
|
173
|
+
tempfile = nil
|
174
|
+
encoding = nil
|
175
|
+
request.on_headers do |response|
|
176
|
+
content_disposition = response.headers['Content-Disposition']
|
177
|
+
if content_disposition && content_disposition =~ /filename=/i
|
178
|
+
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
179
|
+
prefix = sanitize_filename(filename)
|
180
|
+
else
|
181
|
+
prefix = 'download-'
|
182
|
+
end
|
183
|
+
prefix = prefix + '-' unless prefix.end_with?('-')
|
184
|
+
encoding = response.body.encoding
|
185
|
+
tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
|
186
|
+
end
|
187
|
+
request.on_body do |chunk|
|
188
|
+
chunk.force_encoding(encoding)
|
189
|
+
tempfile.write(chunk)
|
190
|
+
end
|
191
|
+
# run the request to ensure the tempfile is created successfully before returning it
|
192
|
+
request.run
|
193
|
+
if tempfile
|
194
|
+
tempfile.close
|
195
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
196
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
197
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
198
|
+
"explicitly with `tempfile.delete`"
|
199
|
+
else
|
200
|
+
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
201
|
+
end
|
202
|
+
|
203
|
+
tempfile
|
204
|
+
end
|
205
|
+
|
206
|
+
# Check if the given MIME is a JSON MIME.
|
207
|
+
# JSON MIME examples:
|
208
|
+
# application/json
|
209
|
+
# application/json; charset=UTF8
|
210
|
+
# APPLICATION/JSON
|
211
|
+
# */*
|
212
|
+
# @param [String] mime MIME
|
213
|
+
# @return [Boolean] True if the MIME is application/json
|
214
|
+
def json_mime?(mime)
|
215
|
+
(mime == '*/*') || !(mime =~ /^Application\/.*json(?!p)(;.*)?/i).nil?
|
216
|
+
end
|
217
|
+
|
218
|
+
# Deserialize the response to the given return type.
|
219
|
+
#
|
220
|
+
# @param [Response] response HTTP response
|
221
|
+
# @param [String] return_type some examples: "User", "Array<User>", "Hash<String, Integer>"
|
222
|
+
def deserialize(response, return_type)
|
223
|
+
body = response.body
|
224
|
+
return nil if body.nil? || body.empty?
|
225
|
+
|
226
|
+
# return response body directly for String return type
|
227
|
+
return body.to_s if return_type == 'String'
|
228
|
+
|
229
|
+
# ensuring a default content type
|
230
|
+
content_type = response.headers['Content-Type'] || 'application/json'
|
231
|
+
|
232
|
+
fail "Content-Type is not supported: #{content_type}" unless json_mime?(content_type)
|
233
|
+
|
234
|
+
begin
|
235
|
+
data = JSON.parse("[#{body}]", :symbolize_names => true)[0]
|
236
|
+
rescue JSON::ParserError => e
|
237
|
+
if %w(String Date Time).include?(return_type)
|
238
|
+
data = body
|
239
|
+
else
|
240
|
+
raise e
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
convert_to_type data, return_type
|
245
|
+
end
|
246
|
+
|
247
|
+
# Convert data to the given return type.
|
248
|
+
# @param [Object] data Data to be converted
|
249
|
+
# @param [String] return_type Return type
|
250
|
+
# @return [Mixed] Data in a particular type
|
251
|
+
def convert_to_type(data, return_type)
|
252
|
+
return nil if data.nil?
|
253
|
+
case return_type
|
254
|
+
when 'String'
|
255
|
+
data.to_s
|
256
|
+
when 'Integer'
|
257
|
+
data.to_i
|
258
|
+
when 'Float'
|
259
|
+
data.to_f
|
260
|
+
when 'Boolean'
|
261
|
+
data == true
|
262
|
+
when 'Time'
|
263
|
+
# parse date time (expecting ISO 8601 format)
|
264
|
+
Time.parse data
|
265
|
+
when 'Date'
|
266
|
+
# parse date time (expecting ISO 8601 format)
|
267
|
+
Date.parse data
|
268
|
+
when 'Object'
|
269
|
+
# generic object (usually a Hash), return directly
|
270
|
+
data
|
271
|
+
when /\AArray<(.+)>\z/
|
272
|
+
# e.g. Array<Pet>
|
273
|
+
sub_type = $1
|
274
|
+
data.map { |item| convert_to_type(item, sub_type) }
|
275
|
+
when /\AHash\<String, (.+)\>\z/
|
276
|
+
# e.g. Hash<String, Integer>
|
277
|
+
sub_type = $1
|
278
|
+
{}.tap do |hash|
|
279
|
+
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
280
|
+
end
|
281
|
+
else
|
282
|
+
# models (e.g. Pet) or oneOf
|
283
|
+
klass = NuvemfiscalSdkRuby.const_get(return_type)
|
284
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data)
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
# Sanitize filename by removing path.
|
289
|
+
# e.g. ../../sun.gif becomes sun.gif
|
290
|
+
#
|
291
|
+
# @param [String] filename the filename to be sanitized
|
292
|
+
# @return [String] the sanitized filename
|
293
|
+
def sanitize_filename(filename)
|
294
|
+
filename.split(/[\/\\]/).last
|
295
|
+
end
|
296
|
+
|
297
|
+
def build_request_url(path, opts = {})
|
298
|
+
# Add leading and trailing slashes to path
|
299
|
+
path = "/#{path}".gsub(/\/+/, '/')
|
300
|
+
@config.base_url(opts[:operation]) + path
|
301
|
+
end
|
302
|
+
|
303
|
+
# Update header and query params based on authentication settings.
|
304
|
+
#
|
305
|
+
# @param [Hash] header_params Header parameters
|
306
|
+
# @param [Hash] query_params Query parameters
|
307
|
+
# @param [String] auth_names Authentication scheme name
|
308
|
+
def update_params_for_auth!(header_params, query_params, auth_names)
|
309
|
+
Array(auth_names).each do |auth_name|
|
310
|
+
auth_setting = @config.auth_settings[auth_name]
|
311
|
+
next unless auth_setting
|
312
|
+
case auth_setting[:in]
|
313
|
+
when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
|
314
|
+
when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
|
315
|
+
else fail ArgumentError, 'Authentication token must be in `query` or `header`'
|
316
|
+
end
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
320
|
+
# Sets user agent in HTTP header
|
321
|
+
#
|
322
|
+
# @param [String] user_agent User agent (e.g. openapi-generator/ruby/1.0.0)
|
323
|
+
def user_agent=(user_agent)
|
324
|
+
@user_agent = user_agent
|
325
|
+
@default_headers['User-Agent'] = @user_agent
|
326
|
+
end
|
327
|
+
|
328
|
+
# Return Accept header based on an array of accepts provided.
|
329
|
+
# @param [Array] accepts array for Accept
|
330
|
+
# @return [String] the Accept header (e.g. application/json)
|
331
|
+
def select_header_accept(accepts)
|
332
|
+
return nil if accepts.nil? || accepts.empty?
|
333
|
+
# use JSON when present, otherwise use all of the provided
|
334
|
+
json_accept = accepts.find { |s| json_mime?(s) }
|
335
|
+
json_accept || accepts.join(',')
|
336
|
+
end
|
337
|
+
|
338
|
+
# Return Content-Type header based on an array of content types provided.
|
339
|
+
# @param [Array] content_types array for Content-Type
|
340
|
+
# @return [String] the Content-Type header (e.g. application/json)
|
341
|
+
def select_header_content_type(content_types)
|
342
|
+
# return nil by default
|
343
|
+
return if content_types.nil? || content_types.empty?
|
344
|
+
# use JSON when present, otherwise use the first one
|
345
|
+
json_content_type = content_types.find { |s| json_mime?(s) }
|
346
|
+
json_content_type || content_types.first
|
347
|
+
end
|
348
|
+
|
349
|
+
# Convert object (array, hash, object, etc) to JSON string.
|
350
|
+
# @param [Object] model object to be converted into JSON string
|
351
|
+
# @return [String] JSON string representation of the object
|
352
|
+
def object_to_http_body(model)
|
353
|
+
return model if model.nil? || model.is_a?(String)
|
354
|
+
local_body = nil
|
355
|
+
if model.is_a?(Array)
|
356
|
+
local_body = model.map { |m| object_to_hash(m) }
|
357
|
+
else
|
358
|
+
local_body = object_to_hash(model)
|
359
|
+
end
|
360
|
+
local_body.to_json
|
361
|
+
end
|
362
|
+
|
363
|
+
# Convert object(non-array) to hash.
|
364
|
+
# @param [Object] obj object to be converted into JSON string
|
365
|
+
# @return [String] JSON string representation of the object
|
366
|
+
def object_to_hash(obj)
|
367
|
+
if obj.respond_to?(:to_hash)
|
368
|
+
obj.to_hash
|
369
|
+
else
|
370
|
+
obj
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
# Build parameter value according to the given collection format.
|
375
|
+
# @param [String] collection_format one of :csv, :ssv, :tsv, :pipes and :multi
|
376
|
+
def build_collection_param(param, collection_format)
|
377
|
+
case collection_format
|
378
|
+
when :csv
|
379
|
+
param.join(',')
|
380
|
+
when :ssv
|
381
|
+
param.join(' ')
|
382
|
+
when :tsv
|
383
|
+
param.join("\t")
|
384
|
+
when :pipes
|
385
|
+
param.join('|')
|
386
|
+
when :multi
|
387
|
+
# return the array directly as typhoeus will handle it as expected
|
388
|
+
param
|
389
|
+
else
|
390
|
+
fail "unknown collection format: #{collection_format.inspect}"
|
391
|
+
end
|
392
|
+
end
|
393
|
+
end
|
394
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
=begin
|
2
|
+
#API Nuvem Fiscal
|
3
|
+
|
4
|
+
#API para automação comercial e documentos fiscais.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.44.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
module NuvemfiscalSdkRuby
|
14
|
+
class ApiError < StandardError
|
15
|
+
attr_reader :code, :response_headers, :response_body
|
16
|
+
|
17
|
+
# Usage examples:
|
18
|
+
# ApiError.new
|
19
|
+
# ApiError.new("message")
|
20
|
+
# ApiError.new(:code => 500, :response_headers => {}, :response_body => "")
|
21
|
+
# ApiError.new(:code => 404, :message => "Not Found")
|
22
|
+
def initialize(arg = nil)
|
23
|
+
if arg.is_a? Hash
|
24
|
+
if arg.key?(:message) || arg.key?('message')
|
25
|
+
super(arg[:message] || arg['message'])
|
26
|
+
else
|
27
|
+
super arg
|
28
|
+
end
|
29
|
+
|
30
|
+
arg.each do |k, v|
|
31
|
+
instance_variable_set "@#{k}", v
|
32
|
+
end
|
33
|
+
else
|
34
|
+
super arg
|
35
|
+
@message = arg
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
# Override to_s to display a friendly error message
|
40
|
+
def to_s
|
41
|
+
message
|
42
|
+
end
|
43
|
+
|
44
|
+
def message
|
45
|
+
if @message.nil?
|
46
|
+
msg = "Error message: the server returns an error"
|
47
|
+
else
|
48
|
+
msg = @message
|
49
|
+
end
|
50
|
+
|
51
|
+
msg += "\nHTTP status code: #{code}" if code
|
52
|
+
msg += "\nResponse headers: #{response_headers}" if response_headers
|
53
|
+
msg += "\nResponse body: #{response_body}" if response_body
|
54
|
+
|
55
|
+
msg
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|