br_nfe 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (199) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/br_nfe/active_model_base.rb +0 -5
  4. data/lib/br_nfe/base.rb +116 -7
  5. data/lib/br_nfe/helper/values_ts/service_v1.rb +15 -11
  6. data/lib/br_nfe/response/service/build_response.rb +230 -53
  7. data/lib/br_nfe/response/service/nota_fiscal.rb +9 -0
  8. data/lib/br_nfe/response/service/paths/base.rb +93 -59
  9. data/lib/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta.rb +2 -2
  10. data/lib/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta.rb +2 -2
  11. data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta.rb +2 -2
  12. data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta.rb +2 -2
  13. data/lib/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta.rb +4 -4
  14. data/lib/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta.rb +8 -8
  15. data/lib/br_nfe/response/service/paths/v1/tc_nfse.rb +201 -57
  16. data/lib/br_nfe/service/base.rb +104 -5
  17. data/lib/br_nfe/service/betha/base.rb +5 -0
  18. data/lib/br_nfe/service/betha/v1/cancelamento_nfs.rb +1 -4
  19. data/lib/br_nfe/service/betha/v1/consulta_lote_rps.rb +1 -4
  20. data/lib/br_nfe/service/betha/v1/consulta_nfs_por_rps.rb +1 -4
  21. data/lib/br_nfe/service/betha/v1/consulta_nfse.rb +1 -4
  22. data/lib/br_nfe/service/betha/v1/consulta_situacao_lote_rps.rb +1 -3
  23. data/lib/br_nfe/service/betha/v1/gateway.rb +1 -1
  24. data/lib/br_nfe/service/betha/v1/recepcao_lote_rps.rb +1 -3
  25. data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta.rb +5 -1
  26. data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta.rb +5 -1
  27. data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +5 -1
  28. data/lib/br_nfe/service/concerns/rules/cancelamento_nfs.rb +5 -0
  29. data/lib/br_nfe/service/rps.rb +13 -4
  30. data/lib/br_nfe/service/simpliss/v1/base.rb +79 -0
  31. data/lib/br_nfe/service/simpliss/v1/cancela_nfse.rb +30 -0
  32. data/lib/br_nfe/service/simpliss/v1/consulta_lote_rps.rb +38 -0
  33. data/lib/br_nfe/service/simpliss/v1/consulta_nfs_por_rps.rb +31 -0
  34. data/lib/br_nfe/service/simpliss/v1/consulta_nfse.rb +30 -0
  35. data/lib/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps.rb +29 -0
  36. data/lib/br_nfe/service/simpliss/v1/recepcao_lote_rps.rb +35 -0
  37. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_cancelar_nfse_resposta.rb +22 -0
  38. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_lote_rps_resposta.rb +25 -0
  39. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_resposta.rb +25 -0
  40. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +25 -0
  41. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_situacao_lote_rps_resposta.rb +31 -0
  42. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_enviar_lote_rps_resposta.rb +36 -0
  43. data/lib/br_nfe/service/simpliss/v1/xml/_login.xml.slim +3 -0
  44. data/lib/br_nfe/service/simpliss/v1/xml/_tc_dados_servico.xml.slim +18 -0
  45. data/lib/br_nfe/service/simpliss/v1/xml/_tc_item_servico.xml.slim +3 -0
  46. data/lib/br_nfe/service/simpliss/v1/xml/servico_cancelar_nfse_envio.xml.slim +11 -0
  47. data/lib/br_nfe/service/simpliss/v1/xml/servico_consultar_lote_rps_envio.xml.slim +7 -0
  48. data/lib/br_nfe/service/simpliss/v1/xml/servico_consultar_nfse_envio.xml.slim +22 -0
  49. data/lib/br_nfe/service/simpliss/v1/xml/servico_consultar_nfse_rps_envio.xml.slim +8 -0
  50. data/lib/br_nfe/service/simpliss/v1/xml/servico_consultar_situacao_lote_rps_envio.xml.slim +7 -0
  51. data/lib/br_nfe/service/simpliss/v1/xml/servico_enviar_lote_rps_envio.xml.slim +11 -0
  52. data/lib/br_nfe/service/thema/v1/base.rb +48 -2
  53. data/lib/br_nfe/service/thema/v1/cancela_nfse.rb +14 -5
  54. data/lib/br_nfe/service/thema/v1/consulta_lote_rps.rb +5 -4
  55. data/lib/br_nfe/service/thema/v1/consulta_nfs_por_rps.rb +5 -4
  56. data/lib/br_nfe/service/thema/v1/consulta_nfse.rb +5 -4
  57. data/lib/br_nfe/service/thema/v1/consulta_situacao_lote_rps.rb +1 -4
  58. data/lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb +19 -5
  59. data/lib/br_nfe/service/thema/v1/recepcao_lote_rps_limitado.rb +1 -1
  60. data/lib/br_nfe/service/thema/v1/response_paths/servico_cancelar_nfse_resposta.rb +17 -0
  61. data/lib/br_nfe/service/thema/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +19 -0
  62. data/lib/br_nfe/service/xml/v1/_tc_contato.xml.slim +2 -2
  63. data/lib/br_nfe/service/xml/v1/_tc_cpf_cnpj.xml.slim +2 -2
  64. data/lib/br_nfe/service/xml/v1/_tc_dados_construcao_civil.xml.slim +2 -2
  65. data/lib/br_nfe/service/xml/v1/_tc_dados_prestador.xml.slim +5 -5
  66. data/lib/br_nfe/service/xml/v1/_tc_dados_servico.xml.slim +6 -6
  67. data/lib/br_nfe/service/xml/v1/_tc_dados_tomador.xml.slim +4 -4
  68. data/lib/br_nfe/service/xml/v1/_tc_endereco.xml.slim +7 -7
  69. data/lib/br_nfe/service/xml/v1/_tc_identificacao_intermediario_servico.xml.slim +3 -3
  70. data/lib/br_nfe/service/xml/v1/_tc_identificacao_nfse.xml.slim +4 -4
  71. data/lib/br_nfe/service/xml/v1/_tc_identificacao_orgao_gerador.xml.slim +2 -2
  72. data/lib/br_nfe/service/xml/v1/_tc_identificacao_prestador.xml.slim +2 -2
  73. data/lib/br_nfe/service/xml/v1/_tc_identificacao_rps.xml.slim +3 -3
  74. data/lib/br_nfe/service/xml/v1/_tc_identificacao_tomador.xml.slim +2 -2
  75. data/lib/br_nfe/service/xml/v1/_tc_inf_pedido_cancelamento.xml.slim +2 -2
  76. data/lib/br_nfe/service/xml/v1/_tc_inf_rps.xml.slim +13 -13
  77. data/lib/br_nfe/service/xml/v1/_tc_lote_rps.xml.slim +6 -6
  78. data/lib/br_nfe/service/xml/v1/_tc_pedido_cancelamento.xml.slim +1 -1
  79. data/lib/br_nfe/service/xml/v1/_tc_rps.xml.slim +2 -2
  80. data/lib/br_nfe/service/xml/v1/_tc_valores.xml.slim +16 -17
  81. data/lib/br_nfe/service/xml/v1/servico_cancelar_nfse_envio.xml.slim +3 -4
  82. data/lib/br_nfe/service/xml/v1/servico_consultar_lote_rps_envio.xml.slim +3 -3
  83. data/lib/br_nfe/service/xml/v1/servico_consultar_nfse_envio.xml.slim +8 -8
  84. data/lib/br_nfe/service/xml/v1/servico_consultar_nfse_rps_envio.xml.slim +3 -3
  85. data/lib/br_nfe/service/xml/v1/servico_consultar_situacao_lote_rps_envio.xml.slim +3 -3
  86. data/lib/br_nfe/service/xml/v1/servico_enviar_lote_rps_envio.xml.slim +3 -3
  87. data/lib/br_nfe/version.rb +1 -1
  88. data/lib/br_nfe/xml/_signed_info_sh1.xml.slim +9 -9
  89. data/lib/br_nfe/xml/signature_sh1.xml.slim +5 -5
  90. data/lib/br_nfe.rb +26 -10
  91. data/test/br_nfe/base_test.rb +5 -5
  92. data/test/br_nfe/helper/values_ts/service_v1_test.rb +376 -0
  93. data/test/br_nfe/response/service/build_response_test.rb +1 -173
  94. data/test/br_nfe/response/service/paths/base_test.rb +61 -64
  95. data/test/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta_test.rb +2 -2
  96. data/test/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta_test.rb +2 -2
  97. data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta_test.rb +2 -2
  98. data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta_test.rb +2 -2
  99. data/test/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta_test.rb +3 -3
  100. data/test/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta_test.rb +4 -4
  101. data/test/br_nfe/response/service/paths/v1/tc_nfse_test.rb +27 -31
  102. data/test/br_nfe/service/base_test.rb +206 -11
  103. data/test/br_nfe/service/betha/base_test.rb +9 -0
  104. data/test/br_nfe/service/betha/v1/cancelamento_nfs_test.rb +0 -6
  105. data/test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb +0 -6
  106. data/test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb +0 -4
  107. data/test/br_nfe/service/betha/v1/consulta_nfse_test.rb +0 -4
  108. data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +1 -5
  109. data/test/br_nfe/service/betha/v1/gateway_test.rb +4 -2
  110. data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +0 -4
  111. data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta_test.rb +1 -1
  112. data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta_test.rb +1 -1
  113. data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta_test.rb +1 -1
  114. data/test/br_nfe/service/rps_test.rb +39 -6
  115. data/test/br_nfe/service/simpliss/v1/base_test.rb +102 -0
  116. data/test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb +97 -0
  117. data/test/br_nfe/service/simpliss/v1/consulta_lote_rps_test.rb +241 -0
  118. data/test/br_nfe/service/simpliss/v1/consulta_nfs_por_rps_test.rb +239 -0
  119. data/test/br_nfe/service/simpliss/v1/consulta_nfse_test.rb +226 -0
  120. data/test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb +122 -0
  121. data/test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb +105 -0
  122. data/test/br_nfe/service/simpliss/v1/xsd/nfse_3.xsd +735 -0
  123. data/test/br_nfe/service/simpliss/v1/xsd/xmldsig-core-schema20020212.xsd +318 -0
  124. data/test/br_nfe/service/thema/v1/base_test.rb +23 -2
  125. data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +69 -3
  126. data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +134 -4
  127. data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +131 -4
  128. data/test/br_nfe/service/thema/v1/consulta_nfse_test.rb +214 -4
  129. data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +97 -4
  130. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb +109 -0
  131. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +72 -4
  132. data/test/factories/service/rps.rb +17 -16
  133. data/test/factories/service/{sc/gaspar/recepcao_lote_rps_limitado.rb → simpliss/v1/base.rb} +1 -3
  134. data/test/factories/service/{sc/gaspar → simpliss/v1}/cancela_nfse.rb +2 -2
  135. data/test/factories/service/simpliss/v1/consulta_lote_rps.rb +7 -0
  136. data/test/factories/service/{sc/gaspar → simpliss/v1}/consulta_nfs_por_rps.rb +1 -1
  137. data/test/factories/service/{sc/gaspar → simpliss/v1}/consulta_nfse.rb +1 -1
  138. data/test/factories/service/simpliss/v1/consulta_situacao_lote_rps.rb +6 -0
  139. data/test/factories/service/{sc/gaspar → simpliss/v1}/recepcao_lote_rps.rb +1 -1
  140. data/test/fixtures/service/response/simpliss/v1/cancela_nfse/fault.xml +21 -0
  141. data/test/fixtures/service/response/simpliss/v1/cancela_nfse/success.xml +26 -0
  142. data/test/fixtures/service/response/simpliss/v1/consulta_lote_rps/fault.xml +21 -0
  143. data/test/fixtures/service/response/simpliss/v1/consulta_lote_rps/nfse_complete.xml +134 -0
  144. data/test/fixtures/service/response/simpliss/v1/consulta_lote_rps/nfse_simple.xml +100 -0
  145. data/test/fixtures/service/response/simpliss/v1/consulta_nfse/fault.xml +16 -0
  146. data/test/fixtures/service/response/simpliss/v1/consulta_nfse/nfs_empty.xml +10 -0
  147. data/test/fixtures/service/response/simpliss/v1/consulta_nfse/nfse_complete.xml +134 -0
  148. data/test/fixtures/service/response/simpliss/v1/consulta_nfse/nfse_simple.xml +100 -0
  149. data/test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/fault.xml +16 -0
  150. data/test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/nfse_complete.xml +132 -0
  151. data/test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/nfse_simple.xml +98 -0
  152. data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/error.xml +11 -0
  153. data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/fault.xml +16 -0
  154. data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/success.xml +11 -0
  155. data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/unprocessed.xml +11 -0
  156. data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/unreceived.xml +11 -0
  157. data/test/fixtures/service/response/simpliss/v1/recepcao_lote_rps/error.xml +16 -0
  158. data/test/fixtures/service/response/simpliss/v1/recepcao_lote_rps/success.xml +12 -0
  159. data/test/fixtures/service/response/thema/v1/cancela_nfse/fault.xml +33 -0
  160. data/test/fixtures/service/response/thema/v1/cancela_nfse/success.xml +30 -0
  161. data/test/fixtures/service/response/thema/v1/consulta_lote_rps/fault.xml +19 -0
  162. data/test/fixtures/service/response/thema/v1/consulta_lote_rps/nfse_complete.xml +109 -0
  163. data/test/fixtures/service/response/thema/v1/consulta_nfse/fault.xml +20 -0
  164. data/test/fixtures/service/response/thema/v1/consulta_nfse/nfs_empty.xml +14 -0
  165. data/test/fixtures/service/response/thema/v1/consulta_nfse/nfse_complete.xml +111 -0
  166. data/test/fixtures/service/response/thema/v1/consulta_nfse/nfse_simple.xml +111 -0
  167. data/test/fixtures/service/response/thema/v1/consulta_nfse_por_rps/fault.xml +23 -0
  168. data/test/fixtures/service/response/thema/v1/consulta_nfse_por_rps/nfse_complete.xml +110 -0
  169. data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/error.xml +14 -0
  170. data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/fault.xml +15 -0
  171. data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/success.xml +14 -0
  172. data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/unprocessed.xml +14 -0
  173. data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/unreceived.xml +19 -0
  174. data/test/fixtures/service/response/thema/v1/recepcao_lote_rps/error.xml +17 -0
  175. data/test/fixtures/service/response/thema/v1/recepcao_lote_rps/success.xml +15 -0
  176. data/test/fixtures/service/response/thema/v1/recepcao_lote_rps_limitado/error.xml +19 -0
  177. data/test/fixtures/service/response/thema/v1/recepcao_lote_rps_limitado/success.xml +15 -0
  178. data/test/fixtures/service/thema/v1/cancelar_nfse_envio.xml +1 -0
  179. data/test/fixtures/service/thema/v1/cancelar_nfse_envio_signed.xml +2 -0
  180. data/test/fixtures/service/thema/v1/enviar_lote_rps.xml +1 -0
  181. data/test/fixtures/service/thema/v1/enviar_lote_rps_signed.xml +2 -0
  182. data/test/test_helper.rb +5 -0
  183. metadata +146 -37
  184. data/lib/br_nfe/service/sc/gaspar/cancela_nfse.rb +0 -13
  185. data/lib/br_nfe/service/sc/gaspar/consulta_lote_rps.rb +0 -13
  186. data/lib/br_nfe/service/sc/gaspar/consulta_nfs_por_rps.rb +0 -13
  187. data/lib/br_nfe/service/sc/gaspar/consulta_nfse.rb +0 -17
  188. data/lib/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps.rb +0 -13
  189. data/lib/br_nfe/service/sc/gaspar/recepcao_lote_rps.rb +0 -13
  190. data/lib/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado.rb +0 -13
  191. data/test/br_nfe/service/sc/gaspar/cancela_nfse_test.rb +0 -21
  192. data/test/br_nfe/service/sc/gaspar/consulta_nfs_por_rps_test.rb +0 -21
  193. data/test/br_nfe/service/sc/gaspar/consulta_nfse_test.rb +0 -21
  194. data/test/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps_test.rb +0 -21
  195. data/test/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado_test.rb +0 -22
  196. data/test/br_nfe/service/sc/gaspar/recepcao_lote_rps_test.rb +0 -22
  197. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test_limitado.rb +0 -50
  198. data/test/factories/service/sc/gaspar/consulta_lote_rps.rb +0 -7
  199. data/test/factories/service/sc/gaspar/consulta_situacao_lote_rps.rb +0 -6
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <soapenv:Body>
4
+ <ns:recepcionarLoteRpsResponse xmlns:ns="http://server.nfse.thema.inf.br">
5
+ <ns:return>&lt;?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?&gt;
6
+ &lt;EnviarLoteRpsResposta xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd"&gt;
7
+ &lt;NumeroLote&gt;17&lt;/NumeroLote&gt;
8
+ &lt;DataRecebimento&gt;2016-08-15T14:55:01.271Z&lt;/DataRecebimento&gt;
9
+ &lt;Protocolo&gt;2916414&lt;/Protocolo&gt;
10
+ &lt;ListaMensagemRetorno/&gt;
11
+ &lt;/EnviarLoteRpsResposta&gt;
12
+ </ns:return>
13
+ </ns:recepcionarLoteRpsResponse>
14
+ </soapenv:Body>
15
+ </soapenv:Envelope>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <soapenv:Body>
4
+ <ns:recepcionarLoteRpsLimitadoResponse xmlns:ns="http://server.nfse.thema.inf.br">
5
+ <ns:return>&lt;?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?&gt;
6
+ &lt;EnviarLoteRpsResposta xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd"&gt;
7
+ &lt;NumeroLote&gt;14&lt;/NumeroLote&gt;
8
+ &lt;DataRecebimento&gt;2016-08-15T17:22:32.796Z&lt;/DataRecebimento&gt;
9
+ &lt;Protocolo&gt;2916418&lt;/Protocolo&gt;
10
+ &lt;ListaMensagemRetorno&gt;
11
+ &lt;MensagemRetorno&gt;
12
+ &lt;Codigo&gt;E500&lt;/Codigo&gt;
13
+ &lt;Mensagem&gt;E500-Número de Lote já informado em outras remessas&lt;/Mensagem&gt;
14
+ &lt;/MensagemRetorno&gt;
15
+ &lt;/ListaMensagemRetorno&gt;
16
+ &lt;/EnviarLoteRpsResposta&gt;
17
+ </ns:return>
18
+ </ns:recepcionarLoteRpsLimitadoResponse>
19
+ </soapenv:Body>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <soapenv:Body>
4
+ <ns:recepcionarLoteRpsLimitadoResponse xmlns:ns="http://server.nfse.thema.inf.br">
5
+ <ns:return>&lt;?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?&gt;
6
+ &lt;EnviarLoteRpsResposta xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd"&gt;
7
+ &lt;NumeroLote&gt;14&lt;/NumeroLote&gt;
8
+ &lt;DataRecebimento&gt;2016-08-15T17:21:35.725Z&lt;/DataRecebimento&gt;
9
+ &lt;Protocolo&gt;2916417&lt;/Protocolo&gt;
10
+ &lt;ListaMensagemRetorno/&gt;
11
+ &lt;/EnviarLoteRpsResposta&gt;
12
+ </ns:return>
13
+ </ns:recepcionarLoteRpsLimitadoResponse>
14
+ </soapenv:Body>
15
+ </soapenv:Envelope>
@@ -0,0 +1 @@
1
+ <CancelarNfseEnvio xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd"><Pedido><InfPedidoCancelamento id="C5544"><IdentificacaoNfse><Numero>201600000000005</Numero><Cnpj>03514738000165</Cnpj><InscricaoMunicipal>135408</InscricaoMunicipal><CodigoMunicipio>4205902</CodigoMunicipio></IdentificacaoNfse><CodigoCancelamento>E506</CodigoCancelamento></InfPedidoCancelamento></Pedido></CancelarNfseEnvio>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="ISO-8859-1"?>
2
+ <CancelarNfseEnvio xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd"><Pedido><InfPedidoCancelamento xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" id="C5544" wsu:Id="C5544"><IdentificacaoNfse><Numero>201600000000005</Numero><Cnpj>03514738000165</Cnpj><InscricaoMunicipal>135408</InscricaoMunicipal><CodigoMunicipio>4205902</CodigoMunicipio></IdentificacaoNfse><CodigoCancelamento>E506</CodigoCancelamento></InfPedidoCancelamento></Pedido><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI="#C5544"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>3qveVK0vdMsICxVJ9rvIdLMdNj0=</DigestValue></Reference></SignedInfo><SignatureValue>Kf5O1zsQHdslEgs7yxwqb7F5HCXo0Bgp/C8muOI92CtFzUrMi532O/7ibRSBkRDD7ZJmH/aqzN9pvx+iGr1tqDIL+lL036J/qs9SIvbk/fN1Dkz2JXy6ozz7IKjjQv2UMIVF2mXhmc79tiGd+ubu47FAxJY6Qg3kYJO5D2EptRE=</SignatureValue><KeyInfo><X509Data><X509IssuerSerial><X509IssuerName>C=BR,ST=RS,L=Porto Alegre,O=Teste Projeto NFe RS,OU=Teste Projeto NFe RS,CN=NFe - AC Intermediaria 1</X509IssuerName><X509SerialNumber>3225656</X509SerialNumber></X509IssuerSerial><X509Certificate>MIIEqzCCA5OgAwIBAgIDMTg4MA0GCSqGSIb3DQEBBQUAMIGSMQswCQYDVQQGEwJCUjELMAkGA1UECBMCUlMxFTATBgNVBAcTDFBvcnRvIEFsZWdyZTEdMBsGA1UEChMUVGVzdGUgUHJvamV0byBORmUgUlMxHTAbBgNVBAsTFFRlc3RlIFByb2pldG8gTkZlIFJTMSEwHwYDVQQDExhORmUgLSBBQyBJbnRlcm1lZGlhcmlhIDEwHhcNMDkwNTIyMTcwNzAzWhcNMTAxMDAyMTcwNzAzWjCBnjELMAkGA1UECBMCUlMxHTAbBgNVBAsTFFRlc3RlIFByb2pldG8gTkZlIFJTMR0wGwYDVQQKExRUZXN0ZSBQcm9qZXRvIE5GZSBSUzEVMBMGA1UEBxMMUE9SVE8gQUxFR1JFMQswCQYDVQQGEwJCUjEtMCsGA1UEAxMkTkZlIC0gQXNzb2NpYWNhbyBORi1lOjk5OTk5MDkwOTEwMjcwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCx1O/e1Q+xh+wCoxa4pr/5aEFt2dEX9iBJyYu/2a78emtorZKbWeyK435SRTbHxHSjqe1sWtIhXBaFa2dHiukT1WJyoAcXwB1GtxjT2VVESQGtRiujMa+opus6dufJJl7RslAjqN/ZPxcBXaezt0nHvnUB/uB1K8WT9G7ES0V17wIDAQABo4IBfjCCAXowIgYDVR0jAQEABBgwFoAUPT5TqhNWAm+ZpcVsvB7malDBjEQwDwYDVR0TAQH/BAUwAwEBADAPBgNVHQ8BAf8EBQMDAOAAMAwGA1UdIAEBAAQCMAAwgawGA1UdEQEBAASBoTCBnqA4BgVgTAEDBKAvBC0yMjA4MTk3Nzk5OTk5OTk5OTk5MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDCgEgYFYEwBAwKgCQQHREZULU5GZaAZBgVgTAEDA6AQBA45OTk5OTA5MDkxMDI3MKAXBgVgTAEDB6AOBAwwMDAwMDAwMDAwMDCBGmRmdC1uZmVAcHJvY2VyZ3MucnMuZ292LmJyMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMCBggrBgEFBQcDBDBTBgNVHR8BAQAESTBHMEWgQ6BBhj9odHRwOi8vbmZlY2VydGlmaWNhZG8uc2VmYXoucnMuZ292LmJyL0xDUi9BQ0ludGVybWVkaWFyaWEzOC5jcmwwDQYJKoZIhvcNAQEFBQADggEBAJFytXuiS02eJO0iMQr/Hi+Ox7/vYiPewiDL7s5EwO8A9jKx9G2Baz0KEjcdaeZk9a2NzDEgX9zboPxhw0RkWahVCP2xvRFWswDIa2WRUT/LHTEuTeKCJ0iF/um/kYM8PmWxPsDWzvsCCRp146lc0lz9LGm5ruPVYPZ/7DAoimUk3bdCMW/rzkVYg7iitxHrhklxH7YWQHUwbcqPt7Jv0RJxclc1MhQlV2eM2MO1iIlk8Eti86dRrJVoicR1bwc6/YDqDp4PFONTi1ddewRu6elGS74AzCcNYRSVTINYiZLpBZO0uivrnTEnsFguVnNtWb9MAHGt3tkR0gAVs6S0fm8=</X509Certificate></X509Data></KeyInfo></Signature></CancelarNfseEnvio>
@@ -0,0 +1 @@
1
+ <EnviarLoteRpsEnvio xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd"><LoteRps id="L9"><NumeroLote>9</NumeroLote><Cnpj>12345678901234</Cnpj><InscricaoMunicipal>135408</InscricaoMunicipal><QuantidadeRps>2</QuantidadeRps><ListaRps><Rps><InfRps id="R9"><IdentificacaoRps><Numero>9</Numero><Serie>SN</Serie><Tipo>1</Tipo></IdentificacaoRps><DataEmissao>2016-08-12T18:17:31</DataEmissao><NaturezaOperacao>59</NaturezaOperacao><RegimeEspecialTributacao>1</RegimeEspecialTributacao><OptanteSimplesNacional>1</OptanteSimplesNacional><IncentivadorCultural>2</IncentivadorCultural><Status>1</Status><Servico><Valores><ValorServicos>10.0</ValorServicos><IssRetido>2</IssRetido><ValorIss>0.2</ValorIss><BaseCalculo>10.0</BaseCalculo><Aliquota>0.02</Aliquota><ValorLiquidoNfse>10.0</ValorLiquidoNfse></Valores><ItemListaServico>1.07</ItemListaServico><CodigoCnae>6202300</CodigoCnae><Discriminacao>SERVICO DE COMINICACAO WEB DIGITAL 1.700,00</Discriminacao><CodigoMunicipio>4204202</CodigoMunicipio></Servico><Prestador><Cnpj>12345678901234</Cnpj><InscricaoMunicipal>135408</InscricaoMunicipal></Prestador><Tomador><IdentificacaoTomador><CpfCnpj><Cpf>07456193983</Cpf></CpfCnpj></IdentificacaoTomador><RazaoSocial>BRUNO MUCELINI MERGEN</RazaoSocial><Endereco><Endereco>RUA IGUACU E</Endereco><Numero>587</Numero><Bairro>SAIC</Bairro><CodigoMunicipio>4204202</CodigoMunicipio><Uf>SC</Uf><Cep>89802171</Cep></Endereco><Contato><Telefone>4920493900</Telefone><Email>brunomergen@gmail.com</Email></Contato></Tomador></InfRps></Rps><Rps><InfRps id="R10"><IdentificacaoRps><Numero>10</Numero><Serie>SN</Serie><Tipo>1</Tipo></IdentificacaoRps><DataEmissao>2016-08-12T18:17:31</DataEmissao><NaturezaOperacao>59</NaturezaOperacao><RegimeEspecialTributacao>1</RegimeEspecialTributacao><OptanteSimplesNacional>1</OptanteSimplesNacional><IncentivadorCultural>2</IncentivadorCultural><Status>1</Status><Servico><Valores><ValorServicos>1700.0</ValorServicos><ValorDeducoes>7.0</ValorDeducoes><ValorPis>1.12</ValorPis><ValorCofins>2.12</ValorCofins><ValorInss>3.12</ValorInss><ValorIr>4.12</ValorIr><ValorCsll>5.12</ValorCsll><IssRetido>2</IssRetido><ValorIss>33.72</ValorIss><OutrasRetencoes>6.12</OutrasRetencoes><BaseCalculo>1685.88</BaseCalculo><Aliquota>0.02</Aliquota><ValorLiquidoNfse>1663.02</ValorLiquidoNfse><DescontoIncondicionado>7.12</DescontoIncondicionado><DescontoCondicionado>8.12</DescontoCondicionado></Valores><ItemListaServico>1.07</ItemListaServico><CodigoCnae>6202300</CodigoCnae><CodigoTributacaoMunicipio>6699</CodigoTributacaoMunicipio><Discriminacao>SERVICO DE COMINICACAO WEB DIGITAL 1.700,00</Discriminacao><CodigoMunicipio>4204202</CodigoMunicipio></Servico><Prestador><Cnpj>12345678901234</Cnpj><InscricaoMunicipal>135408</InscricaoMunicipal></Prestador><Tomador><IdentificacaoTomador><CpfCnpj><Cpf>07456193983</Cpf></CpfCnpj></IdentificacaoTomador><RazaoSocial>BRUNO MUCELINI MERGEN</RazaoSocial><Endereco><Endereco>RUA IGUACU E</Endereco><Numero>587</Numero><Bairro>SAIC</Bairro><CodigoMunicipio>4204202</CodigoMunicipio><Uf>SC</Uf><Cep>89802171</Cep></Endereco><Contato><Telefone>4920493900</Telefone><Email>brunomergen@gmail.com</Email></Contato></Tomador><ConstrucaoCivil><CodigoObra>66</CodigoObra><Art>223</Art></ConstrucaoCivil></InfRps></Rps></ListaRps></LoteRps></EnviarLoteRpsEnvio>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="ISO-8859-1"?>
2
+ <EnviarLoteRpsEnvio xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd"><LoteRps xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" id="L9" wsu:Id="L9"><NumeroLote>9</NumeroLote><Cnpj>12345678901234</Cnpj><InscricaoMunicipal>135408</InscricaoMunicipal><QuantidadeRps>2</QuantidadeRps><ListaRps><Rps><InfRps xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" id="R9" wsu:Id="R9"><IdentificacaoRps><Numero>9</Numero><Serie>SN</Serie><Tipo>1</Tipo></IdentificacaoRps><DataEmissao>2016-08-12T18:17:31</DataEmissao><NaturezaOperacao>59</NaturezaOperacao><RegimeEspecialTributacao>1</RegimeEspecialTributacao><OptanteSimplesNacional>1</OptanteSimplesNacional><IncentivadorCultural>2</IncentivadorCultural><Status>1</Status><Servico><Valores><ValorServicos>10.0</ValorServicos><IssRetido>2</IssRetido><ValorIss>0.2</ValorIss><BaseCalculo>10.0</BaseCalculo><Aliquota>0.02</Aliquota><ValorLiquidoNfse>10.0</ValorLiquidoNfse></Valores><ItemListaServico>1.07</ItemListaServico><CodigoCnae>6202300</CodigoCnae><Discriminacao>SERVICO DE COMINICACAO WEB DIGITAL 1.700,00</Discriminacao><CodigoMunicipio>4204202</CodigoMunicipio></Servico><Prestador><Cnpj>12345678901234</Cnpj><InscricaoMunicipal>135408</InscricaoMunicipal></Prestador><Tomador><IdentificacaoTomador><CpfCnpj><Cpf>07456193983</Cpf></CpfCnpj></IdentificacaoTomador><RazaoSocial>BRUNO MUCELINI MERGEN</RazaoSocial><Endereco><Endereco>RUA IGUACU E</Endereco><Numero>587</Numero><Bairro>SAIC</Bairro><CodigoMunicipio>4204202</CodigoMunicipio><Uf>SC</Uf><Cep>89802171</Cep></Endereco><Contato><Telefone>4920493900</Telefone><Email>brunomergen@gmail.com</Email></Contato></Tomador></InfRps></Rps><Rps><InfRps xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" id="R10" wsu:Id="R10"><IdentificacaoRps><Numero>10</Numero><Serie>SN</Serie><Tipo>1</Tipo></IdentificacaoRps><DataEmissao>2016-08-12T18:17:31</DataEmissao><NaturezaOperacao>59</NaturezaOperacao><RegimeEspecialTributacao>1</RegimeEspecialTributacao><OptanteSimplesNacional>1</OptanteSimplesNacional><IncentivadorCultural>2</IncentivadorCultural><Status>1</Status><Servico><Valores><ValorServicos>1700.0</ValorServicos><ValorDeducoes>7.0</ValorDeducoes><ValorPis>1.12</ValorPis><ValorCofins>2.12</ValorCofins><ValorInss>3.12</ValorInss><ValorIr>4.12</ValorIr><ValorCsll>5.12</ValorCsll><IssRetido>2</IssRetido><ValorIss>33.72</ValorIss><OutrasRetencoes>6.12</OutrasRetencoes><BaseCalculo>1685.88</BaseCalculo><Aliquota>0.02</Aliquota><ValorLiquidoNfse>1663.02</ValorLiquidoNfse><DescontoIncondicionado>7.12</DescontoIncondicionado><DescontoCondicionado>8.12</DescontoCondicionado></Valores><ItemListaServico>1.07</ItemListaServico><CodigoCnae>6202300</CodigoCnae><CodigoTributacaoMunicipio>6699</CodigoTributacaoMunicipio><Discriminacao>SERVICO DE COMINICACAO WEB DIGITAL 1.700,00</Discriminacao><CodigoMunicipio>4204202</CodigoMunicipio></Servico><Prestador><Cnpj>12345678901234</Cnpj><InscricaoMunicipal>135408</InscricaoMunicipal></Prestador><Tomador><IdentificacaoTomador><CpfCnpj><Cpf>07456193983</Cpf></CpfCnpj></IdentificacaoTomador><RazaoSocial>BRUNO MUCELINI MERGEN</RazaoSocial><Endereco><Endereco>RUA IGUACU E</Endereco><Numero>587</Numero><Bairro>SAIC</Bairro><CodigoMunicipio>4204202</CodigoMunicipio><Uf>SC</Uf><Cep>89802171</Cep></Endereco><Contato><Telefone>4920493900</Telefone><Email>brunomergen@gmail.com</Email></Contato></Tomador><ConstrucaoCivil><CodigoObra>66</CodigoObra><Art>223</Art></ConstrucaoCivil></InfRps></Rps></ListaRps></LoteRps><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI="#R9"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>0lHQJZJ6Jlpb9lQhlyZq2XU6elg=</DigestValue></Reference><Reference URI="#R10"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>VoYugcYLzlpac7W/5/s7+Rt7rKc=</DigestValue></Reference><Reference URI="#L9"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>3bp6AT4WNtGWuBm9XNy9PHjkx0s=</DigestValue></Reference></SignedInfo><SignatureValue>mEN9z5t+NiUnMhUPf2DVUR6YSUordVEYjX7nqlMs1T47oUFasN+m0aRndflPGLAm8XDhjjOb/IEFe14dnoSdHqzWWh0VkqbBGELrFeLF+HubEI3Fi9WGKWzKKFIzAxDJTQaeNYAqHO+Vo/uk7WX2uyZqLaRjMg2rTr6n6MJwo7c=</SignatureValue><KeyInfo><X509Data><X509IssuerSerial><X509IssuerName>C=BR,ST=RS,L=Porto Alegre,O=Teste Projeto NFe RS,OU=Teste Projeto NFe RS,CN=NFe - AC Intermediaria 1</X509IssuerName><X509SerialNumber>3225656</X509SerialNumber></X509IssuerSerial><X509Certificate>MIIEqzCCA5OgAwIBAgIDMTg4MA0GCSqGSIb3DQEBBQUAMIGSMQswCQYDVQQGEwJCUjELMAkGA1UECBMCUlMxFTATBgNVBAcTDFBvcnRvIEFsZWdyZTEdMBsGA1UEChMUVGVzdGUgUHJvamV0byBORmUgUlMxHTAbBgNVBAsTFFRlc3RlIFByb2pldG8gTkZlIFJTMSEwHwYDVQQDExhORmUgLSBBQyBJbnRlcm1lZGlhcmlhIDEwHhcNMDkwNTIyMTcwNzAzWhcNMTAxMDAyMTcwNzAzWjCBnjELMAkGA1UECBMCUlMxHTAbBgNVBAsTFFRlc3RlIFByb2pldG8gTkZlIFJTMR0wGwYDVQQKExRUZXN0ZSBQcm9qZXRvIE5GZSBSUzEVMBMGA1UEBxMMUE9SVE8gQUxFR1JFMQswCQYDVQQGEwJCUjEtMCsGA1UEAxMkTkZlIC0gQXNzb2NpYWNhbyBORi1lOjk5OTk5MDkwOTEwMjcwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCx1O/e1Q+xh+wCoxa4pr/5aEFt2dEX9iBJyYu/2a78emtorZKbWeyK435SRTbHxHSjqe1sWtIhXBaFa2dHiukT1WJyoAcXwB1GtxjT2VVESQGtRiujMa+opus6dufJJl7RslAjqN/ZPxcBXaezt0nHvnUB/uB1K8WT9G7ES0V17wIDAQABo4IBfjCCAXowIgYDVR0jAQEABBgwFoAUPT5TqhNWAm+ZpcVsvB7malDBjEQwDwYDVR0TAQH/BAUwAwEBADAPBgNVHQ8BAf8EBQMDAOAAMAwGA1UdIAEBAAQCMAAwgawGA1UdEQEBAASBoTCBnqA4BgVgTAEDBKAvBC0yMjA4MTk3Nzk5OTk5OTk5OTk5MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDCgEgYFYEwBAwKgCQQHREZULU5GZaAZBgVgTAEDA6AQBA45OTk5OTA5MDkxMDI3MKAXBgVgTAEDB6AOBAwwMDAwMDAwMDAwMDCBGmRmdC1uZmVAcHJvY2VyZ3MucnMuZ292LmJyMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMCBggrBgEFBQcDBDBTBgNVHR8BAQAESTBHMEWgQ6BBhj9odHRwOi8vbmZlY2VydGlmaWNhZG8uc2VmYXoucnMuZ292LmJyL0xDUi9BQ0ludGVybWVkaWFyaWEzOC5jcmwwDQYJKoZIhvcNAQEFBQADggEBAJFytXuiS02eJO0iMQr/Hi+Ox7/vYiPewiDL7s5EwO8A9jKx9G2Baz0KEjcdaeZk9a2NzDEgX9zboPxhw0RkWahVCP2xvRFWswDIa2WRUT/LHTEuTeKCJ0iF/um/kYM8PmWxPsDWzvsCCRp146lc0lz9LGm5ruPVYPZ/7DAoimUk3bdCMW/rzkVYg7iitxHrhklxH7YWQHUwbcqPt7Jv0RJxclc1MhQlV2eM2MO1iIlk8Eti86dRrJVoicR1bwc6/YDqDp4PFONTi1ddewRu6elGS74AzCcNYRSVTINYiZLpBZO0uivrnTEnsFguVnNtWb9MAHGt3tkR0gAVs6S0fm8=</X509Certificate></X509Data></KeyInfo></Signature></EnviarLoteRpsEnvio>
data/test/test_helper.rb CHANGED
@@ -18,6 +18,10 @@ CodeClimate::TestReporter.start
18
18
 
