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.
Files changed (1417) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +757 -0
  4. data/Rakefile +10 -0
  5. data/docs/AtvEvento.md +30 -0
  6. data/docs/BeneficioMunicipal.md +24 -0
  7. data/docs/CServ.md +26 -0
  8. data/docs/CepApi.md +82 -0
  9. data/docs/CepEndereco.md +32 -0
  10. data/docs/CnpjApi.md +169 -0
  11. data/docs/CnpjCnae.md +20 -0
  12. data/docs/CnpjCnaeSecundario.md +20 -0
  13. data/docs/CnpjEmpresa.md +60 -0
  14. data/docs/CnpjEndereco.md +32 -0
  15. data/docs/CnpjFaixaEtaria.md +20 -0
  16. data/docs/CnpjIdentificadorSocio.md +20 -0
  17. data/docs/CnpjListagem.md +20 -0
  18. data/docs/CnpjMotivoSituacaoCadastral.md +22 -0
  19. data/docs/CnpjMunicipio.md +22 -0
  20. data/docs/CnpjNaturezaJuridica.md +20 -0
  21. data/docs/CnpjOpcaoSimei.md +22 -0
  22. data/docs/CnpjOpcaoSimples.md +22 -0
  23. data/docs/CnpjPais.md +20 -0
  24. data/docs/CnpjPorteEmpresa.md +20 -0
  25. data/docs/CnpjQualificacaoSocio.md +20 -0
  26. data/docs/CnpjRepresentanteLegal.md +22 -0
  27. data/docs/CnpjSituacaoCadastral.md +22 -0
  28. data/docs/CnpjSituacaoEspecial.md +22 -0
  29. data/docs/CnpjSocio.md +32 -0
  30. data/docs/CnpjTelefone.md +20 -0
  31. data/docs/ComExterior.md +36 -0
  32. data/docs/ContaApi.md +150 -0
  33. data/docs/ContaCota.md +22 -0
  34. data/docs/ContaCotaListagem.md +20 -0
  35. data/docs/CteApi.md +1515 -0
  36. data/docs/CteCartaCorrecao.md +46 -0
  37. data/docs/CteInfCorrecao.md +24 -0
  38. data/docs/CtePedidoCancelamento.md +18 -0
  39. data/docs/CtePedidoCartaCorrecao.md +18 -0
  40. data/docs/CtePedidoEmissao.md +24 -0
  41. data/docs/CteSefazAereo.md +28 -0
  42. data/docs/CteSefazAquav.md +34 -0
  43. data/docs/CteSefazAutXML.md +20 -0
  44. data/docs/CteSefazBalsa.md +18 -0
  45. data/docs/CteSefazCobr.md +20 -0
  46. data/docs/CteSefazComData.md +20 -0
  47. data/docs/CteSefazComHora.md +20 -0
  48. data/docs/CteSefazComp.md +20 -0
  49. data/docs/CteSefazCompl.md +36 -0
  50. data/docs/CteSefazDest.md +32 -0
  51. data/docs/CteSefazDetCont.md +22 -0
  52. data/docs/CteSefazDetContInfDoc.md +20 -0
  53. data/docs/CteSefazDetContInfDocInfNF.md +22 -0
  54. data/docs/CteSefazDetContInfDocInfNFe.md +20 -0
  55. data/docs/CteSefazDocAnt.md +18 -0
  56. data/docs/CteSefazDup.md +22 -0
  57. data/docs/CteSefazDuto.md +22 -0
  58. data/docs/CteSefazEmiDocAnt.md +28 -0
  59. data/docs/CteSefazEmiOcc.md +26 -0
  60. data/docs/CteSefazEmit.md +32 -0
  61. data/docs/CteSefazEndeEmi.md +34 -0
  62. data/docs/CteSefazEnderFer.md +32 -0
  63. data/docs/CteSefazEndereco.md +36 -0
  64. data/docs/CteSefazEntrega.md +28 -0
  65. data/docs/CteSefazExped.md +30 -0
  66. data/docs/CteSefazFat.md +24 -0
  67. data/docs/CteSefazFerroEnv.md +26 -0
  68. data/docs/CteSefazFerrov.md +22 -0
  69. data/docs/CteSefazFluxo.md +24 -0
  70. data/docs/CteSefazICMS00.md +24 -0
  71. data/docs/CteSefazICMS20.md +30 -0
  72. data/docs/CteSefazICMS45.md +22 -0
  73. data/docs/CteSefazICMS60.md +30 -0
  74. data/docs/CteSefazICMS90.md +32 -0
  75. data/docs/CteSefazICMSOutraUF.md +30 -0
  76. data/docs/CteSefazICMSSN.md +20 -0
  77. data/docs/CteSefazICMSUFFim.md +30 -0
  78. data/docs/CteSefazIdDocAnt.md +20 -0
  79. data/docs/CteSefazIdDocAntEle.md +18 -0
  80. data/docs/CteSefazIdDocAntPap.md +26 -0
  81. data/docs/CteSefazIde.md +84 -0
  82. data/docs/CteSefazImp.md +30 -0
  83. data/docs/CteSefazInfCTeMultimodal.md +18 -0
  84. data/docs/CteSefazInfCTeNorm.md +34 -0
  85. data/docs/CteSefazInfCTeSupl.md +18 -0
  86. data/docs/CteSefazInfCarga.md +26 -0
  87. data/docs/CteSefazInfCte.md +48 -0
  88. data/docs/CteSefazInfCteComp.md +18 -0
  89. data/docs/CteSefazInfCteImp.md +24 -0
  90. data/docs/CteSefazInfCteSub.md +20 -0
  91. data/docs/CteSefazInfDoc.md +22 -0
  92. data/docs/CteSefazInfGlobalizado.md +18 -0
  93. data/docs/CteSefazInfModal.md +30 -0
  94. data/docs/CteSefazInfNF.md +52 -0
  95. data/docs/CteSefazInfNFe.md +26 -0
  96. data/docs/CteSefazInfOutros.md +32 -0
  97. data/docs/CteSefazInfQ.md +22 -0
  98. data/docs/CteSefazInfSeg.md +20 -0
  99. data/docs/CteSefazInfServVinc.md +18 -0
  100. data/docs/CteSefazInfSolicNFF.md +18 -0
  101. data/docs/CteSefazInfTotAP.md +20 -0
  102. data/docs/CteSefazLacUnidCarga.md +18 -0
  103. data/docs/CteSefazLacUnidTransp.md +18 -0
  104. data/docs/CteSefazLacre.md +18 -0
  105. data/docs/CteSefazMultimodal.md +22 -0
  106. data/docs/CteSefazNatCarga.md +20 -0
  107. data/docs/CteSefazNoInter.md +22 -0
  108. data/docs/CteSefazNoPeriodo.md +22 -0
  109. data/docs/CteSefazObsCont.md +20 -0
  110. data/docs/CteSefazObsFisco.md +20 -0
  111. data/docs/CteSefazOcc.md +24 -0
  112. data/docs/CteSefazPass.md +18 -0
  113. data/docs/CteSefazPeri.md +22 -0
  114. data/docs/CteSefazReceb.md +30 -0
  115. data/docs/CteSefazRem.md +32 -0
  116. data/docs/CteSefazRespTec.md +28 -0
  117. data/docs/CteSefazRodo.md +20 -0
  118. data/docs/CteSefazSeg.md +22 -0
  119. data/docs/CteSefazSemData.md +18 -0
  120. data/docs/CteSefazSemHora.md +18 -0
  121. data/docs/CteSefazTarifa.md +22 -0
  122. data/docs/CteSefazToma3.md +18 -0
  123. data/docs/CteSefazToma4.md +34 -0
  124. data/docs/CteSefazTrafMut.md +26 -0
  125. data/docs/CteSefazUnidCarga.md +24 -0
  126. data/docs/CteSefazUnidadeTransp.md +26 -0
  127. data/docs/CteSefazVPrest.md +22 -0
  128. data/docs/CteSefazVeicNovos.md +28 -0
  129. data/docs/DPS.md +20 -0
  130. data/docs/Dfe.md +42 -0
  131. data/docs/DfeAutorEvento.md +18 -0
  132. data/docs/DfeAutorizacao.md +46 -0
  133. data/docs/DfeCancelamento.md +46 -0
  134. data/docs/DfeCartaCorrecao.md +46 -0
  135. data/docs/DfeContribuinteEndereco.md +38 -0
  136. data/docs/DfeContribuinteInfCad.md +50 -0
  137. data/docs/DfeContribuinteInfCons.md +34 -0
  138. data/docs/DfeEvento.md +44 -0
  139. data/docs/DfeEventoListagem.md +20 -0
  140. data/docs/DfeInutilizacao.md +58 -0
  141. data/docs/DfeListagem.md +20 -0
  142. data/docs/DfeLote.md +32 -0
  143. data/docs/DfeLoteListagem.md +20 -0
  144. data/docs/DfePedidoEnvioEmail.md +18 -0
  145. data/docs/DfePedidoInutilizacao.md +30 -0
  146. data/docs/DfeRecibo.md +28 -0
  147. data/docs/DfeSefazStatus.md +30 -0
  148. data/docs/DfeSincronizacao.md +26 -0
  149. data/docs/DistribuicaoNfe.md +46 -0
  150. data/docs/DistribuicaoNfeDocumento.md +52 -0
  151. data/docs/DistribuicaoNfeDocumentoListagem.md +20 -0
  152. data/docs/DistribuicaoNfeEvento.md +44 -0
  153. data/docs/DistribuicaoNfeListagem.md +20 -0
  154. data/docs/DistribuicaoNfeNota.md +32 -0
  155. data/docs/DistribuicaoNfeNotaListagem.md +20 -0
  156. data/docs/DistribuicaoNfePedido.md +32 -0
  157. data/docs/DistribuicaoNfePedidoManifestacao.md +26 -0
  158. data/docs/DistribuioNFEApi.md +880 -0
  159. data/docs/DocDedRed.md +40 -0
  160. data/docs/DocNFNFS.md +22 -0
  161. data/docs/DocOutNFSe.md +22 -0
  162. data/docs/Email.md +34 -0
  163. data/docs/EmailApi.md +169 -0
  164. data/docs/EmailAttachment.md +20 -0
  165. data/docs/EmailEvent.md +24 -0
  166. data/docs/EmailListagem.md +20 -0
  167. data/docs/EmailResumo.md +26 -0
  168. data/docs/EmailStatusResponse.md +22 -0
  169. data/docs/Empresa.md +36 -0
  170. data/docs/EmpresaApi.md +1947 -0
  171. data/docs/EmpresaCertificado.md +32 -0
  172. data/docs/EmpresaConfigCte.md +20 -0
  173. data/docs/EmpresaConfigDistribuicaoNfe.md +22 -0
  174. data/docs/EmpresaConfigMdfe.md +18 -0
  175. data/docs/EmpresaConfigNfce.md +22 -0
  176. data/docs/EmpresaConfigNfceSefaz.md +20 -0
  177. data/docs/EmpresaConfigNfcom.md +20 -0
  178. data/docs/EmpresaConfigNfe.md +20 -0
  179. data/docs/EmpresaConfigNfse.md +26 -0
  180. data/docs/EmpresaConfigNfseRegTrib.md +22 -0
  181. data/docs/EmpresaConfigPrefeitura.md +22 -0
  182. data/docs/EmpresaConfigRps.md +22 -0
  183. data/docs/EmpresaEndereco.md +36 -0
  184. data/docs/EmpresaListagem.md +20 -0
  185. data/docs/EmpresaPedidoCadastroCertificado.md +20 -0
  186. data/docs/EnderExt.md +24 -0
  187. data/docs/EnderExtSimples.md +22 -0
  188. data/docs/EnderNac.md +20 -0
  189. data/docs/Endereco.md +28 -0
  190. data/docs/EnderecoEmail.md +18 -0
  191. data/docs/EnderecoSimples.md +28 -0
  192. data/docs/ExigSuspensa.md +20 -0
  193. data/docs/ExploracaoRodoviaria.md +30 -0
  194. data/docs/InfDPS.md +36 -0
  195. data/docs/InfoCompl.md +22 -0
  196. data/docs/InfoDedRed.md +22 -0
  197. data/docs/InfoFornecDocDedRed.md +36 -0
  198. data/docs/InfoIntermediario.md +36 -0
  199. data/docs/InfoObra.md +22 -0
  200. data/docs/InfoPrestador.md +20 -0
  201. data/docs/InfoTomador.md +38 -0
  202. data/docs/InfoTributacao.md +22 -0
  203. data/docs/InfoValores.md +24 -0
  204. data/docs/ListaDocDedRed.md +18 -0
  205. data/docs/LocPrest.md +20 -0
  206. data/docs/LocacaoSublocacao.md +24 -0
  207. data/docs/ManifestacaoNfeListagem.md +20 -0
  208. data/docs/MdfeApi.md +1979 -0
  209. data/docs/MdfeDocumentoVinculado.md +22 -0
  210. data/docs/MdfeEncerramento.md +50 -0
  211. data/docs/MdfeInclusaoCondutor.md +48 -0
  212. data/docs/MdfeInclusaoDfe.md +50 -0
  213. data/docs/MdfeNaoEncerrado.md +20 -0
  214. data/docs/MdfeNaoEncerrados.md +28 -0
  215. data/docs/MdfePedidoCancelamento.md +18 -0
  216. data/docs/MdfePedidoEmissao.md +24 -0
  217. data/docs/MdfePedidoEmissaoLote.md +24 -0
  218. data/docs/MdfePedidoEncerramento.md +22 -0
  219. data/docs/MdfePedidoInclusaoCondutor.md +20 -0
  220. data/docs/MdfePedidoInclusaoDfe.md +24 -0
  221. data/docs/MdfeSefazAereo.md +28 -0
  222. data/docs/MdfeSefazAquav.md +44 -0
  223. data/docs/MdfeSefazAutXML.md +20 -0
  224. data/docs/MdfeSefazComp.md +22 -0
  225. data/docs/MdfeSefazCondutor.md +20 -0
  226. data/docs/MdfeSefazDisp.md +28 -0
  227. data/docs/MdfeSefazEmit.md +28 -0
  228. data/docs/MdfeSefazEndeEmi.md +36 -0
  229. data/docs/MdfeSefazFerrov.md +20 -0
  230. data/docs/MdfeSefazIde.md +58 -0
  231. data/docs/MdfeSefazInfANTT.md +26 -0
  232. data/docs/MdfeSefazInfAdic.md +20 -0
  233. data/docs/MdfeSefazInfBanc.md +24 -0
  234. data/docs/MdfeSefazInfCIOT.md +22 -0
  235. data/docs/MdfeSefazInfCTe.md +28 -0
  236. data/docs/MdfeSefazInfContratante.md +26 -0
  237. data/docs/MdfeSefazInfContrato.md +20 -0
  238. data/docs/MdfeSefazInfDoc.md +18 -0
  239. data/docs/MdfeSefazInfEmbComb.md +20 -0
  240. data/docs/MdfeSefazInfEntregaParcial.md +20 -0
  241. data/docs/MdfeSefazInfLocalCarrega.md +22 -0
  242. data/docs/MdfeSefazInfLocalDescarrega.md +22 -0
  243. data/docs/MdfeSefazInfLotacao.md +20 -0
  244. data/docs/MdfeSefazInfMDFe.md +44 -0
  245. data/docs/MdfeSefazInfMDFeSupl.md +18 -0
  246. data/docs/MdfeSefazInfMDFeTransp.md +24 -0
  247. data/docs/MdfeSefazInfMDFeTranspPeri.md +28 -0
  248. data/docs/MdfeSefazInfModal.md +26 -0
  249. data/docs/MdfeSefazInfMunCarrega.md +20 -0
  250. data/docs/MdfeSefazInfMunDescarga.md +26 -0
  251. data/docs/MdfeSefazInfNFe.md +26 -0
  252. data/docs/MdfeSefazInfNFePeri.md +28 -0
  253. data/docs/MdfeSefazInfPag.md +42 -0
  254. data/docs/MdfeSefazInfPercurso.md +18 -0
  255. data/docs/MdfeSefazInfPrazo.md +22 -0
  256. data/docs/MdfeSefazInfResp.md +22 -0
  257. data/docs/MdfeSefazInfSeg.md +20 -0
  258. data/docs/MdfeSefazInfSolicNFF.md +18 -0
  259. data/docs/MdfeSefazInfTermCarreg.md +20 -0
  260. data/docs/MdfeSefazInfTermDescarreg.md +20 -0
  261. data/docs/MdfeSefazInfUnidCargaVazia.md +20 -0
  262. data/docs/MdfeSefazInfUnidTranspVazia.md +20 -0
  263. data/docs/MdfeSefazLacRodo.md +18 -0
  264. data/docs/MdfeSefazLacUnidCarga.md +18 -0
  265. data/docs/MdfeSefazLacUnidTransp.md +18 -0
  266. data/docs/MdfeSefazLacres.md +18 -0
  267. data/docs/MdfeSefazPeri.md +28 -0
  268. data/docs/MdfeSefazProdPred.md +26 -0
  269. data/docs/MdfeSefazProp.md +30 -0
  270. data/docs/MdfeSefazRespTec.md +28 -0
  271. data/docs/MdfeSefazRodo.md +26 -0
  272. data/docs/MdfeSefazSeg.md +24 -0
  273. data/docs/MdfeSefazTot.md +28 -0
  274. data/docs/MdfeSefazTrem.md +26 -0
  275. data/docs/MdfeSefazUnidCarga.md +24 -0
  276. data/docs/MdfeSefazUnidadeTransp.md +26 -0
  277. data/docs/MdfeSefazVag.md +30 -0
  278. data/docs/MdfeSefazValePed.md +20 -0
  279. data/docs/MdfeSefazVeicReboque.md +34 -0
  280. data/docs/MdfeSefazVeicReboqueProp.md +30 -0
  281. data/docs/MdfeSefazVeicTracao.md +38 -0
  282. data/docs/NfceApi.md +2173 -0
  283. data/docs/NfcomApi.md +775 -0
  284. data/docs/NfcomPedidoCancelamento.md +18 -0
  285. data/docs/NfcomPedidoEmissao.md +22 -0
  286. data/docs/NfcomSefazAssinante.md +36 -0
  287. data/docs/NfcomSefazAutXML.md +20 -0
  288. data/docs/NfcomSefazCOFINS.md +24 -0
  289. data/docs/NfcomSefazDest.md +32 -0
  290. data/docs/NfcomSefazDet.md +34 -0
  291. data/docs/NfcomSefazEmit.md +30 -0
  292. data/docs/NfcomSefazEndeDest.md +40 -0
  293. data/docs/NfcomSefazEndeEmi.md +36 -0
  294. data/docs/NfcomSefazFUNTTEL.md +22 -0
  295. data/docs/NfcomSefazFUST.md +22 -0
  296. data/docs/NfcomSefazGCofat.md +20 -0
  297. data/docs/NfcomSefazGCofatGNF.md +28 -0
  298. data/docs/NfcomSefazGFat.md +36 -0
  299. data/docs/NfcomSefazGFatCentral.md +20 -0
  300. data/docs/NfcomSefazGFidelidade.md +24 -0
  301. data/docs/NfcomSefazGNF.md +28 -0
  302. data/docs/NfcomSefazGPIX.md +18 -0
  303. data/docs/NfcomSefazGProc.md +20 -0
  304. data/docs/NfcomSefazGProcRef.md +42 -0
  305. data/docs/NfcomSefazGRessarc.md +26 -0
  306. data/docs/NfcomSefazGSub.md +22 -0
  307. data/docs/NfcomSefazICMS00.md +28 -0
  308. data/docs/NfcomSefazICMS20.md +34 -0
  309. data/docs/NfcomSefazICMS40.md +22 -0
  310. data/docs/NfcomSefazICMS51.md +22 -0
  311. data/docs/NfcomSefazICMS90.md +32 -0
  312. data/docs/NfcomSefazICMSSN.md +20 -0
  313. data/docs/NfcomSefazICMSTot.md +24 -0
  314. data/docs/NfcomSefazICMSUFDest.md +32 -0
  315. data/docs/NfcomSefazIde.md +54 -0
  316. data/docs/NfcomSefazImposto.md +42 -0
  317. data/docs/NfcomSefazInfAdic.md +20 -0
  318. data/docs/NfcomSefazInfNFCom.md +48 -0
  319. data/docs/NfcomSefazPIS.md +24 -0
  320. data/docs/NfcomSefazProd.md +42 -0
  321. data/docs/NfcomSefazRespTec.md +28 -0
  322. data/docs/NfcomSefazRetTrib.md +26 -0
  323. data/docs/NfcomSefazTotal.md +36 -0
  324. data/docs/NfcomSefazVRetTribTot.md +24 -0
  325. data/docs/NfeApi.md +2461 -0
  326. data/docs/NfePedidoCancelamento.md +18 -0
  327. data/docs/NfePedidoCartaCorrecao.md +18 -0
  328. data/docs/NfePedidoEmissao.md +24 -0
  329. data/docs/NfePedidoEmissaoLote.md +24 -0
  330. data/docs/NfeSefazAdi.md +26 -0
  331. data/docs/NfeSefazArma.md +24 -0
  332. data/docs/NfeSefazAutXML.md +20 -0
  333. data/docs/NfeSefazAvulsa.md +38 -0
  334. data/docs/NfeSefazCIDE.md +22 -0
  335. data/docs/NfeSefazCOFINS.md +24 -0
  336. data/docs/NfeSefazCOFINSAliq.md +24 -0
  337. data/docs/NfeSefazCOFINSNT.md +18 -0
  338. data/docs/NfeSefazCOFINSOutr.md +28 -0
  339. data/docs/NfeSefazCOFINSQtde.md +24 -0
  340. data/docs/NfeSefazCOFINSST.md +28 -0
  341. data/docs/NfeSefazCana.md +36 -0
  342. data/docs/NfeSefazCard.md +28 -0
  343. data/docs/NfeSefazCobr.md +20 -0
  344. data/docs/NfeSefazComb.md +42 -0
  345. data/docs/NfeSefazCompra.md +22 -0
  346. data/docs/NfeSefazDI.md +42 -0
  347. data/docs/NfeSefazDeduc.md +20 -0
  348. data/docs/NfeSefazDest.md +36 -0
  349. data/docs/NfeSefazDet.md +28 -0
  350. data/docs/NfeSefazDetExport.md +20 -0
  351. data/docs/NfeSefazDetPag.md +32 -0
  352. data/docs/NfeSefazDup.md +22 -0
  353. data/docs/NfeSefazEmit.md +36 -0
  354. data/docs/NfeSefazEncerrante.md +26 -0
  355. data/docs/NfeSefazEnderEmi.md +38 -0
  356. data/docs/NfeSefazEndereco.md +38 -0
  357. data/docs/NfeSefazExportInd.md +22 -0
  358. data/docs/NfeSefazExporta.md +22 -0
  359. data/docs/NfeSefazFat.md +24 -0
  360. data/docs/NfeSefazForDia.md +20 -0
  361. data/docs/NfeSefazGCred.md +22 -0
  362. data/docs/NfeSefazICMS.md +58 -0
  363. data/docs/NfeSefazICMS00.md +32 -0
  364. data/docs/NfeSefazICMS02.md +26 -0
  365. data/docs/NfeSefazICMS10.md +56 -0
  366. data/docs/NfeSefazICMS15.md +36 -0
  367. data/docs/NfeSefazICMS20.md +42 -0
  368. data/docs/NfeSefazICMS30.md +44 -0
  369. data/docs/NfeSefazICMS40.md +26 -0
  370. data/docs/NfeSefazICMS51.md +50 -0
  371. data/docs/NfeSefazICMS53.md +36 -0
  372. data/docs/NfeSefazICMS60.md +42 -0
  373. data/docs/NfeSefazICMS61.md +26 -0
  374. data/docs/NfeSefazICMS70.md +64 -0
  375. data/docs/NfeSefazICMS90.md +64 -0
  376. data/docs/NfeSefazICMSPart.md +52 -0
  377. data/docs/NfeSefazICMSSN101.md +24 -0
  378. data/docs/NfeSefazICMSSN102.md +20 -0
  379. data/docs/NfeSefazICMSSN201.md +42 -0
  380. data/docs/NfeSefazICMSSN202.md +38 -0
  381. data/docs/NfeSefazICMSSN500.md +42 -0
  382. data/docs/NfeSefazICMSSN900.md +52 -0
  383. data/docs/NfeSefazICMSST.md +46 -0
  384. data/docs/NfeSefazICMSTot.md +74 -0
  385. data/docs/NfeSefazICMSUFDest.md +34 -0
  386. data/docs/NfeSefazII.md +24 -0
  387. data/docs/NfeSefazIPINT.md +18 -0
  388. data/docs/NfeSefazIPITrib.md +28 -0
  389. data/docs/NfeSefazISSQN.md +48 -0
  390. data/docs/NfeSefazISSQNtot.md +40 -0
  391. data/docs/NfeSefazIde.md +64 -0
  392. data/docs/NfeSefazImposto.md +36 -0
  393. data/docs/NfeSefazImpostoDevol.md +20 -0
  394. data/docs/NfeSefazImpostoDevolIPI.md +18 -0
  395. data/docs/NfeSefazInfAdic.md +26 -0
  396. data/docs/NfeSefazInfAdicObsCont.md +20 -0
  397. data/docs/NfeSefazInfAdicObsFisco.md +20 -0
  398. data/docs/NfeSefazInfIntermed.md +20 -0
  399. data/docs/NfeSefazInfNFe.md +58 -0
  400. data/docs/NfeSefazInfNFeSupl.md +20 -0
  401. data/docs/NfeSefazInfProdEmb.md +22 -0
  402. data/docs/NfeSefazInfProdNFF.md +20 -0
  403. data/docs/NfeSefazInfRespTec.md +28 -0
  404. data/docs/NfeSefazInfSolicNFF.md +18 -0
  405. data/docs/NfeSefazIpi.md +28 -0
  406. data/docs/NfeSefazLacres.md +18 -0
  407. data/docs/NfeSefazLocal.md +48 -0
  408. data/docs/NfeSefazMed.md +22 -0
  409. data/docs/NfeSefazNFref.md +28 -0
  410. data/docs/NfeSefazObsCont.md +20 -0
  411. data/docs/NfeSefazObsFisco.md +20 -0
  412. data/docs/NfeSefazObsItem.md +20 -0
  413. data/docs/NfeSefazOrigComb.md +22 -0
  414. data/docs/NfeSefazPIS.md +24 -0
  415. data/docs/NfeSefazPISAliq.md +24 -0
  416. data/docs/NfeSefazPISNT.md +18 -0
  417. data/docs/NfeSefazPISOutr.md +28 -0
  418. data/docs/NfeSefazPISQtde.md +24 -0
  419. data/docs/NfeSefazPISST.md +28 -0
  420. data/docs/NfeSefazPag.md +20 -0
  421. data/docs/NfeSefazProcRef.md +22 -0
  422. data/docs/NfeSefazProd.md +96 -0
  423. data/docs/NfeSefazRastro.md +26 -0
  424. data/docs/NfeSefazRefECF.md +22 -0
  425. data/docs/NfeSefazRefNF.md +28 -0
  426. data/docs/NfeSefazRefNFP.md +32 -0
  427. data/docs/NfeSefazRetTransp.md +28 -0
  428. data/docs/NfeSefazRetTrib.md +30 -0
  429. data/docs/NfeSefazTotal.md +22 -0
  430. data/docs/NfeSefazTransp.md +32 -0
  431. data/docs/NfeSefazTransporta.md +30 -0
  432. data/docs/NfeSefazVeicProd.md +64 -0
  433. data/docs/NfeSefazVeiculo.md +22 -0
  434. data/docs/NfeSefazVol.md +30 -0
  435. data/docs/Nfse.md +42 -0
  436. data/docs/NfseApi.md +1311 -0
  437. data/docs/NfseCancelamento.md +28 -0
  438. data/docs/NfseCidadeMetadados.md +28 -0
  439. data/docs/NfseCidadesAtendidas.md +20 -0
  440. data/docs/NfseDpsPedidoEmissao.md +24 -0
  441. data/docs/NfseListagem.md +20 -0
  442. data/docs/NfseLoteDpsPedidoEmissao.md +24 -0
  443. data/docs/NfseMensagemRetorno.md +22 -0
  444. data/docs/NfsePedidoCancelamento.md +20 -0
  445. data/docs/NfsePedidoEmissao.md +20 -0
  446. data/docs/NfsePedidoSincronizacao.md +18 -0
  447. data/docs/NfseSincronizacao.md +20 -0
  448. data/docs/Rps.md +34 -0
  449. data/docs/RpsDados.md +20 -0
  450. data/docs/RpsDadosConstrucaoCivil.md +20 -0
  451. data/docs/RpsDadosIntermediario.md +22 -0
  452. data/docs/RpsDadosPrestador.md +40 -0
  453. data/docs/RpsDadosServico.md +46 -0
  454. data/docs/RpsDadosTomador.md +28 -0
  455. data/docs/RpsDadosTomadorEndereco.md +36 -0
  456. data/docs/RpsIdentificacao.md +22 -0
  457. data/docs/RpsIdentificacaoPrestador.md +18 -0
  458. data/docs/RpsLote.md +30 -0
  459. data/docs/RpsLoteListagem.md +20 -0
  460. data/docs/RpsPedidoEmissao.md +36 -0
  461. data/docs/RpsPedidoEmissaoLote.md +22 -0
  462. data/docs/RpsServicoValores.md +56 -0
  463. data/docs/Serv.md +32 -0
  464. data/docs/Substituicao.md +22 -0
  465. data/docs/TribFederal.md +24 -0
  466. data/docs/TribMunicipal.md +38 -0
  467. data/docs/TribOutrosPisCofins.md +30 -0
  468. data/docs/TribTotal.md +24 -0
  469. data/docs/TribTotalMonet.md +22 -0
  470. data/docs/TribTotalPercent.md +22 -0
  471. data/docs/VDescCondIncond.md +20 -0
  472. data/docs/VServPrest.md +20 -0
  473. data/git_push.sh +57 -0
  474. data/lib/nuvemfiscal_sdk_ruby/api/cep_api.rb +85 -0
  475. data/lib/nuvemfiscal_sdk_ruby/api/cnpj_api.rb +172 -0
  476. data/lib/nuvemfiscal_sdk_ruby/api/conta_api.rb +138 -0
  477. data/lib/nuvemfiscal_sdk_ruby/api/cte_api.rb +1316 -0
  478. data/lib/nuvemfiscal_sdk_ruby/api/distribuio_nfe_api.rb +806 -0
  479. data/lib/nuvemfiscal_sdk_ruby/api/email_api.rb +164 -0
  480. data/lib/nuvemfiscal_sdk_ruby/api/empresa_api.rb +1738 -0
  481. data/lib/nuvemfiscal_sdk_ruby/api/mdfe_api.rb +1740 -0
  482. data/lib/nuvemfiscal_sdk_ruby/api/nfce_api.rb +1946 -0
  483. data/lib/nuvemfiscal_sdk_ruby/api/nfcom_api.rb +688 -0
  484. data/lib/nuvemfiscal_sdk_ruby/api/nfe_api.rb +2176 -0
  485. data/lib/nuvemfiscal_sdk_ruby/api/nfse_api.rb +1167 -0
  486. data/lib/nuvemfiscal_sdk_ruby/api_client.rb +394 -0
  487. data/lib/nuvemfiscal_sdk_ruby/api_error.rb +58 -0
  488. data/lib/nuvemfiscal_sdk_ruby/configuration.rb +315 -0
  489. data/lib/nuvemfiscal_sdk_ruby/models/atv_evento.rb +381 -0
  490. data/lib/nuvemfiscal_sdk_ruby/models/beneficio_municipal.rb +284 -0
  491. data/lib/nuvemfiscal_sdk_ruby/models/c_serv.rb +289 -0
  492. data/lib/nuvemfiscal_sdk_ruby/models/cep_endereco.rb +277 -0
  493. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_cnae.rb +226 -0
  494. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_cnae_secundario.rb +226 -0
  495. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_empresa.rb +418 -0
  496. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_endereco.rb +285 -0
  497. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_faixa_etaria.rb +226 -0
  498. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_identificador_socio.rb +226 -0
  499. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_listagem.rb +225 -0
  500. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_motivo_situacao_cadastral.rb +236 -0
  501. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_municipio.rb +236 -0
  502. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_natureza_juridica.rb +226 -0
  503. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_opcao_simei.rb +238 -0
  504. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_opcao_simples.rb +238 -0
  505. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_pais.rb +226 -0
  506. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_porte_empresa.rb +226 -0
  507. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_qualificacao_socio.rb +226 -0
  508. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_representante_legal.rb +235 -0
  509. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_situacao_cadastral.rb +236 -0
  510. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_situacao_especial.rb +236 -0
  511. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_socio.rb +281 -0
  512. data/lib/nuvemfiscal_sdk_ruby/models/cnpj_telefone.rb +226 -0
  513. data/lib/nuvemfiscal_sdk_ruby/models/com_exterior.rb +410 -0
  514. data/lib/nuvemfiscal_sdk_ruby/models/conta_cota.rb +232 -0
  515. data/lib/nuvemfiscal_sdk_ruby/models/conta_cota_listagem.rb +225 -0
  516. data/lib/nuvemfiscal_sdk_ruby/models/cte_carta_correcao.rb +428 -0
  517. data/lib/nuvemfiscal_sdk_ruby/models/cte_inf_correcao.rb +351 -0
  518. data/lib/nuvemfiscal_sdk_ruby/models/cte_pedido_cancelamento.rb +215 -0
  519. data/lib/nuvemfiscal_sdk_ruby/models/cte_pedido_carta_correcao.rb +243 -0
  520. data/lib/nuvemfiscal_sdk_ruby/models/cte_pedido_emissao.rb +307 -0
  521. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_aereo.rb +308 -0
  522. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_aquav.rb +412 -0
  523. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_aut_xml.rb +228 -0
  524. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_balsa.rb +243 -0
  525. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_cobr.rb +226 -0
  526. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_com_data.rb +232 -0
  527. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_com_hora.rb +232 -0
  528. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_comp.rb +271 -0
  529. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_compl.rb +494 -0
  530. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_dest.rb +349 -0
  531. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_det_cont.rb +282 -0
  532. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_det_cont_inf_doc.rb +228 -0
  533. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_det_cont_inf_doc_inf_nf.rb +306 -0
  534. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_det_cont_inf_doc_inf_nfe.rb +260 -0
  535. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_doc_ant.rb +243 -0
  536. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_dup.rb +278 -0
  537. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_duto.rb +258 -0
  538. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_emi_doc_ant.rb +348 -0
  539. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_emi_occ.rb +305 -0
  540. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_emit.rb +340 -0
  541. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_ende_emi.rb +425 -0
  542. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_ender_fer.rb +424 -0
  543. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_endereco.rb +472 -0
  544. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_entrega.rb +260 -0
  545. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_exped.rb +338 -0
  546. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_fat.rb +319 -0
  547. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_ferro_env.rb +333 -0
  548. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_ferrov.rb +265 -0
  549. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_fluxo.rb +322 -0
  550. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icms00.rb +303 -0
  551. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icms20.rb +383 -0
  552. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icms45.rb +271 -0
  553. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icms60.rb +381 -0
  554. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icms90.rb +407 -0
  555. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icms_outra_uf.rb +381 -0
  556. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icmssn.rb +232 -0
  557. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_icmsuf_fim.rb +402 -0
  558. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_id_doc_ant.rb +228 -0
  559. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_id_doc_ant_ele.rb +234 -0
  560. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_id_doc_ant_pap.rb +341 -0
  561. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_ide.rb +864 -0
  562. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_imp.rb +269 -0
  563. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_carga.rb +367 -0
  564. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte.rb +426 -0
  565. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte_comp.rb +234 -0
  566. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte_imp.rb +292 -0
  567. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte_multimodal.rb +234 -0
  568. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte_norm.rb +303 -0
  569. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte_sub.rb +230 -0
  570. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_cte_supl.rb +241 -0
  571. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_doc.rb +239 -0
  572. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_globalizado.rb +243 -0
  573. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_modal.rb +273 -0
  574. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_nf.rb +651 -0
  575. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_nfe.rb +302 -0
  576. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_outros.rb +359 -0
  577. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_q.rb +284 -0
  578. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_seg.rb +256 -0
  579. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_serv_vinc.rb +243 -0
  580. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_solic_nff.rb +243 -0
  581. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_inf_tot_ap.rb +247 -0
  582. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_lac_unid_carga.rb +243 -0
  583. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_lac_unid_transp.rb +243 -0
  584. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_lacre.rb +243 -0
  585. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_multimodal.rb +265 -0
  586. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_nat_carga.rb +253 -0
  587. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_no_inter.rb +245 -0
  588. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_no_periodo.rb +245 -0
  589. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_obs_cont.rb +280 -0
  590. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_obs_fisco.rb +280 -0
  591. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_occ.rb +300 -0
  592. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_pass.rb +240 -0
  593. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_peri.rb +272 -0
  594. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_receb.rb +338 -0
  595. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_rem.rb +349 -0
  596. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_resp_tec.rb +367 -0
  597. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_rodo.rb +249 -0
  598. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_seg.rb +296 -0
  599. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_sem_data.rb +219 -0
  600. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_sem_hora.rb +219 -0
  601. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_tarifa.rb +297 -0
  602. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_toma3.rb +219 -0
  603. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_toma4.rb +386 -0
  604. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_traf_mut.rb +297 -0
  605. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_unid_carga.rb +293 -0
  606. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_unidade_transp.rb +304 -0
  607. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_v_prest.rb +273 -0
  608. data/lib/nuvemfiscal_sdk_ruby/models/cte_sefaz_veic_novos.rb +401 -0
  609. data/lib/nuvemfiscal_sdk_ruby/models/dfe.rb +374 -0
  610. data/lib/nuvemfiscal_sdk_ruby/models/dfe_autor_evento.rb +215 -0
  611. data/lib/nuvemfiscal_sdk_ruby/models/dfe_autorizacao.rb +400 -0
  612. data/lib/nuvemfiscal_sdk_ruby/models/dfe_cancelamento.rb +400 -0
  613. data/lib/nuvemfiscal_sdk_ruby/models/dfe_carta_correcao.rb +400 -0
  614. data/lib/nuvemfiscal_sdk_ruby/models/dfe_contribuinte_endereco.rb +483 -0
  615. data/lib/nuvemfiscal_sdk_ruby/models/dfe_contribuinte_inf_cad.rb +475 -0
  616. data/lib/nuvemfiscal_sdk_ruby/models/dfe_contribuinte_inf_cons.rb +363 -0
  617. data/lib/nuvemfiscal_sdk_ruby/models/dfe_evento.rb +390 -0
  618. data/lib/nuvemfiscal_sdk_ruby/models/dfe_evento_listagem.rb +225 -0
  619. data/lib/nuvemfiscal_sdk_ruby/models/dfe_inutilizacao.rb +453 -0
  620. data/lib/nuvemfiscal_sdk_ruby/models/dfe_listagem.rb +225 -0
  621. data/lib/nuvemfiscal_sdk_ruby/models/dfe_lote.rb +329 -0
  622. data/lib/nuvemfiscal_sdk_ruby/models/dfe_lote_listagem.rb +225 -0
  623. data/lib/nuvemfiscal_sdk_ruby/models/dfe_pedido_envio_email.rb +236 -0
  624. data/lib/nuvemfiscal_sdk_ruby/models/dfe_pedido_inutilizacao.rb +470 -0
  625. data/lib/nuvemfiscal_sdk_ruby/models/dfe_recibo.rb +265 -0
  626. data/lib/nuvemfiscal_sdk_ruby/models/dfe_sefaz_status.rb +323 -0
  627. data/lib/nuvemfiscal_sdk_ruby/models/dfe_sincronizacao.rb +289 -0
  628. data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe.rb +478 -0
  629. data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_documento.rb +448 -0
  630. data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_documento_listagem.rb +225 -0
  631. data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_evento.rb +397 -0
  632. data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_listagem.rb +225 -0
  633. data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_nota.rb +293 -0
  634. data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_nota_listagem.rb +225 -0
  635. data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_pedido.rb +358 -0
  636. data/lib/nuvemfiscal_sdk_ruby/models/distribuicao_nfe_pedido_manifestacao.rb +342 -0
  637. data/lib/nuvemfiscal_sdk_ruby/models/doc_ded_red.rb +472 -0
  638. data/lib/nuvemfiscal_sdk_ruby/models/doc_nfnfs.rb +293 -0
  639. data/lib/nuvemfiscal_sdk_ruby/models/doc_out_nfse.rb +269 -0
  640. data/lib/nuvemfiscal_sdk_ruby/models/dps.rb +228 -0
  641. data/lib/nuvemfiscal_sdk_ruby/models/email.rb +337 -0
  642. data/lib/nuvemfiscal_sdk_ruby/models/email_attachment.rb +242 -0
  643. data/lib/nuvemfiscal_sdk_ruby/models/email_event.rb +242 -0
  644. data/lib/nuvemfiscal_sdk_ruby/models/email_listagem.rb +225 -0
  645. data/lib/nuvemfiscal_sdk_ruby/models/email_resumo.rb +295 -0
  646. data/lib/nuvemfiscal_sdk_ruby/models/email_status_response.rb +275 -0
  647. data/lib/nuvemfiscal_sdk_ruby/models/empresa.rb +408 -0
  648. data/lib/nuvemfiscal_sdk_ruby/models/empresa_certificado.rb +277 -0
  649. data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_cte.rb +266 -0
  650. data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_distribuicao_nfe.rb +282 -0
  651. data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_mdfe.rb +256 -0
  652. data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_nfce.rb +282 -0
  653. data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_nfce_sefaz.rb +258 -0
  654. data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_nfcom.rb +266 -0
  655. data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_nfe.rb +266 -0
  656. data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_nfse.rb +302 -0
  657. data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_nfse_reg_trib.rb +239 -0
  658. data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_prefeitura.rb +293 -0
  659. data/lib/nuvemfiscal_sdk_ruby/models/empresa_config_rps.rb +257 -0
  660. data/lib/nuvemfiscal_sdk_ruby/models/empresa_endereco.rb +466 -0
  661. data/lib/nuvemfiscal_sdk_ruby/models/empresa_listagem.rb +225 -0
  662. data/lib/nuvemfiscal_sdk_ruby/models/empresa_pedido_cadastro_certificado.rb +260 -0
  663. data/lib/nuvemfiscal_sdk_ruby/models/ender_ext.rb +330 -0
  664. data/lib/nuvemfiscal_sdk_ruby/models/ender_ext_simples.rb +317 -0
  665. data/lib/nuvemfiscal_sdk_ruby/models/ender_nac.rb +228 -0
  666. data/lib/nuvemfiscal_sdk_ruby/models/endereco.rb +364 -0
  667. data/lib/nuvemfiscal_sdk_ruby/models/endereco_email.rb +222 -0
  668. data/lib/nuvemfiscal_sdk_ruby/models/endereco_simples.rb +372 -0
  669. data/lib/nuvemfiscal_sdk_ruby/models/exig_suspensa.rb +232 -0
  670. data/lib/nuvemfiscal_sdk_ruby/models/exploracao_rodoviaria.rb +297 -0
  671. data/lib/nuvemfiscal_sdk_ruby/models/inf_dps.rb +351 -0
  672. data/lib/nuvemfiscal_sdk_ruby/models/info_compl.rb +311 -0
  673. data/lib/nuvemfiscal_sdk_ruby/models/info_ded_red.rb +267 -0
  674. data/lib/nuvemfiscal_sdk_ruby/models/info_fornec_doc_ded_red.rb +457 -0
  675. data/lib/nuvemfiscal_sdk_ruby/models/info_intermediario.rb +457 -0
  676. data/lib/nuvemfiscal_sdk_ruby/models/info_obra.rb +285 -0
  677. data/lib/nuvemfiscal_sdk_ruby/models/info_prestador.rb +258 -0
  678. data/lib/nuvemfiscal_sdk_ruby/models/info_tomador.rb +470 -0
  679. data/lib/nuvemfiscal_sdk_ruby/models/info_tributacao.rb +240 -0
  680. data/lib/nuvemfiscal_sdk_ruby/models/info_valores.rb +256 -0
  681. data/lib/nuvemfiscal_sdk_ruby/models/lista_doc_ded_red.rb +252 -0
  682. data/lib/nuvemfiscal_sdk_ruby/models/loc_prest.rb +228 -0
  683. data/lib/nuvemfiscal_sdk_ruby/models/locacao_sublocacao.rb +306 -0
  684. data/lib/nuvemfiscal_sdk_ruby/models/manifestacao_nfe_listagem.rb +225 -0
  685. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_documento_vinculado.rb +235 -0
  686. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_encerramento.rb +420 -0
  687. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_inclusao_condutor.rb +410 -0
  688. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_inclusao_dfe.rb +422 -0
  689. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_nao_encerrado.rb +231 -0
  690. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_nao_encerrados.rb +273 -0
  691. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_pedido_cancelamento.rb +215 -0
  692. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_pedido_emissao.rb +307 -0
  693. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_pedido_emissao_lote.rb +340 -0
  694. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_pedido_encerramento.rb +250 -0
  695. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_pedido_inclusao_condutor.rb +267 -0
  696. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_pedido_inclusao_dfe.rb +246 -0
  697. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_aereo.rb +404 -0
  698. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_aquav.rb +575 -0
  699. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_aut_xml.rb +228 -0
  700. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_comp.rb +282 -0
  701. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_condutor.rb +256 -0
  702. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_disp.rb +291 -0
  703. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_emit.rb +318 -0
  704. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_ende_emi.rb +460 -0
  705. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_ferrov.rb +259 -0
  706. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_ide.rb +609 -0
  707. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_adic.rb +276 -0
  708. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_antt.rb +259 -0
  709. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_banc.rb +322 -0
  710. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_ciot.rb +241 -0
  711. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_contratante.rb +307 -0
  712. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_contrato.rb +271 -0
  713. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_cte.rb +287 -0
  714. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_doc.rb +252 -0
  715. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_emb_comb.rb +280 -0
  716. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_entrega_parcial.rb +262 -0
  717. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_local_carrega.rb +239 -0
  718. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_local_descarrega.rb +239 -0
  719. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_lotacao.rb +238 -0
  720. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_mdfe.rb +398 -0
  721. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_mdfe_supl.rb +241 -0
  722. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_mdfe_transp.rb +267 -0
  723. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_mdfe_transp_peri.rb +396 -0
  724. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_modal.rb +255 -0
  725. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_mun_carrega.rb +256 -0
  726. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_mun_descarga.rb +346 -0
  727. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_nfe.rb +278 -0
  728. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_nfe_peri.rb +396 -0
  729. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_pag.rb +462 -0
  730. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_percurso.rb +219 -0
  731. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_prazo.rb +284 -0
  732. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_resp.rb +241 -0
  733. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_seg.rb +256 -0
  734. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_solic_nff.rb +243 -0
  735. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_term_carreg.rb +280 -0
  736. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_term_descarreg.rb +280 -0
  737. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_unid_carga_vazia.rb +256 -0
  738. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_inf_unid_transp_vazia.rb +256 -0
  739. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_lac_rodo.rb +243 -0
  740. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_lac_unid_carga.rb +243 -0
  741. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_lac_unid_transp.rb +243 -0
  742. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_lacres.rb +243 -0
  743. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_peri.rb +396 -0
  744. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_prod_pred.rb +287 -0
  745. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_prop.rb +313 -0
  746. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_resp_tec.rb +367 -0
  747. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_rodo.rb +307 -0
  748. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_seg.rb +278 -0
  749. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_tot.rb +380 -0
  750. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_trem.rb +365 -0
  751. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_unid_carga.rb +278 -0
  752. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_unidade_transp.rb +304 -0
  753. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_vag.rb +401 -0
  754. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_vale_ped.rb +254 -0
  755. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_veic_reboque.rb +431 -0
  756. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_veic_reboque_prop.rb +313 -0
  757. data/lib/nuvemfiscal_sdk_ruby/models/mdfe_sefaz_veic_tracao.rb +488 -0
  758. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_pedido_cancelamento.rb +215 -0
  759. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_pedido_emissao.rb +298 -0
  760. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_assinante.rb +370 -0
  761. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_aut_xml.rb +228 -0
  762. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_cofins.rb +303 -0
  763. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_dest.rb +375 -0
  764. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_det.rb +376 -0
  765. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_emit.rb +331 -0
  766. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_ende_dest.rb +520 -0
  767. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_ende_emi.rb +460 -0
  768. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_funttel.rb +290 -0
  769. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_fust.rb +290 -0
  770. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_cofat.rb +241 -0
  771. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_cofat_gnf.rb +378 -0
  772. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_fat.rb +438 -0
  773. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_fat_central.rb +232 -0
  774. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_fidelidade.rb +306 -0
  775. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_proc.rb +256 -0
  776. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_proc_ref.rb +525 -0
  777. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_ressarc.rb +337 -0
  778. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_g_sub.rb +278 -0
  779. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_gnf.rb +378 -0
  780. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_gpix.rb +243 -0
  781. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icms00.rb +355 -0
  782. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icms20.rb +435 -0
  783. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icms40.rb +271 -0
  784. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icms51.rb +271 -0
  785. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icms90.rb +401 -0
  786. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icms_tot.rb +318 -0
  787. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icmssn.rb +232 -0
  788. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_icmsuf_dest.rb +410 -0
  789. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_ide.rb +579 -0
  790. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_imposto.rb +327 -0
  791. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_inf_adic.rb +272 -0
  792. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_inf_nf_com.rb +449 -0
  793. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_pis.rb +303 -0
  794. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_prod.rb +480 -0
  795. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_resp_tec.rb +367 -0
  796. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_ret_trib.rb +346 -0
  797. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_total.rb +462 -0
  798. data/lib/nuvemfiscal_sdk_ruby/models/nfcom_sefaz_v_ret_trib_tot.rb +318 -0
  799. data/lib/nuvemfiscal_sdk_ruby/models/nfe_pedido_cancelamento.rb +215 -0
  800. data/lib/nuvemfiscal_sdk_ruby/models/nfe_pedido_carta_correcao.rb +234 -0
  801. data/lib/nuvemfiscal_sdk_ruby/models/nfe_pedido_emissao.rb +307 -0
  802. data/lib/nuvemfiscal_sdk_ruby/models/nfe_pedido_emissao_lote.rb +347 -0
  803. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_adi.rb +376 -0
  804. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_arma.rb +330 -0
  805. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_aut_xml.rb +258 -0
  806. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_avulsa.rb +489 -0
  807. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cana.rb +500 -0
  808. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_card.rb +352 -0
  809. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cide.rb +290 -0
  810. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cobr.rb +245 -0
  811. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cofins.rb +242 -0
  812. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cofins_aliq.rb +303 -0
  813. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cofins_outr.rb +351 -0
  814. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cofins_qtde.rb +303 -0
  815. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cofinsnt.rb +219 -0
  816. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_cofinsst.rb +349 -0
  817. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_comb.rb +544 -0
  818. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_compra.rb +311 -0
  819. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_deduc.rb +271 -0
  820. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_dest.rb +433 -0
  821. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_det.rb +328 -0
  822. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_det_export.rb +250 -0
  823. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_det_pag.rb +350 -0
  824. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_di.rb +517 -0
  825. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_dup.rb +280 -0
  826. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_emit.rb +446 -0
  827. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_encerrante.rb +371 -0
  828. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ender_emi.rb +447 -0
  829. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_endereco.rb +483 -0
  830. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_export_ind.rb +275 -0
  831. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_exporta.rb +291 -0
  832. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_fat.rb +319 -0
  833. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_for_dia.rb +271 -0
  834. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_g_cred.rb +275 -0
  835. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms.rb +395 -0
  836. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms00.rb +381 -0
  837. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms02.rb +314 -0
  838. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms10.rb +671 -0
  839. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms15.rb +442 -0
  840. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms20.rb +483 -0
  841. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms30.rb +507 -0
  842. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms40.rb +280 -0
  843. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms51.rb +601 -0
  844. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms53.rb +449 -0
  845. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms60.rb +518 -0
  846. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms61.rb +314 -0
  847. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms70.rb +747 -0
  848. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms90.rb +729 -0
  849. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_part.rb +623 -0
  850. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb +998 -0
  851. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmssn101.rb +288 -0
  852. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmssn102.rb +232 -0
  853. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmssn201.rb +515 -0
  854. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmssn202.rb +459 -0
  855. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmssn500.rb +518 -0
  856. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmssn900.rb +618 -0
  857. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmsst.rb +578 -0
  858. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icmsuf_dest.rb +452 -0
  859. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ide.rb +663 -0
  860. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ii.rb +318 -0
  861. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_imposto.rb +313 -0
  862. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_imposto_devol.rb +258 -0
  863. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_imposto_devol_ipi.rb +234 -0
  864. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_adic.rb +366 -0
  865. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_adic_obs_cont.rb +274 -0
  866. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_adic_obs_fisco.rb +274 -0
  867. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_intermed.rb +271 -0
  868. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_nfe.rb +494 -0
  869. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_nfe_supl.rb +276 -0
  870. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_prod_emb.rb +308 -0
  871. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_prod_nff.rb +247 -0
  872. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_resp_tec.rb +382 -0
  873. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_inf_solic_nff.rb +243 -0
  874. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ipi.rb +332 -0
  875. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ipi_trib.rb +350 -0
  876. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ipint.rb +218 -0
  877. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_issq_ntot.rb +490 -0
  878. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_issqn.rb +564 -0
  879. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_lacres.rb +242 -0
  880. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_local.rb +631 -0
  881. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_med.rb +282 -0
  882. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_n_fref.rb +311 -0
  883. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_obs_cont.rb +274 -0
  884. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_obs_fisco.rb +274 -0
  885. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_obs_item.rb +224 -0
  886. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_orig_comb.rb +269 -0
  887. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pag.rb +278 -0
  888. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pis.rb +242 -0
  889. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pis_aliq.rb +303 -0
  890. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pis_outr.rb +351 -0
  891. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pis_qtde.rb +303 -0
  892. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pisnt.rb +219 -0
  893. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pisst.rb +349 -0
  894. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_proc_ref.rb +267 -0
  895. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_prod.rb +1134 -0
  896. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_rastro.rb +330 -0
  897. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ref_ecf.rb +293 -0
  898. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ref_nf.rb +347 -0
  899. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ref_nfp.rb +399 -0
  900. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ret_transp.rb +344 -0
  901. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_ret_trib.rb +388 -0
  902. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_total.rb +240 -0
  903. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_transp.rb +376 -0
  904. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_transporta.rb +400 -0
  905. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_veic_prod.rb +971 -0
  906. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_veiculo.rb +265 -0
  907. data/lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_vol.rb +404 -0
  908. data/lib/nuvemfiscal_sdk_ruby/models/nfse.rb +372 -0
  909. data/lib/nuvemfiscal_sdk_ruby/models/nfse_cancelamento.rb +297 -0
  910. data/lib/nuvemfiscal_sdk_ruby/models/nfse_cidade_metadados.rb +291 -0
  911. data/lib/nuvemfiscal_sdk_ruby/models/nfse_cidades_atendidas.rb +227 -0
  912. data/lib/nuvemfiscal_sdk_ruby/models/nfse_dps_pedido_emissao.rb +320 -0
  913. data/lib/nuvemfiscal_sdk_ruby/models/nfse_listagem.rb +225 -0
  914. data/lib/nuvemfiscal_sdk_ruby/models/nfse_lote_dps_pedido_emissao.rb +334 -0
  915. data/lib/nuvemfiscal_sdk_ruby/models/nfse_mensagem_retorno.rb +232 -0
  916. data/lib/nuvemfiscal_sdk_ruby/models/nfse_pedido_cancelamento.rb +225 -0
  917. data/lib/nuvemfiscal_sdk_ruby/models/nfse_pedido_emissao.rb +272 -0
  918. data/lib/nuvemfiscal_sdk_ruby/models/nfse_pedido_sincronizacao.rb +215 -0
  919. data/lib/nuvemfiscal_sdk_ruby/models/nfse_sincronizacao.rb +260 -0
  920. data/lib/nuvemfiscal_sdk_ruby/models/rps.rb +317 -0
  921. data/lib/nuvemfiscal_sdk_ruby/models/rps_dados.rb +223 -0
  922. data/lib/nuvemfiscal_sdk_ruby/models/rps_dados_construcao_civil.rb +223 -0
  923. data/lib/nuvemfiscal_sdk_ruby/models/rps_dados_intermediario.rb +232 -0
  924. data/lib/nuvemfiscal_sdk_ruby/models/rps_dados_prestador.rb +313 -0
  925. data/lib/nuvemfiscal_sdk_ruby/models/rps_dados_servico.rb +396 -0
  926. data/lib/nuvemfiscal_sdk_ruby/models/rps_dados_tomador.rb +271 -0
  927. data/lib/nuvemfiscal_sdk_ruby/models/rps_dados_tomador_endereco.rb +363 -0
  928. data/lib/nuvemfiscal_sdk_ruby/models/rps_identificacao.rb +232 -0
  929. data/lib/nuvemfiscal_sdk_ruby/models/rps_identificacao_prestador.rb +222 -0
  930. data/lib/nuvemfiscal_sdk_ruby/models/rps_lote.rb +317 -0
  931. data/lib/nuvemfiscal_sdk_ruby/models/rps_lote_listagem.rb +225 -0
  932. data/lib/nuvemfiscal_sdk_ruby/models/rps_pedido_emissao.rb +370 -0
  933. data/lib/nuvemfiscal_sdk_ruby/models/rps_pedido_emissao_lote.rb +311 -0
  934. data/lib/nuvemfiscal_sdk_ruby/models/rps_servico_valores.rb +394 -0
  935. data/lib/nuvemfiscal_sdk_ruby/models/serv.rb +285 -0
  936. data/lib/nuvemfiscal_sdk_ruby/models/substituicao.rb +282 -0
  937. data/lib/nuvemfiscal_sdk_ruby/models/trib_federal.rb +293 -0
  938. data/lib/nuvemfiscal_sdk_ruby/models/trib_municipal.rb +385 -0
  939. data/lib/nuvemfiscal_sdk_ruby/models/trib_outros_pis_cofins.rb +360 -0
  940. data/lib/nuvemfiscal_sdk_ruby/models/trib_total.rb +261 -0
  941. data/lib/nuvemfiscal_sdk_ruby/models/trib_total_monet.rb +290 -0
  942. data/lib/nuvemfiscal_sdk_ruby/models/trib_total_percent.rb +290 -0
  943. data/lib/nuvemfiscal_sdk_ruby/models/v_desc_cond_incond.rb +258 -0
  944. data/lib/nuvemfiscal_sdk_ruby/models/v_serv_prest.rb +260 -0
  945. data/lib/nuvemfiscal_sdk_ruby/version.rb +15 -0
  946. data/lib/nuvemfiscal_sdk_ruby.rb +507 -0
  947. data/nuvemfiscal_sdk_ruby.gemspec +39 -0
  948. data/spec/api/cep_api_spec.rb +47 -0
  949. data/spec/api/cnpj_api_spec.rb +64 -0
  950. data/spec/api/conta_api_spec.rb +56 -0
  951. data/spec/api/cte_api_spec.rb +275 -0
  952. data/spec/api/distribuio_nfe_api_spec.rb +187 -0
  953. data/spec/api/email_api_spec.rb +64 -0
  954. data/spec/api/empresa_api_spec.rb +341 -0
  955. data/spec/api/mdfe_api_spec.rb +353 -0
  956. data/spec/api/nfce_api_spec.rb +395 -0
  957. data/spec/api/nfcom_api_spec.rb +161 -0
  958. data/spec/api/nfe_api_spec.rb +437 -0
  959. data/spec/api/nfse_api_spec.rb +249 -0
  960. data/spec/models/atv_evento_spec.rb +72 -0
  961. data/spec/models/beneficio_municipal_spec.rb +54 -0
  962. data/spec/models/c_serv_spec.rb +60 -0
  963. data/spec/models/cep_endereco_spec.rb +78 -0
  964. data/spec/models/cnpj_cnae_secundario_spec.rb +42 -0
  965. data/spec/models/cnpj_cnae_spec.rb +42 -0
  966. data/spec/models/cnpj_empresa_spec.rb +162 -0
  967. data/spec/models/cnpj_endereco_spec.rb +78 -0
  968. data/spec/models/cnpj_faixa_etaria_spec.rb +42 -0
  969. data/spec/models/cnpj_identificador_socio_spec.rb +42 -0
  970. data/spec/models/cnpj_listagem_spec.rb +42 -0
  971. data/spec/models/cnpj_motivo_situacao_cadastral_spec.rb +48 -0
  972. data/spec/models/cnpj_municipio_spec.rb +48 -0
  973. data/spec/models/cnpj_natureza_juridica_spec.rb +42 -0
  974. data/spec/models/cnpj_opcao_simei_spec.rb +48 -0
  975. data/spec/models/cnpj_opcao_simples_spec.rb +48 -0
  976. data/spec/models/cnpj_pais_spec.rb +42 -0
  977. data/spec/models/cnpj_porte_empresa_spec.rb +42 -0
  978. data/spec/models/cnpj_qualificacao_socio_spec.rb +42 -0
  979. data/spec/models/cnpj_representante_legal_spec.rb +48 -0
  980. data/spec/models/cnpj_situacao_cadastral_spec.rb +48 -0
  981. data/spec/models/cnpj_situacao_especial_spec.rb +48 -0
  982. data/spec/models/cnpj_socio_spec.rb +78 -0
  983. data/spec/models/cnpj_telefone_spec.rb +42 -0
  984. data/spec/models/com_exterior_spec.rb +90 -0
  985. data/spec/models/conta_cota_listagem_spec.rb +42 -0
  986. data/spec/models/conta_cota_spec.rb +48 -0
  987. data/spec/models/cte_carta_correcao_spec.rb +128 -0
  988. data/spec/models/cte_inf_correcao_spec.rb +54 -0
  989. data/spec/models/cte_pedido_cancelamento_spec.rb +36 -0
  990. data/spec/models/cte_pedido_carta_correcao_spec.rb +36 -0
  991. data/spec/models/cte_pedido_emissao_spec.rb +58 -0
  992. data/spec/models/cte_sefaz_aereo_spec.rb +66 -0
  993. data/spec/models/cte_sefaz_aquav_spec.rb +84 -0
  994. data/spec/models/cte_sefaz_aut_xml_spec.rb +42 -0
  995. data/spec/models/cte_sefaz_balsa_spec.rb +36 -0
  996. data/spec/models/cte_sefaz_cobr_spec.rb +42 -0
  997. data/spec/models/cte_sefaz_com_data_spec.rb +42 -0
  998. data/spec/models/cte_sefaz_com_hora_spec.rb +42 -0
  999. data/spec/models/cte_sefaz_comp_spec.rb +42 -0
  1000. data/spec/models/cte_sefaz_compl_spec.rb +90 -0
  1001. data/spec/models/cte_sefaz_dest_spec.rb +78 -0
  1002. data/spec/models/cte_sefaz_det_cont_inf_doc_inf_nf_spec.rb +48 -0
  1003. data/spec/models/cte_sefaz_det_cont_inf_doc_inf_nfe_spec.rb +42 -0
  1004. data/spec/models/cte_sefaz_det_cont_inf_doc_spec.rb +42 -0
  1005. data/spec/models/cte_sefaz_det_cont_spec.rb +48 -0
  1006. data/spec/models/cte_sefaz_doc_ant_spec.rb +36 -0
  1007. data/spec/models/cte_sefaz_dup_spec.rb +48 -0
  1008. data/spec/models/cte_sefaz_duto_spec.rb +48 -0
  1009. data/spec/models/cte_sefaz_emi_doc_ant_spec.rb +66 -0
  1010. data/spec/models/cte_sefaz_emi_occ_spec.rb +60 -0
  1011. data/spec/models/cte_sefaz_emit_spec.rb +78 -0
  1012. data/spec/models/cte_sefaz_ende_emi_spec.rb +84 -0
  1013. data/spec/models/cte_sefaz_ender_fer_spec.rb +78 -0
  1014. data/spec/models/cte_sefaz_endereco_spec.rb +90 -0
  1015. data/spec/models/cte_sefaz_entrega_spec.rb +66 -0
  1016. data/spec/models/cte_sefaz_exped_spec.rb +72 -0
  1017. data/spec/models/cte_sefaz_fat_spec.rb +54 -0
  1018. data/spec/models/cte_sefaz_ferro_env_spec.rb +60 -0
  1019. data/spec/models/cte_sefaz_ferrov_spec.rb +48 -0
  1020. data/spec/models/cte_sefaz_fluxo_spec.rb +54 -0
  1021. data/spec/models/cte_sefaz_icms00_spec.rb +54 -0
  1022. data/spec/models/cte_sefaz_icms20_spec.rb +72 -0
  1023. data/spec/models/cte_sefaz_icms45_spec.rb +48 -0
  1024. data/spec/models/cte_sefaz_icms60_spec.rb +72 -0
  1025. data/spec/models/cte_sefaz_icms90_spec.rb +78 -0
  1026. data/spec/models/cte_sefaz_icms_outra_uf_spec.rb +72 -0
  1027. data/spec/models/cte_sefaz_icmssn_spec.rb +42 -0
  1028. data/spec/models/cte_sefaz_icmsuf_fim_spec.rb +72 -0
  1029. data/spec/models/cte_sefaz_id_doc_ant_ele_spec.rb +36 -0
  1030. data/spec/models/cte_sefaz_id_doc_ant_pap_spec.rb +60 -0
  1031. data/spec/models/cte_sefaz_id_doc_ant_spec.rb +42 -0
  1032. data/spec/models/cte_sefaz_ide_spec.rb +234 -0
  1033. data/spec/models/cte_sefaz_imp_spec.rb +72 -0
  1034. data/spec/models/cte_sefaz_inf_carga_spec.rb +60 -0
  1035. data/spec/models/cte_sefaz_inf_cte_comp_spec.rb +36 -0
  1036. data/spec/models/cte_sefaz_inf_cte_imp_spec.rb +54 -0
  1037. data/spec/models/cte_sefaz_inf_cte_multimodal_spec.rb +36 -0
  1038. data/spec/models/cte_sefaz_inf_cte_norm_spec.rb +84 -0
  1039. data/spec/models/cte_sefaz_inf_cte_spec.rb +126 -0
  1040. data/spec/models/cte_sefaz_inf_cte_sub_spec.rb +42 -0
  1041. data/spec/models/cte_sefaz_inf_cte_supl_spec.rb +36 -0
  1042. data/spec/models/cte_sefaz_inf_doc_spec.rb +48 -0
  1043. data/spec/models/cte_sefaz_inf_globalizado_spec.rb +36 -0
  1044. data/spec/models/cte_sefaz_inf_modal_spec.rb +72 -0
  1045. data/spec/models/cte_sefaz_inf_nf_spec.rb +138 -0
  1046. data/spec/models/cte_sefaz_inf_nfe_spec.rb +60 -0
  1047. data/spec/models/cte_sefaz_inf_outros_spec.rb +78 -0
  1048. data/spec/models/cte_sefaz_inf_q_spec.rb +48 -0
  1049. data/spec/models/cte_sefaz_inf_seg_spec.rb +42 -0
  1050. data/spec/models/cte_sefaz_inf_serv_vinc_spec.rb +36 -0
  1051. data/spec/models/cte_sefaz_inf_solic_nff_spec.rb +36 -0
  1052. data/spec/models/cte_sefaz_inf_tot_ap_spec.rb +42 -0
  1053. data/spec/models/cte_sefaz_lac_unid_carga_spec.rb +36 -0
  1054. data/spec/models/cte_sefaz_lac_unid_transp_spec.rb +36 -0
  1055. data/spec/models/cte_sefaz_lacre_spec.rb +36 -0
  1056. data/spec/models/cte_sefaz_multimodal_spec.rb +48 -0
  1057. data/spec/models/cte_sefaz_nat_carga_spec.rb +42 -0
  1058. data/spec/models/cte_sefaz_no_inter_spec.rb +48 -0
  1059. data/spec/models/cte_sefaz_no_periodo_spec.rb +48 -0
  1060. data/spec/models/cte_sefaz_obs_cont_spec.rb +42 -0
  1061. data/spec/models/cte_sefaz_obs_fisco_spec.rb +42 -0
  1062. data/spec/models/cte_sefaz_occ_spec.rb +54 -0
  1063. data/spec/models/cte_sefaz_pass_spec.rb +36 -0
  1064. data/spec/models/cte_sefaz_peri_spec.rb +48 -0
  1065. data/spec/models/cte_sefaz_receb_spec.rb +72 -0
  1066. data/spec/models/cte_sefaz_rem_spec.rb +78 -0
  1067. data/spec/models/cte_sefaz_resp_tec_spec.rb +66 -0
  1068. data/spec/models/cte_sefaz_rodo_spec.rb +42 -0
  1069. data/spec/models/cte_sefaz_seg_spec.rb +48 -0
  1070. data/spec/models/cte_sefaz_sem_data_spec.rb +36 -0
  1071. data/spec/models/cte_sefaz_sem_hora_spec.rb +36 -0
  1072. data/spec/models/cte_sefaz_tarifa_spec.rb +48 -0
  1073. data/spec/models/cte_sefaz_toma3_spec.rb +36 -0
  1074. data/spec/models/cte_sefaz_toma4_spec.rb +84 -0
  1075. data/spec/models/cte_sefaz_traf_mut_spec.rb +60 -0
  1076. data/spec/models/cte_sefaz_unid_carga_spec.rb +54 -0
  1077. data/spec/models/cte_sefaz_unidade_transp_spec.rb +60 -0
  1078. data/spec/models/cte_sefaz_v_prest_spec.rb +48 -0
  1079. data/spec/models/cte_sefaz_veic_novos_spec.rb +66 -0
  1080. data/spec/models/dfe_autor_evento_spec.rb +36 -0
  1081. data/spec/models/dfe_autorizacao_spec.rb +128 -0
  1082. data/spec/models/dfe_cancelamento_spec.rb +128 -0
  1083. data/spec/models/dfe_carta_correcao_spec.rb +128 -0
  1084. data/spec/models/dfe_contribuinte_endereco_spec.rb +96 -0
  1085. data/spec/models/dfe_contribuinte_inf_cad_spec.rb +132 -0
  1086. data/spec/models/dfe_contribuinte_inf_cons_spec.rb +84 -0
  1087. data/spec/models/dfe_evento_listagem_spec.rb +42 -0
  1088. data/spec/models/dfe_evento_spec.rb +122 -0
  1089. data/spec/models/dfe_inutilizacao_spec.rb +164 -0
  1090. data/spec/models/dfe_listagem_spec.rb +42 -0
  1091. data/spec/models/dfe_lote_listagem_spec.rb +42 -0
  1092. data/spec/models/dfe_lote_spec.rb +86 -0
  1093. data/spec/models/dfe_pedido_envio_email_spec.rb +36 -0
  1094. data/spec/models/dfe_pedido_inutilizacao_spec.rb +76 -0
  1095. data/spec/models/dfe_recibo_spec.rb +66 -0
  1096. data/spec/models/dfe_sefaz_status_spec.rb +80 -0
  1097. data/spec/models/dfe_sincronizacao_spec.rb +64 -0
  1098. data/spec/models/dfe_spec.rb +116 -0
  1099. data/spec/models/distribuicao_nfe_documento_listagem_spec.rb +42 -0
  1100. data/spec/models/distribuicao_nfe_documento_spec.rb +142 -0
  1101. data/spec/models/distribuicao_nfe_evento_spec.rb +122 -0
  1102. data/spec/models/distribuicao_nfe_listagem_spec.rb +42 -0
  1103. data/spec/models/distribuicao_nfe_nota_listagem_spec.rb +42 -0
  1104. data/spec/models/distribuicao_nfe_nota_spec.rb +78 -0
  1105. data/spec/models/distribuicao_nfe_pedido_manifestacao_spec.rb +64 -0
  1106. data/spec/models/distribuicao_nfe_pedido_spec.rb +86 -0
  1107. data/spec/models/distribuicao_nfe_spec.rb +132 -0
  1108. data/spec/models/doc_ded_red_spec.rb +102 -0
  1109. data/spec/models/doc_nfnfs_spec.rb +48 -0
  1110. data/spec/models/doc_out_nfse_spec.rb +48 -0
  1111. data/spec/models/dps_spec.rb +42 -0
  1112. data/spec/models/email_attachment_spec.rb +42 -0
  1113. data/spec/models/email_event_spec.rb +54 -0
  1114. data/spec/models/email_listagem_spec.rb +42 -0
  1115. data/spec/models/email_resumo_spec.rb +64 -0
  1116. data/spec/models/email_spec.rb +88 -0
  1117. data/spec/models/email_status_response_spec.rb +52 -0
  1118. data/spec/models/empresa_certificado_spec.rb +78 -0
  1119. data/spec/models/empresa_config_cte_spec.rb +46 -0
  1120. data/spec/models/empresa_config_distribuicao_nfe_spec.rb +52 -0
  1121. data/spec/models/empresa_config_mdfe_spec.rb +40 -0
  1122. data/spec/models/empresa_config_nfce_sefaz_spec.rb +42 -0
  1123. data/spec/models/empresa_config_nfce_spec.rb +52 -0
  1124. data/spec/models/empresa_config_nfcom_spec.rb +46 -0
  1125. data/spec/models/empresa_config_nfe_spec.rb +46 -0
  1126. data/spec/models/empresa_config_nfse_reg_trib_spec.rb +48 -0
  1127. data/spec/models/empresa_config_nfse_spec.rb +64 -0
  1128. data/spec/models/empresa_config_prefeitura_spec.rb +48 -0
  1129. data/spec/models/empresa_config_rps_spec.rb +48 -0
  1130. data/spec/models/empresa_endereco_spec.rb +90 -0
  1131. data/spec/models/empresa_listagem_spec.rb +42 -0
  1132. data/spec/models/empresa_pedido_cadastro_certificado_spec.rb +42 -0
  1133. data/spec/models/empresa_spec.rb +90 -0
  1134. data/spec/models/ender_ext_simples_spec.rb +48 -0
  1135. data/spec/models/ender_ext_spec.rb +54 -0
  1136. data/spec/models/ender_nac_spec.rb +42 -0
  1137. data/spec/models/endereco_email_spec.rb +36 -0
  1138. data/spec/models/endereco_simples_spec.rb +66 -0
  1139. data/spec/models/endereco_spec.rb +66 -0
  1140. data/spec/models/exig_suspensa_spec.rb +42 -0
  1141. data/spec/models/exploracao_rodoviaria_spec.rb +72 -0
  1142. data/spec/models/inf_dps_spec.rb +90 -0
  1143. data/spec/models/info_compl_spec.rb +48 -0
  1144. data/spec/models/info_ded_red_spec.rb +48 -0
  1145. data/spec/models/info_fornec_doc_ded_red_spec.rb +90 -0
  1146. data/spec/models/info_intermediario_spec.rb +90 -0
  1147. data/spec/models/info_obra_spec.rb +48 -0
  1148. data/spec/models/info_prestador_spec.rb +42 -0
  1149. data/spec/models/info_tomador_spec.rb +96 -0
  1150. data/spec/models/info_tributacao_spec.rb +48 -0
  1151. data/spec/models/info_valores_spec.rb +54 -0
  1152. data/spec/models/lista_doc_ded_red_spec.rb +36 -0
  1153. data/spec/models/loc_prest_spec.rb +42 -0
  1154. data/spec/models/locacao_sublocacao_spec.rb +54 -0
  1155. data/spec/models/manifestacao_nfe_listagem_spec.rb +42 -0
  1156. data/spec/models/mdfe_documento_vinculado_spec.rb +48 -0
  1157. data/spec/models/mdfe_encerramento_spec.rb +140 -0
  1158. data/spec/models/mdfe_inclusao_condutor_spec.rb +134 -0
  1159. data/spec/models/mdfe_inclusao_dfe_spec.rb +140 -0
  1160. data/spec/models/mdfe_nao_encerrado_spec.rb +42 -0
  1161. data/spec/models/mdfe_nao_encerrados_spec.rb +66 -0
  1162. data/spec/models/mdfe_pedido_cancelamento_spec.rb +36 -0
  1163. data/spec/models/mdfe_pedido_emissao_lote_spec.rb +58 -0
  1164. data/spec/models/mdfe_pedido_emissao_spec.rb +58 -0
  1165. data/spec/models/mdfe_pedido_encerramento_spec.rb +48 -0
  1166. data/spec/models/mdfe_pedido_inclusao_condutor_spec.rb +42 -0
  1167. data/spec/models/mdfe_pedido_inclusao_dfe_spec.rb +54 -0
  1168. data/spec/models/mdfe_sefaz_aereo_spec.rb +66 -0
  1169. data/spec/models/mdfe_sefaz_aquav_spec.rb +114 -0
  1170. data/spec/models/mdfe_sefaz_aut_xml_spec.rb +42 -0
  1171. data/spec/models/mdfe_sefaz_comp_spec.rb +48 -0
  1172. data/spec/models/mdfe_sefaz_condutor_spec.rb +42 -0
  1173. data/spec/models/mdfe_sefaz_disp_spec.rb +66 -0
  1174. data/spec/models/mdfe_sefaz_emit_spec.rb +66 -0
  1175. data/spec/models/mdfe_sefaz_ende_emi_spec.rb +90 -0
  1176. data/spec/models/mdfe_sefaz_ferrov_spec.rb +42 -0
  1177. data/spec/models/mdfe_sefaz_ide_spec.rb +156 -0
  1178. data/spec/models/mdfe_sefaz_inf_adic_spec.rb +42 -0
  1179. data/spec/models/mdfe_sefaz_inf_antt_spec.rb +60 -0
  1180. data/spec/models/mdfe_sefaz_inf_banc_spec.rb +54 -0
  1181. data/spec/models/mdfe_sefaz_inf_ciot_spec.rb +48 -0
  1182. data/spec/models/mdfe_sefaz_inf_contratante_spec.rb +60 -0
  1183. data/spec/models/mdfe_sefaz_inf_contrato_spec.rb +42 -0
  1184. data/spec/models/mdfe_sefaz_inf_cte_spec.rb +66 -0
  1185. data/spec/models/mdfe_sefaz_inf_doc_spec.rb +36 -0
  1186. data/spec/models/mdfe_sefaz_inf_emb_comb_spec.rb +42 -0
  1187. data/spec/models/mdfe_sefaz_inf_entrega_parcial_spec.rb +42 -0
  1188. data/spec/models/mdfe_sefaz_inf_local_carrega_spec.rb +48 -0
  1189. data/spec/models/mdfe_sefaz_inf_local_descarrega_spec.rb +48 -0
  1190. data/spec/models/mdfe_sefaz_inf_lotacao_spec.rb +42 -0
  1191. data/spec/models/mdfe_sefaz_inf_mdfe_spec.rb +114 -0
  1192. data/spec/models/mdfe_sefaz_inf_mdfe_supl_spec.rb +36 -0
  1193. data/spec/models/mdfe_sefaz_inf_mdfe_transp_peri_spec.rb +66 -0
  1194. data/spec/models/mdfe_sefaz_inf_mdfe_transp_spec.rb +54 -0
  1195. data/spec/models/mdfe_sefaz_inf_modal_spec.rb +60 -0
  1196. data/spec/models/mdfe_sefaz_inf_mun_carrega_spec.rb +42 -0
  1197. data/spec/models/mdfe_sefaz_inf_mun_descarga_spec.rb +60 -0
  1198. data/spec/models/mdfe_sefaz_inf_nfe_peri_spec.rb +66 -0
  1199. data/spec/models/mdfe_sefaz_inf_nfe_spec.rb +60 -0
  1200. data/spec/models/mdfe_sefaz_inf_pag_spec.rb +108 -0
  1201. data/spec/models/mdfe_sefaz_inf_percurso_spec.rb +36 -0
  1202. data/spec/models/mdfe_sefaz_inf_prazo_spec.rb +48 -0
  1203. data/spec/models/mdfe_sefaz_inf_resp_spec.rb +48 -0
  1204. data/spec/models/mdfe_sefaz_inf_seg_spec.rb +42 -0
  1205. data/spec/models/mdfe_sefaz_inf_solic_nff_spec.rb +36 -0
  1206. data/spec/models/mdfe_sefaz_inf_term_carreg_spec.rb +42 -0
  1207. data/spec/models/mdfe_sefaz_inf_term_descarreg_spec.rb +42 -0
  1208. data/spec/models/mdfe_sefaz_inf_unid_carga_vazia_spec.rb +42 -0
  1209. data/spec/models/mdfe_sefaz_inf_unid_transp_vazia_spec.rb +42 -0
  1210. data/spec/models/mdfe_sefaz_lac_rodo_spec.rb +36 -0
  1211. data/spec/models/mdfe_sefaz_lac_unid_carga_spec.rb +36 -0
  1212. data/spec/models/mdfe_sefaz_lac_unid_transp_spec.rb +36 -0
  1213. data/spec/models/mdfe_sefaz_lacres_spec.rb +36 -0
  1214. data/spec/models/mdfe_sefaz_peri_spec.rb +66 -0
  1215. data/spec/models/mdfe_sefaz_prod_pred_spec.rb +60 -0
  1216. data/spec/models/mdfe_sefaz_prop_spec.rb +72 -0
  1217. data/spec/models/mdfe_sefaz_resp_tec_spec.rb +66 -0
  1218. data/spec/models/mdfe_sefaz_rodo_spec.rb +60 -0
  1219. data/spec/models/mdfe_sefaz_seg_spec.rb +54 -0
  1220. data/spec/models/mdfe_sefaz_tot_spec.rb +66 -0
  1221. data/spec/models/mdfe_sefaz_trem_spec.rb +60 -0
  1222. data/spec/models/mdfe_sefaz_unid_carga_spec.rb +54 -0
  1223. data/spec/models/mdfe_sefaz_unidade_transp_spec.rb +60 -0
  1224. data/spec/models/mdfe_sefaz_vag_spec.rb +72 -0
  1225. data/spec/models/mdfe_sefaz_vale_ped_spec.rb +42 -0
  1226. data/spec/models/mdfe_sefaz_veic_reboque_prop_spec.rb +72 -0
  1227. data/spec/models/mdfe_sefaz_veic_reboque_spec.rb +84 -0
  1228. data/spec/models/mdfe_sefaz_veic_tracao_spec.rb +96 -0
  1229. data/spec/models/nfcom_pedido_cancelamento_spec.rb +36 -0
  1230. data/spec/models/nfcom_pedido_emissao_spec.rb +52 -0
  1231. data/spec/models/nfcom_sefaz_assinante_spec.rb +90 -0
  1232. data/spec/models/nfcom_sefaz_aut_xml_spec.rb +42 -0
  1233. data/spec/models/nfcom_sefaz_cofins_spec.rb +54 -0
  1234. data/spec/models/nfcom_sefaz_dest_spec.rb +78 -0
  1235. data/spec/models/nfcom_sefaz_det_spec.rb +84 -0
  1236. data/spec/models/nfcom_sefaz_emit_spec.rb +72 -0
  1237. data/spec/models/nfcom_sefaz_ende_dest_spec.rb +102 -0
  1238. data/spec/models/nfcom_sefaz_ende_emi_spec.rb +90 -0
  1239. data/spec/models/nfcom_sefaz_funttel_spec.rb +48 -0
  1240. data/spec/models/nfcom_sefaz_fust_spec.rb +48 -0
  1241. data/spec/models/nfcom_sefaz_g_cofat_gnf_spec.rb +66 -0
  1242. data/spec/models/nfcom_sefaz_g_cofat_spec.rb +42 -0
  1243. data/spec/models/nfcom_sefaz_g_fat_central_spec.rb +42 -0
  1244. data/spec/models/nfcom_sefaz_g_fat_spec.rb +90 -0
  1245. data/spec/models/nfcom_sefaz_g_fidelidade_spec.rb +54 -0
  1246. data/spec/models/nfcom_sefaz_g_proc_ref_spec.rb +108 -0
  1247. data/spec/models/nfcom_sefaz_g_proc_spec.rb +42 -0
  1248. data/spec/models/nfcom_sefaz_g_ressarc_spec.rb +60 -0
  1249. data/spec/models/nfcom_sefaz_g_sub_spec.rb +48 -0
  1250. data/spec/models/nfcom_sefaz_gnf_spec.rb +66 -0
  1251. data/spec/models/nfcom_sefaz_gpix_spec.rb +36 -0
  1252. data/spec/models/nfcom_sefaz_icms00_spec.rb +66 -0
  1253. data/spec/models/nfcom_sefaz_icms20_spec.rb +84 -0
  1254. data/spec/models/nfcom_sefaz_icms40_spec.rb +48 -0
  1255. data/spec/models/nfcom_sefaz_icms51_spec.rb +48 -0
  1256. data/spec/models/nfcom_sefaz_icms90_spec.rb +78 -0
  1257. data/spec/models/nfcom_sefaz_icms_tot_spec.rb +54 -0
  1258. data/spec/models/nfcom_sefaz_icmssn_spec.rb +42 -0
  1259. data/spec/models/nfcom_sefaz_icmsuf_dest_spec.rb +78 -0
  1260. data/spec/models/nfcom_sefaz_ide_spec.rb +144 -0
  1261. data/spec/models/nfcom_sefaz_imposto_spec.rb +108 -0
  1262. data/spec/models/nfcom_sefaz_inf_adic_spec.rb +42 -0
  1263. data/spec/models/nfcom_sefaz_inf_nf_com_spec.rb +126 -0
  1264. data/spec/models/nfcom_sefaz_pis_spec.rb +54 -0
  1265. data/spec/models/nfcom_sefaz_prod_spec.rb +108 -0
  1266. data/spec/models/nfcom_sefaz_resp_tec_spec.rb +66 -0
  1267. data/spec/models/nfcom_sefaz_ret_trib_spec.rb +60 -0
  1268. data/spec/models/nfcom_sefaz_total_spec.rb +90 -0
  1269. data/spec/models/nfcom_sefaz_v_ret_trib_tot_spec.rb +54 -0
  1270. data/spec/models/nfe_pedido_cancelamento_spec.rb +36 -0
  1271. data/spec/models/nfe_pedido_carta_correcao_spec.rb +36 -0
  1272. data/spec/models/nfe_pedido_emissao_lote_spec.rb +58 -0
  1273. data/spec/models/nfe_pedido_emissao_spec.rb +58 -0
  1274. data/spec/models/nfe_sefaz_adi_spec.rb +60 -0
  1275. data/spec/models/nfe_sefaz_arma_spec.rb +54 -0
  1276. data/spec/models/nfe_sefaz_aut_xml_spec.rb +42 -0
  1277. data/spec/models/nfe_sefaz_avulsa_spec.rb +96 -0
  1278. data/spec/models/nfe_sefaz_cana_spec.rb +90 -0
  1279. data/spec/models/nfe_sefaz_card_spec.rb +66 -0
  1280. data/spec/models/nfe_sefaz_cide_spec.rb +48 -0
  1281. data/spec/models/nfe_sefaz_cobr_spec.rb +42 -0
  1282. data/spec/models/nfe_sefaz_cofins_aliq_spec.rb +54 -0
  1283. data/spec/models/nfe_sefaz_cofins_outr_spec.rb +66 -0
  1284. data/spec/models/nfe_sefaz_cofins_qtde_spec.rb +54 -0
  1285. data/spec/models/nfe_sefaz_cofins_spec.rb +54 -0
  1286. data/spec/models/nfe_sefaz_cofinsnt_spec.rb +36 -0
  1287. data/spec/models/nfe_sefaz_cofinsst_spec.rb +66 -0
  1288. data/spec/models/nfe_sefaz_comb_spec.rb +108 -0
  1289. data/spec/models/nfe_sefaz_compra_spec.rb +48 -0
  1290. data/spec/models/nfe_sefaz_deduc_spec.rb +42 -0
  1291. data/spec/models/nfe_sefaz_dest_spec.rb +90 -0
  1292. data/spec/models/nfe_sefaz_det_export_spec.rb +42 -0
  1293. data/spec/models/nfe_sefaz_det_pag_spec.rb +78 -0
  1294. data/spec/models/nfe_sefaz_det_spec.rb +66 -0
  1295. data/spec/models/nfe_sefaz_di_spec.rb +108 -0
  1296. data/spec/models/nfe_sefaz_dup_spec.rb +48 -0
  1297. data/spec/models/nfe_sefaz_emit_spec.rb +90 -0
  1298. data/spec/models/nfe_sefaz_encerrante_spec.rb +60 -0
  1299. data/spec/models/nfe_sefaz_ender_emi_spec.rb +96 -0
  1300. data/spec/models/nfe_sefaz_endereco_spec.rb +96 -0
  1301. data/spec/models/nfe_sefaz_export_ind_spec.rb +48 -0
  1302. data/spec/models/nfe_sefaz_exporta_spec.rb +48 -0
  1303. data/spec/models/nfe_sefaz_fat_spec.rb +54 -0
  1304. data/spec/models/nfe_sefaz_for_dia_spec.rb +42 -0
  1305. data/spec/models/nfe_sefaz_g_cred_spec.rb +48 -0
  1306. data/spec/models/nfe_sefaz_icms00_spec.rb +78 -0
  1307. data/spec/models/nfe_sefaz_icms02_spec.rb +60 -0
  1308. data/spec/models/nfe_sefaz_icms10_spec.rb +150 -0
  1309. data/spec/models/nfe_sefaz_icms15_spec.rb +90 -0
  1310. data/spec/models/nfe_sefaz_icms20_spec.rb +108 -0
  1311. data/spec/models/nfe_sefaz_icms30_spec.rb +114 -0
  1312. data/spec/models/nfe_sefaz_icms40_spec.rb +60 -0
  1313. data/spec/models/nfe_sefaz_icms51_spec.rb +132 -0
  1314. data/spec/models/nfe_sefaz_icms53_spec.rb +90 -0
  1315. data/spec/models/nfe_sefaz_icms60_spec.rb +108 -0
  1316. data/spec/models/nfe_sefaz_icms61_spec.rb +60 -0
  1317. data/spec/models/nfe_sefaz_icms70_spec.rb +174 -0
  1318. data/spec/models/nfe_sefaz_icms90_spec.rb +174 -0
  1319. data/spec/models/nfe_sefaz_icms_part_spec.rb +138 -0
  1320. data/spec/models/nfe_sefaz_icms_spec.rb +156 -0
  1321. data/spec/models/nfe_sefaz_icms_tot_spec.rb +204 -0
  1322. data/spec/models/nfe_sefaz_icmssn101_spec.rb +54 -0
  1323. data/spec/models/nfe_sefaz_icmssn102_spec.rb +42 -0
  1324. data/spec/models/nfe_sefaz_icmssn201_spec.rb +108 -0
  1325. data/spec/models/nfe_sefaz_icmssn202_spec.rb +96 -0
  1326. data/spec/models/nfe_sefaz_icmssn500_spec.rb +108 -0
  1327. data/spec/models/nfe_sefaz_icmssn900_spec.rb +138 -0
  1328. data/spec/models/nfe_sefaz_icmsst_spec.rb +120 -0
  1329. data/spec/models/nfe_sefaz_icmsuf_dest_spec.rb +84 -0
  1330. data/spec/models/nfe_sefaz_ide_spec.rb +174 -0
  1331. data/spec/models/nfe_sefaz_ii_spec.rb +54 -0
  1332. data/spec/models/nfe_sefaz_imposto_devol_ipi_spec.rb +36 -0
  1333. data/spec/models/nfe_sefaz_imposto_devol_spec.rb +42 -0
  1334. data/spec/models/nfe_sefaz_imposto_spec.rb +90 -0
  1335. data/spec/models/nfe_sefaz_inf_adic_obs_cont_spec.rb +42 -0
  1336. data/spec/models/nfe_sefaz_inf_adic_obs_fisco_spec.rb +42 -0
  1337. data/spec/models/nfe_sefaz_inf_adic_spec.rb +60 -0
  1338. data/spec/models/nfe_sefaz_inf_intermed_spec.rb +42 -0
  1339. data/spec/models/nfe_sefaz_inf_nfe_spec.rb +156 -0
  1340. data/spec/models/nfe_sefaz_inf_nfe_supl_spec.rb +42 -0
  1341. data/spec/models/nfe_sefaz_inf_prod_emb_spec.rb +48 -0
  1342. data/spec/models/nfe_sefaz_inf_prod_nff_spec.rb +42 -0
  1343. data/spec/models/nfe_sefaz_inf_resp_tec_spec.rb +66 -0
  1344. data/spec/models/nfe_sefaz_inf_solic_nff_spec.rb +36 -0
  1345. data/spec/models/nfe_sefaz_ipi_spec.rb +66 -0
  1346. data/spec/models/nfe_sefaz_ipi_trib_spec.rb +66 -0
  1347. data/spec/models/nfe_sefaz_ipint_spec.rb +36 -0
  1348. data/spec/models/nfe_sefaz_issq_ntot_spec.rb +102 -0
  1349. data/spec/models/nfe_sefaz_issqn_spec.rb +126 -0
  1350. data/spec/models/nfe_sefaz_lacres_spec.rb +36 -0
  1351. data/spec/models/nfe_sefaz_local_spec.rb +126 -0
  1352. data/spec/models/nfe_sefaz_med_spec.rb +48 -0
  1353. data/spec/models/nfe_sefaz_n_fref_spec.rb +66 -0
  1354. data/spec/models/nfe_sefaz_obs_cont_spec.rb +42 -0
  1355. data/spec/models/nfe_sefaz_obs_fisco_spec.rb +42 -0
  1356. data/spec/models/nfe_sefaz_obs_item_spec.rb +42 -0
  1357. data/spec/models/nfe_sefaz_orig_comb_spec.rb +48 -0
  1358. data/spec/models/nfe_sefaz_pag_spec.rb +42 -0
  1359. data/spec/models/nfe_sefaz_pis_aliq_spec.rb +54 -0
  1360. data/spec/models/nfe_sefaz_pis_outr_spec.rb +66 -0
  1361. data/spec/models/nfe_sefaz_pis_qtde_spec.rb +54 -0
  1362. data/spec/models/nfe_sefaz_pis_spec.rb +54 -0
  1363. data/spec/models/nfe_sefaz_pisnt_spec.rb +36 -0
  1364. data/spec/models/nfe_sefaz_pisst_spec.rb +66 -0
  1365. data/spec/models/nfe_sefaz_proc_ref_spec.rb +48 -0
  1366. data/spec/models/nfe_sefaz_prod_spec.rb +270 -0
  1367. data/spec/models/nfe_sefaz_rastro_spec.rb +60 -0
  1368. data/spec/models/nfe_sefaz_ref_ecf_spec.rb +48 -0
  1369. data/spec/models/nfe_sefaz_ref_nf_spec.rb +66 -0
  1370. data/spec/models/nfe_sefaz_ref_nfp_spec.rb +78 -0
  1371. data/spec/models/nfe_sefaz_ret_transp_spec.rb +66 -0
  1372. data/spec/models/nfe_sefaz_ret_trib_spec.rb +72 -0
  1373. data/spec/models/nfe_sefaz_total_spec.rb +48 -0
  1374. data/spec/models/nfe_sefaz_transp_spec.rb +78 -0
  1375. data/spec/models/nfe_sefaz_transporta_spec.rb +72 -0
  1376. data/spec/models/nfe_sefaz_veic_prod_spec.rb +174 -0
  1377. data/spec/models/nfe_sefaz_veiculo_spec.rb +48 -0
  1378. data/spec/models/nfe_sefaz_vol_spec.rb +72 -0
  1379. data/spec/models/nfse_cancelamento_spec.rb +70 -0
  1380. data/spec/models/nfse_cidade_metadados_spec.rb +74 -0
  1381. data/spec/models/nfse_cidades_atendidas_spec.rb +42 -0
  1382. data/spec/models/nfse_dps_pedido_emissao_spec.rb +62 -0
  1383. data/spec/models/nfse_listagem_spec.rb +42 -0
  1384. data/spec/models/nfse_lote_dps_pedido_emissao_spec.rb +62 -0
  1385. data/spec/models/nfse_mensagem_retorno_spec.rb +48 -0
  1386. data/spec/models/nfse_pedido_cancelamento_spec.rb +42 -0
  1387. data/spec/models/nfse_pedido_emissao_spec.rb +46 -0
  1388. data/spec/models/nfse_pedido_sincronizacao_spec.rb +36 -0
  1389. data/spec/models/nfse_sincronizacao_spec.rb +46 -0
  1390. data/spec/models/nfse_spec.rb +116 -0
  1391. data/spec/models/rps_dados_construcao_civil_spec.rb +42 -0
  1392. data/spec/models/rps_dados_intermediario_spec.rb +48 -0
  1393. data/spec/models/rps_dados_prestador_spec.rb +102 -0
  1394. data/spec/models/rps_dados_servico_spec.rb +120 -0
  1395. data/spec/models/rps_dados_spec.rb +42 -0
  1396. data/spec/models/rps_dados_tomador_endereco_spec.rb +90 -0
  1397. data/spec/models/rps_dados_tomador_spec.rb +66 -0
  1398. data/spec/models/rps_identificacao_prestador_spec.rb +36 -0
  1399. data/spec/models/rps_identificacao_spec.rb +48 -0
  1400. data/spec/models/rps_lote_listagem_spec.rb +42 -0
  1401. data/spec/models/rps_lote_spec.rb +80 -0
  1402. data/spec/models/rps_pedido_emissao_lote_spec.rb +52 -0
  1403. data/spec/models/rps_pedido_emissao_spec.rb +90 -0
  1404. data/spec/models/rps_servico_valores_spec.rb +150 -0
  1405. data/spec/models/rps_spec.rb +84 -0
  1406. data/spec/models/serv_spec.rb +78 -0
  1407. data/spec/models/substituicao_spec.rb +48 -0
  1408. data/spec/models/trib_federal_spec.rb +54 -0
  1409. data/spec/models/trib_municipal_spec.rb +96 -0
  1410. data/spec/models/trib_outros_pis_cofins_spec.rb +72 -0
  1411. data/spec/models/trib_total_monet_spec.rb +48 -0
  1412. data/spec/models/trib_total_percent_spec.rb +48 -0
  1413. data/spec/models/trib_total_spec.rb +54 -0
  1414. data/spec/models/v_desc_cond_incond_spec.rb +42 -0
  1415. data/spec/models/v_serv_prest_spec.rb +42 -0
  1416. data/spec/spec_helper.rb +111 -0
  1417. metadata +1967 -0
