br_nfe 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (257) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +0 -1
  4. data/Gemfile.lock +1 -1
  5. data/README.markdown +264 -106
  6. data/lib/br_nfe/{helper → association}/have_address.rb +1 -1
  7. data/lib/br_nfe/{helper → association}/have_condicao_pagamento.rb +1 -1
  8. data/lib/br_nfe/association/have_destinatario.rb +22 -0
  9. data/lib/br_nfe/association/have_emitente.rb +24 -0
  10. data/lib/br_nfe/base.rb +37 -27
  11. data/lib/br_nfe/condicao_pagamento.rb +2 -0
  12. data/lib/br_nfe/constants.rb +33 -0
  13. data/lib/br_nfe/endereco.rb +10 -0
  14. data/lib/br_nfe/helper/string_methods.rb +4 -0
  15. data/lib/br_nfe/{emitente.rb → person.rb} +11 -7
  16. data/lib/br_nfe/product/base.rb +82 -0
  17. data/lib/br_nfe/product/consulta_status_servico.rb +35 -0
  18. data/lib/br_nfe/product/emitente.rb +8 -0
  19. data/lib/br_nfe/product/gateway/base.rb +62 -0
  20. data/lib/br_nfe/product/gateway/web_service_svrs.rb +39 -0
  21. data/lib/br_nfe/product/value_nf.rb +9 -0
  22. data/lib/br_nfe/product/xml/soap_env.xml.slim +8 -0
  23. data/lib/br_nfe/product/xml/v3_10/XSD/consReciNFe_v3.10.xsd +9 -0
  24. data/lib/br_nfe/product/xml/v3_10/XSD/consSitNFe_v3.10.xsd +9 -0
  25. data/lib/br_nfe/product/xml/v3_10/XSD/consStatServ_v3.10.xsd +9 -0
  26. data/lib/br_nfe/product/xml/v3_10/XSD/enviNFe_v3.10.xsd +9 -0
  27. data/lib/br_nfe/product/xml/v3_10/XSD/inutNFe_v3.10.xsd +9 -0
  28. data/lib/br_nfe/product/xml/v3_10/XSD/leiauteConsSitNFe_v3.10.xsd +502 -0
  29. data/lib/br_nfe/product/xml/v3_10/XSD/leiauteConsStatServ_v3.10.xsd +98 -0
  30. data/lib/br_nfe/product/xml/v3_10/XSD/leiauteInutNFe_v3.10.xsd +193 -0
  31. data/lib/br_nfe/product/xml/v3_10/XSD/leiauteNFe_v3.10.xsd +6060 -0
  32. data/lib/br_nfe/product/xml/v3_10/XSD/nfe_v3.10.xsd +9 -0
  33. data/lib/br_nfe/product/xml/v3_10/XSD/procInutNFe_v3.10.xsd +9 -0
  34. data/lib/br_nfe/product/xml/v3_10/XSD/procNFe_v3.10.xsd +9 -0
  35. data/lib/br_nfe/product/xml/v3_10/XSD/retConsReciNFe_v3.10.xsd +9 -0
  36. data/lib/br_nfe/product/xml/v3_10/XSD/retConsSitNFe_v3.10.xsd +9 -0
  37. data/lib/br_nfe/product/xml/v3_10/XSD/retConsStatServ_v3.10.xsd +9 -0
  38. data/lib/br_nfe/product/xml/v3_10/XSD/retEnviNFe_v3.10.xsd +9 -0
  39. data/lib/br_nfe/product/xml/v3_10/XSD/retInutNFe_v3.10.xsd +9 -0
  40. data/lib/br_nfe/product/xml/v3_10/XSD/tiposBasico_v3.10.xsd +571 -0
  41. data/lib/br_nfe/product/xml/v3_10/XSD/xmldsig-core-schema_v1.01.xsd +98 -0
  42. data/lib/br_nfe/product/xml/v3_10/consulta_status_servico.xml.slim +4 -0
  43. data/lib/br_nfe/service/association/have_intermediario.rb +26 -0
  44. data/lib/br_nfe/service/association/have_rps.rb +36 -0
  45. data/lib/br_nfe/service/base.rb +24 -20
  46. data/lib/br_nfe/service/betha/v1/cancela_nfse.rb +43 -0
  47. data/lib/br_nfe/service/betha/v1/consulta_lote_rps.rb +20 -6
  48. data/lib/br_nfe/service/betha/v1/consulta_nfs_por_rps.rb +17 -6
  49. data/lib/br_nfe/service/betha/v1/consulta_nfse.rb +16 -5
  50. data/lib/br_nfe/service/betha/v1/consulta_situacao_lote_rps.rb +15 -6
  51. data/lib/br_nfe/service/betha/v1/gateway.rb +4 -0
  52. data/lib/br_nfe/service/betha/v1/recepcao_lote_rps.rb +13 -5
  53. data/lib/br_nfe/service/betha/v1/xml/_tc_identificacao_prestador.xml.slim +3 -0
  54. data/lib/br_nfe/service/betha/v1/xml/_tc_pedido_cancelamento.xml.slim +4 -0
  55. data/lib/br_nfe/service/concerns/rules/cancelamento_nfs.rb +8 -0
  56. data/lib/br_nfe/service/concerns/rules/consulta_nfs_por_rps.rb +1 -1
  57. data/lib/br_nfe/service/concerns/rules/consulta_nfse.rb +5 -2
  58. data/lib/br_nfe/service/concerns/values_ts/service_v1.rb +319 -0
  59. data/lib/br_nfe/service/destinatario.rb +7 -0
  60. data/lib/br_nfe/service/emitente.rb +8 -0
  61. data/lib/br_nfe/service/intermediario.rb +1 -12
  62. data/lib/br_nfe/service/item.rb +7 -7
  63. data/lib/br_nfe/service/response/build/base.rb +166 -0
  64. data/lib/br_nfe/service/response/build/cancelamento.rb +62 -0
  65. data/lib/br_nfe/service/response/build/consulta_lote_rps.rb +25 -0
  66. data/lib/br_nfe/service/response/build/consulta_nfs_por_rps.rb +25 -0
  67. data/lib/br_nfe/service/response/build/consulta_nfse.rb +24 -0
  68. data/lib/br_nfe/service/response/build/consulta_situacao_lote_rps.rb +56 -0
  69. data/lib/br_nfe/service/response/build/invoice_build.rb +359 -0
  70. data/lib/br_nfe/service/response/build/recepcao_lote_rps.rb +69 -0
  71. data/lib/br_nfe/service/response/cancelamento.rb +22 -0
  72. data/lib/br_nfe/service/response/consulta_lote_rps.rb +18 -0
  73. data/lib/br_nfe/service/response/consulta_nfs_por_rps.rb +10 -0
  74. data/lib/br_nfe/service/response/consulta_nfse.rb +10 -0
  75. data/lib/br_nfe/service/response/consulta_situacao_lote_rps.rb +74 -0
  76. data/lib/br_nfe/service/response/default.rb +93 -0
  77. data/lib/br_nfe/{response/service → service/response}/nota_fiscal.rb +19 -12
  78. data/lib/br_nfe/service/response/paths/v1/tc_nfse.rb +275 -0
  79. data/lib/br_nfe/service/response/recepcao_lote_rps.rb +35 -0
  80. data/lib/br_nfe/service/rps.rb +30 -27
  81. data/lib/br_nfe/service/sc/florianopolis/xml/_service_item.xml.slim +4 -4
  82. data/lib/br_nfe/service/sc/florianopolis/xml/inf_requisicao.xml.slim +4 -4
  83. data/lib/br_nfe/service/simpliss/v1/cancela_nfse.rb +16 -6
  84. data/lib/br_nfe/service/simpliss/v1/consulta_lote_rps.rb +20 -12
  85. data/lib/br_nfe/service/simpliss/v1/consulta_nfs_por_rps.rb +21 -6
  86. data/lib/br_nfe/service/simpliss/v1/consulta_nfse.rb +20 -6
  87. data/lib/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps.rb +17 -6
  88. data/lib/br_nfe/service/simpliss/v1/recepcao_lote_rps.rb +16 -4
  89. data/lib/br_nfe/service/simpliss/v1/xml/_tc_item_servico.xml.slim +2 -2
  90. data/lib/br_nfe/service/thema/v1/cancela_nfse.rb +21 -19
  91. data/lib/br_nfe/service/thema/v1/consulta_lote_rps.rb +21 -19
  92. data/lib/br_nfe/service/thema/v1/consulta_nfs_por_rps.rb +25 -18
  93. data/lib/br_nfe/service/thema/v1/consulta_nfse.rb +20 -20
  94. data/lib/br_nfe/service/thema/v1/consulta_situacao_lote_rps.rb +14 -20
  95. data/lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb +11 -16
  96. data/lib/br_nfe/service/thema/v1/recepcao_lote_rps_limitado.rb +8 -6
  97. data/lib/br_nfe/service/xml/v1/_tc_identificacao_nfse.xml.slim +1 -1
  98. data/lib/br_nfe/service/xml/v1/_tc_pedido_cancelamento.xml.slim +1 -1
  99. data/lib/br_nfe/service/xml/v1/_tc_valores.xml.slim +11 -11
  100. data/lib/br_nfe/version.rb +1 -1
  101. data/lib/br_nfe.rb +62 -62
  102. data/test/br_nfe/association/have_address_test.rb +64 -0
  103. data/test/br_nfe/association/have_condicao_pagamento_test.rb +75 -0
  104. data/test/br_nfe/association/have_destinatario_test.rb +76 -0
  105. data/test/br_nfe/association/have_emitente_test.rb +80 -0
  106. data/test/br_nfe/base_test.rb +96 -61
  107. data/test/br_nfe/endereco_test.rb +21 -0
  108. data/test/br_nfe/person_test.rb +55 -0
  109. data/test/br_nfe/product/base_test.rb +150 -0
  110. data/test/br_nfe/product/consulta_status_servico_test.rb +59 -0
  111. data/test/br_nfe/product/emitente_test.rb +29 -0
  112. data/test/br_nfe/product/gateway/base_test.rb +16 -0
  113. data/test/br_nfe/product/gateway/web_service_svrs_test.rb +36 -0
  114. data/test/br_nfe/service/association/have_intermediario_test.rb +80 -0
  115. data/test/br_nfe/service/association/have_rps_test.rb +62 -0
  116. data/test/br_nfe/service/base_test.rb +42 -42
  117. data/test/br_nfe/service/betha/v1/cancela_nfse_test.rb +90 -0
  118. data/test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb +105 -5
  119. data/test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb +103 -5
  120. data/test/br_nfe/service/betha/v1/consulta_nfse_test.rb +114 -5
  121. data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +118 -5
  122. data/test/br_nfe/service/betha/v1/gateway_test.rb +1 -1
  123. data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +51 -5
  124. data/test/br_nfe/service/concerns/rules/cancelamento_nfs_test.rb +2 -2
  125. data/test/br_nfe/service/concerns/rules/consulta_nfs_por_rps_test.rb +2 -7
  126. data/test/br_nfe/service/concerns/rules/consulta_nfse_test.rb +24 -3
  127. data/test/br_nfe/service/concerns/rules/recepcao_lote_rps_test.rb +1 -1
  128. data/test/br_nfe/{helper → service/concerns}/values_ts/service_v1_test.rb +2 -2
  129. data/test/br_nfe/{destinatario_test.rb → service/destinatario_test.rb} +3 -4
  130. data/test/br_nfe/service/emitente_test.rb +29 -0
  131. data/test/br_nfe/service/item_test.rb +14 -14
  132. data/test/br_nfe/service/response/build/base_test.rb +80 -0
  133. data/test/br_nfe/{response/service → service/response}/default_test.rb +1 -82
  134. data/test/br_nfe/service/response/nota_fiscal_test.rb +59 -0
  135. data/test/br_nfe/{response/service → service/response}/paths/v1/tc_nfse_test.rb +10 -10
  136. data/test/br_nfe/service/rps_test.rb +107 -138
  137. data/test/br_nfe/service/sc/florianopolis/emission_rps_test.rb +9 -9
  138. data/test/br_nfe/service/simpliss/v1/base_test.rb +1 -1
  139. data/test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb +7 -10
  140. data/test/br_nfe/service/simpliss/v1/consulta_lote_rps_test.rb +11 -18
  141. data/test/br_nfe/service/simpliss/v1/consulta_nfs_por_rps_test.rb +11 -18
  142. data/test/br_nfe/service/simpliss/v1/consulta_nfse_test.rb +11 -18
  143. data/test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb +7 -11
  144. data/test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb +3 -9
  145. data/test/br_nfe/service/thema/v1/base_test.rb +1 -1
  146. data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +7 -14
  147. data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +6 -17
  148. data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +6 -13
  149. data/test/br_nfe/service/thema/v1/consulta_nfse_test.rb +11 -18
  150. data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +7 -11
  151. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb +1 -5
  152. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +3 -9
  153. data/test/factories/base.rb +0 -1
  154. data/test/factories/{emitente.rb → person.rb} +1 -1
  155. data/test/factories/product/base.rb +12 -0
  156. data/test/factories/product/consulta_status_servico.rb +12 -0
  157. data/test/factories/product/emitente.rb +15 -0
  158. data/test/factories/product/gateway/base.rb +5 -0
  159. data/test/factories/product/gateway/web_service_svrs.rb +5 -0
  160. data/test/factories/service/betha/v1/{cancelamento_nfs.rb → cancela_nfse.rb} +2 -1
  161. data/test/factories/service/betha/v1/consulta_lote_rps.rb +1 -1
  162. data/test/factories/service/betha/v1/consulta_nfs_por_rps.rb +1 -1
  163. data/test/factories/service/betha/v1/consulta_nfse.rb +1 -1
  164. data/test/factories/service/betha/v1/consulta_situacao_lote_rps.rb +1 -1
  165. data/test/factories/{destinatario.rb → service/destinatario.rb} +1 -1
  166. data/test/factories/service/emitente.rb +15 -0
  167. data/test/factories/service/item.rb +4 -4
  168. data/test/factories/service/response/build_response.rb +5 -0
  169. data/test/factories/service/response/default.rb +6 -0
  170. data/test/factories/{response/service → service/response}/nota_fiscal.rb +8 -8
  171. data/test/factories/service/rps.rb +11 -11
  172. data/test/factories/service/sc/florianopolis/base.rb +1 -1
  173. data/test/factories/service/sc/florianopolis/cancellation.rb +1 -1
  174. data/test/factories/service/sc/florianopolis/emission_rps.rb +1 -1
  175. data/test/factories/service/simpliss/v1/base.rb +1 -1
  176. data/test/factories/service/simpliss/v1/cancela_nfse.rb +1 -1
  177. data/test/factories/service/simpliss/v1/consulta_lote_rps.rb +1 -1
  178. data/test/factories/service/simpliss/v1/consulta_nfs_por_rps.rb +1 -1
  179. data/test/factories/service/simpliss/v1/consulta_nfse.rb +1 -1
  180. data/test/factories/service/simpliss/v1/consulta_situacao_lote_rps.rb +1 -1
  181. data/test/factories/service/simpliss/v1/recepcao_lote_rps.rb +1 -1
  182. data/test/factories/service/thema/v1/base.rb +1 -1
  183. data/test/factories/service/thema/v1/cancela_nfse.rb +1 -1
  184. data/test/factories/service/thema/v1/consulta_lote_rps.rb +1 -1
  185. data/test/factories/service/thema/v1/consulta_nfs_por_rps.rb +1 -1
  186. data/test/factories/service/thema/v1/consulta_nfse.rb +1 -1
  187. data/test/factories/service/thema/v1/consulta_situacao_lote_rps.rb +1 -1
  188. data/test/factories/service/thema/v1/recepcao_lote_rps.rb +1 -1
  189. data/test/fixtures/service/response/betha/v1/cancela_nfse/fault.xml +17 -0
  190. data/test/fixtures/service/response/betha/v1/cancela_nfse/success.xml +48 -0
  191. data/test/fixtures/service/response/betha/v1/consulta_lote_rps/fault.xml +18 -0
  192. data/test/fixtures/service/response/betha/v1/consulta_lote_rps/success.xml +108 -0
  193. data/test/fixtures/service/response/betha/v1/consulta_nfse/fault.xml +18 -0
  194. data/test/fixtures/service/response/betha/v1/consulta_nfse/nfs_empty.xml +12 -0
  195. data/test/fixtures/service/response/betha/v1/consulta_nfse/success.xml +115 -0
  196. data/test/fixtures/service/response/betha/v1/consulta_nfse_por_rps/fault.xml +18 -0
  197. data/test/fixtures/service/response/betha/v1/consulta_nfse_por_rps/success.xml +103 -0
  198. data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/error.xml +13 -0
  199. data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/fault.xml +17 -0
  200. data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/success.xml +13 -0
  201. data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unprocessed.xml +13 -0
  202. data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unprocessed_by_code_error.xml +17 -0
  203. data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unreceived.xml +13 -0
  204. data/test/fixtures/service/response/betha/v1/consulta_situacao_lote_rps/unreceived_by_code_error.xml +17 -0
  205. data/test/fixtures/service/response/betha/v1/recepcao_lote_rps/error.xml +17 -0
  206. data/test/fixtures/service/response/betha/v1/recepcao_lote_rps/success.xml +14 -0
  207. metadata +160 -94
  208. data/lib/br_nfe/destinatario.rb +0 -26
  209. data/lib/br_nfe/helper/have_destinatario.rb +0 -18
  210. data/lib/br_nfe/helper/have_emitente.rb +0 -20
  211. data/lib/br_nfe/helper/have_intermediario.rb +0 -24
  212. data/lib/br_nfe/helper/have_rps.rb +0 -34
  213. data/lib/br_nfe/helper/values_ts/service_v1.rb +0 -317
  214. data/lib/br_nfe/response/service/build_response.rb +0 -463
  215. data/lib/br_nfe/response/service/default.rb +0 -185
  216. data/lib/br_nfe/response/service/paths/base.rb +0 -127
  217. data/lib/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta.rb +0 -22
  218. data/lib/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta.rb +0 -25
  219. data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta.rb +0 -25
  220. data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta.rb +0 -25
  221. data/lib/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta.rb +0 -31
  222. data/lib/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta.rb +0 -36
  223. data/lib/br_nfe/response/service/paths/v1/tc_nfse.rb +0 -271
  224. data/lib/br_nfe/service/betha/v1/cancelamento_nfs.rb +0 -36
  225. data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta.rb +0 -23
  226. data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta.rb +0 -21
  227. data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +0 -21
  228. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_cancelar_nfse_resposta.rb +0 -22
  229. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_lote_rps_resposta.rb +0 -25
  230. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_resposta.rb +0 -25
  231. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +0 -25
  232. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_situacao_lote_rps_resposta.rb +0 -31
  233. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_enviar_lote_rps_resposta.rb +0 -36
  234. data/lib/br_nfe/service/thema/v1/response_paths/servico_cancelar_nfse_resposta.rb +0 -17
  235. data/lib/br_nfe/service/thema/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +0 -19
  236. data/test/br_nfe/emitente_test.rb +0 -46
  237. data/test/br_nfe/helper/have_address_test.rb +0 -62
  238. data/test/br_nfe/helper/have_condicao_pagamento_test.rb +0 -71
  239. data/test/br_nfe/helper/have_destinatario_test.rb +0 -64
  240. data/test/br_nfe/helper/have_emitente_test.rb +0 -63
  241. data/test/br_nfe/helper/have_intermediario_test.rb +0 -77
  242. data/test/br_nfe/helper/have_rps_test.rb +0 -59
  243. data/test/br_nfe/response/service/build_response_test.rb +0 -205
  244. data/test/br_nfe/response/service/nota_fiscal_test.rb +0 -41
  245. data/test/br_nfe/response/service/paths/base_test.rb +0 -196
  246. data/test/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta_test.rb +0 -25
  247. data/test/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta_test.rb +0 -30
  248. data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta_test.rb +0 -30
  249. data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta_test.rb +0 -30
  250. data/test/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta_test.rb +0 -30
  251. data/test/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta_test.rb +0 -34
  252. data/test/br_nfe/service/betha/v1/cancelamento_nfs_test.rb +0 -54
  253. data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta_test.rb +0 -16
  254. data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta_test.rb +0 -16
  255. data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta_test.rb +0 -16
  256. data/test/factories/response/service/build_response.rb +0 -5
  257. data/test/factories/response/service/default.rb +0 -10