19
19
  require 'factory_girl_rails'
20
20
 
21
+ require 'pry'
22
+
23
+ require "savon/mock/spec_helper"
24
+
21
25
  Minitest::Reporters.use!
22
26
 
23
27
  if ActiveSupport.version >= Gem::Version.new('4.2')
@@ -36,6 +40,7 @@ class Object
36
40
  end
37
41
 
38
42
  class MiniTest::Spec
43
+ include Savon::SpecHelper
39
44
  include Shoulda::Matchers::ActiveModel
40
45
  include FactoryGirl::Syntax::Methods
41
46
  let(:sequence_1) { sequence('sequence_1') }
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.0.0
4
+ version: 2.1.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-07-27 00:00:00.000000000 Z
11
+ date: 2016-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -206,13 +206,28 @@ files:
206
206
  - lib/br_nfe/service/sc/florianopolis/xml/_service_item.xml.slim
207
207
  - lib/br_nfe/service/sc/florianopolis/xml/cancellation.xml.slim
208
208
  - lib/br_nfe/service/sc/florianopolis/xml/inf_requisicao.xml.slim
209
- - lib/br_nfe/service/sc/gaspar/cancela_nfse.rb
210
- - lib/br_nfe/service/sc/gaspar/consulta_lote_rps.rb
211
- - lib/br_nfe/service/sc/gaspar/consulta_nfs_por_rps.rb
212
- - lib/br_nfe/service/sc/gaspar/consulta_nfse.rb
213
- - lib/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps.rb
214
- - lib/br_nfe/service/sc/gaspar/recepcao_lote_rps.rb
215
- - lib/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado.rb
209
+ - lib/br_nfe/service/simpliss/v1/base.rb
210
+ - lib/br_nfe/service/simpliss/v1/cancela_nfse.rb
211
+ - lib/br_nfe/service/simpliss/v1/consulta_lote_rps.rb
212
+ - lib/br_nfe/service/simpliss/v1/consulta_nfs_por_rps.rb
213
+ - lib/br_nfe/service/simpliss/v1/consulta_nfse.rb
214
+ - lib/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps.rb
215
+ - lib/br_nfe/service/simpliss/v1/recepcao_lote_rps.rb
216
+ - lib/br_nfe/service/simpliss/v1/response_paths/servico_cancelar_nfse_resposta.rb
217
+ - lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_lote_rps_resposta.rb
218
+ - lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_resposta.rb
219
+ - lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_rps_resposta.rb
220
+ - lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_situacao_lote_rps_resposta.rb
221
+ - lib/br_nfe/service/simpliss/v1/response_paths/servico_enviar_lote_rps_resposta.rb
222
+ - lib/br_nfe/service/simpliss/v1/xml/_login.xml.slim
223
+ - lib/br_nfe/service/simpliss/v1/xml/_tc_dados_servico.xml.slim
224
+ - lib/br_nfe/service/simpliss/v1/xml/_tc_item_servico.xml.slim
225
+ - lib/br_nfe/service/simpliss/v1/xml/servico_cancelar_nfse_envio.xml.slim
226
+ - lib/br_nfe/service/simpliss/v1/xml/servico_consultar_lote_rps_envio.xml.slim
227
+ - lib/br_nfe/service/simpliss/v1/xml/servico_consultar_nfse_envio.xml.slim
228
+ - lib/br_nfe/service/simpliss/v1/xml/servico_consultar_nfse_rps_envio.xml.slim
229
+ - lib/br_nfe/service/simpliss/v1/xml/servico_consultar_situacao_lote_rps_envio.xml.slim
230
+ - lib/br_nfe/service/simpliss/v1/xml/servico_enviar_lote_rps_envio.xml.slim
216
231
  - lib/br_nfe/service/thema/v1/base.rb
