br_nfe 2.1.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (495) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/Gemfile +1 -0
  4. data/Gemfile.lock +12 -2
  5. data/README.markdown +3 -1
  6. data/Rakefile +20 -1
  7. data/lib/br_nfe/active_model/associations.rb +11 -0
  8. data/lib/br_nfe/active_model/has_many.rb +65 -0
  9. data/lib/br_nfe/active_model/has_one.rb +57 -0
  10. data/lib/br_nfe/active_model_base.rb +38 -1
  11. data/lib/br_nfe/base.rb +9 -0
  12. data/lib/br_nfe/calculos/fatores_de_multiplicacao.rb +67 -0
  13. data/lib/br_nfe/calculos/modulo11.rb +54 -0
  14. data/lib/br_nfe/calculos/modulo11_fator_de2a9.rb +83 -0
  15. data/lib/br_nfe/calculos/modulo11_fator_de2a9_resto_zero.rb +29 -0
  16. data/lib/br_nfe/constants.rb +46 -1
  17. data/lib/br_nfe/endereco.rb +6 -2
  18. data/lib/br_nfe/helper/cpf_cnpj.rb +8 -1
  19. data/lib/br_nfe/person.rb +32 -3
  20. data/lib/br_nfe/product/destinatario.rb +45 -0
  21. data/lib/br_nfe/product/emitente.rb +14 -1
  22. data/lib/br_nfe/product/evento/base.rb +146 -0
  23. data/lib/br_nfe/product/evento/cancelamento.rb +46 -0
  24. data/lib/br_nfe/product/gateway/base.rb +16 -43
  25. data/lib/br_nfe/product/gateway/web_service_am.rb +140 -0
  26. data/lib/br_nfe/product/gateway/web_service_ba.rb +140 -0
  27. data/lib/br_nfe/product/gateway/web_service_ce.rb +162 -0
  28. data/lib/br_nfe/product/gateway/web_service_go.rb +140 -0
  29. data/lib/br_nfe/product/gateway/web_service_mg.rb +140 -0
  30. data/lib/br_nfe/product/gateway/web_service_ms.rb +140 -0
  31. data/lib/br_nfe/product/gateway/web_service_mt.rb +140 -0
  32. data/lib/br_nfe/product/gateway/web_service_pe.rb +140 -0
  33. data/lib/br_nfe/product/gateway/web_service_pr.rb +140 -0
  34. data/lib/br_nfe/product/gateway/web_service_rs.rb +140 -0
  35. data/lib/br_nfe/product/gateway/web_service_sp.rb +140 -0
  36. data/lib/br_nfe/product/gateway/web_service_svan.rb +162 -0
  37. data/lib/br_nfe/product/gateway/web_service_svc_an.rb +131 -0
  38. data/lib/br_nfe/product/gateway/web_service_svc_rs.rb +20 -0
  39. data/lib/br_nfe/product/gateway/web_service_svrs.rb +111 -10
  40. data/lib/br_nfe/product/nf_xml_value.rb +278 -0
  41. data/lib/br_nfe/product/nfe/adicao_importacao.rb +76 -0
  42. data/lib/br_nfe/product/nfe/cobranca/duplicata.rb +44 -0
  43. data/lib/br_nfe/product/nfe/cobranca/fatura.rb +64 -0
  44. data/lib/br_nfe/product/nfe/cobranca/pagamento.rb +99 -0
  45. data/lib/br_nfe/product/nfe/declaracao_importacao.rb +221 -0
  46. data/lib/br_nfe/product/nfe/detalhe_exportacao.rb +89 -0
  47. data/lib/br_nfe/product/nfe/item.rb +678 -0
  48. data/lib/br_nfe/product/nfe/item_tax/cofins.rb +138 -0
  49. data/lib/br_nfe/product/nfe/item_tax/cofins_st.rb +68 -0
  50. data/lib/br_nfe/product/nfe/item_tax/icms.rb +593 -0
  51. data/lib/br_nfe/product/nfe/item_tax/icms_uf_destino.rb +169 -0
  52. data/lib/br_nfe/product/nfe/item_tax/importacao.rb +62 -0
  53. data/lib/br_nfe/product/nfe/item_tax/ipi.rb +179 -0
  54. data/lib/br_nfe/product/nfe/item_tax/issqn.rb +256 -0
  55. data/lib/br_nfe/product/nfe/item_tax/pis.rb +138 -0
  56. data/lib/br_nfe/product/nfe/item_tax/pis_st.rb +68 -0
  57. data/lib/br_nfe/product/nfe/processo_referencia.rb +48 -0
  58. data/lib/br_nfe/product/nfe/transporte/base.rb +264 -0
  59. data/lib/br_nfe/product/nfe/transporte/transportador.rb +15 -0
  60. data/lib/br_nfe/product/nfe/transporte/veiculo.rb +53 -0
  61. data/lib/br_nfe/product/nfe/transporte/volume.rb +89 -0
  62. data/lib/br_nfe/product/nota_fiscal.rb +1173 -0
  63. data/lib/br_nfe/product/operation/base.rb +255 -0
  64. data/lib/br_nfe/product/operation/nfe_autorizacao.rb +118 -0
  65. data/lib/br_nfe/product/operation/nfe_consulta_protocolo.rb +61 -0
  66. data/lib/br_nfe/product/operation/nfe_download_nf.rb +86 -0
  67. data/lib/br_nfe/product/operation/nfe_inutilizacao.rb +168 -0
  68. data/lib/br_nfe/product/operation/nfe_recepcao_evento.rb +70 -0
  69. data/lib/br_nfe/product/operation/nfe_ret_autorizacao.rb +63 -0
  70. data/lib/br_nfe/product/operation/nfe_status_servico.rb +46 -0
  71. data/lib/br_nfe/product/response/base.rb +97 -0
  72. data/lib/br_nfe/product/response/build/base.rb +287 -0
  73. data/lib/br_nfe/product/response/build/nfe_autorizacao.rb +102 -0
  74. data/lib/br_nfe/product/response/build/nfe_consulta_protocolo.rb +133 -0
  75. data/lib/br_nfe/product/response/build/nfe_inutilizacao.rb +53 -0
  76. data/lib/br_nfe/product/response/build/nfe_ret_autorizacao.rb +65 -0
  77. data/lib/br_nfe/product/response/build/nfe_status_servico.rb +43 -0
  78. data/lib/br_nfe/product/response/event.rb +89 -0
  79. data/lib/br_nfe/product/response/nfe_autorizacao.rb +12 -0
  80. data/lib/br_nfe/product/response/nfe_consulta_protocolo.rb +13 -0
  81. data/lib/br_nfe/product/response/nfe_inutilizacao.rb +89 -0
  82. data/lib/br_nfe/product/response/nfe_ret_autorizacao.rb +9 -0
  83. data/lib/br_nfe/product/response/nfe_status_servico.rb +31 -0
  84. data/lib/br_nfe/product/xml/_signed_info_sh1.xml.slim +9 -0
  85. data/lib/br_nfe/product/xml/_tc_cpf_cnpj.xml.slim +7 -0
  86. data/lib/br_nfe/product/xml/signature_sh1.xml.slim +12 -0
  87. data/lib/br_nfe/product/xml/v1_00/evento/infEventoCancelamento.xml.slim +19 -0
  88. data/lib/br_nfe/product/xml/v1_00/root/NfeDownloadNf.xml.slim +5 -0
  89. data/lib/br_nfe/product/xml/v1_00/root/NfeRecepcaoEvento.xml.slim +7 -0
  90. data/lib/br_nfe/product/xml/v2_00/_tc_endereco.xml.slim +19 -0
  91. data/lib/br_nfe/product/xml/v2_00/_tc_infNFe.xml.slim +39 -0
  92. data/lib/br_nfe/product/xml/v2_00/infInut.xml.slim +12 -0
  93. data/lib/br_nfe/product/xml/v2_00/infNFe/NFe.xml.slim +4 -0
  94. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_cobr.xml.slim +19 -0
  95. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_dest.xml.slim +14 -0
  96. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_det.xml.slim +7 -0
  97. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_emit.xml.slim +19 -0
  98. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_entrega.xml.slim +11 -0
  99. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_exporta.xml.slim +2 -0
  100. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_ide.xml.slim +24 -0
  101. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_infAdic.xml.slim +13 -0
  102. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_retirada.xml.slim +11 -0
  103. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_total.xml.slim +50 -0
  104. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_transp.xml.slim +35 -0
  105. data/lib/br_nfe/product/xml/v2_00/infNFe/det/_tc_imposto.xml.slim +31 -0
  106. data/lib/br_nfe/product/xml/v2_00/infNFe/det/_tc_prod.xml.slim +37 -0
  107. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS00.xml.slim +6 -0
  108. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS10.xml.slim +16 -0
  109. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS101.xml.slim +4 -0
  110. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS102.xml.slim +3 -0
  111. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS20.xml.slim +6 -0
  112. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS201.xml.slim +15 -0
  113. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS202.xml.slim +14 -0
  114. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS30.xml.slim +12 -0
  115. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS40.xml.slim +7 -0
  116. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS500.xml.slim +6 -0
  117. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS51.xml.slim +13 -0
  118. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS60.xml.slim +5 -0
  119. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS70.xml.slim +18 -0
  120. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS90.xml.slim +21 -0
  121. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS900.xml.slim +25 -0
  122. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_COFINS.xml.slim +26 -0
  123. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_COFINS_ST.xml.slim +7 -0
  124. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_ICMS.xml.slim +45 -0
  125. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_II.xml.slim +4 -0
  126. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_IPI.xml.slim +30 -0
  127. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_PIS.xml.slim +26 -0
  128. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_PIS_ST.xml.slim +7 -0
  129. data/lib/br_nfe/product/xml/v2_00/infNFe/det/prod/_tc_di.xml.slim +13 -0
  130. data/lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_retTransp.xml.slim +6 -0
  131. data/lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_transporta.xml.slim +17 -0
  132. data/lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_vol.xml.slim +15 -0
  133. data/lib/br_nfe/product/xml/v2_00/infNFe.xml.slim +3 -0
  134. data/lib/br_nfe/product/xml/v2_00/root/NfeAutorizacao.xml.slim +5 -0
  135. data/lib/br_nfe/product/xml/v2_00/root/NfeInutilizacao.xml.slim +4 -0
  136. data/lib/br_nfe/product/xml/v2_00/root/NfeRetAutorizacao.xml.slim +3 -0
  137. data/lib/br_nfe/product/xml/v2_00/root/NfeStatusServico.xml.slim +4 -0
  138. data/lib/br_nfe/product/xml/v2_01/root/NfeConsultaProtocolo.xml.slim +4 -0
  139. data/lib/br_nfe/product/xml/v3_10/_tc_infNFe.xml.slim +44 -0
  140. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_dest.xml.slim +25 -0
  141. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_det.xml.slim +14 -0
  142. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_exporta.xml.slim +4 -0
  143. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_ide.xml.slim +26 -0
  144. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_pag.xml.slim +7 -0
  145. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_total.xml.slim +78 -0
  146. data/lib/br_nfe/product/xml/v3_10/infNFe/det/_tc_imposto.xml.slim +37 -0
  147. data/lib/br_nfe/product/xml/v3_10/infNFe/det/_tc_prod.xml.slim +48 -0
  148. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS20.xml.slim +12 -0
  149. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS30.xml.slim +17 -0
  150. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS40.xml.slim +7 -0
  151. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS51.xml.slim +19 -0
  152. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS70.xml.slim +23 -0
  153. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS90.xml.slim +26 -0
  154. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/_tc_ICMSUFDest.xml.slim +8 -0
  155. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/_tc_ISSQN.xml.slim +35 -0
  156. data/lib/br_nfe/product/xml/v3_10/infNFe/det/prod/_tc_det_export.xml.slim +8 -0
  157. data/lib/br_nfe/product/xml/v3_10/infNFe/det/prod/_tc_di.xml.slim +28 -0
  158. data/lib/br_nfe/product/xml/v3_10/root/NfeAutorizacao.xml.slim +6 -0
  159. data/lib/br_nfe/service/base.rb +1 -105
  160. data/lib/br_nfe/service/betha/v1/cancela_nfse.rb +1 -1
  161. data/lib/br_nfe/service/response/default.rb +1 -1
  162. data/lib/br_nfe/service/simpliss/v1/base.rb +2 -0
  163. data/lib/br_nfe/version.rb +2 -2
  164. data/lib/br_nfe.rb +180 -22
  165. data/lib/config/locales/br_nfe/en/product/nfe/cobranca/fatura.yml +6 -0
  166. data/lib/config/locales/br_nfe/en/product/nfe/declaracao_importacao.yml +10 -0
  167. data/lib/config/locales/br_nfe/en/product/nfe/item.yml +20 -0
  168. data/lib/config/locales/br_nfe/en/product/nfe/item_tax/icms_uf_destino.yml +8 -0
  169. data/lib/config/locales/br_nfe/en/product/nfe/transporte/base.yml +9 -0
  170. data/lib/config/locales/br_nfe/en/product/nota_fiscal.yml +21 -0
  171. data/lib/config/locales/br_nfe/en/product/operation/nfe_autorizacao.yml +10 -0
  172. data/lib/config/locales/br_nfe/en/product/operation/nfe_recepcao_evento.yml +6 -0
  173. data/lib/config/locales/br_nfe/pt-BR/product/nfe/cobranca/fatura.yml +6 -0
  174. data/lib/config/locales/br_nfe/pt-BR/product/nfe/declaracao_importacao.yml +10 -0
  175. data/lib/config/locales/br_nfe/pt-BR/product/nfe/item.yml +20 -0
  176. data/lib/config/locales/br_nfe/pt-BR/product/nfe/item_tax/icms_uf_destino.yml +8 -0
  177. data/lib/config/locales/br_nfe/pt-BR/product/nfe/transporte/base.yml +9 -0
  178. data/lib/config/locales/br_nfe/pt-BR/product/nota_fiscal.yml +21 -0
  179. data/lib/config/locales/br_nfe/pt-BR/product/operation/nfe_autorizacao.yml +10 -0
  180. data/lib/config/locales/br_nfe/pt-BR/product/operation/nfe_recepcao_evento.yml +6 -0
  181. data/test/br_nfe/association/have_destinatario_test.rb +8 -8
  182. data/test/br_nfe/association/have_emitente_test.rb +6 -6
  183. data/test/br_nfe/base_test.rb +15 -4
  184. data/test/br_nfe/endereco_test.rb +15 -0
  185. data/test/br_nfe/person_test.rb +55 -6
  186. data/test/br_nfe/product/destinatario_test.rb +26 -0
  187. data/test/br_nfe/product/emitente_test.rb +1 -2
  188. data/test/br_nfe/product/evento/base_test.rb +58 -0
  189. data/test/br_nfe/product/evento/cancelamento_test.rb +32 -0
  190. data/test/br_nfe/product/gateway/web_service_am_test.rb +242 -0
  191. data/test/br_nfe/product/gateway/web_service_ba_test.rb +242 -0
  192. data/test/br_nfe/product/gateway/web_service_ce_test.rb +242 -0
  193. data/test/br_nfe/product/gateway/web_service_go_test.rb +242 -0
  194. data/test/br_nfe/product/gateway/web_service_mg_test.rb +242 -0
  195. data/test/br_nfe/product/gateway/web_service_ms_test.rb +242 -0
  196. data/test/br_nfe/product/gateway/web_service_mt_test.rb +408 -0
  197. data/test/br_nfe/product/gateway/web_service_pe_test.rb +408 -0
  198. data/test/br_nfe/product/gateway/web_service_pr_test.rb +408 -0
  199. data/test/br_nfe/product/gateway/web_service_rs_test.rb +407 -0
  200. data/test/br_nfe/product/gateway/web_service_sp_test.rb +408 -0
  201. data/test/br_nfe/product/gateway/web_service_svan_test.rb +242 -0
  202. data/test/br_nfe/product/gateway/web_service_svc_an_test.rb +185 -0
  203. data/test/br_nfe/product/gateway/web_service_svc_rs_test.rb +185 -0
  204. data/test/br_nfe/product/gateway/web_service_svrs_test.rb +208 -2
  205. data/test/br_nfe/product/nfe/adicao_importacao_test.rb +19 -0
  206. data/test/br_nfe/product/nfe/cobranca/duplicata_test.rb +19 -0
  207. data/test/br_nfe/product/nfe/cobranca/fatura_test.rb +32 -0
  208. data/test/br_nfe/product/nfe/cobranca/pagamento_test.rb +105 -0
  209. data/test/br_nfe/product/nfe/declaracao_importacao_test.rb +116 -0
  210. data/test/br_nfe/product/nfe/detalhe_exportacao_test.rb +97 -0
  211. data/test/br_nfe/product/nfe/item_tax/cofins_st_test.rb +22 -0
  212. data/test/br_nfe/product/nfe/item_tax/cofins_test.rb +113 -0
  213. data/test/br_nfe/product/nfe/item_tax/icms_test.rb +1011 -0
  214. data/test/br_nfe/product/nfe/item_tax/icms_uf_destino_test.rb +99 -0
  215. data/test/br_nfe/product/nfe/item_tax/importacao_test.rb +23 -0
  216. data/test/br_nfe/product/nfe/item_tax/ipi_test.rb +160 -0
  217. data/test/br_nfe/product/nfe/item_tax/issqn_test.rb +84 -0
  218. data/test/br_nfe/product/nfe/item_tax/pis_st_test.rb +22 -0
  219. data/test/br_nfe/product/nfe/item_tax/pis_test.rb +113 -0
  220. data/test/br_nfe/product/nfe/item_test.rb +381 -0
  221. data/test/br_nfe/product/nfe/processo_referencia_test.rb +30 -0
  222. data/test/br_nfe/product/nfe/transporte/base_test.rb +182 -0
  223. data/test/br_nfe/product/nfe/transporte/transportador_test.rb +13 -0
  224. data/test/br_nfe/product/nfe/transporte/veiculo_test.rb +13 -0
  225. data/test/br_nfe/product/nfe/transporte/volume_test.rb +42 -0
  226. data/test/br_nfe/product/nota_fiscal_test.rb +662 -0
  227. data/test/br_nfe/product/operation/base_test.rb +538 -0
  228. data/test/br_nfe/product/operation/nfe_autorizacao_test.rb +378 -0
  229. data/test/br_nfe/product/operation/nfe_consulta_protocolo_test.rb +349 -0
  230. data/test/br_nfe/product/operation/nfe_download_nf_test.rb +93 -0
  231. data/test/br_nfe/product/operation/nfe_inutilizacao_test.rb +210 -0
  232. data/test/br_nfe/product/operation/nfe_recepcao_evento_test.rb +84 -0
  233. data/test/br_nfe/product/operation/nfe_ret_autorizacao_test.rb +309 -0
  234. data/test/br_nfe/product/operation/nfe_status_servico_test.rb +122 -0
  235. data/test/br_nfe/product/response/base_test.rb +75 -0
  236. data/test/br_nfe/product/response/build/base_test.rb +34 -0
  237. data/test/br_nfe/product/response/nfe_ret_autorizacao_test.rb +14 -0
  238. data/test/br_nfe/service/association/have_intermediario_test.rb +10 -10
  239. data/test/br_nfe/service/base_test.rb +9 -206
  240. data/test/br_nfe/service/betha/v1/cancela_nfse_test.rb +8 -6
  241. data/test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb +6 -3
  242. data/test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb +6 -3
  243. data/test/br_nfe/service/betha/v1/consulta_nfse_test.rb +7 -4
  244. data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +12 -9
  245. data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +6 -3
  246. data/test/br_nfe/service/rps_test.rb +2 -2
  247. data/test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb +6 -3
  248. data/test/br_nfe/service/simpliss/v1/consulta_lote_rps_test.rb +7 -4
  249. data/test/br_nfe/service/simpliss/v1/consulta_nfs_por_rps_test.rb +7 -4
  250. data/test/br_nfe/service/simpliss/v1/consulta_nfse_test.rb +8 -5
  251. data/test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb +9 -6
  252. data/test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb +6 -3
  253. data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +6 -3
  254. data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +6 -3
  255. data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +6 -3
  256. data/test/br_nfe/service/thema/v1/consulta_nfse_test.rb +8 -5
  257. data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +9 -6
  258. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb +6 -3
  259. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +6 -3
  260. data/test/factories/person.rb +1 -1
  261. data/test/factories/product/destinatario.rb +11 -0
  262. data/test/factories/product/emitente.rb +1 -1
  263. data/test/factories/product/evento/base.rb +9 -0
  264. data/test/factories/product/evento/cancelamento.rb +10 -0
  265. data/test/factories/product/gateway/web_service_am.rb +5 -0
  266. data/test/factories/product/gateway/web_service_ba.rb +5 -0
  267. data/test/factories/product/nfe/adicao_importacao.rb +7 -0
  268. data/test/factories/product/nfe/cobranca/duplicata.rb +7 -0
  269. data/test/factories/product/nfe/cobranca/fatura.rb +8 -0
  270. data/test/factories/product/nfe/cobranca/pagamento.rb +9 -0
  271. data/test/factories/product/nfe/declaracao_importacao.rb +10 -0
  272. data/test/factories/product/nfe/detalhe_exportacao.rb +5 -0
  273. data/test/factories/product/nfe/item.rb +24 -0
  274. data/test/factories/product/nfe/item_tax/cofins.rb +5 -0
  275. data/test/factories/product/nfe/item_tax/cofins_st.rb +5 -0
  276. data/test/factories/product/nfe/item_tax/icms.rb +9 -0
  277. data/test/factories/product/nfe/item_tax/icms_uf_destino.rb +11 -0
  278. data/test/factories/product/nfe/item_tax/importacao.rb +8 -0
  279. data/test/factories/product/nfe/item_tax/ipi.rb +6 -0
  280. data/test/factories/product/nfe/item_tax/issqn.rb +9 -0
  281. data/test/factories/product/nfe/item_tax/pis.rb +5 -0
  282. data/test/factories/product/nfe/item_tax/pis_st.rb +5 -0
  283. data/test/factories/product/nfe/processo_referencia.rb +6 -0
  284. data/test/factories/product/nfe/transporte/base.rb +5 -0
  285. data/test/factories/product/nfe/transporte/transportador.rb +7 -0
  286. data/test/factories/product/nfe/transporte/veiculo.rb +7 -0
  287. data/test/factories/product/nfe/transporte/volume.rb +5 -0
  288. data/test/factories/product/nota_fiscal.rb +22 -0
  289. data/test/factories/product/{base.rb → operation/base.rb} +1 -1
  290. data/test/factories/product/operation/nfe_autorizacao.rb +590 -0
  291. data/test/factories/product/operation/nfe_consulta_protocolo.rb +13 -0
  292. data/test/factories/product/operation/nfe_download_nf.rb +15 -0
  293. data/test/factories/product/operation/nfe_inutilizacao.rb +19 -0
  294. data/test/factories/product/operation/nfe_recepcao_evento.rb +14 -0
  295. data/test/factories/product/operation/nfe_ret_autorizacao.rb +13 -0
  296. data/test/factories/product/{consulta_status_servico.rb → operation/nfe_status_servico.rb} +1 -1
  297. data/test/factories/product/response/base.rb +12 -0
  298. data/test/factories/product/response/build/base.rb +6 -0
  299. data/test/factories/product/response/nfe_ret_autorizacao.rb +13 -0
  300. data/test/factories/service/emitente.rb +1 -1
  301. data/test/fixtures/product/operation/nfe_autorizacao/nfe_signed.xml +1 -0
  302. data/test/fixtures/product/response/v3.10/nfe_autorizacao/async_fail.xml +21 -0
  303. data/test/fixtures/product/response/v3.10/nfe_autorizacao/async_success.xml +25 -0
  304. data/test/fixtures/product/response/v3.10/nfe_autorizacao/nfe/with_proc.xml +1 -0
  305. data/test/fixtures/product/response/v3.10/nfe_autorizacao/nfe/without_proc.xml +1 -0
  306. data/test/fixtures/product/response/v3.10/nfe_autorizacao/original_xml.xml +1 -0
  307. data/test/fixtures/product/response/v3.10/nfe_autorizacao/sync_fail.xml +32 -0
  308. data/test/fixtures/product/response/v3.10/nfe_autorizacao/sync_success.xml +33 -0
  309. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_1.xml +1 -0
  310. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_2.xml +1 -0
  311. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_3.xml +1 -0
  312. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_cancel.xml +1 -0
  313. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/one_event.xml +1 -0
  314. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/fail.xml +22 -0
  315. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/nfe_original/with_proc.xml +1 -0
  316. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/nfe_original/without_proc.xml +1 -0
  317. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_many_with_cancel.xml +198 -0
  318. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_many_without_cancel.xml +199 -0
  319. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_one.xml +89 -0
  320. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_without.xml +34 -0
  321. data/test/fixtures/product/response/v3.10/nfe_inutilizacao/fail.xml +29 -0
  322. data/test/fixtures/product/response/v3.10/nfe_inutilizacao/success.xml +30 -0
  323. data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/fail.xml +34 -0
  324. data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/success.xml +36 -0
  325. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_fail.xml +22 -0
  326. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_fail.xml +33 -0
  327. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_fail_and_one_ok.xml +46 -0
  328. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_ok.xml +34 -0
  329. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_two_invoice_fail.xml +46 -0
  330. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_two_invoice_ok.xml +46 -0
  331. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_2_with_protocol.xml +1 -0
  332. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_2_without_protocol.xml +1 -0
  333. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_3_with_protocol.xml +1 -0
  334. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_3_without_protocol.xml +1 -0
  335. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/lot.xml +2 -0
  336. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/nfe.xml +2 -0
  337. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/nfeProc.xml +4 -0
  338. data/test/fixtures/product/response/v3.10/nfe_status_servico/fail.xml +23 -0
  339. data/test/fixtures/product/response/v3.10/nfe_status_servico/success.xml +22 -0
  340. data/test/fixtures/product/schemas/CCe_v1.00.xsd +11 -0
  341. data/test/fixtures/product/schemas/EPEC_v1.00.xsd +9 -0
  342. data/test/fixtures/product/schemas/LeiauteCadastroEmissorDFe_v1.01.xsd +234 -0
  343. data/test/fixtures/product/schemas/SuframaInternaliza_v1.00.xsd +9 -0
  344. data/test/fixtures/product/schemas/SuframaVistoria_v1.00.xsd +9 -0
  345. data/test/fixtures/product/schemas/atuCadEmiDFe_v1.01.xsd +9 -0
  346. data/test/fixtures/product/schemas/cabecMsg_v1.02.xsd +29 -0
  347. data/test/fixtures/product/schemas/cadEmiDFe_v1.01.xsd +9 -0
  348. data/test/fixtures/product/schemas/cancNFe_v2.00.xsd +9 -0
  349. data/test/fixtures/product/schemas/confRecebto_v1.00.xsd +9 -0
  350. data/test/fixtures/product/schemas/consCad_v2.00.xsd +9 -0
  351. data/test/fixtures/product/schemas/consDPEC_v1.01.xsd +9 -0
  352. data/test/fixtures/product/schemas/consNFeDest_v1.01.xsd +10 -0
  353. data/test/fixtures/product/schemas/consReciNFe_v2.00.xsd +9 -0
  354. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/consReciNFe_v3.10.xsd +8 -8
  355. data/test/fixtures/product/schemas/consSitNFe_v2.01.xsd +10 -0
  356. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/consSitNFe_v3.10.xsd +8 -8
  357. data/test/fixtures/product/schemas/consStatServ_v2.00.xsd +9 -0
  358. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/consStatServ_v3.10.xsd +8 -8
  359. data/test/fixtures/product/schemas/distDFeInt_v1.00.xsd +71 -0
  360. data/test/fixtures/product/schemas/downloadNFe_v1.00.xsd +10 -0
  361. data/test/fixtures/product/schemas/e110110_v1.00.xsd +58 -0
  362. data/test/fixtures/product/schemas/e110111_v1.00.xsd +42 -0
  363. data/test/fixtures/product/schemas/e110140_v1.00.xsd +124 -0
  364. data/test/fixtures/product/schemas/e111500_v1.00.xsd +69 -0
  365. data/test/fixtures/product/schemas/e111501_v1.00.xsd +69 -0
  366. data/test/fixtures/product/schemas/e111502_v1.00.xsd +50 -0
  367. data/test/fixtures/product/schemas/e111503_v1.00.xsd +50 -0
  368. data/test/fixtures/product/schemas/e210200_v1.00.xsd +32 -0
  369. data/test/fixtures/product/schemas/e210210_v1.00.xsd +32 -0
  370. data/test/fixtures/product/schemas/e210220_v1.00.xsd +45 -0
  371. data/test/fixtures/product/schemas/e210240_v1.00.xsd +44 -0
  372. data/test/fixtures/product/schemas/e411500_v1.00.xsd +134 -0
  373. data/test/fixtures/product/schemas/e411501_v1.00.xsd +134 -0
  374. data/test/fixtures/product/schemas/e411502_v1.00.xsd +95 -0
  375. data/test/fixtures/product/schemas/e411503_v1.00.xsd +95 -0
  376. data/test/fixtures/product/schemas/e990900_v1.00.xsd +87 -0
  377. data/test/fixtures/product/schemas/e990910_v1.00.xsd +81 -0
  378. data/test/fixtures/product/schemas/envCCe_v1.00.xsd +10 -0
  379. data/test/fixtures/product/schemas/envCancelPProrrogNFe_v1.0.xsd +50 -0
  380. data/test/fixtures/product/schemas/envConfRecebto_v1.00.xsd +9 -0
  381. data/test/fixtures/product/schemas/envDPEC_v1.01.xsd +9 -0
  382. data/test/fixtures/product/schemas/envEPEC_v1.00.xsd +9 -0
  383. data/test/fixtures/product/schemas/envEventoCancNFe_v1.00.xsd +9 -0
  384. data/test/fixtures/product/schemas/envEvento_v1.00.xsd +9 -0
  385. data/test/fixtures/product/schemas/envFiscoNfe_v1.0.xsd +179 -0
  386. data/test/fixtures/product/schemas/envPProrrogNFe_v1.0.xsd +65 -0
  387. data/test/fixtures/product/schemas/envRemIndus_v1.00.xsd +9 -0
  388. data/test/fixtures/product/schemas/envSuframaInternaliza_v1.00.xsd +10 -0
  389. data/test/fixtures/product/schemas/envSuframaVistoria_v1.00.xsd +10 -0
  390. data/test/fixtures/product/schemas/enviNFe_v2.00.xsd +9 -0
  391. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/enviNFe_v3.10.xsd +8 -8
  392. data/test/fixtures/product/schemas/eventoCancNFe_v1.00.xsd +9 -0
  393. data/test/fixtures/product/schemas/eventoEPEC_v0.01.xsd +267 -0
  394. data/test/fixtures/product/schemas/eventoEPEC_v1.00.xsd +267 -0
  395. data/test/fixtures/product/schemas/eventoRemIndus_v1.00.xsd +9 -0
  396. data/test/fixtures/product/schemas/inutNFe_v2.00.xsd +9 -0
  397. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/inutNFe_v3.10.xsd +8 -8
  398. data/test/fixtures/product/schemas/leiauteCCe_v1.00.xsd +418 -0
  399. data/test/fixtures/product/schemas/leiauteCancNFe_v2.00.xsd +143 -0
  400. data/test/fixtures/product/schemas/leiauteConfRecebto_v1.00.xsd +406 -0
  401. data/test/fixtures/product/schemas/leiauteConsNFeDest_v1.01.xsd +483 -0
  402. data/test/fixtures/product/schemas/leiauteConsSitNFe_v2.01.xsd +548 -0
  403. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/leiauteConsSitNFe_v3.10.xsd +502 -502
  404. data/test/fixtures/product/schemas/leiauteConsStatServ_v2.00.xsd +98 -0
  405. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/leiauteConsStatServ_v3.10.xsd +97 -97
  406. data/test/fixtures/product/schemas/leiauteConsultaCadastro_v1.01.xsd +355 -0
  407. data/test/fixtures/product/schemas/leiauteConsultaCadastro_v2.00.xsd +404 -0
  408. data/test/fixtures/product/schemas/leiauteDPEC_v1.01.xsd +464 -0
  409. data/test/fixtures/product/schemas/leiauteDownloadNFe_v1.00.xsd +149 -0
  410. data/test/fixtures/product/schemas/leiauteEPEC_v1.00.xsd +459 -0
  411. data/test/fixtures/product/schemas/leiauteEventoCancNFe_v1.00.xsd +394 -0
  412. data/test/fixtures/product/schemas/leiauteEvento_v1.00.xsd +373 -0
  413. data/test/fixtures/product/schemas/leiauteInutNFe_v2.00.xsd +193 -0
  414. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/leiauteInutNFe_v3.10.xsd +192 -192
  415. data/test/fixtures/product/schemas/leiauteNFe_v2.00.xsd +6661 -0
  416. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/leiauteNFe_v3.10.xsd +6060 -6060
  417. data/test/fixtures/product/schemas/leiauteRemIndus_v1.00.xsd +382 -0
  418. data/test/fixtures/product/schemas/leiauteSRE_v1.00.xsd +372 -0
  419. data/test/fixtures/product/schemas/leiauteSuframaInternaliza_v1.00.xsd +642 -0
  420. data/test/fixtures/product/schemas/leiauteSuframaVistoria_v1.00.xsd +648 -0
  421. data/test/fixtures/product/schemas/nfe_v2.00.xsd +9 -0
  422. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/nfe_v3.10.xsd +8 -8
  423. data/test/fixtures/product/schemas/procCCeNFe_v1.00.xsd +10 -0
  424. data/test/fixtures/product/schemas/procCancNFe_v2.00.xsd +9 -0
  425. data/test/fixtures/product/schemas/procConfRecebtoNFe_v1.00.xsd +9 -0
  426. data/test/fixtures/product/schemas/procEPEC_v1.00.xsd +9 -0
  427. data/test/fixtures/product/schemas/procEventoCancNFe_v1.00.xsd +9 -0
  428. data/test/fixtures/product/schemas/procEventoNFe_v1.00.xsd +9 -0
  429. data/test/fixtures/product/schemas/procEventoNFe_v99.99.xsd +37 -0
  430. data/test/fixtures/product/schemas/procInutNFe_v2.00.xsd +9 -0
  431. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/procInutNFe_v3.10.xsd +8 -8
  432. data/test/fixtures/product/schemas/procNFe_v2.00.xsd +9 -0
  433. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/procNFe_v3.10.xsd +8 -8
  434. data/test/fixtures/product/schemas/procRemIndus_v1.00.xsd +9 -0
  435. data/test/fixtures/product/schemas/resEvento_v1.00.xsd +94 -0
  436. data/test/fixtures/product/schemas/resNFe_v1.00.xsd +110 -0
  437. data/test/fixtures/product/schemas/retAtuCadEmiDFe_v1.01.xsd +9 -0
  438. data/test/fixtures/product/schemas/retCancNFe_v2.00.xsd +9 -0
  439. data/test/fixtures/product/schemas/retConsCad_v2.00.xsd +9 -0
  440. data/test/fixtures/product/schemas/retConsDPEC_v1.01.xsd +9 -0
  441. data/test/fixtures/product/schemas/retConsReciNFe_v2.00.xsd +9 -0
  442. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retConsReciNFe_v3.10.xsd +8 -8
  443. data/test/fixtures/product/schemas/retConsSitNFe_v2.01.xsd +10 -0
  444. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retConsSitNFe_v3.10.xsd +8 -8
  445. data/test/fixtures/product/schemas/retConsStatServ_v2.00.xsd +9 -0
  446. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retConsStatServ_v3.10.xsd +8 -8
  447. data/test/fixtures/product/schemas/retDPEC_v1.01.xsd +9 -0
  448. data/test/fixtures/product/schemas/retDistDFeInt_v1.00.xsd +84 -0
  449. data/test/fixtures/product/schemas/retDownloadNFe_v1.00.xsd +9 -0
  450. data/test/fixtures/product/schemas/retEnvCCe_v1.00.xsd +10 -0
  451. data/test/fixtures/product/schemas/retEnvCancelPProrrogNFe_v1.0.xsd +231 -0
  452. data/test/fixtures/product/schemas/retEnvConfRecebto_v1.00.xsd +9 -0
  453. data/test/fixtures/product/schemas/retEnvEPEC_v1.00.xsd +9 -0
  454. data/test/fixtures/product/schemas/retEnvEventoCancNFe_v1.00.xsd +9 -0
  455. data/test/fixtures/product/schemas/retEnvEvento_v1.00.xsd +9 -0
  456. data/test/fixtures/product/schemas/retEnvFiscoNFe_v1.0.xsd +234 -0
  457. data/test/fixtures/product/schemas/retEnvRemIndus_v1.00.xsd +9 -0
  458. data/test/fixtures/product/schemas/retEnvSuframaInternaliza_v1.00.xsd +9 -0
  459. data/test/fixtures/product/schemas/retEnvSuframaVistoria_v1.00.xsd +9 -0
  460. data/test/fixtures/product/schemas/retEnviNFe_v2.00.xsd +9 -0
  461. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retEnviNFe_v3.10.xsd +8 -8
  462. data/test/fixtures/product/schemas/retEventoEPEC_v0.01.xsd +207 -0
  463. data/test/fixtures/product/schemas/retInutNFe_v2.00.xsd +9 -0
  464. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retInutNFe_v3.10.xsd +8 -8
  465. data/test/fixtures/product/schemas/retPProrrogNFe_v1.0.xsd +233 -0
  466. data/test/fixtures/product/schemas/retconsNFeDest_v1.01.xsd +9 -0
  467. data/test/fixtures/product/schemas/tiposBasico_v1.03.xsd +816 -0
  468. data/test/fixtures/product/schemas/tiposBasico_v1.03_OPENSSL.xsd +816 -0
  469. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/tiposBasico_v3.10.xsd +571 -571
  470. data/test/fixtures/product/schemas/tiposBasico_v3.10_OPENSSL.xsd +877 -0
  471. data/test/fixtures/product/schemas/tiposDistDFe_v1.00.xsd +217 -0
  472. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/xmldsig-core-schema_v1.01.xsd +97 -97
  473. data/test/fixtures/product/wsdl/NFeRetAutorizacao.xml +80 -0
  474. data/test/fixtures/product/wsdl/NfeAutorizacao.xml +107 -0
  475. data/test/fixtures/product/wsdl/NfeConsulta2.xml +80 -0
  476. data/test/fixtures/product/wsdl/NfeStatusServico2.xml +70 -0
  477. data/test/fixtures/product/wsdl/nfeinutilizacao2.xml +80 -0
  478. data/test/fixtures/service/wsdl/betha/v1/cancelar_nfse.xml +178 -0
  479. data/test/fixtures/service/wsdl/betha/v1/consultar_lote_rps.xml +339 -0
  480. data/test/fixtures/service/wsdl/betha/v1/consultar_nfse.xml +348 -0
  481. data/test/fixtures/service/wsdl/betha/v1/consultar_nfse_por_rps.xml +365 -0
  482. data/test/fixtures/service/wsdl/betha/v1/consultar_situacao_lote_rps.xml +74 -0
  483. data/test/fixtures/service/wsdl/betha/v1/recepcionar_lote_rps.xml +299 -0
  484. data/test/fixtures/service/wsdl/simpliss/v1/nfseservice.xml +1 -0
  485. data/test/fixtures/service/wsdl/thema/v1/nfse_cancelamento.xml +82 -0
  486. data/test/fixtures/service/wsdl/thema/v1/nfse_consulta.xml +235 -0
  487. data/test/fixtures/service/wsdl/thema/v1/nfse_remessa.xml +185 -0
  488. data/test/test_helper.rb +369 -1
  489. metadata +711 -33
  490. data/lib/br_nfe/product/base.rb +0 -82
  491. data/lib/br_nfe/product/consulta_status_servico.rb +0 -35
  492. data/lib/br_nfe/product/value_nf.rb +0 -9
  493. data/lib/br_nfe/product/xml/v3_10/consulta_status_servico.xml.slim +0 -4
  494. data/test/br_nfe/product/base_test.rb +0 -150
  495. data/test/br_nfe/product/consulta_status_servico_test.rb +0 -59
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_nfe
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno M. Mergen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-23 00:00:00.000000000 Z
11
+ date: 2017-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -153,45 +153,165 @@ files:
153
153
  - Rakefile