@@ -2,7 +2,7 @@ require 'test_helper'
2
2
 
3
3
  describe BrNfe::Service::Thema::V1::RecepcaoLoteRps do
4
4
  subject { FactoryGirl.build(:service_thema_v1_recepcao_lote_rps, emitente: emitente) }
5
- let(:emitente) { FactoryGirl.build(:emitente, natureza_operacao: '50') }
5
+ let(:emitente) { FactoryGirl.build(:service_emitente, natureza_operacao: '50') }
6
6
 
7
7
  describe "superclass" do
8
8
  it { subject.class.superclass.must_equal BrNfe::Service::Thema::V1::Base }
@@ -16,14 +16,6 @@ describe BrNfe::Service::Thema::V1::RecepcaoLoteRps do
16
16
  it { subject.method_wsdl.must_equal :recepcionar_lote_rps }
17
17
  end
18
18
 
19
- it "#response_root_path" do
20
- subject.response_root_path.must_equal []
21
- end
22
-
23
- it "#body_xml_path" do
24
- subject.body_xml_path.must_equal [:recepcionar_lote_rps_response, :return]
25
- end
26
-
27
19
  it "#soap_body_root_tag" do
28
20
  subject.soap_body_root_tag.must_equal 'recepcionarLoteRps'
29
21
  end