217
232
  - lib/br_nfe/service/thema/v1/cancela_nfse.rb
218
233
  - lib/br_nfe/service/thema/v1/consulta_lote_rps.rb
@@ -221,6 +236,8 @@ files:
221
236
  - lib/br_nfe/service/thema/v1/consulta_situacao_lote_rps.rb
222
237
  - lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb
223
238
  - lib/br_nfe/service/thema/v1/recepcao_lote_rps_limitado.rb
239
+ - lib/br_nfe/service/thema/v1/response_paths/servico_cancelar_nfse_resposta.rb
240
+ - lib/br_nfe/service/thema/v1/response_paths/servico_consultar_nfse_rps_resposta.rb
224
241
  - lib/br_nfe/service/xml/v1/_tc_contato.xml.slim
225
242
  - lib/br_nfe/service/xml/v1/_tc_cpf_cnpj.xml.slim
226
243
  - lib/br_nfe/service/xml/v1/_tc_dados_construcao_civil.xml.slim
@@ -262,6 +279,7 @@ files:
262
279
  - test/br_nfe/helper/have_emitente_test.rb
263
280
  - test/br_nfe/helper/have_intermediario_test.rb
264
281
  - test/br_nfe/helper/have_rps_test.rb
282
+ - test/br_nfe/helper/values_ts/service_v1_test.rb
265
283
  - test/br_nfe/response/service/build_response_test.rb