154
154
  - br_nfe.gemspec
155
155
  - lib/br_nfe.rb
156
+ - lib/br_nfe/active_model/associations.rb
157
+ - lib/br_nfe/active_model/has_many.rb
158
+ - lib/br_nfe/active_model/has_one.rb
156
159
  - lib/br_nfe/active_model_base.rb
157
160
  - lib/br_nfe/association/have_address.rb
158
161
  - lib/br_nfe/association/have_condicao_pagamento.rb
159
162
  - lib/br_nfe/association/have_destinatario.rb
160
163
  - lib/br_nfe/association/have_emitente.rb
161
164
  - lib/br_nfe/base.rb
165
+ - lib/br_nfe/calculos/fatores_de_multiplicacao.rb
166
+ - lib/br_nfe/calculos/modulo11.rb
167
+ - lib/br_nfe/calculos/modulo11_fator_de2a9.rb
168
+ - lib/br_nfe/calculos/modulo11_fator_de2a9_resto_zero.rb
162
169
  - lib/br_nfe/condicao_pagamento.rb
163
170
  - lib/br_nfe/constants.rb
164
171
  - lib/br_nfe/endereco.rb
165
172
  - lib/br_nfe/helper/cpf_cnpj.rb
166
173
  - lib/br_nfe/helper/string_methods.rb