@@ -101,6 +93,7 @@ describe BrNfe::Service::Thema::V1::RecepcaoLoteRps do
101
93
  subject.request
102
94
  response = subject.response
103
95
 
96
+ response.must_be_kind_of BrNfe::Service::Response::RecepcaoLoteRps
104
97
  response.status.must_equal :success
105
98
  response.protocolo.must_equal '2916414'
106
99
  response.data_recebimento.must_equal Time.parse('2016-08-15T14:55:01.271Z')
@@ -115,6 +108,7 @@ describe BrNfe::Service::Thema::V1::RecepcaoLoteRps do
115
108
  subject.request
116
109
  response = subject.response
117
110
 
111
+ response.must_be_kind_of BrNfe::Service::Response::RecepcaoLoteRps
118
112
  response.protocolo.must_be_nil
119
113
  response.data_recebimento.must_be_nil
120
114
  response.numero_lote.must_be_nil
@@ -1,6 +1,5 @@
1
1
  FactoryGirl.define do
2
2
  factory :br_nfe_base, class: BrNfe::Base do
3
- emitente { FactoryGirl.build(:emitente) }
4
3
  certificate_pkcs12_password 'associacao'
5
4
  certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
6
5
  end
@@ -1,5 +1,5 @@
1
1
  FactoryGirl.define do