266
284
  - test/br_nfe/response/service/default_test.rb
267
285
  - test/br_nfe/response/service/nota_fiscal_test.rb
@@ -307,20 +325,23 @@ files:
307
325
  - test/br_nfe/service/sc/florianopolis/base_test.rb
308
326
  - test/br_nfe/service/sc/florianopolis/cancellation_test.rb
309
327
  - test/br_nfe/service/sc/florianopolis/emission_rps_test.rb
310
- - test/br_nfe/service/sc/gaspar/cancela_nfse_test.rb
311
- - test/br_nfe/service/sc/gaspar/consulta_nfs_por_rps_test.rb
312
- - test/br_nfe/service/sc/gaspar/consulta_nfse_test.rb
313
- - test/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps_test.rb
314
- - test/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado_test.rb
315
- - test/br_nfe/service/sc/gaspar/recepcao_lote_rps_test.rb
328
+ - test/br_nfe/service/simpliss/v1/base_test.rb
329
+ - test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb
330
+ - test/br_nfe/service/simpliss/v1/consulta_lote_rps_test.rb
331
+ - test/br_nfe/service/simpliss/v1/consulta_nfs_por_rps_test.rb
332
+ - test/br_nfe/service/simpliss/v1/consulta_nfse_test.rb
333
+ - test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb
334
+ - test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb
335
+ - test/br_nfe/service/simpliss/v1/xsd/nfse_3.xsd
336
+ - test/br_nfe/service/simpliss/v1/xsd/xmldsig-core-schema20020212.xsd
316
337
  - test/br_nfe/service/thema/v1/base_test.rb