167
174
  - lib/br_nfe/person.rb
168
- - lib/br_nfe/product/base.rb
169
- - lib/br_nfe/product/consulta_status_servico.rb
175
+ - lib/br_nfe/product/destinatario.rb
170
176
  - lib/br_nfe/product/emitente.rb
177
+ - lib/br_nfe/product/evento/base.rb
178
+ - lib/br_nfe/product/evento/cancelamento.rb
171
179
  - lib/br_nfe/product/gateway/base.rb
180
+ - lib/br_nfe/product/gateway/web_service_am.rb
181
+ - lib/br_nfe/product/gateway/web_service_ba.rb
182
+ - lib/br_nfe/product/gateway/web_service_ce.rb
183
+ - lib/br_nfe/product/gateway/web_service_go.rb
184
+ - lib/br_nfe/product/gateway/web_service_mg.rb
185
+ - lib/br_nfe/product/gateway/web_service_ms.rb
186
+ - lib/br_nfe/product/gateway/web_service_mt.rb
187
+ - lib/br_nfe/product/gateway/web_service_pe.rb
188
+ - lib/br_nfe/product/gateway/web_service_pr.rb
189
+ - lib/br_nfe/product/gateway/web_service_rs.rb
190
+ - lib/br_nfe/product/gateway/web_service_sp.rb
191
+ - lib/br_nfe/product/gateway/web_service_svan.rb
192
+ - lib/br_nfe/product/gateway/web_service_svc_an.rb
193
+ - lib/br_nfe/product/gateway/web_service_svc_rs.rb
172
194
  - lib/br_nfe/product/gateway/web_service_svrs.rb