2
- factory :emitente, class: BrNfe::Emitente do
2
+ factory :person, class: BrNfe::Person do
3
3
  endereco { FactoryGirl.build(:endereco) }
4
4
  cnpj "40345138000147"
5
5
  inscricao_municipal "123465"
@@ -0,0 +1,12 @@
1
+ FactoryGirl.define do
2
+ factory :product_base, class: BrNfe::Product::Base do
3
+ transient do
4
+ endereco_emitente { FactoryGirl.build(:endereco, codigo_municipio: '4216008') }
5
+ end
6
+ env :test
7
+ emitente { FactoryGirl.build(:service_emitente, endereco: endereco_emitente) }
8
+ ibge_code_of_issuer_uf '42'
9
+ certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
10
+ certificate_pkcs12_password 'associacao'
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ FactoryGirl.define do
2
+ factory :product_consulta_status_servico, class: BrNfe::Product::ConsultaStatusServico do
3
+ transient do
4
+ endereco_emitente { FactoryGirl.build(:endereco, codigo_municipio: '4216008') }
5
+ end
6
+ env :test
7
+ emitente { FactoryGirl.build(:service_emitente, endereco: endereco_emitente) }
8
+ ibge_code_of_issuer_uf '42'
9
+ certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
10
+ certificate_pkcs12_password 'associacao'
11
+ end
12
+ end
@@ -0,0 +1,15 @@
1
+ FactoryGirl.define do
2
+ factory :product_emitente, class: BrNfe::Product::Emitente do
3
+ endereco { FactoryGirl.build(:endereco) }
4
+ cnpj "40345138000147"
5
+ inscricao_municipal "123465"
6
+ razao_social "EMPRESA DE TECNOLOGIA DA INFORMAÇÃO"
7
+ nome_fantasia "TI"
8
+ telefone "333366558"
9
+ email "mail@mail.com"
10
+ regime_especial_tributacao "3"
11
+ optante_simples_nacional "2"
12
+ incentivo_fiscal "2"
13
+ natureza_operacao "1"
14
+ end
15
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :product_gateway_base, class: BrNfe::Product::Gateway::Base do
3
+ env :test
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :product_gateway_web_service_svrs, class: BrNfe::Product::Gateway::WebServiceSVRS do
3
+ env :test
4
+ end
5
+ end
@@ -1,9 +1,10 @@
1
1
  FactoryGirl.define do