317
338
  - test/br_nfe/service/thema/v1/cancela_nfse_test.rb
318
339
  - test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb
319
340
  - test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb
320
341
  - test/br_nfe/service/thema/v1/consulta_nfse_test.rb
321
342
  - test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb
343
+ - test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb
322
344
  - test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb
323
- - test/br_nfe/service/thema/v1/recepcao_lote_rps_test_limitado.rb
324
345
  - test/br_nfe/service/thema/v1/xsd/nfse.xsd
325
346
  - test/br_nfe/service/thema/v1/xsd/xmldsig-core-schema20020212.xsd
326
347
  - test/br_nfe/service/xsd/v1/nfse.xsd
@@ -349,13 +370,13 @@ files:
349
370
  - test/factories/service/sc/florianopolis/base.rb
350
371
  - test/factories/service/sc/florianopolis/cancellation.rb
351
372
  - test/factories/service/sc/florianopolis/emission_rps.rb
352
- - test/factories/service/sc/gaspar/cancela_nfse.rb
353
- - test/factories/service/sc/gaspar/consulta_lote_rps.rb
354
- - test/factories/service/sc/gaspar/consulta_nfs_por_rps.rb
355
- - test/factories/service/sc/gaspar/consulta_nfse.rb
356
- - test/factories/service/sc/gaspar/consulta_situacao_lote_rps.rb
357
- - test/factories/service/sc/gaspar/recepcao_lote_rps.rb
358
- - test/factories/service/sc/gaspar/recepcao_lote_rps_limitado.rb
373
+ - test/factories/service/simpliss/v1/base.rb
374
+ - test/factories/service/simpliss/v1/cancela_nfse.rb
375
+ - test/factories/service/simpliss/v1/consulta_lote_rps.rb
376
+ - test/factories/service/simpliss/v1/consulta_nfs_por_rps.rb
377
+ - test/factories/service/simpliss/v1/consulta_nfse.rb
378
+ - test/factories/service/simpliss/v1/consulta_situacao_lote_rps.rb
379
+ - test/factories/service/simpliss/v1/recepcao_lote_rps.rb
359
380
  - test/factories/service/thema/v1/base.rb