173
- - lib/br_nfe/product/value_nf.rb
195
+ - lib/br_nfe/product/nf_xml_value.rb
196
+ - lib/br_nfe/product/nfe/adicao_importacao.rb
197
+ - lib/br_nfe/product/nfe/cobranca/duplicata.rb
198
+ - lib/br_nfe/product/nfe/cobranca/fatura.rb
199
+ - lib/br_nfe/product/nfe/cobranca/pagamento.rb
200
+ - lib/br_nfe/product/nfe/declaracao_importacao.rb
201
+ - lib/br_nfe/product/nfe/detalhe_exportacao.rb
202
+ - lib/br_nfe/product/nfe/item.rb
203
+ - lib/br_nfe/product/nfe/item_tax/cofins.rb
204
+ - lib/br_nfe/product/nfe/item_tax/cofins_st.rb
205
+ - lib/br_nfe/product/nfe/item_tax/icms.rb
206
+ - lib/br_nfe/product/nfe/item_tax/icms_uf_destino.rb
207
+ - lib/br_nfe/product/nfe/item_tax/importacao.rb
208
+ - lib/br_nfe/product/nfe/item_tax/ipi.rb
209
+ - lib/br_nfe/product/nfe/item_tax/issqn.rb
210
+ - lib/br_nfe/product/nfe/item_tax/pis.rb
211
+ - lib/br_nfe/product/nfe/item_tax/pis_st.rb
212
+ - lib/br_nfe/product/nfe/processo_referencia.rb
213
+ - lib/br_nfe/product/nfe/transporte/base.rb
214
+ - lib/br_nfe/product/nfe/transporte/transportador.rb
215
+ - lib/br_nfe/product/nfe/transporte/veiculo.rb
216
+ - lib/br_nfe/product/nfe/transporte/volume.rb
217
+ - lib/br_nfe/product/nota_fiscal.rb
218
+ - lib/br_nfe/product/operation/base.rb
219
+ - lib/br_nfe/product/operation/nfe_autorizacao.rb
220
+ - lib/br_nfe/product/operation/nfe_consulta_protocolo.rb
221
+ - lib/br_nfe/product/operation/nfe_download_nf.rb
222
+ - lib/br_nfe/product/operation/nfe_inutilizacao.rb
223
+ - lib/br_nfe/product/operation/nfe_recepcao_evento.rb
224
+ - lib/br_nfe/product/operation/nfe_ret_autorizacao.rb
225
+ - lib/br_nfe/product/operation/nfe_status_servico.rb
226
+ - lib/br_nfe/product/response/base.rb
227
+ - lib/br_nfe/product/response/build/base.rb
228
+ - lib/br_nfe/product/response/build/nfe_autorizacao.rb
229
+ - lib/br_nfe/product/response/build/nfe_consulta_protocolo.rb
230
+ - lib/br_nfe/product/response/build/nfe_inutilizacao.rb
231
+ - lib/br_nfe/product/response/build/nfe_ret_autorizacao.rb
232
+ - lib/br_nfe/product/response/build/nfe_status_servico.rb
233
+ - lib/br_nfe/product/response/event.rb
234
+ - lib/br_nfe/product/response/nfe_autorizacao.rb
235
+ - lib/br_nfe/product/response/nfe_consulta_protocolo.rb
236
+ - lib/br_nfe/product/response/nfe_inutilizacao.rb
237
+ - lib/br_nfe/product/response/nfe_ret_autorizacao.rb
238
+ - lib/br_nfe/product/response/nfe_status_servico.rb
239
+ - lib/br_nfe/product/xml/_signed_info_sh1.xml.slim
240
+ - lib/br_nfe/product/xml/_tc_cpf_cnpj.xml.slim
241
+ - lib/br_nfe/product/xml/signature_sh1.xml.slim
174
242
  - lib/br_nfe/product/xml/soap_env.xml.slim
175
- - lib/br_nfe/product/xml/v3_10/XSD/consReciNFe_v3.10.xsd
176
- - lib/br_nfe/product/xml/v3_10/XSD/consSitNFe_v3.10.xsd
177
- - lib/br_nfe/product/xml/v3_10/XSD/consStatServ_v3.10.xsd
178
- - lib/br_nfe/product/xml/v3_10/XSD/enviNFe_v3.10.xsd
179
- - lib/br_nfe/product/xml/v3_10/XSD/inutNFe_v3.10.xsd
180
- - lib/br_nfe/product/xml/v3_10/XSD/leiauteConsSitNFe_v3.10.xsd
181
- - lib/br_nfe/product/xml/v3_10/XSD/leiauteConsStatServ_v3.10.xsd
182
- - lib/br_nfe/product/xml/v3_10/XSD/leiauteInutNFe_v3.10.xsd
183
- - lib/br_nfe/product/xml/v3_10/XSD/leiauteNFe_v3.10.xsd
184
- - lib/br_nfe/product/xml/v3_10/XSD/nfe_v3.10.xsd
185
- - lib/br_nfe/product/xml/v3_10/XSD/procInutNFe_v3.10.xsd
186
- - lib/br_nfe/product/xml/v3_10/XSD/procNFe_v3.10.xsd
187
- - lib/br_nfe/product/xml/v3_10/XSD/retConsReciNFe_v3.10.xsd
188
- - lib/br_nfe/product/xml/v3_10/XSD/retConsSitNFe_v3.10.xsd
189
- - lib/br_nfe/product/xml/v3_10/XSD/retConsStatServ_v3.10.xsd
190
- - lib/br_nfe/product/xml/v3_10/XSD/retEnviNFe_v3.10.xsd
191
- - lib/br_nfe/product/xml/v3_10/XSD/retInutNFe_v3.10.xsd
192
- - lib/br_nfe/product/xml/v3_10/XSD/tiposBasico_v3.10.xsd
193
- - lib/br_nfe/product/xml/v3_10/XSD/xmldsig-core-schema_v1.01.xsd
194
- - lib/br_nfe/product/xml/v3_10/consulta_status_servico.xml.slim
243
+ - lib/br_nfe/product/xml/v1_00/evento/infEventoCancelamento.xml.slim
244
+ - lib/br_nfe/product/xml/v1_00/root/NfeDownloadNf.xml.slim
245
+ - lib/br_nfe/product/xml/v1_00/root/NfeRecepcaoEvento.xml.slim
246
+ - lib/br_nfe/product/xml/v2_00/_tc_endereco.xml.slim
247
+ - lib/br_nfe/product/xml/v2_00/_tc_infNFe.xml.slim
248
+ - lib/br_nfe/product/xml/v2_00/infInut.xml.slim
249
+ - lib/br_nfe/product/xml/v2_00/infNFe.xml.slim
250
+ - lib/br_nfe/product/xml/v2_00/infNFe/NFe.xml.slim
251
+ - lib/br_nfe/product/xml/v2_00/infNFe/_tc_cobr.xml.slim
252
+ - lib/br_nfe/product/xml/v2_00/infNFe/_tc_dest.xml.slim
253
+ - lib/br_nfe/product/xml/v2_00/infNFe/_tc_det.xml.slim
254
+ - lib/br_nfe/product/xml/v2_00/infNFe/_tc_emit.xml.slim
255
+ - lib/br_nfe/product/xml/v2_00/infNFe/_tc_entrega.xml.slim
256
+ - lib/br_nfe/product/xml/v2_00/infNFe/_tc_exporta.xml.slim
257
+ - lib/br_nfe/product/xml/v2_00/infNFe/_tc_ide.xml.slim
258
+ - lib/br_nfe/product/xml/v2_00/infNFe/_tc_infAdic.xml.slim
259
+ - lib/br_nfe/product/xml/v2_00/infNFe/_tc_retirada.xml.slim
260
+ - lib/br_nfe/product/xml/v2_00/infNFe/_tc_total.xml.slim
261
+ - lib/br_nfe/product/xml/v2_00/infNFe/_tc_transp.xml.slim
262
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/_tc_imposto.xml.slim
263
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/_tc_prod.xml.slim
264
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS00.xml.slim
265
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS10.xml.slim
266
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS101.xml.slim
267
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS102.xml.slim
268
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS20.xml.slim
269
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS201.xml.slim
270
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS202.xml.slim
271
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS30.xml.slim
272
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS40.xml.slim
273
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS500.xml.slim
274
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS51.xml.slim
275
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS60.xml.slim
276
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS70.xml.slim
277
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS90.xml.slim
278
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS900.xml.slim
279
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_COFINS.xml.slim
280
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_COFINS_ST.xml.slim
281
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_ICMS.xml.slim
282
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_II.xml.slim
283
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_IPI.xml.slim
284
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_PIS.xml.slim
285
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_PIS_ST.xml.slim
286
+ - lib/br_nfe/product/xml/v2_00/infNFe/det/prod/_tc_di.xml.slim
287
+ - lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_retTransp.xml.slim
288
+ - lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_transporta.xml.slim
289
+ - lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_vol.xml.slim
290
+ - lib/br_nfe/product/xml/v2_00/root/NfeAutorizacao.xml.slim
291
+ - lib/br_nfe/product/xml/v2_00/root/NfeInutilizacao.xml.slim
292
+ - lib/br_nfe/product/xml/v2_00/root/NfeRetAutorizacao.xml.slim
293
+ - lib/br_nfe/product/xml/v2_00/root/NfeStatusServico.xml.slim
294
+ - lib/br_nfe/product/xml/v2_01/root/NfeConsultaProtocolo.xml.slim
295
+ - lib/br_nfe/product/xml/v3_10/_tc_infNFe.xml.slim
296
+ - lib/br_nfe/product/xml/v3_10/infNFe/_tc_dest.xml.slim
297
+ - lib/br_nfe/product/xml/v3_10/infNFe/_tc_det.xml.slim
298
+ - lib/br_nfe/product/xml/v3_10/infNFe/_tc_exporta.xml.slim
299
+ - lib/br_nfe/product/xml/v3_10/infNFe/_tc_ide.xml.slim
300
+ - lib/br_nfe/product/xml/v3_10/infNFe/_tc_pag.xml.slim
301
+ - lib/br_nfe/product/xml/v3_10/infNFe/_tc_total.xml.slim
302
+ - lib/br_nfe/product/xml/v3_10/infNFe/det/_tc_imposto.xml.slim
303
+ - lib/br_nfe/product/xml/v3_10/infNFe/det/_tc_prod.xml.slim
304
+ - lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS20.xml.slim
305
+ - lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS30.xml.slim
306
+ - lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS40.xml.slim
307
+ - lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS51.xml.slim
308
+ - lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS70.xml.slim
309
+ - lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS90.xml.slim
310
+ - lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/_tc_ICMSUFDest.xml.slim
311
+ - lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/_tc_ISSQN.xml.slim
312
+ - lib/br_nfe/product/xml/v3_10/infNFe/det/prod/_tc_det_export.xml.slim
313
+ - lib/br_nfe/product/xml/v3_10/infNFe/det/prod/_tc_di.xml.slim
314
+ - lib/br_nfe/product/xml/v3_10/root/NfeAutorizacao.xml.slim
195
315
  - lib/br_nfe/service/association/have_intermediario.rb