2
- factory :servico_betha_cancelamento_nfs, class: BrNfe::Service::Betha::V1::CancelamentoNfs do
2
+ factory :servico_betha_cancela_nfse, class: BrNfe::Service::Betha::V1::CancelaNfse do
3
3
  nfe_number '3365'
4
4
  codigo_cancelamento '1'
5
5
  certificate_pkcs12_password 'associacao'
6
6
  certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
7
+ codigo_ibge_municipio_prestacao '4204202'
7
8
 
8
9
  end
9
10
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :servico_betha_consulta_lote_rps, class: BrNfe::Service::Betha::V1::ConsultaLoteRps do
3
3
  protocolo '1234567890'
4
- emitente { FactoryGirl.build(:emitente) }
4
+ emitente { FactoryGirl.build(:service_emitente) }
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :servico_betha_consulta_nfs_por_rps, class: BrNfe::Service::Betha::V1::ConsultaNfsPorRps do
3
3
  rps { FactoryGirl.build(:br_nfe_rps) }
4
- emitente { FactoryGirl.build(:emitente) }
4
+ emitente { FactoryGirl.build(:service_emitente) }
5
5
  end
6
6
  end
@@ -3,6 +3,6 @@ FactoryGirl.define do
3
3
  nfe_number '5566778'
4
4
  start_date { Date.yesterday }
5
5
  end_date { Date.today }
6
- emitente { FactoryGirl.build(:emitente) }
6
+ emitente { FactoryGirl.build(:service_emitente) }
7
7
  end
8
8
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :servico_betha_consulta_situacao_lote_rps, class: BrNfe::Service::Betha::V1::ConsultaSituacaoLoteRps do
3
3
  protocolo '1234567890'
4
- emitente { FactoryGirl.build(:emitente) }
4
+ emitente { FactoryGirl.build(:service_emitente) }
5
5
  end
6
6
  end
@@ -1,5 +1,5 @@
1
1
  FactoryGirl.define do
