br_nfe 2.1.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (495) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/Gemfile +1 -0
  4. data/Gemfile.lock +12 -2
  5. data/README.markdown +3 -1
  6. data/Rakefile +20 -1
  7. data/lib/br_nfe/active_model/associations.rb +11 -0
  8. data/lib/br_nfe/active_model/has_many.rb +65 -0
  9. data/lib/br_nfe/active_model/has_one.rb +57 -0
  10. data/lib/br_nfe/active_model_base.rb +38 -1
  11. data/lib/br_nfe/base.rb +9 -0
  12. data/lib/br_nfe/calculos/fatores_de_multiplicacao.rb +67 -0
  13. data/lib/br_nfe/calculos/modulo11.rb +54 -0
  14. data/lib/br_nfe/calculos/modulo11_fator_de2a9.rb +83 -0
  15. data/lib/br_nfe/calculos/modulo11_fator_de2a9_resto_zero.rb +29 -0
  16. data/lib/br_nfe/constants.rb +46 -1
  17. data/lib/br_nfe/endereco.rb +6 -2
  18. data/lib/br_nfe/helper/cpf_cnpj.rb +8 -1
  19. data/lib/br_nfe/person.rb +32 -3
  20. data/lib/br_nfe/product/destinatario.rb +45 -0
  21. data/lib/br_nfe/product/emitente.rb +14 -1
  22. data/lib/br_nfe/product/evento/base.rb +146 -0
  23. data/lib/br_nfe/product/evento/cancelamento.rb +46 -0
  24. data/lib/br_nfe/product/gateway/base.rb +16 -43
  25. data/lib/br_nfe/product/gateway/web_service_am.rb +140 -0
  26. data/lib/br_nfe/product/gateway/web_service_ba.rb +140 -0
  27. data/lib/br_nfe/product/gateway/web_service_ce.rb +162 -0
  28. data/lib/br_nfe/product/gateway/web_service_go.rb +140 -0
  29. data/lib/br_nfe/product/gateway/web_service_mg.rb +140 -0
  30. data/lib/br_nfe/product/gateway/web_service_ms.rb +140 -0
  31. data/lib/br_nfe/product/gateway/web_service_mt.rb +140 -0
  32. data/lib/br_nfe/product/gateway/web_service_pe.rb +140 -0
  33. data/lib/br_nfe/product/gateway/web_service_pr.rb +140 -0
  34. data/lib/br_nfe/product/gateway/web_service_rs.rb +140 -0
  35. data/lib/br_nfe/product/gateway/web_service_sp.rb +140 -0
  36. data/lib/br_nfe/product/gateway/web_service_svan.rb +162 -0
  37. data/lib/br_nfe/product/gateway/web_service_svc_an.rb +131 -0
  38. data/lib/br_nfe/product/gateway/web_service_svc_rs.rb +20 -0
  39. data/lib/br_nfe/product/gateway/web_service_svrs.rb +111 -10
  40. data/lib/br_nfe/product/nf_xml_value.rb +278 -0
  41. data/lib/br_nfe/product/nfe/adicao_importacao.rb +76 -0
  42. data/lib/br_nfe/product/nfe/cobranca/duplicata.rb +44 -0
  43. data/lib/br_nfe/product/nfe/cobranca/fatura.rb +64 -0
  44. data/lib/br_nfe/product/nfe/cobranca/pagamento.rb +99 -0
  45. data/lib/br_nfe/product/nfe/declaracao_importacao.rb +221 -0
  46. data/lib/br_nfe/product/nfe/detalhe_exportacao.rb +89 -0
  47. data/lib/br_nfe/product/nfe/item.rb +678 -0
  48. data/lib/br_nfe/product/nfe/item_tax/cofins.rb +138 -0
  49. data/lib/br_nfe/product/nfe/item_tax/cofins_st.rb +68 -0
  50. data/lib/br_nfe/product/nfe/item_tax/icms.rb +593 -0
  51. data/lib/br_nfe/product/nfe/item_tax/icms_uf_destino.rb +169 -0
  52. data/lib/br_nfe/product/nfe/item_tax/importacao.rb +62 -0
  53. data/lib/br_nfe/product/nfe/item_tax/ipi.rb +179 -0
  54. data/lib/br_nfe/product/nfe/item_tax/issqn.rb +256 -0
  55. data/lib/br_nfe/product/nfe/item_tax/pis.rb +138 -0
  56. data/lib/br_nfe/product/nfe/item_tax/pis_st.rb +68 -0
  57. data/lib/br_nfe/product/nfe/processo_referencia.rb +48 -0
  58. data/lib/br_nfe/product/nfe/transporte/base.rb +264 -0
  59. data/lib/br_nfe/product/nfe/transporte/transportador.rb +15 -0
  60. data/lib/br_nfe/product/nfe/transporte/veiculo.rb +53 -0
  61. data/lib/br_nfe/product/nfe/transporte/volume.rb +89 -0
  62. data/lib/br_nfe/product/nota_fiscal.rb +1173 -0
  63. data/lib/br_nfe/product/operation/base.rb +255 -0
  64. data/lib/br_nfe/product/operation/nfe_autorizacao.rb +118 -0
  65. data/lib/br_nfe/product/operation/nfe_consulta_protocolo.rb +61 -0
  66. data/lib/br_nfe/product/operation/nfe_download_nf.rb +86 -0
  67. data/lib/br_nfe/product/operation/nfe_inutilizacao.rb +168 -0
  68. data/lib/br_nfe/product/operation/nfe_recepcao_evento.rb +70 -0
  69. data/lib/br_nfe/product/operation/nfe_ret_autorizacao.rb +63 -0
  70. data/lib/br_nfe/product/operation/nfe_status_servico.rb +46 -0
  71. data/lib/br_nfe/product/response/base.rb +97 -0
  72. data/lib/br_nfe/product/response/build/base.rb +287 -0
  73. data/lib/br_nfe/product/response/build/nfe_autorizacao.rb +102 -0
  74. data/lib/br_nfe/product/response/build/nfe_consulta_protocolo.rb +133 -0
  75. data/lib/br_nfe/product/response/build/nfe_inutilizacao.rb +53 -0
  76. data/lib/br_nfe/product/response/build/nfe_ret_autorizacao.rb +65 -0
  77. data/lib/br_nfe/product/response/build/nfe_status_servico.rb +43 -0
  78. data/lib/br_nfe/product/response/event.rb +89 -0
  79. data/lib/br_nfe/product/response/nfe_autorizacao.rb +12 -0
  80. data/lib/br_nfe/product/response/nfe_consulta_protocolo.rb +13 -0
  81. data/lib/br_nfe/product/response/nfe_inutilizacao.rb +89 -0
  82. data/lib/br_nfe/product/response/nfe_ret_autorizacao.rb +9 -0
  83. data/lib/br_nfe/product/response/nfe_status_servico.rb +31 -0
  84. data/lib/br_nfe/product/xml/_signed_info_sh1.xml.slim +9 -0
  85. data/lib/br_nfe/product/xml/_tc_cpf_cnpj.xml.slim +7 -0
  86. data/lib/br_nfe/product/xml/signature_sh1.xml.slim +12 -0
  87. data/lib/br_nfe/product/xml/v1_00/evento/infEventoCancelamento.xml.slim +19 -0
  88. data/lib/br_nfe/product/xml/v1_00/root/NfeDownloadNf.xml.slim +5 -0
  89. data/lib/br_nfe/product/xml/v1_00/root/NfeRecepcaoEvento.xml.slim +7 -0
  90. data/lib/br_nfe/product/xml/v2_00/_tc_endereco.xml.slim +19 -0
  91. data/lib/br_nfe/product/xml/v2_00/_tc_infNFe.xml.slim +39 -0
  92. data/lib/br_nfe/product/xml/v2_00/infInut.xml.slim +12 -0
  93. data/lib/br_nfe/product/xml/v2_00/infNFe/NFe.xml.slim +4 -0
  94. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_cobr.xml.slim +19 -0
  95. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_dest.xml.slim +14 -0
  96. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_det.xml.slim +7 -0
  97. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_emit.xml.slim +19 -0
  98. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_entrega.xml.slim +11 -0
  99. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_exporta.xml.slim +2 -0
  100. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_ide.xml.slim +24 -0
  101. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_infAdic.xml.slim +13 -0
  102. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_retirada.xml.slim +11 -0
  103. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_total.xml.slim +50 -0
  104. data/lib/br_nfe/product/xml/v2_00/infNFe/_tc_transp.xml.slim +35 -0
  105. data/lib/br_nfe/product/xml/v2_00/infNFe/det/_tc_imposto.xml.slim +31 -0
  106. data/lib/br_nfe/product/xml/v2_00/infNFe/det/_tc_prod.xml.slim +37 -0
  107. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS00.xml.slim +6 -0
  108. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS10.xml.slim +16 -0
  109. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS101.xml.slim +4 -0
  110. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS102.xml.slim +3 -0
  111. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS20.xml.slim +6 -0
  112. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS201.xml.slim +15 -0
  113. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS202.xml.slim +14 -0
  114. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS30.xml.slim +12 -0
  115. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS40.xml.slim +7 -0
  116. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS500.xml.slim +6 -0
  117. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS51.xml.slim +13 -0
  118. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS60.xml.slim +5 -0
  119. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS70.xml.slim +18 -0
  120. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS90.xml.slim +21 -0
  121. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/ICMS/_tc_ICMS900.xml.slim +25 -0
  122. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_COFINS.xml.slim +26 -0
  123. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_COFINS_ST.xml.slim +7 -0
  124. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_ICMS.xml.slim +45 -0
  125. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_II.xml.slim +4 -0
  126. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_IPI.xml.slim +30 -0
  127. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_PIS.xml.slim +26 -0
  128. data/lib/br_nfe/product/xml/v2_00/infNFe/det/imposto/_tc_PIS_ST.xml.slim +7 -0
  129. data/lib/br_nfe/product/xml/v2_00/infNFe/det/prod/_tc_di.xml.slim +13 -0
  130. data/lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_retTransp.xml.slim +6 -0
  131. data/lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_transporta.xml.slim +17 -0
  132. data/lib/br_nfe/product/xml/v2_00/infNFe/transp/_tc_vol.xml.slim +15 -0
  133. data/lib/br_nfe/product/xml/v2_00/infNFe.xml.slim +3 -0
  134. data/lib/br_nfe/product/xml/v2_00/root/NfeAutorizacao.xml.slim +5 -0
  135. data/lib/br_nfe/product/xml/v2_00/root/NfeInutilizacao.xml.slim +4 -0
  136. data/lib/br_nfe/product/xml/v2_00/root/NfeRetAutorizacao.xml.slim +3 -0
  137. data/lib/br_nfe/product/xml/v2_00/root/NfeStatusServico.xml.slim +4 -0
  138. data/lib/br_nfe/product/xml/v2_01/root/NfeConsultaProtocolo.xml.slim +4 -0
  139. data/lib/br_nfe/product/xml/v3_10/_tc_infNFe.xml.slim +44 -0
  140. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_dest.xml.slim +25 -0
  141. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_det.xml.slim +14 -0
  142. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_exporta.xml.slim +4 -0
  143. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_ide.xml.slim +26 -0
  144. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_pag.xml.slim +7 -0
  145. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_total.xml.slim +78 -0
  146. data/lib/br_nfe/product/xml/v3_10/infNFe/det/_tc_imposto.xml.slim +37 -0
  147. data/lib/br_nfe/product/xml/v3_10/infNFe/det/_tc_prod.xml.slim +48 -0
  148. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS20.xml.slim +12 -0
  149. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS30.xml.slim +17 -0
  150. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS40.xml.slim +7 -0
  151. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS51.xml.slim +19 -0
  152. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS70.xml.slim +23 -0
  153. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/ICMS/_tc_ICMS90.xml.slim +26 -0
  154. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/_tc_ICMSUFDest.xml.slim +8 -0
  155. data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/_tc_ISSQN.xml.slim +35 -0
  156. data/lib/br_nfe/product/xml/v3_10/infNFe/det/prod/_tc_det_export.xml.slim +8 -0
  157. data/lib/br_nfe/product/xml/v3_10/infNFe/det/prod/_tc_di.xml.slim +28 -0
  158. data/lib/br_nfe/product/xml/v3_10/root/NfeAutorizacao.xml.slim +6 -0
  159. data/lib/br_nfe/service/base.rb +1 -105
  160. data/lib/br_nfe/service/betha/v1/cancela_nfse.rb +1 -1
  161. data/lib/br_nfe/service/response/default.rb +1 -1
  162. data/lib/br_nfe/service/simpliss/v1/base.rb +2 -0
  163. data/lib/br_nfe/version.rb +2 -2
  164. data/lib/br_nfe.rb +180 -22
  165. data/lib/config/locales/br_nfe/en/product/nfe/cobranca/fatura.yml +6 -0
  166. data/lib/config/locales/br_nfe/en/product/nfe/declaracao_importacao.yml +10 -0
  167. data/lib/config/locales/br_nfe/en/product/nfe/item.yml +20 -0
  168. data/lib/config/locales/br_nfe/en/product/nfe/item_tax/icms_uf_destino.yml +8 -0
  169. data/lib/config/locales/br_nfe/en/product/nfe/transporte/base.yml +9 -0
  170. data/lib/config/locales/br_nfe/en/product/nota_fiscal.yml +21 -0
  171. data/lib/config/locales/br_nfe/en/product/operation/nfe_autorizacao.yml +10 -0
  172. data/lib/config/locales/br_nfe/en/product/operation/nfe_recepcao_evento.yml +6 -0
  173. data/lib/config/locales/br_nfe/pt-BR/product/nfe/cobranca/fatura.yml +6 -0
  174. data/lib/config/locales/br_nfe/pt-BR/product/nfe/declaracao_importacao.yml +10 -0
  175. data/lib/config/locales/br_nfe/pt-BR/product/nfe/item.yml +20 -0
  176. data/lib/config/locales/br_nfe/pt-BR/product/nfe/item_tax/icms_uf_destino.yml +8 -0
  177. data/lib/config/locales/br_nfe/pt-BR/product/nfe/transporte/base.yml +9 -0
  178. data/lib/config/locales/br_nfe/pt-BR/product/nota_fiscal.yml +21 -0
  179. data/lib/config/locales/br_nfe/pt-BR/product/operation/nfe_autorizacao.yml +10 -0
  180. data/lib/config/locales/br_nfe/pt-BR/product/operation/nfe_recepcao_evento.yml +6 -0
  181. data/test/br_nfe/association/have_destinatario_test.rb +8 -8
  182. data/test/br_nfe/association/have_emitente_test.rb +6 -6
  183. data/test/br_nfe/base_test.rb +15 -4
  184. data/test/br_nfe/endereco_test.rb +15 -0
  185. data/test/br_nfe/person_test.rb +55 -6
  186. data/test/br_nfe/product/destinatario_test.rb +26 -0
  187. data/test/br_nfe/product/emitente_test.rb +1 -2
  188. data/test/br_nfe/product/evento/base_test.rb +58 -0
  189. data/test/br_nfe/product/evento/cancelamento_test.rb +32 -0
  190. data/test/br_nfe/product/gateway/web_service_am_test.rb +242 -0
  191. data/test/br_nfe/product/gateway/web_service_ba_test.rb +242 -0
  192. data/test/br_nfe/product/gateway/web_service_ce_test.rb +242 -0
  193. data/test/br_nfe/product/gateway/web_service_go_test.rb +242 -0
  194. data/test/br_nfe/product/gateway/web_service_mg_test.rb +242 -0
  195. data/test/br_nfe/product/gateway/web_service_ms_test.rb +242 -0
  196. data/test/br_nfe/product/gateway/web_service_mt_test.rb +408 -0
  197. data/test/br_nfe/product/gateway/web_service_pe_test.rb +408 -0
  198. data/test/br_nfe/product/gateway/web_service_pr_test.rb +408 -0
  199. data/test/br_nfe/product/gateway/web_service_rs_test.rb +407 -0
  200. data/test/br_nfe/product/gateway/web_service_sp_test.rb +408 -0
  201. data/test/br_nfe/product/gateway/web_service_svan_test.rb +242 -0
  202. data/test/br_nfe/product/gateway/web_service_svc_an_test.rb +185 -0
  203. data/test/br_nfe/product/gateway/web_service_svc_rs_test.rb +185 -0
  204. data/test/br_nfe/product/gateway/web_service_svrs_test.rb +208 -2
  205. data/test/br_nfe/product/nfe/adicao_importacao_test.rb +19 -0
  206. data/test/br_nfe/product/nfe/cobranca/duplicata_test.rb +19 -0
  207. data/test/br_nfe/product/nfe/cobranca/fatura_test.rb +32 -0
  208. data/test/br_nfe/product/nfe/cobranca/pagamento_test.rb +105 -0
  209. data/test/br_nfe/product/nfe/declaracao_importacao_test.rb +116 -0
  210. data/test/br_nfe/product/nfe/detalhe_exportacao_test.rb +97 -0
  211. data/test/br_nfe/product/nfe/item_tax/cofins_st_test.rb +22 -0
  212. data/test/br_nfe/product/nfe/item_tax/cofins_test.rb +113 -0
  213. data/test/br_nfe/product/nfe/item_tax/icms_test.rb +1011 -0
  214. data/test/br_nfe/product/nfe/item_tax/icms_uf_destino_test.rb +99 -0
  215. data/test/br_nfe/product/nfe/item_tax/importacao_test.rb +23 -0
  216. data/test/br_nfe/product/nfe/item_tax/ipi_test.rb +160 -0
  217. data/test/br_nfe/product/nfe/item_tax/issqn_test.rb +84 -0
  218. data/test/br_nfe/product/nfe/item_tax/pis_st_test.rb +22 -0
  219. data/test/br_nfe/product/nfe/item_tax/pis_test.rb +113 -0
  220. data/test/br_nfe/product/nfe/item_test.rb +381 -0
  221. data/test/br_nfe/product/nfe/processo_referencia_test.rb +30 -0
  222. data/test/br_nfe/product/nfe/transporte/base_test.rb +182 -0
  223. data/test/br_nfe/product/nfe/transporte/transportador_test.rb +13 -0
  224. data/test/br_nfe/product/nfe/transporte/veiculo_test.rb +13 -0
  225. data/test/br_nfe/product/nfe/transporte/volume_test.rb +42 -0
  226. data/test/br_nfe/product/nota_fiscal_test.rb +662 -0
  227. data/test/br_nfe/product/operation/base_test.rb +538 -0
  228. data/test/br_nfe/product/operation/nfe_autorizacao_test.rb +378 -0
  229. data/test/br_nfe/product/operation/nfe_consulta_protocolo_test.rb +349 -0
  230. data/test/br_nfe/product/operation/nfe_download_nf_test.rb +93 -0
  231. data/test/br_nfe/product/operation/nfe_inutilizacao_test.rb +210 -0
  232. data/test/br_nfe/product/operation/nfe_recepcao_evento_test.rb +84 -0
  233. data/test/br_nfe/product/operation/nfe_ret_autorizacao_test.rb +309 -0
  234. data/test/br_nfe/product/operation/nfe_status_servico_test.rb +122 -0
  235. data/test/br_nfe/product/response/base_test.rb +75 -0
  236. data/test/br_nfe/product/response/build/base_test.rb +34 -0
  237. data/test/br_nfe/product/response/nfe_ret_autorizacao_test.rb +14 -0
  238. data/test/br_nfe/service/association/have_intermediario_test.rb +10 -10
  239. data/test/br_nfe/service/base_test.rb +9 -206
  240. data/test/br_nfe/service/betha/v1/cancela_nfse_test.rb +8 -6
  241. data/test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb +6 -3
  242. data/test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb +6 -3
  243. data/test/br_nfe/service/betha/v1/consulta_nfse_test.rb +7 -4
  244. data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +12 -9
  245. data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +6 -3
  246. data/test/br_nfe/service/rps_test.rb +2 -2
  247. data/test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb +6 -3
  248. data/test/br_nfe/service/simpliss/v1/consulta_lote_rps_test.rb +7 -4
  249. data/test/br_nfe/service/simpliss/v1/consulta_nfs_por_rps_test.rb +7 -4
  250. data/test/br_nfe/service/simpliss/v1/consulta_nfse_test.rb +8 -5
  251. data/test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb +9 -6
  252. data/test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb +6 -3
  253. data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +6 -3
  254. data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +6 -3
  255. data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +6 -3
  256. data/test/br_nfe/service/thema/v1/consulta_nfse_test.rb +8 -5
  257. data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +9 -6
  258. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb +6 -3
  259. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +6 -3
  260. data/test/factories/person.rb +1 -1
  261. data/test/factories/product/destinatario.rb +11 -0
  262. data/test/factories/product/emitente.rb +1 -1
  263. data/test/factories/product/evento/base.rb +9 -0
  264. data/test/factories/product/evento/cancelamento.rb +10 -0
  265. data/test/factories/product/gateway/web_service_am.rb +5 -0
  266. data/test/factories/product/gateway/web_service_ba.rb +5 -0
  267. data/test/factories/product/nfe/adicao_importacao.rb +7 -0
  268. data/test/factories/product/nfe/cobranca/duplicata.rb +7 -0
  269. data/test/factories/product/nfe/cobranca/fatura.rb +8 -0
  270. data/test/factories/product/nfe/cobranca/pagamento.rb +9 -0
  271. data/test/factories/product/nfe/declaracao_importacao.rb +10 -0
  272. data/test/factories/product/nfe/detalhe_exportacao.rb +5 -0
  273. data/test/factories/product/nfe/item.rb +24 -0
  274. data/test/factories/product/nfe/item_tax/cofins.rb +5 -0
  275. data/test/factories/product/nfe/item_tax/cofins_st.rb +5 -0
  276. data/test/factories/product/nfe/item_tax/icms.rb +9 -0
  277. data/test/factories/product/nfe/item_tax/icms_uf_destino.rb +11 -0
  278. data/test/factories/product/nfe/item_tax/importacao.rb +8 -0
  279. data/test/factories/product/nfe/item_tax/ipi.rb +6 -0
  280. data/test/factories/product/nfe/item_tax/issqn.rb +9 -0
  281. data/test/factories/product/nfe/item_tax/pis.rb +5 -0
  282. data/test/factories/product/nfe/item_tax/pis_st.rb +5 -0
  283. data/test/factories/product/nfe/processo_referencia.rb +6 -0
  284. data/test/factories/product/nfe/transporte/base.rb +5 -0
  285. data/test/factories/product/nfe/transporte/transportador.rb +7 -0
  286. data/test/factories/product/nfe/transporte/veiculo.rb +7 -0
  287. data/test/factories/product/nfe/transporte/volume.rb +5 -0
  288. data/test/factories/product/nota_fiscal.rb +22 -0
  289. data/test/factories/product/{base.rb → operation/base.rb} +1 -1
  290. data/test/factories/product/operation/nfe_autorizacao.rb +590 -0
  291. data/test/factories/product/operation/nfe_consulta_protocolo.rb +13 -0
  292. data/test/factories/product/operation/nfe_download_nf.rb +15 -0
  293. data/test/factories/product/operation/nfe_inutilizacao.rb +19 -0
  294. data/test/factories/product/operation/nfe_recepcao_evento.rb +14 -0
  295. data/test/factories/product/operation/nfe_ret_autorizacao.rb +13 -0
  296. data/test/factories/product/{consulta_status_servico.rb → operation/nfe_status_servico.rb} +1 -1
  297. data/test/factories/product/response/base.rb +12 -0
  298. data/test/factories/product/response/build/base.rb +6 -0
  299. data/test/factories/product/response/nfe_ret_autorizacao.rb +13 -0
  300. data/test/factories/service/emitente.rb +1 -1
  301. data/test/fixtures/product/operation/nfe_autorizacao/nfe_signed.xml +1 -0
  302. data/test/fixtures/product/response/v3.10/nfe_autorizacao/async_fail.xml +21 -0
  303. data/test/fixtures/product/response/v3.10/nfe_autorizacao/async_success.xml +25 -0
  304. data/test/fixtures/product/response/v3.10/nfe_autorizacao/nfe/with_proc.xml +1 -0
  305. data/test/fixtures/product/response/v3.10/nfe_autorizacao/nfe/without_proc.xml +1 -0
  306. data/test/fixtures/product/response/v3.10/nfe_autorizacao/original_xml.xml +1 -0
  307. data/test/fixtures/product/response/v3.10/nfe_autorizacao/sync_fail.xml +32 -0
  308. data/test/fixtures/product/response/v3.10/nfe_autorizacao/sync_success.xml +33 -0
  309. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_1.xml +1 -0
  310. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_2.xml +1 -0
  311. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_3.xml +1 -0
  312. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/event_cancel.xml +1 -0
  313. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/event_xml/one_event.xml +1 -0
  314. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/fail.xml +22 -0
  315. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/nfe_original/with_proc.xml +1 -0
  316. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/nfe_original/without_proc.xml +1 -0
  317. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_many_with_cancel.xml +198 -0
  318. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_many_without_cancel.xml +199 -0
  319. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_one.xml +89 -0
  320. data/test/fixtures/product/response/v3.10/nfe_consulta_protocolo/success_without.xml +34 -0
  321. data/test/fixtures/product/response/v3.10/nfe_inutilizacao/fail.xml +29 -0
  322. data/test/fixtures/product/response/v3.10/nfe_inutilizacao/success.xml +30 -0
  323. data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/fail.xml +34 -0
  324. data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/success.xml +36 -0
  325. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_fail.xml +22 -0
  326. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_fail.xml +33 -0
  327. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_fail_and_one_ok.xml +46 -0
  328. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_one_invoice_ok.xml +34 -0
  329. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_two_invoice_fail.xml +46 -0
  330. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/lot_ok_two_invoice_ok.xml +46 -0
  331. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_2_with_protocol.xml +1 -0
  332. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_2_without_protocol.xml +1 -0
  333. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_3_with_protocol.xml +1 -0
  334. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/nfe/nf_3_without_protocol.xml +1 -0
  335. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/lot.xml +2 -0
  336. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/nfe.xml +2 -0
  337. data/test/fixtures/product/response/v3.10/nfe_ret_autorizacao/original_xml/nfeProc.xml +4 -0
  338. data/test/fixtures/product/response/v3.10/nfe_status_servico/fail.xml +23 -0
  339. data/test/fixtures/product/response/v3.10/nfe_status_servico/success.xml +22 -0
  340. data/test/fixtures/product/schemas/CCe_v1.00.xsd +11 -0
  341. data/test/fixtures/product/schemas/EPEC_v1.00.xsd +9 -0
  342. data/test/fixtures/product/schemas/LeiauteCadastroEmissorDFe_v1.01.xsd +234 -0
  343. data/test/fixtures/product/schemas/SuframaInternaliza_v1.00.xsd +9 -0
  344. data/test/fixtures/product/schemas/SuframaVistoria_v1.00.xsd +9 -0
  345. data/test/fixtures/product/schemas/atuCadEmiDFe_v1.01.xsd +9 -0
  346. data/test/fixtures/product/schemas/cabecMsg_v1.02.xsd +29 -0
  347. data/test/fixtures/product/schemas/cadEmiDFe_v1.01.xsd +9 -0
  348. data/test/fixtures/product/schemas/cancNFe_v2.00.xsd +9 -0
  349. data/test/fixtures/product/schemas/confRecebto_v1.00.xsd +9 -0
  350. data/test/fixtures/product/schemas/consCad_v2.00.xsd +9 -0
  351. data/test/fixtures/product/schemas/consDPEC_v1.01.xsd +9 -0
  352. data/test/fixtures/product/schemas/consNFeDest_v1.01.xsd +10 -0
  353. data/test/fixtures/product/schemas/consReciNFe_v2.00.xsd +9 -0
  354. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/consReciNFe_v3.10.xsd +8 -8
  355. data/test/fixtures/product/schemas/consSitNFe_v2.01.xsd +10 -0
  356. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/consSitNFe_v3.10.xsd +8 -8
  357. data/test/fixtures/product/schemas/consStatServ_v2.00.xsd +9 -0
  358. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/consStatServ_v3.10.xsd +8 -8
  359. data/test/fixtures/product/schemas/distDFeInt_v1.00.xsd +71 -0
  360. data/test/fixtures/product/schemas/downloadNFe_v1.00.xsd +10 -0
  361. data/test/fixtures/product/schemas/e110110_v1.00.xsd +58 -0
  362. data/test/fixtures/product/schemas/e110111_v1.00.xsd +42 -0
  363. data/test/fixtures/product/schemas/e110140_v1.00.xsd +124 -0
  364. data/test/fixtures/product/schemas/e111500_v1.00.xsd +69 -0
  365. data/test/fixtures/product/schemas/e111501_v1.00.xsd +69 -0
  366. data/test/fixtures/product/schemas/e111502_v1.00.xsd +50 -0
  367. data/test/fixtures/product/schemas/e111503_v1.00.xsd +50 -0
  368. data/test/fixtures/product/schemas/e210200_v1.00.xsd +32 -0
  369. data/test/fixtures/product/schemas/e210210_v1.00.xsd +32 -0
  370. data/test/fixtures/product/schemas/e210220_v1.00.xsd +45 -0
  371. data/test/fixtures/product/schemas/e210240_v1.00.xsd +44 -0
  372. data/test/fixtures/product/schemas/e411500_v1.00.xsd +134 -0
  373. data/test/fixtures/product/schemas/e411501_v1.00.xsd +134 -0
  374. data/test/fixtures/product/schemas/e411502_v1.00.xsd +95 -0
  375. data/test/fixtures/product/schemas/e411503_v1.00.xsd +95 -0
  376. data/test/fixtures/product/schemas/e990900_v1.00.xsd +87 -0
  377. data/test/fixtures/product/schemas/e990910_v1.00.xsd +81 -0
  378. data/test/fixtures/product/schemas/envCCe_v1.00.xsd +10 -0
  379. data/test/fixtures/product/schemas/envCancelPProrrogNFe_v1.0.xsd +50 -0
  380. data/test/fixtures/product/schemas/envConfRecebto_v1.00.xsd +9 -0
  381. data/test/fixtures/product/schemas/envDPEC_v1.01.xsd +9 -0
  382. data/test/fixtures/product/schemas/envEPEC_v1.00.xsd +9 -0
  383. data/test/fixtures/product/schemas/envEventoCancNFe_v1.00.xsd +9 -0
  384. data/test/fixtures/product/schemas/envEvento_v1.00.xsd +9 -0
  385. data/test/fixtures/product/schemas/envFiscoNfe_v1.0.xsd +179 -0
  386. data/test/fixtures/product/schemas/envPProrrogNFe_v1.0.xsd +65 -0
  387. data/test/fixtures/product/schemas/envRemIndus_v1.00.xsd +9 -0
  388. data/test/fixtures/product/schemas/envSuframaInternaliza_v1.00.xsd +10 -0
  389. data/test/fixtures/product/schemas/envSuframaVistoria_v1.00.xsd +10 -0
  390. data/test/fixtures/product/schemas/enviNFe_v2.00.xsd +9 -0
  391. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/enviNFe_v3.10.xsd +8 -8
  392. data/test/fixtures/product/schemas/eventoCancNFe_v1.00.xsd +9 -0
  393. data/test/fixtures/product/schemas/eventoEPEC_v0.01.xsd +267 -0
  394. data/test/fixtures/product/schemas/eventoEPEC_v1.00.xsd +267 -0
  395. data/test/fixtures/product/schemas/eventoRemIndus_v1.00.xsd +9 -0
  396. data/test/fixtures/product/schemas/inutNFe_v2.00.xsd +9 -0
  397. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/inutNFe_v3.10.xsd +8 -8
  398. data/test/fixtures/product/schemas/leiauteCCe_v1.00.xsd +418 -0
  399. data/test/fixtures/product/schemas/leiauteCancNFe_v2.00.xsd +143 -0
  400. data/test/fixtures/product/schemas/leiauteConfRecebto_v1.00.xsd +406 -0
  401. data/test/fixtures/product/schemas/leiauteConsNFeDest_v1.01.xsd +483 -0
  402. data/test/fixtures/product/schemas/leiauteConsSitNFe_v2.01.xsd +548 -0
  403. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/leiauteConsSitNFe_v3.10.xsd +502 -502
  404. data/test/fixtures/product/schemas/leiauteConsStatServ_v2.00.xsd +98 -0
  405. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/leiauteConsStatServ_v3.10.xsd +97 -97
  406. data/test/fixtures/product/schemas/leiauteConsultaCadastro_v1.01.xsd +355 -0
  407. data/test/fixtures/product/schemas/leiauteConsultaCadastro_v2.00.xsd +404 -0
  408. data/test/fixtures/product/schemas/leiauteDPEC_v1.01.xsd +464 -0
  409. data/test/fixtures/product/schemas/leiauteDownloadNFe_v1.00.xsd +149 -0
  410. data/test/fixtures/product/schemas/leiauteEPEC_v1.00.xsd +459 -0
  411. data/test/fixtures/product/schemas/leiauteEventoCancNFe_v1.00.xsd +394 -0
  412. data/test/fixtures/product/schemas/leiauteEvento_v1.00.xsd +373 -0
  413. data/test/fixtures/product/schemas/leiauteInutNFe_v2.00.xsd +193 -0
  414. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/leiauteInutNFe_v3.10.xsd +192 -192
  415. data/test/fixtures/product/schemas/leiauteNFe_v2.00.xsd +6661 -0
  416. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/leiauteNFe_v3.10.xsd +6060 -6060
  417. data/test/fixtures/product/schemas/leiauteRemIndus_v1.00.xsd +382 -0
  418. data/test/fixtures/product/schemas/leiauteSRE_v1.00.xsd +372 -0
  419. data/test/fixtures/product/schemas/leiauteSuframaInternaliza_v1.00.xsd +642 -0
  420. data/test/fixtures/product/schemas/leiauteSuframaVistoria_v1.00.xsd +648 -0
  421. data/test/fixtures/product/schemas/nfe_v2.00.xsd +9 -0
  422. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/nfe_v3.10.xsd +8 -8
  423. data/test/fixtures/product/schemas/procCCeNFe_v1.00.xsd +10 -0
  424. data/test/fixtures/product/schemas/procCancNFe_v2.00.xsd +9 -0
  425. data/test/fixtures/product/schemas/procConfRecebtoNFe_v1.00.xsd +9 -0
  426. data/test/fixtures/product/schemas/procEPEC_v1.00.xsd +9 -0
  427. data/test/fixtures/product/schemas/procEventoCancNFe_v1.00.xsd +9 -0
  428. data/test/fixtures/product/schemas/procEventoNFe_v1.00.xsd +9 -0
  429. data/test/fixtures/product/schemas/procEventoNFe_v99.99.xsd +37 -0
  430. data/test/fixtures/product/schemas/procInutNFe_v2.00.xsd +9 -0
  431. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/procInutNFe_v3.10.xsd +8 -8
  432. data/test/fixtures/product/schemas/procNFe_v2.00.xsd +9 -0
  433. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/procNFe_v3.10.xsd +8 -8
  434. data/test/fixtures/product/schemas/procRemIndus_v1.00.xsd +9 -0
  435. data/test/fixtures/product/schemas/resEvento_v1.00.xsd +94 -0
  436. data/test/fixtures/product/schemas/resNFe_v1.00.xsd +110 -0
  437. data/test/fixtures/product/schemas/retAtuCadEmiDFe_v1.01.xsd +9 -0
  438. data/test/fixtures/product/schemas/retCancNFe_v2.00.xsd +9 -0
  439. data/test/fixtures/product/schemas/retConsCad_v2.00.xsd +9 -0
  440. data/test/fixtures/product/schemas/retConsDPEC_v1.01.xsd +9 -0
  441. data/test/fixtures/product/schemas/retConsReciNFe_v2.00.xsd +9 -0
  442. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retConsReciNFe_v3.10.xsd +8 -8
  443. data/test/fixtures/product/schemas/retConsSitNFe_v2.01.xsd +10 -0
  444. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retConsSitNFe_v3.10.xsd +8 -8
  445. data/test/fixtures/product/schemas/retConsStatServ_v2.00.xsd +9 -0
  446. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retConsStatServ_v3.10.xsd +8 -8
  447. data/test/fixtures/product/schemas/retDPEC_v1.01.xsd +9 -0
  448. data/test/fixtures/product/schemas/retDistDFeInt_v1.00.xsd +84 -0
  449. data/test/fixtures/product/schemas/retDownloadNFe_v1.00.xsd +9 -0
  450. data/test/fixtures/product/schemas/retEnvCCe_v1.00.xsd +10 -0
  451. data/test/fixtures/product/schemas/retEnvCancelPProrrogNFe_v1.0.xsd +231 -0
  452. data/test/fixtures/product/schemas/retEnvConfRecebto_v1.00.xsd +9 -0
  453. data/test/fixtures/product/schemas/retEnvEPEC_v1.00.xsd +9 -0
  454. data/test/fixtures/product/schemas/retEnvEventoCancNFe_v1.00.xsd +9 -0
  455. data/test/fixtures/product/schemas/retEnvEvento_v1.00.xsd +9 -0
  456. data/test/fixtures/product/schemas/retEnvFiscoNFe_v1.0.xsd +234 -0
  457. data/test/fixtures/product/schemas/retEnvRemIndus_v1.00.xsd +9 -0
  458. data/test/fixtures/product/schemas/retEnvSuframaInternaliza_v1.00.xsd +9 -0
  459. data/test/fixtures/product/schemas/retEnvSuframaVistoria_v1.00.xsd +9 -0
  460. data/test/fixtures/product/schemas/retEnviNFe_v2.00.xsd +9 -0
  461. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retEnviNFe_v3.10.xsd +8 -8
  462. data/test/fixtures/product/schemas/retEventoEPEC_v0.01.xsd +207 -0
  463. data/test/fixtures/product/schemas/retInutNFe_v2.00.xsd +9 -0
  464. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/retInutNFe_v3.10.xsd +8 -8
  465. data/test/fixtures/product/schemas/retPProrrogNFe_v1.0.xsd +233 -0
  466. data/test/fixtures/product/schemas/retconsNFeDest_v1.01.xsd +9 -0
  467. data/test/fixtures/product/schemas/tiposBasico_v1.03.xsd +816 -0
  468. data/test/fixtures/product/schemas/tiposBasico_v1.03_OPENSSL.xsd +816 -0
  469. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/tiposBasico_v3.10.xsd +571 -571
  470. data/test/fixtures/product/schemas/tiposBasico_v3.10_OPENSSL.xsd +877 -0
  471. data/test/fixtures/product/schemas/tiposDistDFe_v1.00.xsd +217 -0
  472. data/{lib/br_nfe/product/xml/v3_10/XSD → test/fixtures/product/schemas}/xmldsig-core-schema_v1.01.xsd +97 -97
  473. data/test/fixtures/product/wsdl/NFeRetAutorizacao.xml +80 -0
  474. data/test/fixtures/product/wsdl/NfeAutorizacao.xml +107 -0
  475. data/test/fixtures/product/wsdl/NfeConsulta2.xml +80 -0
  476. data/test/fixtures/product/wsdl/NfeStatusServico2.xml +70 -0
  477. data/test/fixtures/product/wsdl/nfeinutilizacao2.xml +80 -0
  478. data/test/fixtures/service/wsdl/betha/v1/cancelar_nfse.xml +178 -0
  479. data/test/fixtures/service/wsdl/betha/v1/consultar_lote_rps.xml +339 -0
  480. data/test/fixtures/service/wsdl/betha/v1/consultar_nfse.xml +348 -0
  481. data/test/fixtures/service/wsdl/betha/v1/consultar_nfse_por_rps.xml +365 -0
  482. data/test/fixtures/service/wsdl/betha/v1/consultar_situacao_lote_rps.xml +74 -0
  483. data/test/fixtures/service/wsdl/betha/v1/recepcionar_lote_rps.xml +299 -0
  484. data/test/fixtures/service/wsdl/simpliss/v1/nfseservice.xml +1 -0
  485. data/test/fixtures/service/wsdl/thema/v1/nfse_cancelamento.xml +82 -0
  486. data/test/fixtures/service/wsdl/thema/v1/nfse_consulta.xml +235 -0
  487. data/test/fixtures/service/wsdl/thema/v1/nfse_remessa.xml +185 -0
  488. data/test/test_helper.rb +369 -1
  489. metadata +711 -33
  490. data/lib/br_nfe/product/base.rb +0 -82
  491. data/lib/br_nfe/product/consulta_status_servico.rb +0 -35
  492. data/lib/br_nfe/product/value_nf.rb +0 -9
  493. data/lib/br_nfe/product/xml/v3_10/consulta_status_servico.xml.slim +0 -4
  494. data/test/br_nfe/product/base_test.rb +0 -150
  495. data/test/br_nfe/product/consulta_status_servico_test.rb +0 -59