196
316
  - lib/br_nfe/service/association/have_rps.rb
197
317
  - lib/br_nfe/service/base.rb
@@ -293,6 +413,22 @@ files:
293
413
  - lib/br_nfe/xml/_signed_info_sh1.xml.slim
294
414
  - lib/br_nfe/xml/signature_sh1.xml.slim
295
415
  - lib/br_nfe/xml/soap_env.xml.slim
416
+ - lib/config/locales/br_nfe/en/product/nfe/cobranca/fatura.yml
417
+ - lib/config/locales/br_nfe/en/product/nfe/declaracao_importacao.yml
418
+ - lib/config/locales/br_nfe/en/product/nfe/item.yml
419
+ - lib/config/locales/br_nfe/en/product/nfe/item_tax/icms_uf_destino.yml
420
+ - lib/config/locales/br_nfe/en/product/nfe/transporte/base.yml
421
+ - lib/config/locales/br_nfe/en/product/nota_fiscal.yml
422
+ - lib/config/locales/br_nfe/en/product/operation/nfe_autorizacao.yml
423
+ - lib/config/locales/br_nfe/en/product/operation/nfe_recepcao_evento.yml
424
+ - lib/config/locales/br_nfe/pt-BR/product/nfe/cobranca/fatura.yml
425
+ - lib/config/locales/br_nfe/pt-BR/product/nfe/declaracao_importacao.yml
426
+ - lib/config/locales/br_nfe/pt-BR/product/nfe/item.yml
427
+ - lib/config/locales/br_nfe/pt-BR/product/nfe/item_tax/icms_uf_destino.yml
428
+ - lib/config/locales/br_nfe/pt-BR/product/nfe/transporte/base.yml
429
+ - lib/config/locales/br_nfe/pt-BR/product/nota_fiscal.yml
430
+ - lib/config/locales/br_nfe/pt-BR/product/operation/nfe_autorizacao.yml
431
+ - lib/config/locales/br_nfe/pt-BR/product/operation/nfe_recepcao_evento.yml
296
432
  - test/br_nfe/association/have_address_test.rb
297
433
  - test/br_nfe/association/have_condicao_pagamento_test.rb
298
434
  - test/br_nfe/association/have_destinatario_test.rb
@@ -302,11 +438,59 @@ files:
302
438
  - test/br_nfe/endereco_test.rb
303
439
  - test/br_nfe/helper/cpf_cnpj_test.rb
304
440
  - test/br_nfe/person_test.rb
305
- - test/br_nfe/product/base_test.rb
306
- - test/br_nfe/product/consulta_status_servico_test.rb
441
+ - test/br_nfe/product/destinatario_test.rb
307
442
  - test/br_nfe/product/emitente_test.rb
443
+ - test/br_nfe/product/evento/base_test.rb
444
+ - test/br_nfe/product/evento/cancelamento_test.rb
308
445
  - test/br_nfe/product/gateway/base_test.rb
446
+ - test/br_nfe/product/gateway/web_service_am_test.rb
447
+ - test/br_nfe/product/gateway/web_service_ba_test.rb
448
+ - test/br_nfe/product/gateway/web_service_ce_test.rb
449
+ - test/br_nfe/product/gateway/web_service_go_test.rb
450
+ - test/br_nfe/product/gateway/web_service_mg_test.rb
451
+ - test/br_nfe/product/gateway/web_service_ms_test.rb
452
+ - test/br_nfe/product/gateway/web_service_mt_test.rb
453
+ - test/br_nfe/product/gateway/web_service_pe_test.rb
454
+ - test/br_nfe/product/gateway/web_service_pr_test.rb
455
+ - test/br_nfe/product/gateway/web_service_rs_test.rb
456
+ - test/br_nfe/product/gateway/web_service_sp_test.rb
457
+ - test/br_nfe/product/gateway/web_service_svan_test.rb
458
+ - test/br_nfe/product/gateway/web_service_svc_an_test.rb
459
+ - test/br_nfe/product/gateway/web_service_svc_rs_test.rb
309
460
  - test/br_nfe/product/gateway/web_service_svrs_test.rb
461
+ - test/br_nfe/product/nfe/adicao_importacao_test.rb
462
+ - test/br_nfe/product/nfe/cobranca/duplicata_test.rb
463
+ - test/br_nfe/product/nfe/cobranca/fatura_test.rb
464
+ - test/br_nfe/product/nfe/cobranca/pagamento_test.rb
465
+ - test/br_nfe/product/nfe/declaracao_importacao_test.rb
466
+ - test/br_nfe/product/nfe/detalhe_exportacao_test.rb
467
+ - test/br_nfe/product/nfe/item_tax/cofins_st_test.rb
468
+ - test/br_nfe/product/nfe/item_tax/cofins_test.rb
469
+ - test/br_nfe/product/nfe/item_tax/icms_test.rb
470
+ - test/br_nfe/product/nfe/item_tax/icms_uf_destino_test.rb
471
+ - test/br_nfe/product/nfe/item_tax/importacao_test.rb
472
+ - test/br_nfe/product/nfe/item_tax/ipi_test.rb
473
+ - test/br_nfe/product/nfe/item_tax/issqn_test.rb
474
+ - test/br_nfe/product/nfe/item_tax/pis_st_test.rb
475
+ - test/br_nfe/product/nfe/item_tax/pis_test.rb
476
+ - test/br_nfe/product/nfe/item_test.rb
477
+ - test/br_nfe/product/nfe/processo_referencia_test.rb
478
+ - test/br_nfe/product/nfe/transporte/base_test.rb
479
+ - test/br_nfe/product/nfe/transporte/transportador_test.rb
480
+ - test/br_nfe/product/nfe/transporte/veiculo_test.rb
481
+ - test/br_nfe/product/nfe/transporte/volume_test.rb
482
+ - test/br_nfe/product/nota_fiscal_test.rb
483
+ - test/br_nfe/product/operation/base_test.rb
484
+ - test/br_nfe/product/operation/nfe_autorizacao_test.rb
485
+ - test/br_nfe/product/operation/nfe_consulta_protocolo_test.rb
486
+ - test/br_nfe/product/operation/nfe_download_nf_test.rb
487
+ - test/br_nfe/product/operation/nfe_inutilizacao_test.rb
488
+ - test/br_nfe/product/operation/nfe_recepcao_evento_test.rb
489
+ - test/br_nfe/product/operation/nfe_ret_autorizacao_test.rb
490
+ - test/br_nfe/product/operation/nfe_status_servico_test.rb
491
+ - test/br_nfe/product/response/base_test.rb
492
+ - test/br_nfe/product/response/build/base_test.rb
493
+ - test/br_nfe/product/response/nfe_ret_autorizacao_test.rb
310
494
  - test/br_nfe/service/association/have_intermediario_test.rb
311
495
  - test/br_nfe/service/association/have_rps_test.rb
312
496
  - test/br_nfe/service/base_test.rb
@@ -373,11 +557,47 @@ files:
373
557
  - test/factories/condicao_pagamento.rb
374
558
  - test/factories/endereco.rb
375
559
  - test/factories/person.rb
376
- - test/factories/product/base.rb
377
- - test/factories/product/consulta_status_servico.rb
560
+ - test/factories/product/destinatario.rb
378
561
  - test/factories/product/emitente.rb
562
+ - test/factories/product/evento/base.rb
563
+ - test/factories/product/evento/cancelamento.rb
379
564
  - test/factories/product/gateway/base.rb
565
+ - test/factories/product/gateway/web_service_am.rb
566
+ - test/factories/product/gateway/web_service_ba.rb
380
567
  - test/factories/product/gateway/web_service_svrs.rb
568
+ - test/factories/product/nfe/adicao_importacao.rb
569
+ - test/factories/product/nfe/cobranca/duplicata.rb
570
+ - test/factories/product/nfe/cobranca/fatura.rb
571
+ - test/factories/product/nfe/cobranca/pagamento.rb
572
+ - test/factories/product/nfe/declaracao_importacao.rb
573
+ - test/factories/product/nfe/detalhe_exportacao.rb
574
+ - test/factories/product/nfe/item.rb
575
+ - test/factories/product/nfe/item_tax/cofins.rb
576
+ - test/factories/product/nfe/item_tax/cofins_st.rb
577
+ - test/factories/product/nfe/item_tax/icms.rb
578
+ - test/factories/product/nfe/item_tax/icms_uf_destino.rb
579
+ - test/factories/product/nfe/item_tax/importacao.rb
580
+ - test/factories/product/nfe/item_tax/ipi.rb
581
+ - test/factories/product/nfe/item_tax/issqn.rb
582
+ - test/factories/product/nfe/item_tax/pis.rb
583
+ - test/factories/product/nfe/item_tax/pis_st.rb
584
+ - test/factories/product/nfe/processo_referencia.rb
585
+ - test/factories/product/nfe/transporte/base.rb
586
+ - test/factories/product/nfe/transporte/transportador.rb
587
+ - test/factories/product/nfe/transporte/veiculo.rb
588
+ - test/factories/product/nfe/transporte/volume.rb
589
+ - test/factories/product/nota_fiscal.rb
590
+ - test/factories/product/operation/base.rb
591
+ - test/factories/product/operation/nfe_autorizacao.rb
592
+ - test/factories/product/operation/nfe_consulta_protocolo.rb
593
+ - test/factories/product/operation/nfe_download_nf.rb
594
+ - test/factories/product/operation/nfe_inutilizacao.rb
595
+ - test/factories/product/operation/nfe_recepcao_evento.rb
596
+ - test/factories/product/operation/nfe_ret_autorizacao.rb
597
+ - test/factories/product/operation/nfe_status_servico.rb
598
+ - test/factories/product/response/base.rb
599
+ - test/factories/product/response/build/base.rb
600
+ - test/factories/product/response/nfe_ret_autorizacao.rb
381
601
  - test/factories/service/base.rb
382
602
  - test/factories/service/betha/base.rb
383
603
  - test/factories/service/betha/v1/cancela_nfse.rb
@@ -413,6 +633,183 @@ files:
413
633
  - test/factories/service/thema/v1/consulta_situacao_lote_rps.rb