2
- factory :destinatario, class: BrNfe::Destinatario do
2
+ factory :service_destinatario, class: BrNfe::Service::Destinatario do
3
3
  cpf_cnpj "767.345.234-03"
4
4
  inscricao_municipal '66569'
5
5
  inscricao_estadual '88889'
@@ -0,0 +1,15 @@
1
+ FactoryGirl.define do
2
+ factory :service_emitente, class: BrNfe::Service::Emitente do
3
+ endereco { FactoryGirl.build(:endereco) }
4
+ cnpj "40345138000147"
5
+ inscricao_municipal "123465"
6
+ razao_social "EMPRESA DE TECNOLOGIA DA INFORMAÇÃO"
7
+ nome_fantasia "TI"
8
+ telefone "333366558"
9
+ email "mail@mail.com"
10
+ regime_especial_tributacao "3"
11
+ optante_simples_nacional "2"
12
+ incentivo_fiscal "2"
13
+ natureza_operacao "1"
14
+ end
15
+ end
@@ -4,9 +4,9 @@ FactoryGirl.define do
4
4
  cnae_code '1234567'
5
5
  description 'Item description'
6
6
  cst '1'
7
- iss_tax_rate 0.025
8
- unit_value 100.00
9
- quantity 2.0
10
- total_value 200.00
7
+ iss_aliquota 0.025
8
+ valor_unitario 100.00
9
+ quantidade 2.0
10
+ valor_total 200.00
11
11
  end
12
12
  end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :service_build_response, class: BrNfe::Service::Response::Build::Base do
3
+
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ FactoryGirl.define do
2
+ factory :response_service_default, class: BrNfe::Service::Response::Default do
3
+ status :success
4
+ error_messages { [] }
5
+ end
6
+ end
@@ -1,8 +1,8 @@
1
1
  FactoryGirl.define do
2
- factory :response_service_nota_fiscal, class: BrNfe::Response::Service::NotaFiscal do
2
+ factory :response_service_nota_fiscal, class: BrNfe::Service::Response::NotaFiscal do
3
3
  intermediario { FactoryGirl.build(:intermediario) }
4
- destinatario { FactoryGirl.build(:destinatario) }
5
- emitente { FactoryGirl.build(:emitente) }
4
+ destinatario { FactoryGirl.build(:service_destinatario) }
5
+ emitente { FactoryGirl.build(:service_emitente) }
6
6
  condicao_pagamento { FactoryGirl.build(:condicao_pagamento) }
7
7
  numero_nf "3321"
8
8
  codigo_verificacao "EOSFO55"
@@ -18,17 +18,17 @@ FactoryGirl.define do
18
18
  cnae_code ""
19
19
  description "SERVIÇO SOBRE ALGO"
20
20
  codigo_municipio "4204202"
21
- total_services "100.0"
22
- deductions "0"
21
+ valor_total_servicos "100.0"
22
+ deducoes "0"
23
23
  valor_pis "0"
24
24
  valor_cofins "0"
25
25
  valor_inss "0"
26
26
  valor_ir "0"
27
27
  valor_csll "0"
28
- iss_retained "2"
28
+ iss_retido "2"
29
29
  total_iss "2"
30
- base_calculation "100.0"
31
- iss_tax_rate "0.02"
30
+ base_calculo "100.0"
31
+ iss_aliquota "0.02"
32
32
  desconto_condicionado ""
33
33
  desconto_incondicionado ""
34
34
  orgao_gerador_municipio "4204202"
@@ -1,22 +1,22 @@
1
1
  FactoryGirl.define do
2
2
  factory :br_nfe_rps, class: BrNfe::Service::Rps do
3
- destinatario { FactoryGirl.build(:destinatario) }
3
+ destinatario { FactoryGirl.build(:service_destinatario) }
4
4
  numero 556
5
5
  serie 'SN'
6
6
  tipo '1'
7
7
  data_emissao DateTime.now
8
8
  status '1'
9
9
  competencia Date.today
10
- total_services '349.00'
10
+ valor_total_servicos '349.00'
11
11
  total_iss '6.98'
12
- iss_tax_rate '0.02'
13
- base_calculation '349.00'
14
- iss_retained '2'
12
+ iss_aliquota '0.02'
13
+ base_calculo '349.00'
14
+ iss_retido '2'
15
15
  item_lista_servico '0107'
16
16
  description "MENSALIDADE PLANO PRO. 349,00 \n\nValor Aprox dos Tributos: R$ 6,59 Federal, R$ 0,00 Estadual e R$ 1,62 Municipal \n Fonte: IBPT/FECOMERCIO SC 5oi7eW"
17
17
  codigo_municipio '4204202'
18
18
  cnae_code '6202300'
19
- items { [ FactoryGirl.build(:service_item, unit_value: total_services, quantity: 1) ] }
19
+ items { [ FactoryGirl.build(:service_item, valor_unitario: valor_total_servicos, quantidade: 1) ] }
20
20
 
21
21
  trait :completo do
22
22
  codigo_tributacao_municipio '6699'
@@ -28,9 +28,9 @@ FactoryGirl.define do
28
28
  codigo_obra '66'
29
29
  codigo_art '223'
30
30
  outras_informacoes 'info a mais'
31
- total_base_calculation_st 55.77
31
+ total_base_calculo_st 55.77
32
32
  total_issqn_st 4.87
33
- deductions 7.0
33
+ deducoes 7.0
34
34
  valor_pis 1.123
35
35
  valor_cofins 2.123
36
36
  valor_inss 3.123
@@ -42,9 +42,9 @@ FactoryGirl.define do
42
42
  responsavel_retencao '1'
43
43
  exigibilidade_iss '5'