@@ -0,0 +1,376 @@
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 'time'
15
+
16
+ module NuvemfiscalSdkRuby
17
+ # Adições (NT 2011/004).
18
+ class NfeSefazAdi
19
+ # Número da Adição.
20
+ attr_accessor :n_adicao
21
+
22
+ # Número seqüencial do item.
23
+ attr_accessor :n_seq_adic
24
+
25
+ # Código do fabricante estrangeiro (usado nos sistemas internos de informação do emitente da NF-e).
26
+ attr_accessor :c_fabricante
27
+
28
+ # Valor do desconto do item.
29
+ attr_accessor :v_desc_di
30
+
31
+ # Número do ato concessório de Drawback.
32
+ attr_accessor :n_draw
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'n_adicao' => :'nAdicao',
38
+ :'n_seq_adic' => :'nSeqAdic',
39
+ :'c_fabricante' => :'cFabricante',
40
+ :'v_desc_di' => :'vDescDI',
41
+ :'n_draw' => :'nDraw'
42
+ }
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'n_adicao' => :'Integer',
54
+ :'n_seq_adic' => :'Integer',
55
+ :'c_fabricante' => :'String',
56
+ :'v_desc_di' => :'Float',
57
+ :'n_draw' => :'String'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ :'n_adicao',
65
+ :'n_seq_adic',
66
+ :'c_fabricante',
67
+ :'v_desc_di',
68
+ :'n_draw'
69
+ ])
70
+ end
71
+
72
+ # Initializes the object
73
+ # @param [Hash] attributes Model attributes in the form of hash
74
+ def initialize(attributes = {})
75
+ if (!attributes.is_a?(Hash))
76
+ fail ArgumentError, "The input argument (attributes) must be a hash in `NuvemfiscalSdkRuby::NfeSefazAdi` initialize method"
77
+ end
78
+
79
+ # check to see if the attribute exists and convert string to symbol for hash key
80
+ attributes = attributes.each_with_object({}) { |(k, v), h|
81
+ if (!self.class.attribute_map.key?(k.to_sym))
82
+ fail ArgumentError, "`#{k}` is not a valid attribute in `NuvemfiscalSdkRuby::NfeSefazAdi`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
83
+ end
84
+ h[k.to_sym] = v
85
+ }
86
+
87
+ if attributes.key?(:'n_adicao')
88
+ self.n_adicao = attributes[:'n_adicao']
89
+ end
90
+
91
+ if attributes.key?(:'n_seq_adic')
92
+ self.n_seq_adic = attributes[:'n_seq_adic']
93
+ else
94
+ self.n_seq_adic = nil
95
+ end
96
+
97
+ if attributes.key?(:'c_fabricante')
98
+ self.c_fabricante = attributes[:'c_fabricante']
99
+ else
100
+ self.c_fabricante = nil
101
+ end
102
+
103
+ if attributes.key?(:'v_desc_di')
104
+ self.v_desc_di = attributes[:'v_desc_di']
105
+ end
106
+
107
+ if attributes.key?(:'n_draw')
108
+ self.n_draw = attributes[:'n_draw']
109
+ end
110
+ end
111
+
112
+ # Show invalid properties with the reasons. Usually used together with valid?
113
+ # @return Array for valid properties with the reasons
114
+ def list_invalid_properties
115
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
116
+ invalid_properties = Array.new
117
+ if !@n_adicao.nil? && @n_adicao > 999
118
+ invalid_properties.push('invalid value for "n_adicao", must be smaller than or equal to 999.')
119
+ end
120
+
121
+ if !@n_adicao.nil? && @n_adicao < 1
122
+ invalid_properties.push('invalid value for "n_adicao", must be greater than or equal to 1.')
123
+ end
124
+
125
+ if @n_seq_adic > 99999
126
+ invalid_properties.push('invalid value for "n_seq_adic", must be smaller than or equal to 99999.')
127
+ end
128
+
129
+ if @n_seq_adic < 1
130
+ invalid_properties.push('invalid value for "n_seq_adic", must be greater than or equal to 1.')
131
+ end
132
+
133
+ if @c_fabricante.to_s.length > 60
134
+ invalid_properties.push('invalid value for "c_fabricante", the character length must be smaller than or equal to 60.')
135
+ end
136
+
137
+ if @c_fabricante.to_s.length < 1
138
+ invalid_properties.push('invalid value for "c_fabricante", the character length must be great than or equal to 1.')
139
+ end
140
+
141
+ if !@v_desc_di.nil? && @v_desc_di <= 0
142
+ invalid_properties.push('invalid value for "v_desc_di", must be greater than 0.')
143
+ end
144
+
145
+ if !@n_draw.nil? && @n_draw.to_s.length > 20
146
+ invalid_properties.push('invalid value for "n_draw", the character length must be smaller than or equal to 20.')
147
+ end
148
+
149
+ if !@n_draw.nil? && @n_draw.to_s.length < 1
150
+ invalid_properties.push('invalid value for "n_draw", the character length must be great than or equal to 1.')
151
+ end
152
+
153
+ invalid_properties
154
+ end
155
+
156
+ # Check to see if the all the properties in the model are valid
157
+ # @return true if the model is valid
158
+ def valid?
159
+ warn '[DEPRECATED] the `valid?` method is obsolete'
160
+ return false if !@n_adicao.nil? && @n_adicao > 999
161
+ return false if !@n_adicao.nil? && @n_adicao < 1
162
+ return false if @n_seq_adic > 99999
163
+ return false if @n_seq_adic < 1
164
+ return false if @c_fabricante.to_s.length > 60
165
+ return false if @c_fabricante.to_s.length < 1
166
+ return false if !@v_desc_di.nil? && @v_desc_di <= 0
167
+ return false if !@n_draw.nil? && @n_draw.to_s.length > 20
168
+ return false if !@n_draw.nil? && @n_draw.to_s.length < 1
169
+ true
170
+ end
171
+
172
+ # Custom attribute writer method with validation
173
+ # @param [Object] n_adicao Value to be assigned
174
+ def n_adicao=(n_adicao)
175
+ if !n_adicao.nil? && n_adicao > 999
176
+ fail ArgumentError, 'invalid value for "n_adicao", must be smaller than or equal to 999.'
177
+ end
178
+
179
+ if !n_adicao.nil? && n_adicao < 1
180
+ fail ArgumentError, 'invalid value for "n_adicao", must be greater than or equal to 1.'
181
+ end
182
+
183
+ @n_adicao = n_adicao
184
+ end
185
+
186
+ # Custom attribute writer method with validation
187
+ # @param [Object] n_seq_adic Value to be assigned
188
+ def n_seq_adic=(n_seq_adic)
189
+ if !n_seq_adic.nil? && n_seq_adic > 99999
190
+ fail ArgumentError, 'invalid value for "n_seq_adic", must be smaller than or equal to 99999.'
191
+ end
192
+
193
+ if !n_seq_adic.nil? && n_seq_adic < 1
194
+ fail ArgumentError, 'invalid value for "n_seq_adic", must be greater than or equal to 1.'
195
+ end
196
+
197
+ @n_seq_adic = n_seq_adic
198
+ end
199
+
200
+ # Custom attribute writer method with validation
201
+ # @param [Object] c_fabricante Value to be assigned
202
+ def c_fabricante=(c_fabricante)
203
+ if !c_fabricante.nil? && c_fabricante.to_s.length > 60
204
+ fail ArgumentError, 'invalid value for "c_fabricante", the character length must be smaller than or equal to 60.'
205
+ end
206
+
207
+ if !c_fabricante.nil? && c_fabricante.to_s.length < 1
208
+ fail ArgumentError, 'invalid value for "c_fabricante", the character length must be great than or equal to 1.'
209
+ end
210
+
211
+ @c_fabricante = c_fabricante
212
+ end
213
+
214
+ # Custom attribute writer method with validation
215
+ # @param [Object] v_desc_di Value to be assigned
216
+ def v_desc_di=(v_desc_di)
217
+ if !v_desc_di.nil? && v_desc_di <= 0
218
+ fail ArgumentError, 'invalid value for "v_desc_di", must be greater than 0.'
219
+ end
220
+
221
+ @v_desc_di = v_desc_di
222
+ end
223
+
224
+ # Custom attribute writer method with validation
225
+ # @param [Object] n_draw Value to be assigned
226
+ def n_draw=(n_draw)
227
+ if !n_draw.nil? && n_draw.to_s.length > 20
228
+ fail ArgumentError, 'invalid value for "n_draw", the character length must be smaller than or equal to 20.'
229
+ end
230
+
231
+ if !n_draw.nil? && n_draw.to_s.length < 1
232
+ fail ArgumentError, 'invalid value for "n_draw", the character length must be great than or equal to 1.'
233
+ end
234
+
235
+ @n_draw = n_draw
236
+ end
237
+
238
+ # Checks equality by comparing each attribute.
239
+ # @param [Object] Object to be compared
240
+ def ==(o)
241
+ return true if self.equal?(o)
242
+ self.class == o.class &&
243
+ n_adicao == o.n_adicao &&
244
+ n_seq_adic == o.n_seq_adic &&
245
+ c_fabricante == o.c_fabricante &&
246
+ v_desc_di == o.v_desc_di &&
247
+ n_draw == o.n_draw
248
+ end
249
+
250
+ # @see the `==` method
251
+ # @param [Object] Object to be compared
252
+ def eql?(o)
253
+ self == o
254
+ end
255
+
256
+ # Calculates hash code according to all attributes.
257
+ # @return [Integer] Hash code
258
+ def hash
259
+ [n_adicao, n_seq_adic, c_fabricante, v_desc_di, n_draw].hash
260
+ end
261
+
262
+ # Builds the object from hash
263
+ # @param [Hash] attributes Model attributes in the form of hash
264
+ # @return [Object] Returns the model itself
265
+ def self.build_from_hash(attributes)
266
+ return nil unless attributes.is_a?(Hash)
267
+ attributes = attributes.transform_keys(&:to_sym)
268
+ transformed_hash = {}
269
+ openapi_types.each_pair do |key, type|
270
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
271
+ transformed_hash["#{key}"] = nil
272
+ elsif type =~ /\AArray<(.*)>/i
273
+ # check to ensure the input is an array given that the attribute
274
+ # is documented as an array but the input is not
275
+ if attributes[attribute_map[key]].is_a?(Array)
276
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
277
+ end
278
+ elsif !attributes[attribute_map[key]].nil?
279
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
280
+ end
281
+ end
282
+ new(transformed_hash)
283
+ end
284
+
285
+ # Deserializes the data based on type
286
+ # @param string type Data type
287
+ # @param string value Value to be deserialized
288
+ # @return [Object] Deserialized data
289
+ def self._deserialize(type, value)
290
+ case type.to_sym
291
+ when :Time
292
+ Time.parse(value)
293
+ when :Date
294
+ Date.parse(value)
295
+ when :String
296
+ value.to_s
297
+ when :Integer
298
+ value.to_i
299
+ when :Float
300
+ value.to_f
301
+ when :Boolean
302
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
303
+ true
304
+ else
305
+ false
306
+ end
307
+ when :Object
308
+ # generic object (usually a Hash), return directly
309
+ value
310
+ when /\AArray<(?<inner_type>.+)>\z/
311
+ inner_type = Regexp.last_match[:inner_type]
312
+ value.map { |v| _deserialize(inner_type, v) }
313
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
314
+ k_type = Regexp.last_match[:k_type]
315
+ v_type = Regexp.last_match[:v_type]
316
+ {}.tap do |hash|
317
+ value.each do |k, v|
318
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
319
+ end
320
+ end
321
+ else # model
322
+ # models (e.g. Pet) or oneOf
323
+ klass = NuvemfiscalSdkRuby.const_get(type)
324
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
325
+ end
326
+ end
327
+
328
+ # Returns the string representation of the object
329
+ # @return [String] String presentation of the object
330
+ def to_s
331
+ to_hash.to_s
332
+ end
333
+
334
+ # to_body is an alias to to_hash (backward compatibility)
335
+ # @return [Hash] Returns the object in the form of hash
336
+ def to_body
337
+ to_hash
338
+ end
339
+
340
+ # Returns the object in the form of hash
341
+ # @return [Hash] Returns the object in the form of hash
342
+ def to_hash
343
+ hash = {}
344
+ self.class.attribute_map.each_pair do |attr, param|
345
+ value = self.send(attr)
346
+ if value.nil?
347
+ is_nullable = self.class.openapi_nullable.include?(attr)
348
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
349
+ end
350
+
351
+ hash[param] = _to_hash(value)
352
+ end
353
+ hash
354
+ end
355
+
356
+ # Outputs non-array value in the form of hash
357
+ # For object, use to_hash. Otherwise, just return the value
358
+ # @param [Object] value Any valid value
359
+ # @return [Hash] Returns the value in the form of hash
360
+ def _to_hash(value)
361
+ if value.is_a?(Array)
362
+ value.compact.map { |v| _to_hash(v) }
363
+ elsif value.is_a?(Hash)
364
+ {}.tap do |hash|
365
+ value.each { |k, v| hash[k] = _to_hash(v) }
366
+ end
367
+ elsif value.respond_to? :to_hash
368
+ value.to_hash
369
+ else
370
+ value
371
+ end
372
+ end
373
+
374
+ end
375
+
376
+ end
@@ -0,0 +1,330 @@
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 'time'
15
+
16
+ module NuvemfiscalSdkRuby
17
+ # Armamentos.
18
+ class NfeSefazArma
19
+ # Indicador do tipo de arma de fogo (0 - Uso permitido; 1 - Uso restrito).
20
+ attr_accessor :tp_arma
21
+
22
+ # Número de série da arma.
23
+ attr_accessor :n_serie
24
+
25
+ # Número de série do cano.
26
+ attr_accessor :n_cano
27
+
28
+ # Descrição completa da arma, compreendendo: calibre, marca, capacidade, tipo de funcionamento, comprimento e demais elementos que permitam a sua perfeita identificação.
29
+ attr_accessor :descr
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'tp_arma' => :'tpArma',
35
+ :'n_serie' => :'nSerie',
36
+ :'n_cano' => :'nCano',
37
+ :'descr' => :'descr'
38
+ }
39
+ end
40
+
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ attribute_map.values
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'tp_arma' => :'Integer',
50
+ :'n_serie' => :'String',
51
+ :'n_cano' => :'String',
52
+ :'descr' => :'String'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ :'tp_arma',
60
+ :'n_serie',
61
+ :'n_cano',
62
+ :'descr'
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `NuvemfiscalSdkRuby::NfeSefazArma` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ attributes = attributes.each_with_object({}) { |(k, v), h|
75
+ if (!self.class.attribute_map.key?(k.to_sym))
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `NuvemfiscalSdkRuby::NfeSefazArma`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+ end
78
+ h[k.to_sym] = v
79
+ }
80
+
81
+ if attributes.key?(:'tp_arma')
82
+ self.tp_arma = attributes[:'tp_arma']
83
+ else
84
+ self.tp_arma = nil
85
+ end
86
+
87
+ if attributes.key?(:'n_serie')
88
+ self.n_serie = attributes[:'n_serie']
89
+ else
90
+ self.n_serie = nil
91
+ end
92
+
93
+ if attributes.key?(:'n_cano')
94
+ self.n_cano = attributes[:'n_cano']
95
+ else
96
+ self.n_cano = nil
97
+ end
98
+
99
+ if attributes.key?(:'descr')
100
+ self.descr = attributes[:'descr']
101
+ else
102
+ self.descr = nil
103
+ end
104
+ end
105
+
106
+ # Show invalid properties with the reasons. Usually used together with valid?
107
+ # @return Array for valid properties with the reasons
108
+ def list_invalid_properties
109
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
110
+ invalid_properties = Array.new
111
+ if @n_serie.to_s.length > 15
112
+ invalid_properties.push('invalid value for "n_serie", the character length must be smaller than or equal to 15.')
113
+ end
114
+
115
+ if @n_serie.to_s.length < 1
116
+ invalid_properties.push('invalid value for "n_serie", the character length must be great than or equal to 1.')
117
+ end
118
+
119
+ if @n_cano.to_s.length > 15
120
+ invalid_properties.push('invalid value for "n_cano", the character length must be smaller than or equal to 15.')
121
+ end
122
+
123
+ if @n_cano.to_s.length < 1
124
+ invalid_properties.push('invalid value for "n_cano", the character length must be great than or equal to 1.')
125
+ end
126
+
127
+ if @descr.to_s.length > 256
128
+ invalid_properties.push('invalid value for "descr", the character length must be smaller than or equal to 256.')
129
+ end
130
+
131
+ if @descr.to_s.length < 1
132
+ invalid_properties.push('invalid value for "descr", the character length must be great than or equal to 1.')
133
+ end
134
+
135
+ invalid_properties
136
+ end
137
+
138
+ # Check to see if the all the properties in the model are valid
139
+ # @return true if the model is valid
140
+ def valid?
141
+ warn '[DEPRECATED] the `valid?` method is obsolete'
142
+ return false if @n_serie.to_s.length > 15
143
+ return false if @n_serie.to_s.length < 1
144
+ return false if @n_cano.to_s.length > 15
145
+ return false if @n_cano.to_s.length < 1
146
+ return false if @descr.to_s.length > 256
147
+ return false if @descr.to_s.length < 1
148
+ true
149
+ end
150
+
151
+ # Custom attribute writer method with validation
152
+ # @param [Object] n_serie Value to be assigned
153
+ def n_serie=(n_serie)
154
+ if !n_serie.nil? && n_serie.to_s.length > 15
155
+ fail ArgumentError, 'invalid value for "n_serie", the character length must be smaller than or equal to 15.'
156
+ end
157
+
158
+ if !n_serie.nil? && n_serie.to_s.length < 1
159
+ fail ArgumentError, 'invalid value for "n_serie", the character length must be great than or equal to 1.'
160
+ end
161
+
162
+ @n_serie = n_serie
163
+ end
164
+
165
+ # Custom attribute writer method with validation
166
+ # @param [Object] n_cano Value to be assigned
167
+ def n_cano=(n_cano)
168
+ if !n_cano.nil? && n_cano.to_s.length > 15
169
+ fail ArgumentError, 'invalid value for "n_cano", the character length must be smaller than or equal to 15.'
170
+ end
171
+
172
+ if !n_cano.nil? && n_cano.to_s.length < 1
173
+ fail ArgumentError, 'invalid value for "n_cano", the character length must be great than or equal to 1.'
174
+ end
175
+
176
+ @n_cano = n_cano
177
+ end
178
+
179
+ # Custom attribute writer method with validation
180
+ # @param [Object] descr Value to be assigned
181
+ def descr=(descr)
182
+ if !descr.nil? && descr.to_s.length > 256
183
+ fail ArgumentError, 'invalid value for "descr", the character length must be smaller than or equal to 256.'
184
+ end
185
+
186
+ if !descr.nil? && descr.to_s.length < 1
187
+ fail ArgumentError, 'invalid value for "descr", the character length must be great than or equal to 1.'
188
+ end
189
+
190
+ @descr = descr
191
+ end
192
+
193
+ # Checks equality by comparing each attribute.
194
+ # @param [Object] Object to be compared
195
+ def ==(o)
196
+ return true if self.equal?(o)
197
+ self.class == o.class &&
198
+ tp_arma == o.tp_arma &&
199
+ n_serie == o.n_serie &&
200
+ n_cano == o.n_cano &&
201
+ descr == o.descr
202
+ end
203
+
204
+ # @see the `==` method
205
+ # @param [Object] Object to be compared
206
+ def eql?(o)
207
+ self == o
208
+ end
209
+
210
+ # Calculates hash code according to all attributes.
211
+ # @return [Integer] Hash code
212
+ def hash
213
+ [tp_arma, n_serie, n_cano, descr].hash
214
+ end
215
+
216
+ # Builds the object from hash
217
+ # @param [Hash] attributes Model attributes in the form of hash
218
+ # @return [Object] Returns the model itself
219
+ def self.build_from_hash(attributes)
220
+ return nil unless attributes.is_a?(Hash)
221
+ attributes = attributes.transform_keys(&:to_sym)
222
+ transformed_hash = {}
223
+ openapi_types.each_pair do |key, type|
224
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
225
+ transformed_hash["#{key}"] = nil
226
+ elsif type =~ /\AArray<(.*)>/i
227
+ # check to ensure the input is an array given that the attribute
228
+ # is documented as an array but the input is not
229
+ if attributes[attribute_map[key]].is_a?(Array)
230
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
231
+ end
232
+ elsif !attributes[attribute_map[key]].nil?
233
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
234
+ end
235
+ end
236
+ new(transformed_hash)
237
+ end
238
+
239
+ # Deserializes the data based on type
240
+ # @param string type Data type
241
+ # @param string value Value to be deserialized
242
+ # @return [Object] Deserialized data
243
+ def self._deserialize(type, value)
244
+ case type.to_sym
245
+ when :Time
246
+ Time.parse(value)
247
+ when :Date
248
+ Date.parse(value)
249
+ when :String
250
+ value.to_s
251
+ when :Integer
252
+ value.to_i
253
+ when :Float
254
+ value.to_f
255
+ when :Boolean
256
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
257
+ true
258
+ else
259
+ false
260
+ end
261
+ when :Object
262
+ # generic object (usually a Hash), return directly
263
+ value
264
+ when /\AArray<(?<inner_type>.+)>\z/
265
+ inner_type = Regexp.last_match[:inner_type]
266
+ value.map { |v| _deserialize(inner_type, v) }
267
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
268
+ k_type = Regexp.last_match[:k_type]
269
+ v_type = Regexp.last_match[:v_type]
270
+ {}.tap do |hash|
271
+ value.each do |k, v|
272
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
273
+ end
274
+ end
275
+ else # model
276
+ # models (e.g. Pet) or oneOf
277
+ klass = NuvemfiscalSdkRuby.const_get(type)
278
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
279
+ end
280
+ end
281
+
282
+ # Returns the string representation of the object
283
+ # @return [String] String presentation of the object
284
+ def to_s
285
+ to_hash.to_s
286
+ end
287
+
288
+ # to_body is an alias to to_hash (backward compatibility)
289
+ # @return [Hash] Returns the object in the form of hash
290
+ def to_body
291
+ to_hash
292
+ end
293
+
294
+ # Returns the object in the form of hash
295
+ # @return [Hash] Returns the object in the form of hash
296
+ def to_hash
297
+ hash = {}
298
+ self.class.attribute_map.each_pair do |attr, param|
299
+ value = self.send(attr)
300
+ if value.nil?
301
+ is_nullable = self.class.openapi_nullable.include?(attr)
302
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
303
+ end
304
+
305
+ hash[param] = _to_hash(value)
306
+ end
307
+ hash
308
+ end
309
+
310
+ # Outputs non-array value in the form of hash
311
+ # For object, use to_hash. Otherwise, just return the value
312
+ # @param [Object] value Any valid value
313
+ # @return [Hash] Returns the value in the form of hash
314
+ def _to_hash(value)
315
+ if value.is_a?(Array)
316
+ value.compact.map { |v| _to_hash(v) }
317
+ elsif value.is_a?(Hash)
318
+ {}.tap do |hash|
319
+ value.each { |k, v| hash[k] = _to_hash(v) }
320
+ end
321
+ elsif value.respond_to? :to_hash
322
+ value.to_hash
323
+ else
324
+ value
325
+ end
326
+ end
327
+
328
+ end
329
+
330
+ end