414
634
  - test/factories/service/thema/v1/recepcao_lote_rps.rb
415
635
  - test/factories/service/thema/v1/recepcao_lote_rps_limitado.rb
636
+ - test/fixtures/product/operation/nfe_autorizacao/nfe_signed.xml
637
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/async_fail.xml
638
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/async_success.xml
639
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/nfe/with_proc.xml
640
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/nfe/without_proc.xml
641
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/original_xml.xml
642
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/sync_fail.xml
643
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/sync_success.xml
644
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_1.xml
645
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_2.xml
646
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_3.xml
647
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_cancel.xml
648
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/one_event.xml
649
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/fail.xml
650
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/nfe_original/with_proc.xml
651
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/nfe_original/without_proc.xml
652
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_many_with_cancel.xml
653
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_many_without_cancel.xml
654
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_one.xml
655
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_without.xml
656
+ - test/fixtures/product/response/v3.10/nfe_inutilizacao/fail.xml
657
+ - test/fixtures/product/response/v3.10/nfe_inutilizacao/success.xml
658
+ - test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/fail.xml
659
+ - test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/success.xml
660
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_fail.xml
661
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_fail.xml
662
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_fail_and_one_ok.xml
663
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_ok.xml
664
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_two_invoice_fail.xml
665
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_two_invoice_ok.xml
666
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_2_with_protocol.xml
667
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_2_without_protocol.xml
668
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_3_with_protocol.xml
669
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_3_without_protocol.xml
670
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/lot.xml
671
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/nfe.xml
672
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/nfeProc.xml
673
+ - test/fixtures/product/response/v3.10/nfe_status_servico/fail.xml
674
+ - test/fixtures/product/response/v3.10/nfe_status_servico/success.xml
675
+ - test/fixtures/product/schemas/CCe_v1.00.xsd
676
+ - test/fixtures/product/schemas/EPEC_v1.00.xsd
677
+ - test/fixtures/product/schemas/LeiauteCadastroEmissorDFe_v1.01.xsd
678
+ - test/fixtures/product/schemas/SuframaInternaliza_v1.00.xsd
679
+ - test/fixtures/product/schemas/SuframaVistoria_v1.00.xsd
680
+ - test/fixtures/product/schemas/atuCadEmiDFe_v1.01.xsd
681
+ - test/fixtures/product/schemas/cabecMsg_v1.02.xsd
682
+ - test/fixtures/product/schemas/cadEmiDFe_v1.01.xsd
683
+ - test/fixtures/product/schemas/cancNFe_v2.00.xsd
684
+ - test/fixtures/product/schemas/confRecebto_v1.00.xsd
685
+ - test/fixtures/product/schemas/consCad_v2.00.xsd
686
+ - test/fixtures/product/schemas/consDPEC_v1.01.xsd
687
+ - test/fixtures/product/schemas/consNFeDest_v1.01.xsd
688
+ - test/fixtures/product/schemas/consReciNFe_v2.00.xsd
689
+ - test/fixtures/product/schemas/consReciNFe_v3.10.xsd
690
+ - test/fixtures/product/schemas/consSitNFe_v2.01.xsd
691
+ - test/fixtures/product/schemas/consSitNFe_v3.10.xsd
692
+ - test/fixtures/product/schemas/consStatServ_v2.00.xsd
693
+ - test/fixtures/product/schemas/consStatServ_v3.10.xsd
694
+ - test/fixtures/product/schemas/distDFeInt_v1.00.xsd
695
+ - test/fixtures/product/schemas/downloadNFe_v1.00.xsd
696
+ - test/fixtures/product/schemas/e110110_v1.00.xsd
697
+ - test/fixtures/product/schemas/e110111_v1.00.xsd
698
+ - test/fixtures/product/schemas/e110140_v1.00.xsd
699
+ - test/fixtures/product/schemas/e111500_v1.00.xsd
700
+ - test/fixtures/product/schemas/e111501_v1.00.xsd
701
+ - test/fixtures/product/schemas/e111502_v1.00.xsd
702
+ - test/fixtures/product/schemas/e111503_v1.00.xsd
703
+ - test/fixtures/product/schemas/e210200_v1.00.xsd
704
+ - test/fixtures/product/schemas/e210210_v1.00.xsd
705
+ - test/fixtures/product/schemas/e210220_v1.00.xsd
706
+ - test/fixtures/product/schemas/e210240_v1.00.xsd
707
+ - test/fixtures/product/schemas/e411500_v1.00.xsd
708
+ - test/fixtures/product/schemas/e411501_v1.00.xsd
709
+ - test/fixtures/product/schemas/e411502_v1.00.xsd
710
+ - test/fixtures/product/schemas/e411503_v1.00.xsd
711
+ - test/fixtures/product/schemas/e990900_v1.00.xsd
712
+ - test/fixtures/product/schemas/e990910_v1.00.xsd
713
+ - test/fixtures/product/schemas/envCCe_v1.00.xsd
714
+ - test/fixtures/product/schemas/envCancelPProrrogNFe_v1.0.xsd
715
+ - test/fixtures/product/schemas/envConfRecebto_v1.00.xsd
716
+ - test/fixtures/product/schemas/envDPEC_v1.01.xsd
717
+ - test/fixtures/product/schemas/envEPEC_v1.00.xsd
718
+ - test/fixtures/product/schemas/envEventoCancNFe_v1.00.xsd
719
+ - test/fixtures/product/schemas/envEvento_v1.00.xsd
720
+ - test/fixtures/product/schemas/envFiscoNfe_v1.0.xsd
721
+ - test/fixtures/product/schemas/envPProrrogNFe_v1.0.xsd
722
+ - test/fixtures/product/schemas/envRemIndus_v1.00.xsd
723
+ - test/fixtures/product/schemas/envSuframaInternaliza_v1.00.xsd
724
+ - test/fixtures/product/schemas/envSuframaVistoria_v1.00.xsd
725
+ - test/fixtures/product/schemas/enviNFe_v2.00.xsd
726
+ - test/fixtures/product/schemas/enviNFe_v3.10.xsd
727
+ - test/fixtures/product/schemas/eventoCancNFe_v1.00.xsd
728
+ - test/fixtures/product/schemas/eventoEPEC_v0.01.xsd
729
+ - test/fixtures/product/schemas/eventoEPEC_v1.00.xsd
730
+ - test/fixtures/product/schemas/eventoRemIndus_v1.00.xsd
731
+ - test/fixtures/product/schemas/inutNFe_v2.00.xsd
732
+ - test/fixtures/product/schemas/inutNFe_v3.10.xsd
733
+ - test/fixtures/product/schemas/leiauteCCe_v1.00.xsd
734
+ - test/fixtures/product/schemas/leiauteCancNFe_v2.00.xsd
735
+ - test/fixtures/product/schemas/leiauteConfRecebto_v1.00.xsd
736
+ - test/fixtures/product/schemas/leiauteConsNFeDest_v1.01.xsd
737
+ - test/fixtures/product/schemas/leiauteConsSitNFe_v2.01.xsd
738
+ - test/fixtures/product/schemas/leiauteConsSitNFe_v3.10.xsd
739
+ - test/fixtures/product/schemas/leiauteConsStatServ_v2.00.xsd
740
+ - test/fixtures/product/schemas/leiauteConsStatServ_v3.10.xsd
741
+ - test/fixtures/product/schemas/leiauteConsultaCadastro_v1.01.xsd
742
+ - test/fixtures/product/schemas/leiauteConsultaCadastro_v2.00.xsd
743
+ - test/fixtures/product/schemas/leiauteDPEC_v1.01.xsd
744
+ - test/fixtures/product/schemas/leiauteDownloadNFe_v1.00.xsd
745
+ - test/fixtures/product/schemas/leiauteEPEC_v1.00.xsd
746
+ - test/fixtures/product/schemas/leiauteEventoCancNFe_v1.00.xsd
747
+ - test/fixtures/product/schemas/leiauteEvento_v1.00.xsd
748
+ - test/fixtures/product/schemas/leiauteInutNFe_v2.00.xsd
749
+ - test/fixtures/product/schemas/leiauteInutNFe_v3.10.xsd
750
+ - test/fixtures/product/schemas/leiauteNFe_v2.00.xsd
751
+ - test/fixtures/product/schemas/leiauteNFe_v3.10.xsd
752
+ - test/fixtures/product/schemas/leiauteRemIndus_v1.00.xsd
753
+ - test/fixtures/product/schemas/leiauteSRE_v1.00.xsd
754
+ - test/fixtures/product/schemas/leiauteSuframaInternaliza_v1.00.xsd
755
+ - test/fixtures/product/schemas/leiauteSuframaVistoria_v1.00.xsd
756
+ - test/fixtures/product/schemas/nfe_v2.00.xsd
757
+ - test/fixtures/product/schemas/nfe_v3.10.xsd
758
+ - test/fixtures/product/schemas/procCCeNFe_v1.00.xsd
759
+ - test/fixtures/product/schemas/procCancNFe_v2.00.xsd
760
+ - test/fixtures/product/schemas/procConfRecebtoNFe_v1.00.xsd
761
+ - test/fixtures/product/schemas/procEPEC_v1.00.xsd
762
+ - test/fixtures/product/schemas/procEventoCancNFe_v1.00.xsd
763
+ - test/fixtures/product/schemas/procEventoNFe_v1.00.xsd
764
+ - test/fixtures/product/schemas/procEventoNFe_v99.99.xsd
765
+ - test/fixtures/product/schemas/procInutNFe_v2.00.xsd
766
+ - test/fixtures/product/schemas/procInutNFe_v3.10.xsd
767
+ - test/fixtures/product/schemas/procNFe_v2.00.xsd
768
+ - test/fixtures/product/schemas/procNFe_v3.10.xsd
769
+ - test/fixtures/product/schemas/procRemIndus_v1.00.xsd
770
+ - test/fixtures/product/schemas/resEvento_v1.00.xsd
771
+ - test/fixtures/product/schemas/resNFe_v1.00.xsd
772
+ - test/fixtures/product/schemas/retAtuCadEmiDFe_v1.01.xsd
773
+ - test/fixtures/product/schemas/retCancNFe_v2.00.xsd
774
+ - test/fixtures/product/schemas/retConsCad_v2.00.xsd
775
+ - test/fixtures/product/schemas/retConsDPEC_v1.01.xsd
776
+ - test/fixtures/product/schemas/retConsReciNFe_v2.00.xsd
777
+ - test/fixtures/product/schemas/retConsReciNFe_v3.10.xsd
778
+ - test/fixtures/product/schemas/retConsSitNFe_v2.01.xsd
779
+ - test/fixtures/product/schemas/retConsSitNFe_v3.10.xsd
780
+ - test/fixtures/product/schemas/retConsStatServ_v2.00.xsd
781
+ - test/fixtures/product/schemas/retConsStatServ_v3.10.xsd
782
+ - test/fixtures/product/schemas/retDPEC_v1.01.xsd
783
+ - test/fixtures/product/schemas/retDistDFeInt_v1.00.xsd
784
+ - test/fixtures/product/schemas/retDownloadNFe_v1.00.xsd
785
+ - test/fixtures/product/schemas/retEnvCCe_v1.00.xsd
786
+ - test/fixtures/product/schemas/retEnvCancelPProrrogNFe_v1.0.xsd
787
+ - test/fixtures/product/schemas/retEnvConfRecebto_v1.00.xsd
788
+ - test/fixtures/product/schemas/retEnvEPEC_v1.00.xsd
789
+ - test/fixtures/product/schemas/retEnvEventoCancNFe_v1.00.xsd
790
+ - test/fixtures/product/schemas/retEnvEvento_v1.00.xsd
791
+ - test/fixtures/product/schemas/retEnvFiscoNFe_v1.0.xsd
792
+ - test/fixtures/product/schemas/retEnvRemIndus_v1.00.xsd
793
+ - test/fixtures/product/schemas/retEnvSuframaInternaliza_v1.00.xsd
794
+ - test/fixtures/product/schemas/retEnvSuframaVistoria_v1.00.xsd
795
+ - test/fixtures/product/schemas/retEnviNFe_v2.00.xsd
796
+ - test/fixtures/product/schemas/retEnviNFe_v3.10.xsd
797
+ - test/fixtures/product/schemas/retEventoEPEC_v0.01.xsd
798
+ - test/fixtures/product/schemas/retInutNFe_v2.00.xsd
799
+ - test/fixtures/product/schemas/retInutNFe_v3.10.xsd
800
+ - test/fixtures/product/schemas/retPProrrogNFe_v1.0.xsd
801
+ - test/fixtures/product/schemas/retconsNFeDest_v1.01.xsd
802
+ - test/fixtures/product/schemas/tiposBasico_v1.03.xsd
803
+ - test/fixtures/product/schemas/tiposBasico_v1.03_OPENSSL.xsd
804
+ - test/fixtures/product/schemas/tiposBasico_v3.10.xsd
805
+ - test/fixtures/product/schemas/tiposBasico_v3.10_OPENSSL.xsd
806
+ - test/fixtures/product/schemas/tiposDistDFe_v1.00.xsd
807
+ - test/fixtures/product/schemas/xmldsig-core-schema_v1.01.xsd
808
+ - test/fixtures/product/wsdl/NFeRetAutorizacao.xml
809
+ - test/fixtures/product/wsdl/NfeAutorizacao.xml
810
+ - test/fixtures/product/wsdl/NfeConsulta2.xml
811
+ - test/fixtures/product/wsdl/NfeStatusServico2.xml
812
+ - test/fixtures/product/wsdl/nfeinutilizacao2.xml
416
813
  - test/fixtures/service/response/betha/v1/cancela_nfse/fault.xml