44
44
  numero_processo '6546'
45
- iss_retained true
46
- total_iss_retained 5.55
47
- net_value 349.00
45
+ iss_retido true
46
+ total_iss_retido 5.55
47
+ valor_liquido 349.00
48
48
  municipio_incidencia '111'
49
49
  end
50
50
  end
@@ -1,5 +1,5 @@
1
1
  FactoryGirl.define do
2
2
  factory :service_sc_floripa_base, class: BrNfe::Service::SC::Florianopolis::Base do
3
- emitente { FactoryGirl.build(:emitente) }
3
+ emitente { FactoryGirl.build(:service_emitente) }
4
4
  end
5
5
  end
@@ -2,6 +2,6 @@ FactoryGirl.define do
2
2
  factory :service_sc_floripa_cancellation, class: BrNfe::Service::SC::Florianopolis::Cancellation do
3
3
  aedf '123456'
4
4
  serie_number 1154
5
- emitente { FactoryGirl.build(:emitente) }
5
+ emitente { FactoryGirl.build(:service_emitente) }
6
6
  end
7
7
  end
@@ -2,6 +2,6 @@ FactoryGirl.define do
2
2
  factory :service_sc_floripa_emission_rps, class: BrNfe::Service::SC::Florianopolis::EmissionRPS do
3
3
  cfps 5525
4
4
  aedf 123456
5
- emitente { FactoryGirl.build(:emitente) }
5
+ emitente { FactoryGirl.build(:service_emitente) }
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :service_simpliss_v1_base, class: BrNfe::Service::Simpliss::V1::Base do
3
- emitente { FactoryGirl.build(:emitente) }
3
+ emitente { FactoryGirl.build(:service_emitente) }
4
4
  certificate_pkcs12_password 'associacao'
5
5
  certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
6
6
  end
@@ -4,6 +4,6 @@ FactoryGirl.define do
4
4
  codigo_cancelamento '1'
5
5
  certificate_pkcs12_password 'associacao'
6
6
  certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
7
-
7
+ codigo_ibge_municipio_prestacao '4204202'
8
8
  end
9
9
  end
@@ -1,7 +1,7 @@
1
1
 
2
2
  FactoryGirl.define do
3
3
  factory :service_simpliss_v1_consulta_lote_rps, class: BrNfe::Service::Simpliss::V1::ConsultaLoteRps do
4
- emitente { FactoryGirl.build(:emitente) }
4
+ emitente { FactoryGirl.build(:service_emitente) }
5
5
  protocolo '1234567890'
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :service_simpliss_v1_consulta_nfs_por_rps, class: BrNfe::Service::Simpliss::V1::ConsultaNfsPorRps do
3
3
  rps { FactoryGirl.build(:br_nfe_rps) }
4
- emitente { FactoryGirl.build(:emitente) }
4
+ emitente { FactoryGirl.build(:service_emitente) }
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :service_simpliss_v1_consulta_nfse, class: BrNfe::Service::Simpliss::V1::ConsultaNfse do
3
- emitente { FactoryGirl.build(:emitente) }
3
+ emitente { FactoryGirl.build(:service_emitente) }
4
4
  nfe_number '5566778'
5
5
  start_date { Date.yesterday }
6
6
  end_date { Date.today }
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :service_simpliss_v1_consulta_situacao_lote_rps, class: BrNfe::Service::Simpliss::V1::ConsultaSituacaoLoteRps do
3
- emitente { FactoryGirl.build(:emitente) }
3
+ emitente { FactoryGirl.build(:service_emitente) }
4
4
  protocolo '1234567890'
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :service_simpliss_v1_recepcao_lote_rps, class: BrNfe::Service::Simpliss::V1::RecepcaoLoteRps do
3
- emitente { FactoryGirl.build(:emitente) }
3
+ emitente { FactoryGirl.build(:service_emitente) }
4
4
  numero_lote_rps '123'
5
5
  operacao '1'
6
6
  certificate_pkcs12_password 'associacao'
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :service_thema_v1_base, class: BrNfe::Service::Thema::V1::Base do
3
- emitente { FactoryGirl.build(:emitente) }
3
+ emitente { FactoryGirl.build(:service_emitente) }
4
4
  certificate_pkcs12_password 'associacao'
5
5
  certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
6
6
  end
@@ -4,6 +4,6 @@ FactoryGirl.define do
4
4
  codigo_cancelamento '1'
5
5
  certificate_pkcs12_password 'associacao'
6
6
  certificate_pkcs12_path { "#{BrNfe.root}/test/cert.pfx" }
7
-
7
+ codigo_ibge_municipio_prestacao '4204202'
8
8
  end
9
9
  end
@@ -1,7 +1,7 @@
1
1
 
2
2
  FactoryGirl.define do
3
3
  factory :service_thema_v1_consulta_lote_rps, class: BrNfe::Service::Thema::V1::ConsultaLoteRps do
4
- emitente { FactoryGirl.build(:emitente) }
4
+ emitente { FactoryGirl.build(:service_emitente) }
5
5
  protocolo '1234567890'
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :service_thema_v1_consulta_nfs_por_rps, class: BrNfe::Service::Thema::V1::ConsultaNfsPorRps do
3
3
  rps { FactoryGirl.build(:br_nfe_rps) }
4
- emitente { FactoryGirl.build(:emitente) }
4
+ emitente { FactoryGirl.build(:service_emitente) }
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :service_thema_v1_consulta_nfse, class: BrNfe::Service::Thema::V1::ConsultaNfse do
3
- emitente { FactoryGirl.build(:emitente) }
3
+ emitente { FactoryGirl.build(:service_emitente) }
4
4
  nfe_number '5566778'