360
381
  - test/factories/service/thema/v1/cancela_nfse.rb
361
382
  - test/factories/service/thema/v1/consulta_lote_rps.rb
@@ -364,6 +385,48 @@ files:
364
385
  - test/factories/service/thema/v1/consulta_situacao_lote_rps.rb
365
386
  - test/factories/service/thema/v1/recepcao_lote_rps.rb
366
387
  - test/factories/service/thema/v1/recepcao_lote_rps_limitado.rb
388
+ - test/fixtures/service/response/simpliss/v1/cancela_nfse/fault.xml
389
+ - test/fixtures/service/response/simpliss/v1/cancela_nfse/success.xml
390
+ - test/fixtures/service/response/simpliss/v1/consulta_lote_rps/fault.xml
391
+ - test/fixtures/service/response/simpliss/v1/consulta_lote_rps/nfse_complete.xml
392
+ - test/fixtures/service/response/simpliss/v1/consulta_lote_rps/nfse_simple.xml
393
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse/fault.xml
394
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse/nfs_empty.xml
395
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse/nfse_complete.xml
396
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse/nfse_simple.xml
397
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/fault.xml
398
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/nfse_complete.xml
399
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/nfse_simple.xml
400
+ - test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/error.xml
401
+ - test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/fault.xml
402
+ - test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/success.xml
403
+ - test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/unprocessed.xml
404
+ - test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/unreceived.xml
405
+ - test/fixtures/service/response/simpliss/v1/recepcao_lote_rps/error.xml
406
+ - test/fixtures/service/response/simpliss/v1/recepcao_lote_rps/success.xml
407
+ - test/fixtures/service/response/thema/v1/cancela_nfse/fault.xml
408
+ - test/fixtures/service/response/thema/v1/cancela_nfse/success.xml
409
+ - test/fixtures/service/response/thema/v1/consulta_lote_rps/fault.xml
410
+ - test/fixtures/service/response/thema/v1/consulta_lote_rps/nfse_complete.xml
411
+ - test/fixtures/service/response/thema/v1/consulta_nfse/fault.xml
412
+ - test/fixtures/service/response/thema/v1/consulta_nfse/nfs_empty.xml
413
+ - test/fixtures/service/response/thema/v1/consulta_nfse/nfse_complete.xml
414
+ - test/fixtures/service/response/thema/v1/consulta_nfse/nfse_simple.xml
415
+ - test/fixtures/service/response/thema/v1/consulta_nfse_por_rps/fault.xml
416
+ - test/fixtures/service/response/thema/v1/consulta_nfse_por_rps/nfse_complete.xml
417
+ - test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/error.xml
418
+ - test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/fault.xml
419
+ - test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/success.xml
420
+ - test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/unprocessed.xml
421
+ - test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/unreceived.xml
422
+ - test/fixtures/service/response/thema/v1/recepcao_lote_rps/error.xml
423
+ - test/fixtures/service/response/thema/v1/recepcao_lote_rps/success.xml
424
+ - test/fixtures/service/response/thema/v1/recepcao_lote_rps_limitado/error.xml
425
+ - test/fixtures/service/response/thema/v1/recepcao_lote_rps_limitado/success.xml
426
+ - test/fixtures/service/thema/v1/cancelar_nfse_envio.xml
427
+ - test/fixtures/service/thema/v1/cancelar_nfse_envio_signed.xml
428
+ - test/fixtures/service/thema/v1/enviar_lote_rps.xml
429
+ - test/fixtures/service/thema/v1/enviar_lote_rps_signed.xml
367
430
  - test/test_helper.rb