417
814
  - test/fixtures/service/response/betha/v1/cancela_nfse/success.xml
418
815
  - test/fixtures/service/response/betha/v1/consulta_lote_rps/fault.xml
@@ -473,6 +870,16 @@ files:
473
870
  - test/fixtures/service/thema/v1/cancelar_nfse_envio_signed.xml
474
871
  - test/fixtures/service/thema/v1/enviar_lote_rps.xml
475
872
  - test/fixtures/service/thema/v1/enviar_lote_rps_signed.xml
873
+ - test/fixtures/service/wsdl/betha/v1/cancelar_nfse.xml
874
+ - test/fixtures/service/wsdl/betha/v1/consultar_lote_rps.xml
875
+ - test/fixtures/service/wsdl/betha/v1/consultar_nfse.xml
876
+ - test/fixtures/service/wsdl/betha/v1/consultar_nfse_por_rps.xml
877
+ - test/fixtures/service/wsdl/betha/v1/consultar_situacao_lote_rps.xml
878
+ - test/fixtures/service/wsdl/betha/v1/recepcionar_lote_rps.xml
879
+ - test/fixtures/service/wsdl/simpliss/v1/nfseservice.xml
880
+ - test/fixtures/service/wsdl/thema/v1/nfse_cancelamento.xml
881
+ - test/fixtures/service/wsdl/thema/v1/nfse_consulta.xml
882
+ - test/fixtures/service/wsdl/thema/v1/nfse_remessa.xml
476
883
  - test/test_helper.rb
477
884
  homepage: https://github.com/Brunomm/br_nfe
478
885
  licenses:
@@ -514,11 +921,59 @@ test_files:
514
921
  - test/br_nfe/endereco_test.rb
515
922
  - test/br_nfe/helper/cpf_cnpj_test.rb
516
923
  - test/br_nfe/person_test.rb
517
- - test/br_nfe/product/base_test.rb
518
- - test/br_nfe/product/consulta_status_servico_test.rb
924
+ - test/br_nfe/product/destinatario_test.rb
519
925
  - test/br_nfe/product/emitente_test.rb
926
+ - test/br_nfe/product/evento/base_test.rb
927
+ - test/br_nfe/product/evento/cancelamento_test.rb
520
928
  - test/br_nfe/product/gateway/base_test.rb
929
+ - test/br_nfe/product/gateway/web_service_am_test.rb
930
+ - test/br_nfe/product/gateway/web_service_ba_test.rb
931
+ - test/br_nfe/product/gateway/web_service_ce_test.rb
932
+ - test/br_nfe/product/gateway/web_service_go_test.rb
933
+ - test/br_nfe/product/gateway/web_service_mg_test.rb
934
+ - test/br_nfe/product/gateway/web_service_ms_test.rb
935
+ - test/br_nfe/product/gateway/web_service_mt_test.rb
936
+ - test/br_nfe/product/gateway/web_service_pe_test.rb
937
+ - test/br_nfe/product/gateway/web_service_pr_test.rb
938
+ - test/br_nfe/product/gateway/web_service_rs_test.rb
939
+ - test/br_nfe/product/gateway/web_service_sp_test.rb
940
+ - test/br_nfe/product/gateway/web_service_svan_test.rb
941
+ - test/br_nfe/product/gateway/web_service_svc_an_test.rb
942
+ - test/br_nfe/product/gateway/web_service_svc_rs_test.rb
521
943
  - test/br_nfe/product/gateway/web_service_svrs_test.rb
944
+ - test/br_nfe/product/nfe/adicao_importacao_test.rb
945
+ - test/br_nfe/product/nfe/cobranca/duplicata_test.rb
946
+ - test/br_nfe/product/nfe/cobranca/fatura_test.rb
947
+ - test/br_nfe/product/nfe/cobranca/pagamento_test.rb
948
+ - test/br_nfe/product/nfe/declaracao_importacao_test.rb
949
+ - test/br_nfe/product/nfe/detalhe_exportacao_test.rb
950
+ - test/br_nfe/product/nfe/item_tax/cofins_st_test.rb
951
+ - test/br_nfe/product/nfe/item_tax/cofins_test.rb
952
+ - test/br_nfe/product/nfe/item_tax/icms_test.rb
953
+ - test/br_nfe/product/nfe/item_tax/icms_uf_destino_test.rb
954
+ - test/br_nfe/product/nfe/item_tax/importacao_test.rb
955
+ - test/br_nfe/product/nfe/item_tax/ipi_test.rb
956
+ - test/br_nfe/product/nfe/item_tax/issqn_test.rb
957
+ - test/br_nfe/product/nfe/item_tax/pis_st_test.rb
958
+ - test/br_nfe/product/nfe/item_tax/pis_test.rb
959
+ - test/br_nfe/product/nfe/item_test.rb
960
+ - test/br_nfe/product/nfe/processo_referencia_test.rb
961
+ - test/br_nfe/product/nfe/transporte/base_test.rb
962
+ - test/br_nfe/product/nfe/transporte/transportador_test.rb
963
+ - test/br_nfe/product/nfe/transporte/veiculo_test.rb
964
+ - test/br_nfe/product/nfe/transporte/volume_test.rb
965
+ - test/br_nfe/product/nota_fiscal_test.rb
966
+ - test/br_nfe/product/operation/base_test.rb
967
+ - test/br_nfe/product/operation/nfe_autorizacao_test.rb
968
+ - test/br_nfe/product/operation/nfe_consulta_protocolo_test.rb
969
+ - test/br_nfe/product/operation/nfe_download_nf_test.rb
970
+ - test/br_nfe/product/operation/nfe_inutilizacao_test.rb
971
+ - test/br_nfe/product/operation/nfe_recepcao_evento_test.rb
972
+ - test/br_nfe/product/operation/nfe_ret_autorizacao_test.rb
973
+ - test/br_nfe/product/operation/nfe_status_servico_test.rb
974
+ - test/br_nfe/product/response/base_test.rb
975
+ - test/br_nfe/product/response/build/base_test.rb
976
+ - test/br_nfe/product/response/nfe_ret_autorizacao_test.rb
522
977
  - test/br_nfe/service/association/have_intermediario_test.rb
523
978
  - test/br_nfe/service/association/have_rps_test.rb
524
979
  - test/br_nfe/service/base_test.rb
@@ -585,11 +1040,47 @@ test_files:
585
1040
  - test/factories/condicao_pagamento.rb
586
1041
  - test/factories/endereco.rb
587
1042
  - test/factories/person.rb
588
- - test/factories/product/base.rb
589
- - test/factories/product/consulta_status_servico.rb
1043
+ - test/factories/product/destinatario.rb
590
1044
  - test/factories/product/emitente.rb
1045
+ - test/factories/product/evento/base.rb
1046
+ - test/factories/product/evento/cancelamento.rb
591
1047
  - test/factories/product/gateway/base.rb
1048
+ - test/factories/product/gateway/web_service_am.rb
1049
+ - test/factories/product/gateway/web_service_ba.rb
592
1050
  - test/factories/product/gateway/web_service_svrs.rb
1051
+ - test/factories/product/nfe/adicao_importacao.rb
1052
+ - test/factories/product/nfe/cobranca/duplicata.rb
1053
+ - test/factories/product/nfe/cobranca/fatura.rb
1054
+ - test/factories/product/nfe/cobranca/pagamento.rb
1055
+ - test/factories/product/nfe/declaracao_importacao.rb
1056
+ - test/factories/product/nfe/detalhe_exportacao.rb
1057
+ - test/factories/product/nfe/item.rb
1058
+ - test/factories/product/nfe/item_tax/cofins.rb
1059
+ - test/factories/product/nfe/item_tax/cofins_st.rb
1060
+ - test/factories/product/nfe/item_tax/icms.rb
1061
+ - test/factories/product/nfe/item_tax/icms_uf_destino.rb
1062
+ - test/factories/product/nfe/item_tax/importacao.rb
1063
+ - test/factories/product/nfe/item_tax/ipi.rb
1064
+ - test/factories/product/nfe/item_tax/issqn.rb
1065
+ - test/factories/product/nfe/item_tax/pis.rb
1066
+ - test/factories/product/nfe/item_tax/pis_st.rb
1067
+ - test/factories/product/nfe/processo_referencia.rb
1068
+ - test/factories/product/nfe/transporte/base.rb
1069
+ - test/factories/product/nfe/transporte/transportador.rb
1070
+ - test/factories/product/nfe/transporte/veiculo.rb
1071
+ - test/factories/product/nfe/transporte/volume.rb
1072
+ - test/factories/product/nota_fiscal.rb
1073
+ - test/factories/product/operation/base.rb
1074
+ - test/factories/product/operation/nfe_autorizacao.rb
1075
+ - test/factories/product/operation/nfe_consulta_protocolo.rb
1076
+ - test/factories/product/operation/nfe_download_nf.rb
1077
+ - test/factories/product/operation/nfe_inutilizacao.rb
1078
+ - test/factories/product/operation/nfe_recepcao_evento.rb
1079
+ - test/factories/product/operation/nfe_ret_autorizacao.rb
1080
+ - test/factories/product/operation/nfe_status_servico.rb
1081
+ - test/factories/product/response/base.rb
1082
+ - test/factories/product/response/build/base.rb
1083
+ - test/factories/product/response/nfe_ret_autorizacao.rb
593
1084
  - test/factories/service/base.rb
594
1085
  - test/factories/service/betha/base.rb
595
1086
  - test/factories/service/betha/v1/cancela_nfse.rb
@@ -625,6 +1116,183 @@ test_files:
625
1116
  - test/factories/service/thema/v1/consulta_situacao_lote_rps.rb
626
1117
  - test/factories/service/thema/v1/recepcao_lote_rps.rb
627
1118
  - test/factories/service/thema/v1/recepcao_lote_rps_limitado.rb