5
5
  start_date { Date.yesterday }
6
6
  end_date { Date.today }
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :service_thema_v1_consulta_situacao_lote_rps, class: BrNfe::Service::Thema::V1::ConsultaSituacaoLoteRps do
3
- emitente { FactoryGirl.build(:emitente) }
3
+ emitente { FactoryGirl.build(:service_emitente) }
4
4
  protocolo '1234567890'
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :service_thema_v1_recepcao_lote_rps, class: BrNfe::Service::Thema::V1::RecepcaoLoteRps do
3
- emitente { FactoryGirl.build(:emitente) }
3
+ emitente { FactoryGirl.build(:service_emitente) }
4
4
  numero_lote_rps '123'
5
5
  operacao '1'
6
6
  certificate_pkcs12_password 'associacao'
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0"?>
2
+ <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <env:Header/>
4
+ <env:Body>
5
+ <ns3:CancelarNfseEnvioResponse xmlns:ns2="http://www.w3.org/2000/09/xmldsig#" xmlns:ns3="http://www.betha.com.br/e-nota-contribuinte-ws">
6
+ <CancelarNfseResposta>
7
+ <ListaMensagemRetorno>
8
+ <MensagemRetorno>
9
+ <Codigo>E42</Codigo>
10
+ <Mensagem>C&#xF3;digo do munic&#xED;pio da presta&#xE7;&#xE3;o do servi&#xE7;o inv&#xE1;lido.</Mensagem>
11
+ <Correcao>Informe o c&#xF3;digo do munic&#xED;pio onde foi prestado o servi&#xE7;o, conforme Tabela de Munic&#xED;pios do IBGE.</Correcao>
12
+ </MensagemRetorno>
13
+ </ListaMensagemRetorno>
14
+ </CancelarNfseResposta>
15
+ </ns3:CancelarNfseEnvioResponse>
16
+ </env:Body>
17
+ </env:Envelope>
@@ -0,0 +1,48 @@
1
+ <?xml version="1.0"?>
2
+ <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <env:Header/>
4
+ <env:Body>
5
+ <ns3:CancelarNfseEnvioResponse xmlns:ns2="http://www.w3.org/2000/09/xmldsig#" xmlns:ns3="http://www.betha.com.br/e-nota-contribuinte-ws">
6
+ <CancelarNfseResposta>
7
+ <Cancelamento>
8
+ <Confirmacao>
9
+ <Pedido>
10
+ <InfPedidoCancelamento>
11
+ <IdentificacaoNfse>
12
+ <Numero>3188</Numero>
13
+ <Cnpj>23020443000140</Cnpj>
14
+ <CodigoMunicipio>4204202</CodigoMunicipio>
15
+ </IdentificacaoNfse>
16
+ <CodigoCancelamento>2</CodigoCancelamento>
17
+ </InfPedidoCancelamento>
18
+ <ns2:Signature>
19
+ <ns2:SignedInfo>
20
+ <ns2:CanonicalizationMethod/>
21
+ <ns2:SignatureMethod/>
22
+ <ns2:Reference URI="#C20160921173345079570049">
23
+ <ns2:Transforms>
24
+ <ns2:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
25
+ <ns2:Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
26
+ </ns2:Transforms>
27
+ <ns2:DigestMethod/>
28
+ <ns2:DigestValue>Eni7DA5fjUZAYemxDzZ2oDulrHc=</ns2:DigestValue>
29
+ </ns2:Reference>
30
+ </ns2:SignedInfo>
31
+ <ns2:SignatureValue>LLnyzy6LQnbpXiii9vuo</ns2:SignatureValue>
32
+ <ns2:KeyInfo>
33
+ <ns2:X509Data>
34
+ <ns2:X509Certificate>MIIIBjCCBe6gAwI</ns2:X509Certificate>
35
+ </ns2:X509Data>
36
+ </ns2:KeyInfo>
37
+ </ns2:Signature>
38
+ </Pedido>
39
+ <InfConfirmacaoCancelamento>
40
+ <Sucesso>true</Sucesso>
41
+ <DataHora>2016-09-21T17:33:45.718-03:00</DataHora>
42
+ </InfConfirmacaoCancelamento>
43
+ </Confirmacao>
44
+ </Cancelamento>
45
+ </CancelarNfseResposta>
46
+ </ns3:CancelarNfseEnvioResponse>
47
+ </env:Body>
48
+ </env:Envelope>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0"?>
2
+ <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <env:Header/>
4
+ <env:Body>
5
+ <ns2:ConsultarLoteRpsEnvioResponse xmlns:ns2="http://www.betha.com.br/e-nota-contribuinte-ws" xmlns:ns3="http://www.w3.org/2000/09/xmldsig#">
6
+ <ConsultarLoteRpsResposta>
7
+ <ListaNfse/>
8
+ <ListaMensagemRetorno>
9
+ <MensagemRetorno>
10
+ <Codigo>E10</Codigo>
11
+ <Mensagem>RPS j&#xE1; informado.</Mensagem>
12
+ <Correcao>Para essa Inscri&#xE7;&#xE3;o Municipal/CNPJ j&#xE1; existe um RPS informado com o mesmo n&#xFA;mero, s&#xE9;rie e tipo.</Correcao>
13
+ </MensagemRetorno>
14
+ </ListaMensagemRetorno>
15
+ </ConsultarLoteRpsResposta>
16
+ </ns2:ConsultarLoteRpsEnvioResponse>
17
+ </env:Body>
18
+ </env:Envelope>