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,671 @@
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
+ # Tributação pelo ICMS * 10 - Tributada e com cobrança do ICMS por substituição tributária
18
+ class NfeSefazICMS10
19
+ # Origem da mercadoria: * 0 - Nacional, exceto as indicadas nos códigos 3, 4, 5 e 8; * 1 - Estrangeira - Importação direta, exceto a indicada no código 6; * 2 - Estrangeira - Adquirida no mercado interno, exceto a indicada no código 7; * 3 - Nacional, mercadoria ou bem com Conteúdo de Importação superior a 40%% e inferior ou igual a 70%%; * 4 - Nacional, cuja produção tenha sido feita em conformidade com os processos produtivos básicos de que tratam as legislações citadas nos Ajustes; * 5 - Nacional, mercadoria ou bem com Conteúdo de Importação inferior ou igual a 40%%; * 6 - Estrangeira - Importação direta, sem similar nacional, constante em lista da CAMEX e gás natural; * 7 - Estrangeira - Adquirida no mercado interno, sem similar nacional, constante lista CAMEX e gás natural; * 8 - Nacional, mercadoria ou bem com Conteúdo de Importação superior a 70%%.
20
+ attr_accessor :orig
21
+
22
+ # * 10 - Tributada e com cobrança do ICMS por substituição tributária
23
+ attr_accessor :cst
24
+
25
+ # Modalidade de determinação da BC do ICMS: * 0 - Margem Valor Agregado (%%) * 1 - Pauta (valor) * 2 - Preço Tabelado Máximo (valor) * 3 - Valor da Operação
26
+ attr_accessor :mod_bc
27
+
28
+ # Valor da BC do ICMS.
29
+ attr_accessor :v_bc
30
+
31
+ # Alíquota do ICMS.
32
+ attr_accessor :p_icms
33
+
34
+ # Valor do ICMS.
35
+ attr_accessor :v_icms
36
+
37
+ # Valor da Base de cálculo do FCP.
38
+ attr_accessor :v_bcfcp
39
+
40
+ # Percentual de ICMS relativo ao Fundo de Combate à Pobreza (FCP).
41
+ attr_accessor :p_fcp
42
+
43
+ # Valor do ICMS relativo ao Fundo de Combate à Pobreza (FCP).
44
+ attr_accessor :v_fcp
45
+
46
+ # Modalidade de determinação da BC do ICMS ST: * 0 - Preço tabelado ou máximo sugerido * 1 - Lista Negativa (valor) * 2 - Lista Positiva (valor) * 3 - Lista Neutra (valor) * 4 - Margem Valor Agregado (%%) * 5 - Pauta (valor) * 6 - Valor da Operação
47
+ attr_accessor :mod_bcst
48
+
49
+ # Percentual da Margem de Valor Adicionado ICMS ST.
50
+ attr_accessor :p_mvast
51
+
52
+ # Percentual de redução da BC ICMS ST.
53
+ attr_accessor :p_red_bcst
54
+
55
+ # Valor da BC do ICMS ST.
56
+ attr_accessor :v_bcst
57
+
58
+ # Alíquota do ICMS ST.
59
+ attr_accessor :p_icmsst
60
+
61
+ # Valor do ICMS ST.
62
+ attr_accessor :v_icmsst
63
+
64
+ # Valor da Base de cálculo do FCP retido por substituicao tributaria.
65
+ attr_accessor :v_bcfcpst
66
+
67
+ # Percentual de FCP retido por substituição tributária.
68
+ attr_accessor :p_fcpst
69
+
70
+ # Valor do FCP retido por substituição tributária.
71
+ attr_accessor :v_fcpst
72
+
73
+ # Valor do ICMS-ST desonerado.
74
+ attr_accessor :v_icmsst_deson
75
+
76
+ # Motivo da desoneração do ICMS-ST: 3-Uso na agropecuária * 9 - Outros * 12 - Fomento agropecuário
77
+ attr_accessor :mot_des_icmsst
78
+
79
+ # Attribute mapping from ruby-style variable name to JSON key.
80
+ def self.attribute_map
81
+ {
82
+ :'orig' => :'orig',
83
+ :'cst' => :'CST',
84
+ :'mod_bc' => :'modBC',
85
+ :'v_bc' => :'vBC',
86
+ :'p_icms' => :'pICMS',
87
+ :'v_icms' => :'vICMS',
88
+ :'v_bcfcp' => :'vBCFCP',
89
+ :'p_fcp' => :'pFCP',
90
+ :'v_fcp' => :'vFCP',
91
+ :'mod_bcst' => :'modBCST',
92
+ :'p_mvast' => :'pMVAST',
93
+ :'p_red_bcst' => :'pRedBCST',
94
+ :'v_bcst' => :'vBCST',
95
+ :'p_icmsst' => :'pICMSST',
96
+ :'v_icmsst' => :'vICMSST',
97
+ :'v_bcfcpst' => :'vBCFCPST',
98
+ :'p_fcpst' => :'pFCPST',
99
+ :'v_fcpst' => :'vFCPST',
100
+ :'v_icmsst_deson' => :'vICMSSTDeson',
101
+ :'mot_des_icmsst' => :'motDesICMSST'
102
+ }
103
+ end
104
+
105
+ # Returns all the JSON keys this model knows about
106
+ def self.acceptable_attributes
107
+ attribute_map.values
108
+ end
109
+
110
+ # Attribute type mapping.
111
+ def self.openapi_types
112
+ {
113
+ :'orig' => :'Integer',
114
+ :'cst' => :'String',
115
+ :'mod_bc' => :'Integer',
116
+ :'v_bc' => :'Float',
117
+ :'p_icms' => :'Float',
118
+ :'v_icms' => :'Float',
119
+ :'v_bcfcp' => :'Float',
120
+ :'p_fcp' => :'Float',
121
+ :'v_fcp' => :'Float',
122
+ :'mod_bcst' => :'Integer',
123
+ :'p_mvast' => :'Float',
124
+ :'p_red_bcst' => :'Float',
125
+ :'v_bcst' => :'Float',
126
+ :'p_icmsst' => :'Float',
127
+ :'v_icmsst' => :'Float',
128
+ :'v_bcfcpst' => :'Float',
129
+ :'p_fcpst' => :'Float',
130
+ :'v_fcpst' => :'Float',
131
+ :'v_icmsst_deson' => :'Float',
132
+ :'mot_des_icmsst' => :'Integer'
133
+ }
134
+ end
135
+
136
+ # List of attributes with nullable: true
137
+ def self.openapi_nullable
138
+ Set.new([
139
+ :'orig',
140
+ :'cst',
141
+ :'mod_bc',
142
+ :'v_bc',
143
+ :'p_icms',
144
+ :'v_icms',
145
+ :'v_bcfcp',
146
+ :'p_fcp',
147
+ :'v_fcp',
148
+ :'mod_bcst',
149
+ :'p_mvast',
150
+ :'p_red_bcst',
151
+ :'v_bcst',
152
+ :'p_icmsst',
153
+ :'v_icmsst',
154
+ :'v_bcfcpst',
155
+ :'p_fcpst',
156
+ :'v_fcpst',
157
+ :'v_icmsst_deson',
158
+ :'mot_des_icmsst'
159
+ ])
160
+ end
161
+
162
+ # Initializes the object
163
+ # @param [Hash] attributes Model attributes in the form of hash
164
+ def initialize(attributes = {})
165
+ if (!attributes.is_a?(Hash))
166
+ fail ArgumentError, "The input argument (attributes) must be a hash in `NuvemfiscalSdkRuby::NfeSefazICMS10` initialize method"
167
+ end
168
+
169
+ # check to see if the attribute exists and convert string to symbol for hash key
170
+ attributes = attributes.each_with_object({}) { |(k, v), h|
171
+ if (!self.class.attribute_map.key?(k.to_sym))
172
+ fail ArgumentError, "`#{k}` is not a valid attribute in `NuvemfiscalSdkRuby::NfeSefazICMS10`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
173
+ end
174
+ h[k.to_sym] = v
175
+ }
176
+
177
+ if attributes.key?(:'orig')
178
+ self.orig = attributes[:'orig']
179
+ else
180
+ self.orig = nil
181
+ end
182
+
183
+ if attributes.key?(:'cst')
184
+ self.cst = attributes[:'cst']
185
+ else
186
+ self.cst = nil
187
+ end
188
+
189
+ if attributes.key?(:'mod_bc')
190
+ self.mod_bc = attributes[:'mod_bc']
191
+ else
192
+ self.mod_bc = nil
193
+ end
194
+
195
+ if attributes.key?(:'v_bc')
196
+ self.v_bc = attributes[:'v_bc']
197
+ else
198
+ self.v_bc = nil
199
+ end
200
+
201
+ if attributes.key?(:'p_icms')
202
+ self.p_icms = attributes[:'p_icms']
203
+ else
204
+ self.p_icms = nil
205
+ end
206
+
207
+ if attributes.key?(:'v_icms')
208
+ self.v_icms = attributes[:'v_icms']
209
+ else
210
+ self.v_icms = nil
211
+ end
212
+
213
+ if attributes.key?(:'v_bcfcp')
214
+ self.v_bcfcp = attributes[:'v_bcfcp']
215
+ end
216
+
217
+ if attributes.key?(:'p_fcp')
218
+ self.p_fcp = attributes[:'p_fcp']
219
+ end
220
+
221
+ if attributes.key?(:'v_fcp')
222
+ self.v_fcp = attributes[:'v_fcp']
223
+ end
224
+
225
+ if attributes.key?(:'mod_bcst')
226
+ self.mod_bcst = attributes[:'mod_bcst']
227
+ else
228
+ self.mod_bcst = nil
229
+ end
230
+
231
+ if attributes.key?(:'p_mvast')
232
+ self.p_mvast = attributes[:'p_mvast']
233
+ end
234
+
235
+ if attributes.key?(:'p_red_bcst')
236
+ self.p_red_bcst = attributes[:'p_red_bcst']
237
+ end
238
+
239
+ if attributes.key?(:'v_bcst')
240
+ self.v_bcst = attributes[:'v_bcst']
241
+ else
242
+ self.v_bcst = nil
243
+ end
244
+
245
+ if attributes.key?(:'p_icmsst')
246
+ self.p_icmsst = attributes[:'p_icmsst']
247
+ else
248
+ self.p_icmsst = nil
249
+ end
250
+
251
+ if attributes.key?(:'v_icmsst')
252
+ self.v_icmsst = attributes[:'v_icmsst']
253
+ else
254
+ self.v_icmsst = nil
255
+ end
256
+
257
+ if attributes.key?(:'v_bcfcpst')
258
+ self.v_bcfcpst = attributes[:'v_bcfcpst']
259
+ end
260
+
261
+ if attributes.key?(:'p_fcpst')
262
+ self.p_fcpst = attributes[:'p_fcpst']
263
+ end
264
+
265
+ if attributes.key?(:'v_fcpst')
266
+ self.v_fcpst = attributes[:'v_fcpst']
267
+ end
268
+
269
+ if attributes.key?(:'v_icmsst_deson')
270
+ self.v_icmsst_deson = attributes[:'v_icmsst_deson']
271
+ end
272
+
273
+ if attributes.key?(:'mot_des_icmsst')
274
+ self.mot_des_icmsst = attributes[:'mot_des_icmsst']
275
+ end
276
+ end
277
+
278
+ # Show invalid properties with the reasons. Usually used together with valid?
279
+ # @return Array for valid properties with the reasons
280
+ def list_invalid_properties
281
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
282
+ invalid_properties = Array.new
283
+ if @v_bc < 0
284
+ invalid_properties.push('invalid value for "v_bc", must be greater than or equal to 0.')
285
+ end
286
+
287
+ if @p_icms < 0
288
+ invalid_properties.push('invalid value for "p_icms", must be greater than or equal to 0.')
289
+ end
290
+
291
+ if @v_icms < 0
292
+ invalid_properties.push('invalid value for "v_icms", must be greater than or equal to 0.')
293
+ end
294
+
295
+ if !@v_bcfcp.nil? && @v_bcfcp < 0
296
+ invalid_properties.push('invalid value for "v_bcfcp", must be greater than or equal to 0.')
297
+ end
298
+
299
+ if !@p_fcp.nil? && @p_fcp < 0
300
+ invalid_properties.push('invalid value for "p_fcp", must be greater than or equal to 0.')
301
+ end
302
+
303
+ if !@v_fcp.nil? && @v_fcp < 0
304
+ invalid_properties.push('invalid value for "v_fcp", must be greater than or equal to 0.')
305
+ end
306
+
307
+ if !@p_mvast.nil? && @p_mvast < 0
308
+ invalid_properties.push('invalid value for "p_mvast", must be greater than or equal to 0.')
309
+ end
310
+
311
+ if !@p_red_bcst.nil? && @p_red_bcst < 0
312
+ invalid_properties.push('invalid value for "p_red_bcst", must be greater than or equal to 0.')
313
+ end
314
+
315
+ if @v_bcst < 0
316
+ invalid_properties.push('invalid value for "v_bcst", must be greater than or equal to 0.')
317
+ end
318
+
319
+ if @p_icmsst < 0
320
+ invalid_properties.push('invalid value for "p_icmsst", must be greater than or equal to 0.')
321
+ end
322
+
323
+ if @v_icmsst < 0
324
+ invalid_properties.push('invalid value for "v_icmsst", must be greater than or equal to 0.')
325
+ end
326
+
327
+ if !@v_bcfcpst.nil? && @v_bcfcpst < 0
328
+ invalid_properties.push('invalid value for "v_bcfcpst", must be greater than or equal to 0.')
329
+ end
330
+
331
+ if !@p_fcpst.nil? && @p_fcpst < 0
332
+ invalid_properties.push('invalid value for "p_fcpst", must be greater than or equal to 0.')
333
+ end
334
+
335
+ if !@v_fcpst.nil? && @v_fcpst < 0
336
+ invalid_properties.push('invalid value for "v_fcpst", must be greater than or equal to 0.')
337
+ end
338
+
339
+ if !@v_icmsst_deson.nil? && @v_icmsst_deson < 0
340
+ invalid_properties.push('invalid value for "v_icmsst_deson", must be greater than or equal to 0.')
341
+ end
342
+
343
+ invalid_properties
344
+ end
345
+
346
+ # Check to see if the all the properties in the model are valid
347
+ # @return true if the model is valid
348
+ def valid?
349
+ warn '[DEPRECATED] the `valid?` method is obsolete'
350
+ return false if @v_bc < 0
351
+ return false if @p_icms < 0
352
+ return false if @v_icms < 0
353
+ return false if !@v_bcfcp.nil? && @v_bcfcp < 0
354
+ return false if !@p_fcp.nil? && @p_fcp < 0
355
+ return false if !@v_fcp.nil? && @v_fcp < 0
356
+ return false if !@p_mvast.nil? && @p_mvast < 0
357
+ return false if !@p_red_bcst.nil? && @p_red_bcst < 0
358
+ return false if @v_bcst < 0
359
+ return false if @p_icmsst < 0
360
+ return false if @v_icmsst < 0
361
+ return false if !@v_bcfcpst.nil? && @v_bcfcpst < 0
362
+ return false if !@p_fcpst.nil? && @p_fcpst < 0
363
+ return false if !@v_fcpst.nil? && @v_fcpst < 0
364
+ return false if !@v_icmsst_deson.nil? && @v_icmsst_deson < 0
365
+ true
366
+ end
367
+
368
+ # Custom attribute writer method with validation
369
+ # @param [Object] v_bc Value to be assigned
370
+ def v_bc=(v_bc)
371
+ if !v_bc.nil? && v_bc < 0
372
+ fail ArgumentError, 'invalid value for "v_bc", must be greater than or equal to 0.'
373
+ end
374
+
375
+ @v_bc = v_bc
376
+ end
377
+
378
+ # Custom attribute writer method with validation
379
+ # @param [Object] p_icms Value to be assigned
380
+ def p_icms=(p_icms)
381
+ if !p_icms.nil? && p_icms < 0
382
+ fail ArgumentError, 'invalid value for "p_icms", must be greater than or equal to 0.'
383
+ end
384
+
385
+ @p_icms = p_icms
386
+ end
387
+
388
+ # Custom attribute writer method with validation
389
+ # @param [Object] v_icms Value to be assigned
390
+ def v_icms=(v_icms)
391
+ if !v_icms.nil? && v_icms < 0
392
+ fail ArgumentError, 'invalid value for "v_icms", must be greater than or equal to 0.'
393
+ end
394
+
395
+ @v_icms = v_icms
396
+ end
397
+
398
+ # Custom attribute writer method with validation
399
+ # @param [Object] v_bcfcp Value to be assigned
400
+ def v_bcfcp=(v_bcfcp)
401
+ if !v_bcfcp.nil? && v_bcfcp < 0
402
+ fail ArgumentError, 'invalid value for "v_bcfcp", must be greater than or equal to 0.'
403
+ end
404
+
405
+ @v_bcfcp = v_bcfcp
406
+ end
407
+
408
+ # Custom attribute writer method with validation
409
+ # @param [Object] p_fcp Value to be assigned
410
+ def p_fcp=(p_fcp)
411
+ if !p_fcp.nil? && p_fcp < 0
412
+ fail ArgumentError, 'invalid value for "p_fcp", must be greater than or equal to 0.'
413
+ end
414
+
415
+ @p_fcp = p_fcp
416
+ end
417
+
418
+ # Custom attribute writer method with validation
419
+ # @param [Object] v_fcp Value to be assigned
420
+ def v_fcp=(v_fcp)
421
+ if !v_fcp.nil? && v_fcp < 0
422
+ fail ArgumentError, 'invalid value for "v_fcp", must be greater than or equal to 0.'
423
+ end
424
+
425
+ @v_fcp = v_fcp
426
+ end
427
+
428
+ # Custom attribute writer method with validation
429
+ # @param [Object] p_mvast Value to be assigned
430
+ def p_mvast=(p_mvast)
431
+ if !p_mvast.nil? && p_mvast < 0
432
+ fail ArgumentError, 'invalid value for "p_mvast", must be greater than or equal to 0.'
433
+ end
434
+
435
+ @p_mvast = p_mvast
436
+ end
437
+
438
+ # Custom attribute writer method with validation
439
+ # @param [Object] p_red_bcst Value to be assigned
440
+ def p_red_bcst=(p_red_bcst)
441
+ if !p_red_bcst.nil? && p_red_bcst < 0
442
+ fail ArgumentError, 'invalid value for "p_red_bcst", must be greater than or equal to 0.'
443
+ end
444
+
445
+ @p_red_bcst = p_red_bcst
446
+ end
447
+
448
+ # Custom attribute writer method with validation
449
+ # @param [Object] v_bcst Value to be assigned
450
+ def v_bcst=(v_bcst)
451
+ if !v_bcst.nil? && v_bcst < 0
452
+ fail ArgumentError, 'invalid value for "v_bcst", must be greater than or equal to 0.'
453
+ end
454
+
455
+ @v_bcst = v_bcst
456
+ end
457
+
458
+ # Custom attribute writer method with validation
459
+ # @param [Object] p_icmsst Value to be assigned
460
+ def p_icmsst=(p_icmsst)
461
+ if !p_icmsst.nil? && p_icmsst < 0
462
+ fail ArgumentError, 'invalid value for "p_icmsst", must be greater than or equal to 0.'
463
+ end
464
+
465
+ @p_icmsst = p_icmsst
466
+ end
467
+
468
+ # Custom attribute writer method with validation
469
+ # @param [Object] v_icmsst Value to be assigned
470
+ def v_icmsst=(v_icmsst)
471
+ if !v_icmsst.nil? && v_icmsst < 0
472
+ fail ArgumentError, 'invalid value for "v_icmsst", must be greater than or equal to 0.'
473
+ end
474
+
475
+ @v_icmsst = v_icmsst
476
+ end
477
+
478
+ # Custom attribute writer method with validation
479
+ # @param [Object] v_bcfcpst Value to be assigned
480
+ def v_bcfcpst=(v_bcfcpst)
481
+ if !v_bcfcpst.nil? && v_bcfcpst < 0
482
+ fail ArgumentError, 'invalid value for "v_bcfcpst", must be greater than or equal to 0.'
483
+ end
484
+
485
+ @v_bcfcpst = v_bcfcpst
486
+ end
487
+
488
+ # Custom attribute writer method with validation
489
+ # @param [Object] p_fcpst Value to be assigned
490
+ def p_fcpst=(p_fcpst)
491
+ if !p_fcpst.nil? && p_fcpst < 0
492
+ fail ArgumentError, 'invalid value for "p_fcpst", must be greater than or equal to 0.'
493
+ end
494
+
495
+ @p_fcpst = p_fcpst
496
+ end
497
+
498
+ # Custom attribute writer method with validation
499
+ # @param [Object] v_fcpst Value to be assigned
500
+ def v_fcpst=(v_fcpst)
501
+ if !v_fcpst.nil? && v_fcpst < 0
502
+ fail ArgumentError, 'invalid value for "v_fcpst", must be greater than or equal to 0.'
503
+ end
504
+
505
+ @v_fcpst = v_fcpst
506
+ end
507
+
508
+ # Custom attribute writer method with validation
509
+ # @param [Object] v_icmsst_deson Value to be assigned
510
+ def v_icmsst_deson=(v_icmsst_deson)
511
+ if !v_icmsst_deson.nil? && v_icmsst_deson < 0
512
+ fail ArgumentError, 'invalid value for "v_icmsst_deson", must be greater than or equal to 0.'
513
+ end
514
+
515
+ @v_icmsst_deson = v_icmsst_deson
516
+ end
517
+
518
+ # Checks equality by comparing each attribute.
519
+ # @param [Object] Object to be compared
520
+ def ==(o)
521
+ return true if self.equal?(o)
522
+ self.class == o.class &&
523
+ orig == o.orig &&
524
+ cst == o.cst &&
525
+ mod_bc == o.mod_bc &&
526
+ v_bc == o.v_bc &&
527
+ p_icms == o.p_icms &&
528
+ v_icms == o.v_icms &&
529
+ v_bcfcp == o.v_bcfcp &&
530
+ p_fcp == o.p_fcp &&
531
+ v_fcp == o.v_fcp &&
532
+ mod_bcst == o.mod_bcst &&
533
+ p_mvast == o.p_mvast &&
534
+ p_red_bcst == o.p_red_bcst &&
535
+ v_bcst == o.v_bcst &&
536
+ p_icmsst == o.p_icmsst &&
537
+ v_icmsst == o.v_icmsst &&
538
+ v_bcfcpst == o.v_bcfcpst &&
539
+ p_fcpst == o.p_fcpst &&
540
+ v_fcpst == o.v_fcpst &&
541
+ v_icmsst_deson == o.v_icmsst_deson &&
542
+ mot_des_icmsst == o.mot_des_icmsst
543
+ end
544
+
545
+ # @see the `==` method
546
+ # @param [Object] Object to be compared
547
+ def eql?(o)
548
+ self == o
549
+ end
550
+
551
+ # Calculates hash code according to all attributes.
552
+ # @return [Integer] Hash code
553
+ def hash
554
+ [orig, cst, mod_bc, v_bc, p_icms, v_icms, v_bcfcp, p_fcp, v_fcp, mod_bcst, p_mvast, p_red_bcst, v_bcst, p_icmsst, v_icmsst, v_bcfcpst, p_fcpst, v_fcpst, v_icmsst_deson, mot_des_icmsst].hash
555
+ end
556
+
557
+ # Builds the object from hash
558
+ # @param [Hash] attributes Model attributes in the form of hash
559
+ # @return [Object] Returns the model itself
560
+ def self.build_from_hash(attributes)
561
+ return nil unless attributes.is_a?(Hash)
562
+ attributes = attributes.transform_keys(&:to_sym)
563
+ transformed_hash = {}
564
+ openapi_types.each_pair do |key, type|
565
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
566
+ transformed_hash["#{key}"] = nil
567
+ elsif type =~ /\AArray<(.*)>/i
568
+ # check to ensure the input is an array given that the attribute
569
+ # is documented as an array but the input is not
570
+ if attributes[attribute_map[key]].is_a?(Array)
571
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
572
+ end
573
+ elsif !attributes[attribute_map[key]].nil?
574
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
575
+ end
576
+ end
577
+ new(transformed_hash)
578
+ end
579
+
580
+ # Deserializes the data based on type
581
+ # @param string type Data type
582
+ # @param string value Value to be deserialized
583
+ # @return [Object] Deserialized data
584
+ def self._deserialize(type, value)
585
+ case type.to_sym
586
+ when :Time
587
+ Time.parse(value)
588
+ when :Date
589
+ Date.parse(value)
590
+ when :String
591
+ value.to_s
592
+ when :Integer
593
+ value.to_i
594
+ when :Float
595
+ value.to_f
596
+ when :Boolean
597
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
598
+ true
599
+ else
600
+ false
601
+ end
602
+ when :Object
603
+ # generic object (usually a Hash), return directly
604
+ value
605
+ when /\AArray<(?<inner_type>.+)>\z/
606
+ inner_type = Regexp.last_match[:inner_type]
607
+ value.map { |v| _deserialize(inner_type, v) }
608
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
609
+ k_type = Regexp.last_match[:k_type]
610
+ v_type = Regexp.last_match[:v_type]
611
+ {}.tap do |hash|
612
+ value.each do |k, v|
613
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
614
+ end
615
+ end
616
+ else # model
617
+ # models (e.g. Pet) or oneOf
618
+ klass = NuvemfiscalSdkRuby.const_get(type)
619
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
620
+ end
621
+ end
622
+
623
+ # Returns the string representation of the object
624
+ # @return [String] String presentation of the object
625
+ def to_s
626
+ to_hash.to_s
627
+ end
628
+
629
+ # to_body is an alias to to_hash (backward compatibility)
630
+ # @return [Hash] Returns the object in the form of hash
631
+ def to_body
632
+ to_hash
633
+ end
634
+
635
+ # Returns the object in the form of hash
636
+ # @return [Hash] Returns the object in the form of hash
637
+ def to_hash
638
+ hash = {}
639
+ self.class.attribute_map.each_pair do |attr, param|
640
+ value = self.send(attr)
641
+ if value.nil?
642
+ is_nullable = self.class.openapi_nullable.include?(attr)
643
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
644
+ end
645
+
646
+ hash[param] = _to_hash(value)
647
+ end
648
+ hash
649
+ end
650
+
651
+ # Outputs non-array value in the form of hash
652
+ # For object, use to_hash. Otherwise, just return the value
653
+ # @param [Object] value Any valid value
654
+ # @return [Hash] Returns the value in the form of hash
655
+ def _to_hash(value)
656
+ if value.is_a?(Array)
657
+ value.compact.map { |v| _to_hash(v) }
658
+ elsif value.is_a?(Hash)
659
+ {}.tap do |hash|
660
+ value.each { |k, v| hash[k] = _to_hash(v) }
661
+ end
662
+ elsif value.respond_to? :to_hash
663
+ value.to_hash
664
+ else
665
+ value
666
+ end
667
+ end
668
+
669
+ end
670
+
671
+ end