368
431
  homepage: https://github.com/Brunomm/br_nfe
369
432
  licenses:
@@ -408,6 +471,7 @@ test_files:
408
471
  - test/br_nfe/helper/have_emitente_test.rb
409
472
  - test/br_nfe/helper/have_intermediario_test.rb
410
473
  - test/br_nfe/helper/have_rps_test.rb
474
+ - test/br_nfe/helper/values_ts/service_v1_test.rb
411
475
  - test/br_nfe/response/service/build_response_test.rb
412
476
  - test/br_nfe/response/service/default_test.rb
413
477
  - test/br_nfe/response/service/nota_fiscal_test.rb
@@ -453,20 +517,23 @@ test_files:
453
517
  - test/br_nfe/service/sc/florianopolis/base_test.rb
454
518
  - test/br_nfe/service/sc/florianopolis/cancellation_test.rb
455
519
  - test/br_nfe/service/sc/florianopolis/emission_rps_test.rb
456
- - test/br_nfe/service/sc/gaspar/cancela_nfse_test.rb
457
- - test/br_nfe/service/sc/gaspar/consulta_nfs_por_rps_test.rb
458
- - test/br_nfe/service/sc/gaspar/consulta_nfse_test.rb
459
- - test/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps_test.rb
460
- - test/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado_test.rb
461
- - test/br_nfe/service/sc/gaspar/recepcao_lote_rps_test.rb
520
+ - test/br_nfe/service/simpliss/v1/base_test.rb
521
+ - test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb
522
+ - test/br_nfe/service/simpliss/v1/consulta_lote_rps_test.rb
523
+ - test/br_nfe/service/simpliss/v1/consulta_nfs_por_rps_test.rb
524
+ - test/br_nfe/service/simpliss/v1/consulta_nfse_test.rb
525
+ - test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb
526
+ - test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb
527
+ - test/br_nfe/service/simpliss/v1/xsd/nfse_3.xsd
528
+ - test/br_nfe/service/simpliss/v1/xsd/xmldsig-core-schema20020212.xsd
462
529
  - test/br_nfe/service/thema/v1/base_test.rb
463
530
  - test/br_nfe/service/thema/v1/cancela_nfse_test.rb
464
531
  - test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb
465
532
  - test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb
466
533
  - test/br_nfe/service/thema/v1/consulta_nfse_test.rb
467
534
  - test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb
535
+ - test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb
468
536
  - test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb
469
- - test/br_nfe/service/thema/v1/recepcao_lote_rps_test_limitado.rb
470
537
  - test/br_nfe/service/thema/v1/xsd/nfse.xsd
471
538
  - test/br_nfe/service/thema/v1/xsd/xmldsig-core-schema20020212.xsd
472
539
  - test/br_nfe/service/xsd/v1/nfse.xsd
@@ -495,13 +562,13 @@ test_files:
495
562
  - test/factories/service/sc/florianopolis/base.rb
496
563
  - test/factories/service/sc/florianopolis/cancellation.rb
497
564
  - test/factories/service/sc/florianopolis/emission_rps.rb
498
- - test/factories/service/sc/gaspar/cancela_nfse.rb
499
- - test/factories/service/sc/gaspar/consulta_lote_rps.rb
500
- - test/factories/service/sc/gaspar/consulta_nfs_por_rps.rb
501
- - test/factories/service/sc/gaspar/consulta_nfse.rb
502
- - test/factories/service/sc/gaspar/consulta_situacao_lote_rps.rb
503
- - test/factories/service/sc/gaspar/recepcao_lote_rps.rb
504
- - test/factories/service/sc/gaspar/recepcao_lote_rps_limitado.rb
565
+ - test/factories/service/simpliss/v1/base.rb
566
+ - test/factories/service/simpliss/v1/cancela_nfse.rb
567
+ - test/factories/service/simpliss/v1/consulta_lote_rps.rb
568
+ - test/factories/service/simpliss/v1/consulta_nfs_por_rps.rb
569
+ - test/factories/service/simpliss/v1/consulta_nfse.rb
570
+ - test/factories/service/simpliss/v1/consulta_situacao_lote_rps.rb
571
+ - test/factories/service/simpliss/v1/recepcao_lote_rps.rb
505
572
  - test/factories/service/thema/v1/base.rb
506
573
  - test/factories/service/thema/v1/cancela_nfse.rb
507
574
  - test/factories/service/thema/v1/consulta_lote_rps.rb
@@ -510,4 +577,46 @@ test_files:
510
577
  - test/factories/service/thema/v1/consulta_situacao_lote_rps.rb
511
578
  - test/factories/service/thema/v1/recepcao_lote_rps.rb
512
579
  - test/factories/service/thema/v1/recepcao_lote_rps_limitado.rb
580
+ - test/fixtures/service/response/simpliss/v1/cancela_nfse/fault.xml
581
+ - test/fixtures/service/response/simpliss/v1/cancela_nfse/success.xml
582
+ - test/fixtures/service/response/simpliss/v1/consulta_lote_rps/fault.xml
583
+ - test/fixtures/service/response/simpliss/v1/consulta_lote_rps/nfse_complete.xml
584
+ - test/fixtures/service/response/simpliss/v1/consulta_lote_rps/nfse_simple.xml
585
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse/fault.xml
586
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse/nfs_empty.xml
587
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse/nfse_complete.xml
588
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse/nfse_simple.xml
589
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/fault.xml
590
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/nfse_complete.xml
591
+ - test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/nfse_simple.xml
592
+ - test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/error.xml
593
+ - test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/fault.xml
594
+ - test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/success.xml
595
+ - test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/unprocessed.xml
596
+ - test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/unreceived.xml
597
+ - test/fixtures/service/response/simpliss/v1/recepcao_lote_rps/error.xml
598
+ - test/fixtures/service/response/simpliss/v1/recepcao_lote_rps/success.xml
599
+ - test/fixtures/service/response/thema/v1/cancela_nfse/fault.xml
600
+ - test/fixtures/service/response/thema/v1/cancela_nfse/success.xml
601
+ - test/fixtures/service/response/thema/v1/consulta_lote_rps/fault.xml
602
+ - test/fixtures/service/response/thema/v1/consulta_lote_rps/nfse_complete.xml
603
+ - test/fixtures/service/response/thema/v1/consulta_nfse/fault.xml
604
+ - test/fixtures/service/response/thema/v1/consulta_nfse/nfs_empty.xml
605
+ - test/fixtures/service/response/thema/v1/consulta_nfse/nfse_complete.xml
606
+ - test/fixtures/service/response/thema/v1/consulta_nfse/nfse_simple.xml
607
+ - test/fixtures/service/response/thema/v1/consulta_nfse_por_rps/fault.xml
608
+ - test/fixtures/service/response/thema/v1/consulta_nfse_por_rps/nfse_complete.xml
609
+ - test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/error.xml
610
+ - test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/fault.xml
611
+ - test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/success.xml
612
+ - test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/unprocessed.xml
613
+ - test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/unreceived.xml
614
+ - test/fixtures/service/response/thema/v1/recepcao_lote_rps/error.xml
615
+ - test/fixtures/service/response/thema/v1/recepcao_lote_rps/success.xml
616
+ - test/fixtures/service/response/thema/v1/recepcao_lote_rps_limitado/error.xml
617
+ - test/fixtures/service/response/thema/v1/recepcao_lote_rps_limitado/success.xml
618
+ - test/fixtures/service/thema/v1/cancelar_nfse_envio.xml
619
+ - test/fixtures/service/thema/v1/cancelar_nfse_envio_signed.xml
620
+ - test/fixtures/service/thema/v1/enviar_lote_rps.xml
621
+ - test/fixtures/service/thema/v1/enviar_lote_rps_signed.xml
513
622
  - test/test_helper.rb