1119
+ - test/fixtures/product/operation/nfe_autorizacao/nfe_signed.xml
1120
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/async_fail.xml
1121
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/async_success.xml
1122
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/nfe/with_proc.xml
1123
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/nfe/without_proc.xml
1124
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/original_xml.xml
1125
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/sync_fail.xml
1126
+ - test/fixtures/product/response/v3.10/nfe_autorizacao/sync_success.xml
1127
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_1.xml
1128
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_2.xml
1129
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_3.xml
1130
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_cancel.xml
1131
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/one_event.xml
1132
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/fail.xml
1133
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/nfe_original/with_proc.xml
1134
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/nfe_original/without_proc.xml
1135
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_many_with_cancel.xml
1136
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_many_without_cancel.xml
1137
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_one.xml
1138
+ - test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_without.xml
1139
+ - test/fixtures/product/response/v3.10/nfe_inutilizacao/fail.xml
1140
+ - test/fixtures/product/response/v3.10/nfe_inutilizacao/success.xml
1141
+ - test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/fail.xml
1142
+ - test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/success.xml
1143
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_fail.xml
1144
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_fail.xml
1145
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_fail_and_one_ok.xml
1146
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_ok.xml
1147
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_two_invoice_fail.xml
1148
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_two_invoice_ok.xml
1149
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_2_with_protocol.xml
1150
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_2_without_protocol.xml
1151
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_3_with_protocol.xml
1152
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_3_without_protocol.xml
1153
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/lot.xml
1154
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/nfe.xml
1155
+ - test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/nfeProc.xml
1156
+ - test/fixtures/product/response/v3.10/nfe_status_servico/fail.xml
1157
+ - test/fixtures/product/response/v3.10/nfe_status_servico/success.xml
1158
+ - test/fixtures/product/schemas/CCe_v1.00.xsd
1159
+ - test/fixtures/product/schemas/EPEC_v1.00.xsd
1160
+ - test/fixtures/product/schemas/LeiauteCadastroEmissorDFe_v1.01.xsd
1161
+ - test/fixtures/product/schemas/SuframaInternaliza_v1.00.xsd
1162
+ - test/fixtures/product/schemas/SuframaVistoria_v1.00.xsd
1163
+ - test/fixtures/product/schemas/atuCadEmiDFe_v1.01.xsd
1164
+ - test/fixtures/product/schemas/cabecMsg_v1.02.xsd
1165
+ - test/fixtures/product/schemas/cadEmiDFe_v1.01.xsd
1166
+ - test/fixtures/product/schemas/cancNFe_v2.00.xsd
1167
+ - test/fixtures/product/schemas/confRecebto_v1.00.xsd
1168
+ - test/fixtures/product/schemas/consCad_v2.00.xsd
1169
+ - test/fixtures/product/schemas/consDPEC_v1.01.xsd
1170
+ - test/fixtures/product/schemas/consNFeDest_v1.01.xsd
1171
+ - test/fixtures/product/schemas/consReciNFe_v2.00.xsd
1172
+ - test/fixtures/product/schemas/consReciNFe_v3.10.xsd
1173
+ - test/fixtures/product/schemas/consSitNFe_v2.01.xsd
1174
+ - test/fixtures/product/schemas/consSitNFe_v3.10.xsd
1175
+ - test/fixtures/product/schemas/consStatServ_v2.00.xsd
1176
+ - test/fixtures/product/schemas/consStatServ_v3.10.xsd
1177
+ - test/fixtures/product/schemas/distDFeInt_v1.00.xsd
1178
+ - test/fixtures/product/schemas/downloadNFe_v1.00.xsd
1179
+ - test/fixtures/product/schemas/e110110_v1.00.xsd
1180
+ - test/fixtures/product/schemas/e110111_v1.00.xsd
1181
+ - test/fixtures/product/schemas/e110140_v1.00.xsd
1182
+ - test/fixtures/product/schemas/e111500_v1.00.xsd
1183
+ - test/fixtures/product/schemas/e111501_v1.00.xsd
1184
+ - test/fixtures/product/schemas/e111502_v1.00.xsd
1185
+ - test/fixtures/product/schemas/e111503_v1.00.xsd
1186
+ - test/fixtures/product/schemas/e210200_v1.00.xsd
1187
+ - test/fixtures/product/schemas/e210210_v1.00.xsd
1188
+ - test/fixtures/product/schemas/e210220_v1.00.xsd
1189
+ - test/fixtures/product/schemas/e210240_v1.00.xsd
1190
+ - test/fixtures/product/schemas/e411500_v1.00.xsd
1191
+ - test/fixtures/product/schemas/e411501_v1.00.xsd
1192
+ - test/fixtures/product/schemas/e411502_v1.00.xsd
1193
+ - test/fixtures/product/schemas/e411503_v1.00.xsd
1194
+ - test/fixtures/product/schemas/e990900_v1.00.xsd
1195
+ - test/fixtures/product/schemas/e990910_v1.00.xsd
1196
+ - test/fixtures/product/schemas/envCCe_v1.00.xsd
1197
+ - test/fixtures/product/schemas/envCancelPProrrogNFe_v1.0.xsd
1198
+ - test/fixtures/product/schemas/envConfRecebto_v1.00.xsd
1199
+ - test/fixtures/product/schemas/envDPEC_v1.01.xsd
1200
+ - test/fixtures/product/schemas/envEPEC_v1.00.xsd
1201
+ - test/fixtures/product/schemas/envEventoCancNFe_v1.00.xsd
1202
+ - test/fixtures/product/schemas/envEvento_v1.00.xsd
1203
+ - test/fixtures/product/schemas/envFiscoNfe_v1.0.xsd
1204
+ - test/fixtures/product/schemas/envPProrrogNFe_v1.0.xsd
1205
+ - test/fixtures/product/schemas/envRemIndus_v1.00.xsd
1206
+ - test/fixtures/product/schemas/envSuframaInternaliza_v1.00.xsd
1207
+ - test/fixtures/product/schemas/envSuframaVistoria_v1.00.xsd
1208
+ - test/fixtures/product/schemas/enviNFe_v2.00.xsd
1209
+ - test/fixtures/product/schemas/enviNFe_v3.10.xsd
1210
+ - test/fixtures/product/schemas/eventoCancNFe_v1.00.xsd
1211
+ - test/fixtures/product/schemas/eventoEPEC_v0.01.xsd
1212
+ - test/fixtures/product/schemas/eventoEPEC_v1.00.xsd
1213
+ - test/fixtures/product/schemas/eventoRemIndus_v1.00.xsd
1214
+ - test/fixtures/product/schemas/inutNFe_v2.00.xsd
1215
+ - test/fixtures/product/schemas/inutNFe_v3.10.xsd
1216
+ - test/fixtures/product/schemas/leiauteCCe_v1.00.xsd
1217
+ - test/fixtures/product/schemas/leiauteCancNFe_v2.00.xsd
1218
+ - test/fixtures/product/schemas/leiauteConfRecebto_v1.00.xsd
1219
+ - test/fixtures/product/schemas/leiauteConsNFeDest_v1.01.xsd
1220
+ - test/fixtures/product/schemas/leiauteConsSitNFe_v2.01.xsd
1221
+ - test/fixtures/product/schemas/leiauteConsSitNFe_v3.10.xsd
1222
+ - test/fixtures/product/schemas/leiauteConsStatServ_v2.00.xsd
1223
+ - test/fixtures/product/schemas/leiauteConsStatServ_v3.10.xsd
1224
+ - test/fixtures/product/schemas/leiauteConsultaCadastro_v1.01.xsd
1225
+ - test/fixtures/product/schemas/leiauteConsultaCadastro_v2.00.xsd
1226
+ - test/fixtures/product/schemas/leiauteDPEC_v1.01.xsd
1227
+ - test/fixtures/product/schemas/leiauteDownloadNFe_v1.00.xsd
1228
+ - test/fixtures/product/schemas/leiauteEPEC_v1.00.xsd
1229
+ - test/fixtures/product/schemas/leiauteEventoCancNFe_v1.00.xsd
1230
+ - test/fixtures/product/schemas/leiauteEvento_v1.00.xsd
1231
+ - test/fixtures/product/schemas/leiauteInutNFe_v2.00.xsd
1232
+ - test/fixtures/product/schemas/leiauteInutNFe_v3.10.xsd
1233
+ - test/fixtures/product/schemas/leiauteNFe_v2.00.xsd
1234
+ - test/fixtures/product/schemas/leiauteNFe_v3.10.xsd
1235
+ - test/fixtures/product/schemas/leiauteRemIndus_v1.00.xsd
1236
+ - test/fixtures/product/schemas/leiauteSRE_v1.00.xsd
1237
+ - test/fixtures/product/schemas/leiauteSuframaInternaliza_v1.00.xsd
1238
+ - test/fixtures/product/schemas/leiauteSuframaVistoria_v1.00.xsd
1239
+ - test/fixtures/product/schemas/nfe_v2.00.xsd
1240
+ - test/fixtures/product/schemas/nfe_v3.10.xsd
1241
+ - test/fixtures/product/schemas/procCCeNFe_v1.00.xsd
1242
+ - test/fixtures/product/schemas/procCancNFe_v2.00.xsd
1243
+ - test/fixtures/product/schemas/procConfRecebtoNFe_v1.00.xsd
1244
+ - test/fixtures/product/schemas/procEPEC_v1.00.xsd
1245
+ - test/fixtures/product/schemas/procEventoCancNFe_v1.00.xsd
1246
+ - test/fixtures/product/schemas/procEventoNFe_v1.00.xsd
1247
+ - test/fixtures/product/schemas/procEventoNFe_v99.99.xsd
1248
+ - test/fixtures/product/schemas/procInutNFe_v2.00.xsd
1249
+ - test/fixtures/product/schemas/procInutNFe_v3.10.xsd
1250
+ - test/fixtures/product/schemas/procNFe_v2.00.xsd
1251
+ - test/fixtures/product/schemas/procNFe_v3.10.xsd
1252
+ - test/fixtures/product/schemas/procRemIndus_v1.00.xsd
1253
+ - test/fixtures/product/schemas/resEvento_v1.00.xsd
1254
+ - test/fixtures/product/schemas/resNFe_v1.00.xsd
1255
+ - test/fixtures/product/schemas/retAtuCadEmiDFe_v1.01.xsd
1256
+ - test/fixtures/product/schemas/retCancNFe_v2.00.xsd
1257
+ - test/fixtures/product/schemas/retConsCad_v2.00.xsd
1258
+ - test/fixtures/product/schemas/retConsDPEC_v1.01.xsd
1259
+ - test/fixtures/product/schemas/retConsReciNFe_v2.00.xsd
1260
+ - test/fixtures/product/schemas/retConsReciNFe_v3.10.xsd
1261
+ - test/fixtures/product/schemas/retConsSitNFe_v2.01.xsd
1262
+ - test/fixtures/product/schemas/retConsSitNFe_v3.10.xsd
1263
+ - test/fixtures/product/schemas/retConsStatServ_v2.00.xsd
1264
+ - test/fixtures/product/schemas/retConsStatServ_v3.10.xsd
1265
+ - test/fixtures/product/schemas/retDPEC_v1.01.xsd
1266
+ - test/fixtures/product/schemas/retDistDFeInt_v1.00.xsd
1267
+ - test/fixtures/product/schemas/retDownloadNFe_v1.00.xsd
1268
+ - test/fixtures/product/schemas/retEnvCCe_v1.00.xsd
1269
+ - test/fixtures/product/schemas/retEnvCancelPProrrogNFe_v1.0.xsd
1270
+ - test/fixtures/product/schemas/retEnvConfRecebto_v1.00.xsd
1271
+ - test/fixtures/product/schemas/retEnvEPEC_v1.00.xsd
1272
+ - test/fixtures/product/schemas/retEnvEventoCancNFe_v1.00.xsd
1273
+ - test/fixtures/product/schemas/retEnvEvento_v1.00.xsd
1274
+ - test/fixtures/product/schemas/retEnvFiscoNFe_v1.0.xsd
1275
+ - test/fixtures/product/schemas/retEnvRemIndus_v1.00.xsd
1276
+ - test/fixtures/product/schemas/retEnvSuframaInternaliza_v1.00.xsd
1277
+ - test/fixtures/product/schemas/retEnvSuframaVistoria_v1.00.xsd
1278
+ - test/fixtures/product/schemas/retEnviNFe_v2.00.xsd
1279
+ - test/fixtures/product/schemas/retEnviNFe_v3.10.xsd
1280
+ - test/fixtures/product/schemas/retEventoEPEC_v0.01.xsd
1281
+ - test/fixtures/product/schemas/retInutNFe_v2.00.xsd
1282
+ - test/fixtures/product/schemas/retInutNFe_v3.10.xsd
1283
+ - test/fixtures/product/schemas/retPProrrogNFe_v1.0.xsd
1284
+ - test/fixtures/product/schemas/retconsNFeDest_v1.01.xsd
1285
+ - test/fixtures/product/schemas/tiposBasico_v1.03.xsd
1286
+ - test/fixtures/product/schemas/tiposBasico_v1.03_OPENSSL.xsd
1287
+ - test/fixtures/product/schemas/tiposBasico_v3.10.xsd
1288
+ - test/fixtures/product/schemas/tiposBasico_v3.10_OPENSSL.xsd
1289
+ - test/fixtures/product/schemas/tiposDistDFe_v1.00.xsd
1290
+ - test/fixtures/product/schemas/xmldsig-core-schema_v1.01.xsd
1291
+ - test/fixtures/product/wsdl/NFeRetAutorizacao.xml
1292
+ - test/fixtures/product/wsdl/NfeAutorizacao.xml
1293
+ - test/fixtures/product/wsdl/NfeConsulta2.xml
1294
+ - test/fixtures/product/wsdl/NfeStatusServico2.xml
1295
+ - test/fixtures/product/wsdl/nfeinutilizacao2.xml
628
1296
  - test/fixtures/service/response/betha/v1/cancela_nfse/fault.xml
629
1297
  - test/fixtures/service/response/betha/v1/cancela_nfse/success.xml
630
1298
  - test/fixtures/service/response/betha/v1/consulta_lote_rps/fault.xml
@@ -685,4 +1353,14 @@ test_files:
685
1353
  - test/fixtures/service/thema/v1/cancelar_nfse_envio_signed.xml
686
1354
  - test/fixtures/service/thema/v1/enviar_lote_rps.xml
687
1355
  - test/fixtures/service/thema/v1/enviar_lote_rps_signed.xml
1356
+ - test/fixtures/service/wsdl/betha/v1/cancelar_nfse.xml
1357
+ - test/fixtures/service/wsdl/betha/v1/consultar_lote_rps.xml
1358
+ - test/fixtures/service/wsdl/betha/v1/consultar_nfse.xml
1359
+ - test/fixtures/service/wsdl/betha/v1/consultar_nfse_por_rps.xml
1360
+ - test/fixtures/service/wsdl/betha/v1/consultar_situacao_lote_rps.xml
1361
+ - test/fixtures/service/wsdl/betha/v1/recepcionar_lote_rps.xml
1362
+ - test/fixtures/service/wsdl/simpliss/v1/nfseservice.xml
1363
+ - test/fixtures/service/wsdl/thema/v1/nfse_cancelamento.xml
1364
+ - test/fixtures/service/wsdl/thema/v1/nfse_consulta.xml
1365
+ - test/fixtures/service/wsdl/thema/v1/nfse_remessa.xml
688
1366
  - test/test_helper.rb