@@ -0,0 +1,299 @@
1
+ <?xml version='1.0' encoding='UTF-8'?>
2
+ <definitions name='RecepcionarLoteRpsService' targetNamespace='http://www.betha.com.br/e-nota-contribuinte-ws' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:ns1='http://www.w3.org/2000/09/xmldsig#' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://www.betha.com.br/e-nota-contribuinte-ws' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
3
+ <types>
4
+ <xs:schema targetNamespace='http://www.betha.com.br/e-nota-contribuinte-ws' version='1.0' xmlns:ns1='http://www.w3.org/2000/09/xmldsig#' xmlns:tns='http://www.betha.com.br/e-nota-contribuinte-ws' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
5
+ <xs:import namespace='http://www.w3.org/2000/09/xmldsig#'/>
6
+ <xs:element name='EnviarLoteRpsEnvio' type='tns:EnviarLoteRpsEnvio'/>
7
+ <xs:element name='EnviarLoteRpsEnvioResponse' type='tns:EnviarLoteRpsEnvioResponse'/>
8
+ <xs:element name='EnviarLoteRpsResposta' type='tns:enviarLoteRpsResposta'/>
9
+ <xs:complexType name='EnviarLoteRpsEnvio'>
10
+ <xs:sequence>
11
+ <xs:element minOccurs='0' name='LoteRps' type='tns:tcLoteRps'/>
12
+ <xs:element minOccurs='0' ref='ns1:Signature'/>
13
+ </xs:sequence>
14
+ </xs:complexType>
15
+ <xs:complexType name='tcLoteRps'>
16
+ <xs:sequence>
17
+ <xs:element name='NumeroLote' type='xs:long'/>
18
+ <xs:element name='Cnpj' type='xs:string'/>
19
+ <xs:element minOccurs='0' name='InscricaoMunicipal' type='xs:string'/>
20
+ <xs:element name='QuantidadeRps' type='xs:int'/>
21
+ <xs:element name='ListaRps' type='tns:tcListaRps'/>
22
+ </xs:sequence>
23
+ <xs:attribute name='Id' type='xs:string' use='required'/>
24
+ </xs:complexType>
25
+ <xs:complexType name='tcListaRps'>
26
+ <xs:sequence>
27
+ <xs:element maxOccurs='unbounded' name='Rps' type='tns:tcRps'/>
28
+ </xs:sequence>
29
+ </xs:complexType>
30
+ <xs:complexType name='tcRps'>
31
+ <xs:sequence>
32
+ <xs:element name='InfRps' type='tns:tcInfRps'/>
33
+ <xs:element ref='ns1:Signature'/>
34
+ </xs:sequence>
35
+ </xs:complexType>
36
+ <xs:complexType name='tcInfRps'>
37
+ <xs:sequence>
38
+ <xs:element name='IdentificacaoRps' type='tns:tcIdentificacaoRps'/>
39
+ <xs:element name='DataEmissao' type='xs:dateTime'/>
40
+ <xs:element name='NaturezaOperacao' type='xs:int'/>
41
+ <xs:element minOccurs='0' name='RegimeEspecialTributacao' type='xs:int'/>
42
+ <xs:element name='OptanteSimplesNacional' type='xs:int'/>
43
+ <xs:element name='IncentivadorCultural' type='xs:int'/>
44
+ <xs:element name='Status' type='xs:int'/>
45
+ <xs:element minOccurs='0' name='RpsSubstituido' type='tns:tcIdentificacaoRps'/>
46
+ <xs:element name='Servico' type='tns:tcDadosServico'/>
47
+ <xs:element name='Prestador' type='tns:tcIdentificacaoPrestador'/>
48
+ <xs:element name='Tomador' type='tns:tcDadosTomador'/>
49
+ <xs:element minOccurs='0' name='IntermediarioServico' type='tns:tcIdentificacaoIntermediarioServico'/>
50
+ <xs:element minOccurs='0' name='ConstrucaoCivil' type='tns:tcDadosConstrucaoCivil'/>
51
+ <xs:element minOccurs='0' name='OutrasInformacoes' type='xs:string'/>
52
+ <xs:element maxOccurs='unbounded' minOccurs='0' name='CondicaoPagamento' type='tns:tcCondicoesPagamentos'/>
53
+ </xs:sequence>
54
+ <xs:attribute name='Id' type='xs:string'/>
55
+ </xs:complexType>
56
+ <xs:complexType name='tcIdentificacaoRps'>
57
+ <xs:sequence>
58
+ <xs:element name='Numero' type='xs:string'/>
59
+ <xs:element name='Serie' type='xs:string'/>
60
+ <xs:element name='Tipo' type='xs:int'/>
61
+ </xs:sequence>
62
+ </xs:complexType>
63
+ <xs:complexType name='tcDadosServico'>
64
+ <xs:sequence>
65
+ <xs:element name='Valores' type='tns:tcValores'/>
66
+ <xs:element name='ItemListaServico' type='xs:string'/>
67
+ <xs:element minOccurs='0' name='CodigoCnae' type='xs:string'/>
68
+ <xs:element minOccurs='0' name='CodigoTributacaoMunicipio' type='xs:string'/>
69
+ <xs:element name='Discriminacao' type='xs:string'/>
70
+ <xs:element name='CodigoMunicipio' type='xs:int'/>
71
+ </xs:sequence>
72
+ </xs:complexType>
73
+ <xs:complexType name='tcValores'>
74
+ <xs:sequence>
75
+ <xs:element name='ValorServicos' type='xs:decimal'/>
76
+ <xs:element minOccurs='0' name='ValorDeducoes' type='xs:decimal'/>
77
+ <xs:element minOccurs='0' name='ValorPis' type='xs:decimal'/>
78
+ <xs:element minOccurs='0' name='ValorCofins' type='xs:decimal'/>
79
+ <xs:element minOccurs='0' name='ValorInss' type='xs:decimal'/>
80
+ <xs:element minOccurs='0' name='ValorIr' type='xs:decimal'/>
81
+ <xs:element minOccurs='0' name='ValorCsll' type='xs:decimal'/>
82
+ <xs:element minOccurs='0' name='IssRetido' type='xs:int'/>
83
+ <xs:element minOccurs='0' name='ValorIss' type='xs:decimal'/>
84
+ <xs:element minOccurs='0' name='OutrasRetencoes' type='xs:decimal'/>
85
+ <xs:element name='BaseCalculo' type='xs:decimal'/>
86
+ <xs:element minOccurs='0' name='Aliquota' type='xs:decimal'/>
87
+ <xs:element minOccurs='0' name='ValorLiquidoNfse' type='xs:decimal'/>
88
+ <xs:element minOccurs='0' name='ValorIssRetido' type='xs:decimal'/>
89
+ <xs:element minOccurs='0' name='DescontoCondicionado' type='xs:decimal'/>
90
+ <xs:element minOccurs='0' name='DescontoIncondicionado' type='xs:decimal'/>
91
+ </xs:sequence>
92
+ </xs:complexType>
93
+ <xs:complexType name='tcIdentificacaoPrestador'>
94
+ <xs:sequence>
95
+ <xs:element name='Cnpj' type='xs:string'/>
96
+ <xs:element minOccurs='0' name='InscricaoMunicipal' type='xs:string'/>
97
+ </xs:sequence>
98
+ </xs:complexType>
99
+ <xs:complexType name='tcDadosTomador'>
100
+ <xs:sequence>
101
+ <xs:element minOccurs='0' name='IdentificacaoTomador' type='tns:tcIdentificacaoTomador'/>
102
+ <xs:element minOccurs='0' name='RazaoSocial' type='xs:string'/>
103
+ <xs:element minOccurs='0' name='Endereco' type='tns:tcEndereco'/>
104
+ <xs:element minOccurs='0' name='Contato' type='tns:tcContato'/>
105
+ </xs:sequence>
106
+ </xs:complexType>
107
+ <xs:complexType name='tcIdentificacaoTomador'>
108
+ <xs:sequence>
109
+ <xs:element minOccurs='0' name='CpfCnpj' type='tns:tcCpfCnpj'/>
110
+ <xs:element minOccurs='0' name='InscricaoMunicipal' type='xs:string'/>
111
+ <xs:element minOccurs='0' name='InscricaoEstadual' type='xs:string'/>
112
+ </xs:sequence>
113
+ </xs:complexType>
114
+ <xs:complexType name='tcCpfCnpj'>
115
+ <xs:sequence>
116
+ <xs:element minOccurs='0' name='Cnpj' type='xs:string'/>
117
+ <xs:element minOccurs='0' name='Cpf' type='xs:string'/>
118
+ </xs:sequence>
119
+ </xs:complexType>
120
+ <xs:complexType name='tcEndereco'>
121
+ <xs:sequence>
122
+ <xs:element minOccurs='0' name='Endereco' type='xs:string'/>
123
+ <xs:element minOccurs='0' name='Numero' type='xs:string'/>
124
+ <xs:element minOccurs='0' name='Complemento' type='xs:string'/>
125
+ <xs:element minOccurs='0' name='Bairro' type='xs:string'/>
126
+ <xs:element minOccurs='0' name='CodigoMunicipio' type='xs:int'/>
127
+ <xs:element minOccurs='0' name='Uf' type='xs:string'/>
128
+ <xs:element minOccurs='0' name='Cep' type='xs:string'/>
129
+ </xs:sequence>
130
+ </xs:complexType>
131
+ <xs:complexType name='tcContato'>
132
+ <xs:sequence>
133
+ <xs:element minOccurs='0' name='Telefone' type='xs:string'/>
134
+ <xs:element minOccurs='0' name='Email' type='xs:string'/>
135
+ </xs:sequence>
136
+ </xs:complexType>
137
+ <xs:complexType name='tcIdentificacaoIntermediarioServico'>
138
+ <xs:sequence>
139
+ <xs:element name='RazaoSocial' type='xs:string'/>
140
+ <xs:element name='CpfCnpj' type='tns:tcCpfCnpj'/>
141
+ <xs:element minOccurs='0' name='InscricaoMunicipal' type='xs:string'/>
142
+ </xs:sequence>
143
+ </xs:complexType>
144
+ <xs:complexType name='tcDadosConstrucaoCivil'>
145
+ <xs:sequence>
146
+ <xs:element name='CodigoObra' type='xs:string'/>
147
+ <xs:element name='Art' type='xs:string'/>
148
+ </xs:sequence>
149
+ </xs:complexType>
150
+ <xs:complexType name='tcCondicoesPagamentos'>
151
+ <xs:sequence>
152
+ <xs:element name='Condicao' type='tns:Condicao'/>
153
+ <xs:element minOccurs='0' name='QtdParcela' type='xs:int'/>
154
+ <xs:element maxOccurs='unbounded' minOccurs='0' name='Parcelas' type='tns:tcParcelas'/>
155
+ </xs:sequence>
156
+ </xs:complexType>
157
+ <xs:complexType name='tcParcelas'>
158
+ <xs:sequence>
159
+ <xs:element name='Parcela' type='xs:int'/>
160
+ <xs:element minOccurs='0' name='DataVencimento' type='xs:string'/>
161
+ <xs:element minOccurs='0' name='Valor' type='xs:decimal'/>
162
+ </xs:sequence>
163
+ </xs:complexType>
164
+ <xs:complexType name='tcSigInfo'>
165
+ <xs:sequence>
166
+ <xs:element ref='ns1:CanonicalizationMethod'/>
167
+ <xs:element ref='ns1:SignatureMethod'/>
168
+ <xs:element ref='ns1:Reference'/>
169
+ </xs:sequence>
170
+ </xs:complexType>
171
+ <xs:complexType name='tcReference'>
172
+ <xs:sequence>
173
+ <xs:element ref='ns1:Transforms'/>
174
+ <xs:element ref='ns1:DigestMethod'/>
175
+ <xs:element ref='ns1:DigestValue'/>
176
+ </xs:sequence>
177
+ <xs:attribute name='URI' type='xs:string' use='required'/>
178
+ </xs:complexType>
179
+ <xs:complexType name='tcTransforms'>
180
+ <xs:sequence>
181
+ <xs:element maxOccurs='unbounded' ref='ns1:Transform'/>
182
+ </xs:sequence>
183
+ </xs:complexType>
184
+ <xs:complexType name='tcTransform'>
185
+ <xs:sequence/>
186
+ <xs:attribute name='Algorithm' type='xs:string' use='required'/>
187
+ </xs:complexType>
188
+ <xs:complexType name='tcKeyInfo'>
189
+ <xs:sequence>
190
+ <xs:element ref='ns1:X509Data'/>
191
+ </xs:sequence>
192
+ </xs:complexType>
193
+ <xs:complexType name='EnviarLoteRpsEnvioResponse'>
194
+ <xs:sequence>
195
+ <xs:element minOccurs='0' name='EnviarLoteRpsResposta' type='tns:enviarLoteRpsResposta'/>
196
+ </xs:sequence>
197
+ </xs:complexType>
198
+ <xs:complexType name='enviarLoteRpsResposta'>
199
+ <xs:sequence>
200
+ <xs:element minOccurs='0' name='NumeroLote' type='xs:integer'/>
201
+ <xs:element minOccurs='0' name='DataRecebimento' type='xs:dateTime'/>
202
+ <xs:element minOccurs='0' name='Protocolo' type='xs:integer'/>
203
+ <xs:element minOccurs='0' name='ListaMensagemRetorno' type='tns:tcListaMensagemRetorno'/>
204
+ </xs:sequence>
205
+ </xs:complexType>
206
+ <xs:complexType name='tcListaMensagemRetorno'>
207
+ <xs:sequence>
208
+ <xs:element maxOccurs='unbounded' name='MensagemRetorno' type='tns:tcMensagemRetorno'/>
209
+ </xs:sequence>
210
+ </xs:complexType>
211
+ <xs:complexType name='tcMensagemRetorno'>
212
+ <xs:sequence>
213
+ <xs:element name='Codigo' type='xs:string'/>
214
+ <xs:element name='Mensagem' type='xs:string'/>
215
+ <xs:element minOccurs='0' name='Correcao' type='xs:string'/>
216
+ </xs:sequence>
217
+ </xs:complexType>
218
+ <xs:simpleType name='Condicao'>
219
+ <xs:restriction base='xs:string'>
220
+ <xs:enumeration value='A_VISTA'/>
221
+ <xs:enumeration value='A_PRAZO'/>
222
+ <xs:enumeration value='NA_APRESENTACAO'/>
223
+ <xs:enumeration value='CARTAO_DEBITO'/>
224
+ <xs:enumeration value='CARTAO_CREDITO'/>
225
+ </xs:restriction>
226
+ </xs:simpleType>
227
+ </xs:schema>
228
+ <xs:schema targetNamespace='http://www.w3.org/2000/09/xmldsig#' version='1.0' xmlns:ns1='http://www.betha.com.br/e-nota-contribuinte-ws' xmlns:tns='http://www.w3.org/2000/09/xmldsig#' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
229
+ <xs:import namespace='http://www.betha.com.br/e-nota-contribuinte-ws'/>
230
+ <xs:element name='CanonicalizationMethod' type='tns:tcCanonicalizationMethod'/>
231
+ <xs:element name='DigestMethod' type='tns:tcDigestMethod'/>
232
+ <xs:element name='DigestValue' type='xs:string'/>
233
+ <xs:element name='Reference' type='ns1:tcReference'/>
234
+ <xs:element name='Signature' type='tns:Signature'/>
235
+ <xs:element name='SignatureMethod' type='tns:tcSignatureMethod'/>
236
+ <xs:element name='Transform' type='ns1:tcTransform'/>
237
+ <xs:element name='Transforms' type='ns1:tcTransforms'/>
238
+ <xs:element name='X509Data' type='tns:tcX509Data'/>
239
+ <xs:element name='tcCanonicalizationMethod' type='tns:tcCanonicalizationMethod'/>
240
+ <xs:element name='tcDigestMethod' type='tns:tcDigestMethod'/>
241
+ <xs:element name='tcSignatureMethod' type='tns:tcSignatureMethod'/>
242
+ <xs:element name='tcX509Data' type='tns:tcX509Data'/>
243
+ <xs:complexType name='Signature'>
244
+ <xs:sequence>
245
+ <xs:element form='qualified' name='SignedInfo' type='ns1:tcSigInfo'/>
246
+ <xs:element form='qualified' name='SignatureValue' type='xs:string'/>
247
+ <xs:element form='qualified' name='KeyInfo' type='ns1:tcKeyInfo'/>
248
+ </xs:sequence>
249
+ </xs:complexType>
250
+ <xs:complexType name='tcCanonicalizationMethod'>
251
+ <xs:sequence/>
252
+ <xs:attribute ref='tns:Algorithm' use='required'/>
253
+ </xs:complexType>
254
+ <xs:complexType name='tcSignatureMethod'>
255
+ <xs:sequence/>
256
+ <xs:attribute ref='tns:Algorithm' use='required'/>
257
+ </xs:complexType>
258
+ <xs:complexType name='tcDigestMethod'>
259
+ <xs:sequence/>
260
+ <xs:attribute ref='tns:Algorithm' use='required'/>
261
+ </xs:complexType>
262
+ <xs:complexType name='tcX509Data'>
263
+ <xs:sequence>
264
+ <xs:element form='qualified' name='X509Certificate' type='xs:string'/>
265
+ </xs:sequence>
266
+ </xs:complexType>
267
+ <xs:attribute name='Algorithm' type='xs:string'/>
268
+ </xs:schema>
269
+ </types>
270
+ <message name='RecepcionarLoteRps_EnviarLoteRpsEnvioResponse'>
271
+ <part element='tns:EnviarLoteRpsEnvioResponse' name='EnviarLoteRpsEnvioResponse'></part>
272
+ </message>
273
+ <message name='RecepcionarLoteRps_EnviarLoteRpsEnvio'>
274
+ <part element='tns:EnviarLoteRpsEnvio' name='EnviarLoteRpsEnvio'></part>
275
+ </message>
276
+ <portType name='RecepcionarLoteRps'>
277
+ <operation name='EnviarLoteRpsEnvio' parameterOrder='EnviarLoteRpsEnvio'>
278
+ <input message='tns:RecepcionarLoteRps_EnviarLoteRpsEnvio'></input>
279
+ <output message='tns:RecepcionarLoteRps_EnviarLoteRpsEnvioResponse'></output>
280
+ </operation>
281
+ </portType>
282
+ <binding name='RecepcionarLoteRpsBinding' type='tns:RecepcionarLoteRps'>
283
+ <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
284
+ <operation name='EnviarLoteRpsEnvio'>
285
+ <soap:operation soapAction=''/>
286
+ <input>
287
+ <soap:body use='literal'/>
288
+ </input>
289
+ <output>
290
+ <soap:body use='literal'/>
291
+ </output>
292
+ </operation>
293
+ </binding>
294
+ <service name='RecepcionarLoteRpsService'>
295
+ <port binding='tns:RecepcionarLoteRpsBinding' name='RecepcionarLoteRpsPort'>
296
+ <soap:address location='http://e-gov.betha.com.br/e-nota-contribuinte-ws/recepcionarLoteRps'/>
297
+ </port>
298
+ </service>
299
+ </definitions>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="utf-8"?><wsdl:definitions name="NfseService" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:i0="http://www.sistema.com.br/Sistema.Ws.Nfse" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><wsdl:import namespace="http://www.sistema.com.br/Sistema.Ws.Nfse" location="http://wshomologacao.simplissweb.com.br/nfseservice.svc?wsdl=wsdl0"/><wsdl:types/><wsdl:binding name="BasicHttpBinding_INfseService" type="i0:INfseService"><soap:binding transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation name="Versao"><soap:operation soapAction="http://www.sistema.com.br/Sistema.Ws.Nfse/INfseService/Versao" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="RecepcionarLoteRps"><soap:operation soapAction="http://www.sistema.com.br/Sistema.Ws.Nfse/INfseService/RecepcionarLoteRps" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="ConsultarSituacaoLoteRps"><soap:operation soapAction="http://www.sistema.com.br/Sistema.Ws.Nfse/INfseService/ConsultarSituacaoLoteRps" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="ConsultarNfsePorRps"><soap:operation soapAction="http://www.sistema.com.br/Sistema.Ws.Nfse/INfseService/ConsultarNfsePorRps" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="ConsultarNfse"><soap:operation soapAction="http://www.sistema.com.br/Sistema.Ws.Nfse/INfseService/ConsultarNfse" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="ConsultarLoteRps"><soap:operation soapAction="http://www.sistema.com.br/Sistema.Ws.Nfse/INfseService/ConsultarLoteRps" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="CancelarNfse"><soap:operation soapAction="http://www.sistema.com.br/Sistema.Ws.Nfse/INfseService/CancelarNfse" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="GerarNfse"><soap:operation soapAction="http://www.sistema.com.br/Sistema.Ws.Nfse/INfseService/GerarNfse" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="NfseService"><wsdl:port name="BasicHttpBinding_INfseService" binding="tns:BasicHttpBinding_INfseService"><soap:address location="http://wshomologacao.simplissweb.com.br/nfseservice.svc"/></wsdl:port></wsdl:service></wsdl:definitions>
@@ -0,0 +1,82 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://server.nfse.thema.inf.br" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://server.nfse.thema.inf.br">
2
+ <wsdl:documentation>
3
+ Serviço destinado ao cancelamento de notas fiscais.
4
+ </wsdl:documentation>
5
+ <wsdl:types>
6
+ <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://server.nfse.thema.inf.br">
7
+ <xs:element name="cancelarNfse">
8
+ <xs:complexType>
9
+ <xs:sequence>
10
+ <xs:element minOccurs="0" name="xml" nillable="true" type="xs:string"/>
11
+ </xs:sequence>
12
+ </xs:complexType>
13
+ </xs:element>
14
+ <xs:element name="cancelarNfseResponse">
15
+ <xs:complexType>
16
+ <xs:sequence>
17
+ <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
18
+ </xs:sequence>
19
+ </xs:complexType>
20
+ </xs:element>
21
+ </xs:schema>
22
+ </wsdl:types>
23
+ <wsdl:message name="cancelarNfseRequest">
24
+ <wsdl:part name="parameters" element="ns:cancelarNfse"/>
25
+ </wsdl:message>
26
+ <wsdl:message name="cancelarNfseResponse">
27
+ <wsdl:part name="parameters" element="ns:cancelarNfseResponse"/>
28
+ </wsdl:message>
29
+ <wsdl:portType name="NFSEcancelamentoPortType">
30
+ <wsdl:operation name="cancelarNfse">
31
+ <wsdl:input message="ns:cancelarNfseRequest" wsaw:Action="urn:cancelarNfse"/>
32
+ <wsdl:output message="ns:cancelarNfseResponse" wsaw:Action="urn:cancelarNfseResponse"/>
33
+ </wsdl:operation>
34
+ </wsdl:portType>
35
+ <wsdl:binding name="NFSEcancelamentoSoap11Binding" type="ns:NFSEcancelamentoPortType">
36
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
37
+ <wsdl:operation name="cancelarNfse">
38
+ <soap:operation soapAction="urn:cancelarNfse" style="document"/>
39
+ <wsdl:input>
40
+ <soap:body use="literal"/>
41
+ </wsdl:input>
42
+ <wsdl:output>
43
+ <soap:body use="literal"/>
44
+ </wsdl:output>
45
+ </wsdl:operation>
46
+ </wsdl:binding>
47
+ <wsdl:binding name="NFSEcancelamentoSoap12Binding" type="ns:NFSEcancelamentoPortType">
48
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
49
+ <wsdl:operation name="cancelarNfse">
50
+ <soap12:operation soapAction="urn:cancelarNfse" style="document"/>
51
+ <wsdl:input>
52
+ <soap12:body use="literal"/>
53
+ </wsdl:input>
54
+ <wsdl:output>
55
+ <soap12:body use="literal"/>
56
+ </wsdl:output>
57
+ </wsdl:operation>
58
+ </wsdl:binding>
59
+ <wsdl:binding name="NFSEcancelamentoHttpBinding" type="ns:NFSEcancelamentoPortType">
60
+ <http:binding verb="POST"/>
61
+ <wsdl:operation name="cancelarNfse">
62
+ <http:operation location="cancelarNfse"/>
63
+ <wsdl:input>
64
+ <mime:content type="application/xml" part="parameters"/>
65
+ </wsdl:input>
66
+ <wsdl:output>
67
+ <mime:content type="application/xml" part="parameters"/>
68
+ </wsdl:output>
69
+ </wsdl:operation>
70
+ </wsdl:binding>
71
+ <wsdl:service name="NFSEcancelamento">
72
+ <wsdl:port name="NFSEcancelamentoHttpSoap11Endpoint" binding="ns:NFSEcancelamentoSoap11Binding">
73
+ <soap:address location="http://nfsehml.gaspar.sc.gov.br/nfse/services/NFSEcancelamento.NFSEcancelamentoHttpSoap11Endpoint/"/>
74
+ </wsdl:port>
75
+ <wsdl:port name="NFSEcancelamentoHttpSoap12Endpoint" binding="ns:NFSEcancelamentoSoap12Binding">
76
+ <soap12:address location="http://nfsehml.gaspar.sc.gov.br/nfse/services/NFSEcancelamento.NFSEcancelamentoHttpSoap12Endpoint/"/>
77
+ </wsdl:port>
78
+ <wsdl:port name="NFSEcancelamentoHttpEndpoint" binding="ns:NFSEcancelamentoHttpBinding">
79
+ <http:address location="http://nfsehml.gaspar.sc.gov.br/nfse/services/NFSEcancelamento.NFSEcancelamentoHttpEndpoint/"/>
80
+ </wsdl:port>
81
+ </wsdl:service>
82
+ </wsdl:definitions>
@@ -0,0 +1,235 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://server.nfse.thema.inf.br" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://server.nfse.thema.inf.br">
2
+ <wsdl:documentation>
3
+ Consulta das notas fiscais
4
+ </wsdl:documentation>
5
+ <wsdl:types>
6
+ <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://server.nfse.thema.inf.br">
7
+ <xs:element name="consultarSituacaoLoteRps">
8
+ <xs:complexType>
9
+ <xs:sequence>
10
+ <xs:element minOccurs="0" name="xml" nillable="true" type="xs:string"/>
11
+ </xs:sequence>
12
+ </xs:complexType>
13
+ </xs:element>
14
+ <xs:element name="consultarSituacaoLoteRpsResponse">
15
+ <xs:complexType>
16
+ <xs:sequence>
17
+ <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
18
+ </xs:sequence>
19
+ </xs:complexType>
20
+ </xs:element>
21
+ <xs:element name="consultarLoteRps">
22
+ <xs:complexType>
23
+ <xs:sequence>
24
+ <xs:element minOccurs="0" name="xml" nillable="true" type="xs:string"/>
25
+ </xs:sequence>
26
+ </xs:complexType>
27
+ </xs:element>
28
+ <xs:element name="consultarLoteRpsResponse">
29
+ <xs:complexType>
30
+ <xs:sequence>
31
+ <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
32
+ </xs:sequence>
33
+ </xs:complexType>
34
+ </xs:element>
35
+ <xs:element name="consultarNfse">
36
+ <xs:complexType>
37
+ <xs:sequence>
38
+ <xs:element minOccurs="0" name="xml" nillable="true" type="xs:string"/>
39
+ </xs:sequence>
40
+ </xs:complexType>
41
+ </xs:element>
42
+ <xs:element name="consultarNfseResponse">
43
+ <xs:complexType>
44
+ <xs:sequence>
45
+ <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
46
+ </xs:sequence>
47
+ </xs:complexType>
48
+ </xs:element>
49
+ <xs:element name="consultarNfsePorRps">
50
+ <xs:complexType>
51
+ <xs:sequence>
52
+ <xs:element minOccurs="0" name="xml" nillable="true" type="xs:string"/>
53
+ </xs:sequence>
54
+ </xs:complexType>
55
+ </xs:element>
56
+ <xs:element name="consultarNfsePorRpsResponse">
57
+ <xs:complexType>
58
+ <xs:sequence>
59
+ <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
60
+ </xs:sequence>
61
+ </xs:complexType>
62
+ </xs:element>
63
+ </xs:schema>
64
+ </wsdl:types>
65
+ <wsdl:message name="consultarLoteRpsRequest">
66
+ <wsdl:part name="parameters" element="ns:consultarLoteRps"/>
67
+ </wsdl:message>
68
+ <wsdl:message name="consultarLoteRpsResponse">
69
+ <wsdl:part name="parameters" element="ns:consultarLoteRpsResponse"/>
70
+ </wsdl:message>
71
+ <wsdl:message name="consultarNfsePorRpsRequest">
72
+ <wsdl:part name="parameters" element="ns:consultarNfsePorRps"/>
73
+ </wsdl:message>
74
+ <wsdl:message name="consultarNfsePorRpsResponse">
75
+ <wsdl:part name="parameters" element="ns:consultarNfsePorRpsResponse"/>
76
+ </wsdl:message>
77
+ <wsdl:message name="consultarSituacaoLoteRpsRequest">
78
+ <wsdl:part name="parameters" element="ns:consultarSituacaoLoteRps"/>
79
+ </wsdl:message>
80
+ <wsdl:message name="consultarSituacaoLoteRpsResponse">
81
+ <wsdl:part name="parameters" element="ns:consultarSituacaoLoteRpsResponse"/>
82
+ </wsdl:message>
83
+ <wsdl:message name="consultarNfseRequest">
84
+ <wsdl:part name="parameters" element="ns:consultarNfse"/>
85
+ </wsdl:message>
86
+ <wsdl:message name="consultarNfseResponse">
87
+ <wsdl:part name="parameters" element="ns:consultarNfseResponse"/>
88
+ </wsdl:message>
89
+ <wsdl:portType name="NFSEconsultaPortType">
90
+ <wsdl:operation name="consultarLoteRps">
91
+ <wsdl:input message="ns:consultarLoteRpsRequest" wsaw:Action="urn:consultarLoteRps"/>
92
+ <wsdl:output message="ns:consultarLoteRpsResponse" wsaw:Action="urn:consultarLoteRpsResponse"/>
93
+ </wsdl:operation>
94
+ <wsdl:operation name="consultarNfsePorRps">
95
+ <wsdl:input message="ns:consultarNfsePorRpsRequest" wsaw:Action="urn:consultarNfsePorRps"/>
96
+ <wsdl:output message="ns:consultarNfsePorRpsResponse" wsaw:Action="urn:consultarNfsePorRpsResponse"/>
97
+ </wsdl:operation>
98
+ <wsdl:operation name="consultarSituacaoLoteRps">
99
+ <wsdl:input message="ns:consultarSituacaoLoteRpsRequest" wsaw:Action="urn:consultarSituacaoLoteRps"/>
100
+ <wsdl:output message="ns:consultarSituacaoLoteRpsResponse" wsaw:Action="urn:consultarSituacaoLoteRpsResponse"/>
101
+ </wsdl:operation>
102
+ <wsdl:operation name="consultarNfse">
103
+ <wsdl:input message="ns:consultarNfseRequest" wsaw:Action="urn:consultarNfse"/>
104
+ <wsdl:output message="ns:consultarNfseResponse" wsaw:Action="urn:consultarNfseResponse"/>
105
+ </wsdl:operation>
106
+ </wsdl:portType>
107
+ <wsdl:binding name="NFSEconsultaSoap11Binding" type="ns:NFSEconsultaPortType">
108
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
109
+ <wsdl:operation name="consultarLoteRps">
110
+ <soap:operation soapAction="urn:consultarLoteRps" style="document"/>
111
+ <wsdl:input>
112
+ <soap:body use="literal"/>
113
+ </wsdl:input>
114
+ <wsdl:output>
115
+ <soap:body use="literal"/>
116
+ </wsdl:output>
117
+ </wsdl:operation>
118
+ <wsdl:operation name="consultarNfsePorRps">
119
+ <soap:operation soapAction="urn:consultarNfsePorRps" style="document"/>
120
+ <wsdl:input>
121
+ <soap:body use="literal"/>
122
+ </wsdl:input>
123
+ <wsdl:output>
124
+ <soap:body use="literal"/>
125
+ </wsdl:output>
126
+ </wsdl:operation>
127
+ <wsdl:operation name="consultarSituacaoLoteRps">
128
+ <soap:operation soapAction="urn:consultarSituacaoLoteRps" style="document"/>
129
+ <wsdl:input>
130
+ <soap:body use="literal"/>
131
+ </wsdl:input>
132
+ <wsdl:output>
133
+ <soap:body use="literal"/>
134
+ </wsdl:output>
135
+ </wsdl:operation>
136
+ <wsdl:operation name="consultarNfse">
137
+ <soap:operation soapAction="urn:consultarNfse" style="document"/>
138
+ <wsdl:input>
139
+ <soap:body use="literal"/>
140
+ </wsdl:input>
141
+ <wsdl:output>
142
+ <soap:body use="literal"/>
143
+ </wsdl:output>
144
+ </wsdl:operation>
145
+ </wsdl:binding>
146
+ <wsdl:binding name="NFSEconsultaSoap12Binding" type="ns:NFSEconsultaPortType">
147
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
148
+ <wsdl:operation name="consultarLoteRps">
149
+ <soap12:operation soapAction="urn:consultarLoteRps" style="document"/>
150
+ <wsdl:input>
151
+ <soap12:body use="literal"/>
152
+ </wsdl:input>
153
+ <wsdl:output>
154
+ <soap12:body use="literal"/>
155
+ </wsdl:output>
156
+ </wsdl:operation>
157
+ <wsdl:operation name="consultarNfsePorRps">
158
+ <soap12:operation soapAction="urn:consultarNfsePorRps" style="document"/>
159
+ <wsdl:input>
160
+ <soap12:body use="literal"/>
161
+ </wsdl:input>
162
+ <wsdl:output>
163
+ <soap12:body use="literal"/>
164
+ </wsdl:output>
165
+ </wsdl:operation>
166
+ <wsdl:operation name="consultarSituacaoLoteRps">
167
+ <soap12:operation soapAction="urn:consultarSituacaoLoteRps" style="document"/>
168
+ <wsdl:input>
169
+ <soap12:body use="literal"/>
170
+ </wsdl:input>
171
+ <wsdl:output>
172
+ <soap12:body use="literal"/>
173
+ </wsdl:output>
174
+ </wsdl:operation>
175
+ <wsdl:operation name="consultarNfse">
176
+ <soap12:operation soapAction="urn:consultarNfse" style="document"/>
177
+ <wsdl:input>
178
+ <soap12:body use="literal"/>
179
+ </wsdl:input>
180
+ <wsdl:output>
181
+ <soap12:body use="literal"/>
182
+ </wsdl:output>
183
+ </wsdl:operation>
184
+ </wsdl:binding>
185
+ <wsdl:binding name="NFSEconsultaHttpBinding" type="ns:NFSEconsultaPortType">
186
+ <http:binding verb="POST"/>
187
+ <wsdl:operation name="consultarLoteRps">
188
+ <http:operation location="consultarLoteRps"/>
189
+ <wsdl:input>
190
+ <mime:content type="application/xml" part="parameters"/>
191
+ </wsdl:input>
192
+ <wsdl:output>
193
+ <mime:content type="application/xml" part="parameters"/>
194
+ </wsdl:output>
195
+ </wsdl:operation>
196
+ <wsdl:operation name="consultarNfsePorRps">
197
+ <http:operation location="consultarNfsePorRps"/>
198
+ <wsdl:input>
199
+ <mime:content type="application/xml" part="parameters"/>
200
+ </wsdl:input>
201
+ <wsdl:output>
202
+ <mime:content type="application/xml" part="parameters"/>
203
+ </wsdl:output>
204
+ </wsdl:operation>
205
+ <wsdl:operation name="consultarSituacaoLoteRps">
206
+ <http:operation location="consultarSituacaoLoteRps"/>
207
+ <wsdl:input>
208
+ <mime:content type="application/xml" part="parameters"/>
209
+ </wsdl:input>
210
+ <wsdl:output>
211
+ <mime:content type="application/xml" part="parameters"/>
212
+ </wsdl:output>
213
+ </wsdl:operation>
214
+ <wsdl:operation name="consultarNfse">
215
+ <http:operation location="consultarNfse"/>
216
+ <wsdl:input>
217
+ <mime:content type="application/xml" part="parameters"/>
218
+ </wsdl:input>
219
+ <wsdl:output>
220
+ <mime:content type="application/xml" part="parameters"/>
221
+ </wsdl:output>
222
+ </wsdl:operation>
223
+ </wsdl:binding>
224
+ <wsdl:service name="NFSEconsulta">
225
+ <wsdl:port name="NFSEconsultaHttpSoap11Endpoint" binding="ns:NFSEconsultaSoap11Binding">
226
+ <soap:address location="http://nfsehml.gaspar.sc.gov.br/nfse/services/NFSEconsulta.NFSEconsultaHttpSoap11Endpoint/"/>
227
+ </wsdl:port>
228
+ <wsdl:port name="NFSEconsultaHttpSoap12Endpoint" binding="ns:NFSEconsultaSoap12Binding">
229
+ <soap12:address location="http://nfsehml.gaspar.sc.gov.br/nfse/services/NFSEconsulta.NFSEconsultaHttpSoap12Endpoint/"/>
230
+ </wsdl:port>
231
+ <wsdl:port name="NFSEconsultaHttpEndpoint" binding="ns:NFSEconsultaHttpBinding">
232
+ <http:address location="http://nfsehml.gaspar.sc.gov.br/nfse/services/NFSEconsulta.NFSEconsultaHttpEndpoint/"/>
233
+ </wsdl:port>
234
+ </wsdl:service>
235
+ </wsdl:definitions>