@@ -1,13 +0,0 @@
1
- module BrNfe
2
- module Service
3
- module SC
4
- module Gaspar
5
- class CancelaNfse < BrNfe::Service::Thema::V1::CancelaNfse
6
- def wsdl
7
- "http://nfse#{'hml' if env == :test}.gaspar.sc.gov.br/nfse/services/NFSEcancelamento?wsdl"
8
- end
9
- end
10
- end
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- module BrNfe
2
- module Service
3
- module SC
4
- module Gaspar
5
- class ConsultaLoteRps < BrNfe::Service::Thema::V1::ConsultaLoteRps
6
- def wsdl
7
- "http://nfse#{'hml' if env == :test}.gaspar.sc.gov.br/nfse/services/NFSEconsulta?wsdl"
8
- end
9
- end
10
- end
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- module BrNfe
2
- module Service
3
- module SC
4
- module Gaspar
5
- class ConsultaNfsPorRps < BrNfe::Service::Thema::V1::ConsultaNfsPorRps
6
- def wsdl
7
- "http://nfse#{'hml' if env == :test}.gaspar.sc.gov.br/nfse/services/NFSEconsulta?wsdl"
8
- end
9
- end
10
- end
11
- end
12
- end
13
- end
@@ -1,17 +0,0 @@
1
- module BrNfe
2
- module Service
3
- module SC
4
- module Gaspar
5
- class ConsultaNfse < BrNfe::Service::Thema::V1::ConsultaNfse
6
-
7
- # É sério. Tudo isso é obrigatório. Pfff
8
- validates :destinatario, :nfe_number, :start_date, :end_date, presence: true
9
-
10
- def wsdl
11
- "http://nfse#{'hml' if env == :test}.gaspar.sc.gov.br/nfse/services/NFSEconsulta?wsdl"
12
- end
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,13 +0,0 @@
1
- module BrNfe
2
- module Service
3
- module SC
4
- module Gaspar
5
- class ConsultaSituacaoLoteRps < BrNfe::Service::Thema::V1::ConsultaSituacaoLoteRps
6
- def wsdl
7
- "http://nfse#{'hml' if env == :test}.gaspar.sc.gov.br/nfse/services/NFSEconsulta?wsdl"
8
- end
9
- end
10
- end
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- module BrNfe
2
- module Service
3
- module SC
4
- module Gaspar
5
- class RecepcaoLoteRps < BrNfe::Service::Thema::V1::RecepcaoLoteRps
6
- def wsdl
7
- "http://nfse#{'hml' if env == :test}.gaspar.sc.gov.br/nfse/services/NFSEremessa?wsdl"
8
- end
9
- end
10
- end
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- module BrNfe
2
- module Service
3
- module SC
4
- module Gaspar
5
- class RecepcaoLoteRpsLimitado < BrNfe::Service::Thema::V1::RecepcaoLoteRpsLimitado
6
- def wsdl
7
- "http://nfse#{'hml' if env == :test}.gaspar.sc.gov.br/nfse/services/NFSEremessa?wsdl"
8
- end
9
- end
10
- end
11
- end
12
- end
13
- end
@@ -1,21 +0,0 @@
1
- require 'test_helper'
2
-
3
- describe BrNfe::Service::SC::Gaspar::CancelaNfse do
4
- subject { FactoryGirl.build(:service_sc_gaspar_cancela_nfse) }
5
-
6
- it "A classe deve herdar de BrNfe::Service::Thema::V1::CancelaNfse" do
7
- subject.must_be_kind_of BrNfe::Service::Thema::V1::CancelaNfse
8
- end
9
-
10
- describe "#wsdl" do
11
- context "for env production" do
12
- it { subject.wsdl.must_equal 'http://nfse.gaspar.sc.gov.br/nfse/services/NFSEcancelamento?wsdl' }
13
- end
14
- context "for env test" do
15
- before do
16
- subject.env = :test
17
- end
18
- it { subject.wsdl.must_equal 'http://nfsehml.gaspar.sc.gov.br/nfse/services/NFSEcancelamento?wsdl' }
19
- end
20
- end
21
- end
@@ -1,21 +0,0 @@
1
- require 'test_helper'
2
-
3
- describe BrNfe::Service::SC::Gaspar::ConsultaNfsPorRps do
4
- subject { FactoryGirl.build(:service_sc_gaspar_consulta_nfs_por_rps) }
5
-
6
- it "A classe deve herdar de BrNfe::Service::Thema::V1::ConsultaNfsPorRps" do
7
- subject.must_be_kind_of BrNfe::Service::Thema::V1::ConsultaNfsPorRps
8
- end
9
-
10
- describe "#wsdl" do
11
- context "for env production" do
12
- it { subject.wsdl.must_equal 'http://nfse.gaspar.sc.gov.br/nfse/services/NFSEconsulta?wsdl' }
13
- end
14
- context "for env test" do
15
- before do
16
- subject.env = :test
17
- end
18
- it { subject.wsdl.must_equal 'http://nfsehml.gaspar.sc.gov.br/nfse/services/NFSEconsulta?wsdl' }
19
- end
20
- end
21
- end
@@ -1,21 +0,0 @@
1
- require 'test_helper'
2
-
3
- describe BrNfe::Service::SC::Gaspar::ConsultaNfse do
4
- subject { FactoryGirl.build(:service_sc_gaspar_consulta_nfse) }
5
-
6
- it "A classe deve herdar de BrNfe::Service::Thema::V1::ConsultaNfse" do
7
- subject.must_be_kind_of BrNfe::Service::Thema::V1::ConsultaNfse
8
- end
9
-
10
- describe "#wsdl" do
11
- context "for env production" do
12
- it { subject.wsdl.must_equal 'http://nfse.gaspar.sc.gov.br/nfse/services/NFSEconsulta?wsdl' }
13
- end
14
- context "for env test" do
15
- before do
16
- subject.env = :test
17
- end
18
- it { subject.wsdl.must_equal 'http://nfsehml.gaspar.sc.gov.br/nfse/services/NFSEconsulta?wsdl' }
19
- end
20
- end
21
- end
@@ -1,21 +0,0 @@
1
- require 'test_helper'
2
-
3
- describe BrNfe::Service::SC::Gaspar::ConsultaSituacaoLoteRps do
4
- subject { FactoryGirl.build(:service_sc_gaspar_consulta_situacao_lote_rps) }
5
-
6
- it "A classe deve herdar de BrNfe::Service::Thema::V1::ConsultaSituacaoLoteRps" do
7
- subject.must_be_kind_of BrNfe::Service::Thema::V1::ConsultaSituacaoLoteRps
8
- end
9
-
10
- describe "#wsdl" do
11
- context "for env production" do
12
- it { subject.wsdl.must_equal 'http://nfse.gaspar.sc.gov.br/nfse/services/NFSEconsulta?wsdl' }
13
- end
14
- context "for env test" do
15
- before do
16
- subject.env = :test
17
- end
18
- it { subject.wsdl.must_equal 'http://nfsehml.gaspar.sc.gov.br/nfse/services/NFSEconsulta?wsdl' }
19
- end
20
- end
21
- end
@@ -1,22 +0,0 @@
1
- require 'test_helper'
2
-
3
- describe BrNfe::Service::SC::Gaspar::RecepcaoLoteRpsLimitado do
4
- subject { FactoryGirl.build(:service_sc_gaspar_recepcao_lote_rps_limitado, emitente: emitente) }
5
- let(:emitente) { FactoryGirl.build(:emitente, natureza_operacao: 51) }
6
-
7
- it "A classe deve herdar de BrNfe::Service::Thema::V1::RecepcaoLoteRpsLimitado" do
8
- subject.must_be_kind_of BrNfe::Service::Thema::V1::RecepcaoLoteRpsLimitado
9
- end
10
-
11
- describe "#wsdl" do
12
- context "for env production" do
13
- it { subject.wsdl.must_equal 'http://nfse.gaspar.sc.gov.br/nfse/services/NFSEremessa?wsdl' }
14
- end
15
- context "for env test" do
16
- before do
17
- subject.env = :test
18
- end
19
- it { subject.wsdl.must_equal 'http://nfsehml.gaspar.sc.gov.br/nfse/services/NFSEremessa?wsdl' }
20
- end
21
- end
22
- end