br_nfe 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/br_nfe/active_model_base.rb +0 -5
  4. data/lib/br_nfe/base.rb +116 -7
  5. data/lib/br_nfe/helper/values_ts/service_v1.rb +15 -11
  6. data/lib/br_nfe/response/service/build_response.rb +230 -53
  7. data/lib/br_nfe/response/service/nota_fiscal.rb +9 -0
  8. data/lib/br_nfe/response/service/paths/base.rb +93 -59
  9. data/lib/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta.rb +2 -2
  10. data/lib/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta.rb +2 -2
  11. data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta.rb +2 -2
  12. data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta.rb +2 -2
  13. data/lib/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta.rb +4 -4
  14. data/lib/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta.rb +8 -8
  15. data/lib/br_nfe/response/service/paths/v1/tc_nfse.rb +201 -57
  16. data/lib/br_nfe/service/base.rb +104 -5
  17. data/lib/br_nfe/service/betha/base.rb +5 -0
  18. data/lib/br_nfe/service/betha/v1/cancelamento_nfs.rb +1 -4
  19. data/lib/br_nfe/service/betha/v1/consulta_lote_rps.rb +1 -4
  20. data/lib/br_nfe/service/betha/v1/consulta_nfs_por_rps.rb +1 -4
  21. data/lib/br_nfe/service/betha/v1/consulta_nfse.rb +1 -4
  22. data/lib/br_nfe/service/betha/v1/consulta_situacao_lote_rps.rb +1 -3
  23. data/lib/br_nfe/service/betha/v1/gateway.rb +1 -1
  24. data/lib/br_nfe/service/betha/v1/recepcao_lote_rps.rb +1 -3
  25. data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta.rb +5 -1
  26. data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta.rb +5 -1
  27. data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +5 -1
  28. data/lib/br_nfe/service/concerns/rules/cancelamento_nfs.rb +5 -0
  29. data/lib/br_nfe/service/rps.rb +13 -4
  30. data/lib/br_nfe/service/simpliss/v1/base.rb +79 -0
  31. data/lib/br_nfe/service/simpliss/v1/cancela_nfse.rb +30 -0
  32. data/lib/br_nfe/service/simpliss/v1/consulta_lote_rps.rb +38 -0
  33. data/lib/br_nfe/service/simpliss/v1/consulta_nfs_por_rps.rb +31 -0
  34. data/lib/br_nfe/service/simpliss/v1/consulta_nfse.rb +30 -0
  35. data/lib/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps.rb +29 -0
  36. data/lib/br_nfe/service/simpliss/v1/recepcao_lote_rps.rb +35 -0
  37. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_cancelar_nfse_resposta.rb +22 -0
  38. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_lote_rps_resposta.rb +25 -0
  39. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_resposta.rb +25 -0
  40. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +25 -0
  41. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_consultar_situacao_lote_rps_resposta.rb +31 -0
  42. data/lib/br_nfe/service/simpliss/v1/response_paths/servico_enviar_lote_rps_resposta.rb +36 -0
  43. data/lib/br_nfe/service/simpliss/v1/xml/_login.xml.slim +3 -0
  44. data/lib/br_nfe/service/simpliss/v1/xml/_tc_dados_servico.xml.slim +18 -0
  45. data/lib/br_nfe/service/simpliss/v1/xml/_tc_item_servico.xml.slim +3 -0
  46. data/lib/br_nfe/service/simpliss/v1/xml/servico_cancelar_nfse_envio.xml.slim +11 -0
  47. data/lib/br_nfe/service/simpliss/v1/xml/servico_consultar_lote_rps_envio.xml.slim +7 -0
  48. data/lib/br_nfe/service/simpliss/v1/xml/servico_consultar_nfse_envio.xml.slim +22 -0
  49. data/lib/br_nfe/service/simpliss/v1/xml/servico_consultar_nfse_rps_envio.xml.slim +8 -0
  50. data/lib/br_nfe/service/simpliss/v1/xml/servico_consultar_situacao_lote_rps_envio.xml.slim +7 -0
  51. data/lib/br_nfe/service/simpliss/v1/xml/servico_enviar_lote_rps_envio.xml.slim +11 -0
  52. data/lib/br_nfe/service/thema/v1/base.rb +48 -2
  53. data/lib/br_nfe/service/thema/v1/cancela_nfse.rb +14 -5
  54. data/lib/br_nfe/service/thema/v1/consulta_lote_rps.rb +5 -4
  55. data/lib/br_nfe/service/thema/v1/consulta_nfs_por_rps.rb +5 -4
  56. data/lib/br_nfe/service/thema/v1/consulta_nfse.rb +5 -4
  57. data/lib/br_nfe/service/thema/v1/consulta_situacao_lote_rps.rb +1 -4
  58. data/lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb +19 -5
  59. data/lib/br_nfe/service/thema/v1/recepcao_lote_rps_limitado.rb +1 -1
  60. data/lib/br_nfe/service/thema/v1/response_paths/servico_cancelar_nfse_resposta.rb +17 -0
  61. data/lib/br_nfe/service/thema/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +19 -0
  62. data/lib/br_nfe/service/xml/v1/_tc_contato.xml.slim +2 -2
  63. data/lib/br_nfe/service/xml/v1/_tc_cpf_cnpj.xml.slim +2 -2
  64. data/lib/br_nfe/service/xml/v1/_tc_dados_construcao_civil.xml.slim +2 -2
  65. data/lib/br_nfe/service/xml/v1/_tc_dados_prestador.xml.slim +5 -5
  66. data/lib/br_nfe/service/xml/v1/_tc_dados_servico.xml.slim +6 -6
  67. data/lib/br_nfe/service/xml/v1/_tc_dados_tomador.xml.slim +4 -4
  68. data/lib/br_nfe/service/xml/v1/_tc_endereco.xml.slim +7 -7
  69. data/lib/br_nfe/service/xml/v1/_tc_identificacao_intermediario_servico.xml.slim +3 -3
  70. data/lib/br_nfe/service/xml/v1/_tc_identificacao_nfse.xml.slim +4 -4
  71. data/lib/br_nfe/service/xml/v1/_tc_identificacao_orgao_gerador.xml.slim +2 -2
  72. data/lib/br_nfe/service/xml/v1/_tc_identificacao_prestador.xml.slim +2 -2
  73. data/lib/br_nfe/service/xml/v1/_tc_identificacao_rps.xml.slim +3 -3
  74. data/lib/br_nfe/service/xml/v1/_tc_identificacao_tomador.xml.slim +2 -2
  75. data/lib/br_nfe/service/xml/v1/_tc_inf_pedido_cancelamento.xml.slim +2 -2
  76. data/lib/br_nfe/service/xml/v1/_tc_inf_rps.xml.slim +13 -13
  77. data/lib/br_nfe/service/xml/v1/_tc_lote_rps.xml.slim +6 -6
  78. data/lib/br_nfe/service/xml/v1/_tc_pedido_cancelamento.xml.slim +1 -1
  79. data/lib/br_nfe/service/xml/v1/_tc_rps.xml.slim +2 -2
  80. data/lib/br_nfe/service/xml/v1/_tc_valores.xml.slim +16 -17
  81. data/lib/br_nfe/service/xml/v1/servico_cancelar_nfse_envio.xml.slim +3 -4
  82. data/lib/br_nfe/service/xml/v1/servico_consultar_lote_rps_envio.xml.slim +3 -3
  83. data/lib/br_nfe/service/xml/v1/servico_consultar_nfse_envio.xml.slim +8 -8
  84. data/lib/br_nfe/service/xml/v1/servico_consultar_nfse_rps_envio.xml.slim +3 -3
  85. data/lib/br_nfe/service/xml/v1/servico_consultar_situacao_lote_rps_envio.xml.slim +3 -3
  86. data/lib/br_nfe/service/xml/v1/servico_enviar_lote_rps_envio.xml.slim +3 -3
  87. data/lib/br_nfe/version.rb +1 -1
  88. data/lib/br_nfe/xml/_signed_info_sh1.xml.slim +9 -9
  89. data/lib/br_nfe/xml/signature_sh1.xml.slim +5 -5
  90. data/lib/br_nfe.rb +26 -10
  91. data/test/br_nfe/base_test.rb +5 -5
  92. data/test/br_nfe/helper/values_ts/service_v1_test.rb +376 -0
  93. data/test/br_nfe/response/service/build_response_test.rb +1 -173
  94. data/test/br_nfe/response/service/paths/base_test.rb +61 -64
  95. data/test/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta_test.rb +2 -2
  96. data/test/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta_test.rb +2 -2
  97. data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta_test.rb +2 -2
  98. data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta_test.rb +2 -2
  99. data/test/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta_test.rb +3 -3
  100. data/test/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta_test.rb +4 -4
  101. data/test/br_nfe/response/service/paths/v1/tc_nfse_test.rb +27 -31
  102. data/test/br_nfe/service/base_test.rb +206 -11
  103. data/test/br_nfe/service/betha/base_test.rb +9 -0
  104. data/test/br_nfe/service/betha/v1/cancelamento_nfs_test.rb +0 -6
  105. data/test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb +0 -6
  106. data/test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb +0 -4
  107. data/test/br_nfe/service/betha/v1/consulta_nfse_test.rb +0 -4
  108. data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +1 -5
  109. data/test/br_nfe/service/betha/v1/gateway_test.rb +4 -2
  110. data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +0 -4
  111. data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta_test.rb +1 -1
  112. data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta_test.rb +1 -1
  113. data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta_test.rb +1 -1
  114. data/test/br_nfe/service/rps_test.rb +39 -6
  115. data/test/br_nfe/service/simpliss/v1/base_test.rb +102 -0
  116. data/test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb +97 -0
  117. data/test/br_nfe/service/simpliss/v1/consulta_lote_rps_test.rb +241 -0
  118. data/test/br_nfe/service/simpliss/v1/consulta_nfs_por_rps_test.rb +239 -0
  119. data/test/br_nfe/service/simpliss/v1/consulta_nfse_test.rb +226 -0
  120. data/test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb +122 -0
  121. data/test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb +105 -0
  122. data/test/br_nfe/service/simpliss/v1/xsd/nfse_3.xsd +735 -0
  123. data/test/br_nfe/service/simpliss/v1/xsd/xmldsig-core-schema20020212.xsd +318 -0
  124. data/test/br_nfe/service/thema/v1/base_test.rb +23 -2
  125. data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +69 -3
  126. data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +134 -4
  127. data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +131 -4
  128. data/test/br_nfe/service/thema/v1/consulta_nfse_test.rb +214 -4
  129. data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +97 -4
  130. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb +109 -0
  131. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +72 -4
  132. data/test/factories/service/rps.rb +17 -16
  133. data/test/factories/service/{sc/gaspar/recepcao_lote_rps_limitado.rb → simpliss/v1/base.rb} +1 -3
  134. data/test/factories/service/{sc/gaspar → simpliss/v1}/cancela_nfse.rb +2 -2
  135. data/test/factories/service/simpliss/v1/consulta_lote_rps.rb +7 -0
  136. data/test/factories/service/{sc/gaspar → simpliss/v1}/consulta_nfs_por_rps.rb +1 -1
  137. data/test/factories/service/{sc/gaspar → simpliss/v1}/consulta_nfse.rb +1 -1
  138. data/test/factories/service/simpliss/v1/consulta_situacao_lote_rps.rb +6 -0
  139. data/test/factories/service/{sc/gaspar → simpliss/v1}/recepcao_lote_rps.rb +1 -1
  140. data/test/fixtures/service/response/simpliss/v1/cancela_nfse/fault.xml +21 -0
  141. data/test/fixtures/service/response/simpliss/v1/cancela_nfse/success.xml +26 -0
  142. data/test/fixtures/service/response/simpliss/v1/consulta_lote_rps/fault.xml +21 -0
  143. data/test/fixtures/service/response/simpliss/v1/consulta_lote_rps/nfse_complete.xml +134 -0
  144. data/test/fixtures/service/response/simpliss/v1/consulta_lote_rps/nfse_simple.xml +100 -0
  145. data/test/fixtures/service/response/simpliss/v1/consulta_nfse/fault.xml +16 -0
  146. data/test/fixtures/service/response/simpliss/v1/consulta_nfse/nfs_empty.xml +10 -0
  147. data/test/fixtures/service/response/simpliss/v1/consulta_nfse/nfse_complete.xml +134 -0
  148. data/test/fixtures/service/response/simpliss/v1/consulta_nfse/nfse_simple.xml +100 -0
  149. data/test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/fault.xml +16 -0
  150. data/test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/nfse_complete.xml +132 -0
  151. data/test/fixtures/service/response/simpliss/v1/consulta_nfse_por_rps/nfse_simple.xml +98 -0
  152. data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/error.xml +11 -0
  153. data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/fault.xml +16 -0
  154. data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/success.xml +11 -0
  155. data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/unprocessed.xml +11 -0
  156. data/test/fixtures/service/response/simpliss/v1/consulta_situacao_lote_rps/unreceived.xml +11 -0
  157. data/test/fixtures/service/response/simpliss/v1/recepcao_lote_rps/error.xml +16 -0
  158. data/test/fixtures/service/response/simpliss/v1/recepcao_lote_rps/success.xml +12 -0
  159. data/test/fixtures/service/response/thema/v1/cancela_nfse/fault.xml +33 -0
  160. data/test/fixtures/service/response/thema/v1/cancela_nfse/success.xml +30 -0
  161. data/test/fixtures/service/response/thema/v1/consulta_lote_rps/fault.xml +19 -0
  162. data/test/fixtures/service/response/thema/v1/consulta_lote_rps/nfse_complete.xml +109 -0
  163. data/test/fixtures/service/response/thema/v1/consulta_nfse/fault.xml +20 -0
  164. data/test/fixtures/service/response/thema/v1/consulta_nfse/nfs_empty.xml +14 -0
  165. data/test/fixtures/service/response/thema/v1/consulta_nfse/nfse_complete.xml +111 -0
  166. data/test/fixtures/service/response/thema/v1/consulta_nfse/nfse_simple.xml +111 -0
  167. data/test/fixtures/service/response/thema/v1/consulta_nfse_por_rps/fault.xml +23 -0
  168. data/test/fixtures/service/response/thema/v1/consulta_nfse_por_rps/nfse_complete.xml +110 -0
  169. data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/error.xml +14 -0
  170. data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/fault.xml +15 -0
  171. data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/success.xml +14 -0
  172. data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/unprocessed.xml +14 -0
  173. data/test/fixtures/service/response/thema/v1/consulta_situacao_lote_rps/unreceived.xml +19 -0
  174. data/test/fixtures/service/response/thema/v1/recepcao_lote_rps/error.xml +17 -0
  175. data/test/fixtures/service/response/thema/v1/recepcao_lote_rps/success.xml +15 -0
  176. data/test/fixtures/service/response/thema/v1/recepcao_lote_rps_limitado/error.xml +19 -0
  177. data/test/fixtures/service/response/thema/v1/recepcao_lote_rps_limitado/success.xml +15 -0
  178. data/test/fixtures/service/thema/v1/cancelar_nfse_envio.xml +1 -0
  179. data/test/fixtures/service/thema/v1/cancelar_nfse_envio_signed.xml +2 -0
  180. data/test/fixtures/service/thema/v1/enviar_lote_rps.xml +1 -0
  181. data/test/fixtures/service/thema/v1/enviar_lote_rps_signed.xml +2 -0
  182. data/test/test_helper.rb +5 -0
  183. metadata +146 -37
  184. data/lib/br_nfe/service/sc/gaspar/cancela_nfse.rb +0 -13
  185. data/lib/br_nfe/service/sc/gaspar/consulta_lote_rps.rb +0 -13
  186. data/lib/br_nfe/service/sc/gaspar/consulta_nfs_por_rps.rb +0 -13
  187. data/lib/br_nfe/service/sc/gaspar/consulta_nfse.rb +0 -17
  188. data/lib/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps.rb +0 -13
  189. data/lib/br_nfe/service/sc/gaspar/recepcao_lote_rps.rb +0 -13
  190. data/lib/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado.rb +0 -13
  191. data/test/br_nfe/service/sc/gaspar/cancela_nfse_test.rb +0 -21
  192. data/test/br_nfe/service/sc/gaspar/consulta_nfs_por_rps_test.rb +0 -21
  193. data/test/br_nfe/service/sc/gaspar/consulta_nfse_test.rb +0 -21
  194. data/test/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps_test.rb +0 -21
  195. data/test/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado_test.rb +0 -22
  196. data/test/br_nfe/service/sc/gaspar/recepcao_lote_rps_test.rb +0 -22
  197. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test_limitado.rb +0 -50
  198. data/test/factories/service/sc/gaspar/consulta_lote_rps.rb +0 -7
  199. data/test/factories/service/sc/gaspar/consulta_situacao_lote_rps.rb +0 -6
@@ -25,6 +25,11 @@ module BrNfe
25
25
  attr_accessor :data_emissao_rps # Datetime
26
26
  attr_accessor :competencia #DateTime
27
27
  attr_accessor :outras_informacoes
28
+
29
+ attr_accessor :natureza_operacao
30
+ attr_accessor :regime_especial_tributacao
31
+ attr_accessor :optante_simples_nacional
32
+ attr_accessor :incentivador_cultural
28
33
 
29
34
  # dados dos serviços
30
35
  attr_accessor :item_lista_servico
@@ -66,6 +71,10 @@ module BrNfe
66
71
  attr_accessor :cancelamento_sucesso
67
72
  attr_accessor :cancelamento_data_hora
68
73
 
74
+ def cancelamento_sucesso
75
+ cancelamento_numero_nf.present?
76
+ end
77
+
69
78
  # Se a NF foi substituida
70
79
  attr_accessor :nfe_substituidora
71
80
  def substituida?
@@ -4,19 +4,19 @@ module BrNfe
4
4
  module Paths
5
5
  module Base
6
6
  # Caminho referente ao caminho do número do lote
7
- def lot_number_path; [] end
7
+ def response_lot_number_path; [] end
8
8
 
9
9
  # Caminho para encontrar o número do protocolo
10
- def protocol_path; [] end
10
+ def response_protocol_path; [] end
11
11
 
12
12
  # Caminho para encontrar a data de recebimento do lote/rps/nfe
13
- def received_date_path; [] end
13
+ def response_received_date_path; [] end
14
14
 
15
15
  # Caminho para encontrar a situação
16
- def situation_path; [] end
16
+ def response_situation_path; [] end
17
17
 
18
18
  # Chaves para formatar a situação do Lote RPS
19
- def situation_key_values
19
+ def response_situation_key_values
20
20
  {
21
21
  '1' => :unreceived, # Não Recebido
22
22
  '2' => :unprocessed,# Não Processado
@@ -26,66 +26,100 @@ module BrNfe
26
26
  end
27
27
 
28
28
  # Caminho para encontrar a data e hora do cancelamento da nF
29
- def cancelation_date_time_path; [] end
29
+ def response_cancelation_date_time_path; [] end
30
30
 
31
- def message_errors_path; [] end
32
- def message_code_key; :codigo end
33
- def message_msg_key; :mensagem end
34
- def message_solution_key; :correcao end
31
+ def response_message_errors_path; [] end
32
+ def response_message_code_key; :codigo end
33
+ def response_message_msg_key; :mensagem end
34
+ def response_message_solution_key; :correcao end
35
35
 
36
36
  # Caminho referente ao caminho onde se encontra as notas fiscais
37
37
  # poderá encontrar apenas uma ou várias
38
- def invoices_path; [] end
38
+ def response_invoices_path; [] end
39
39
 
40
40
  # Demais caminhos para encontrar os dados da NF-e
41
- def invoice_numero_nf_path; [] end
42
- def invoice_codigo_verificacao_path; [] end
43
- def invoice_data_emissao_path; [] end
44
- def invoice_url_nf_path; [] end
45
- def invoice_rps_numero_path; [] end
46
- def invoice_rps_serie_path; [] end
47
- def invoice_rps_tipo_path; [] end
48
- def invoice_rps_situacao_path; [] end
49
- def invoice_rps_substituido_numero_path; [] end
50
- def invoice_rps_substituido_serie_path; [] end
51
- def invoice_rps_substituido_tipo_path; [] end
52
- def invoice_data_emissao_rps_path; [] end
53
- def invoice_competencia_path; [] end
54
- def invoice_outras_informacoes_path; [] end
55
- def invoice_item_lista_servico_path; [] end
56
- def invoice_cnae_code_path; [] end
57
- def invoice_description_path; [] end
58
- def invoice_codigo_municipio_path; [] end
59
- def invoice_total_services_path; [] end
60
- def invoice_deductions_path; [] end
61
- def invoice_valor_pis_path; [] end
62
- def invoice_valor_cofins_path; [] end
63
- def invoice_valor_inss_path; [] end
64
- def invoice_valor_ir_path; [] end
65
- def invoice_valor_csll_path; [] end
66
- def invoice_iss_retained_path; [] end
67
- def invoice_outras_retencoes_path; [] end
68
- def invoice_total_iss_path; [] end
69
- def invoice_base_calculation_path; [] end
70
- def invoice_iss_tax_rate_path; [] end
71
- def invoice_valor_liquido_path; [] end
72
- def invoice_desconto_condicionado_path; [] end
73
- def invoice_desconto_incondicionado_path; [] end
74
- def invoice_responsavel_retencao_path; [] end
75
- def invoice_numero_processo_path; [] end
76
- def invoice_municipio_incidencia_path; [] end
77
- def invoice_orgao_gerador_municipio_path; [] end
78
- def invoice_orgao_gerador_uf_path; [] end
79
- def invoice_cancelamento_codigo_path; [] end
80
- def invoice_cancelamento_numero_nf_path; [] end
81
- def invoice_cancelamento_cnpj_path; [] end
82
- def invoice_cancelamento_municipio_path; [] end
83
- def invoice_cancelamento_sucesso_path; [] end
84
- def invoice_cancelamento_data_hora_path; [] end
85
- def invoice_nfe_substituidora_path; [] end
86
- def invoice_codigo_obra_path; [] end
87
- def invoice_codigo_art_path; [] end
88
- def invoice_cancelamento_inscricao_municipal_path; [] end
41
+ def response_invoice_numero_nf_path; [] end
42
+ def response_invoice_codigo_verificacao_path; [] end
43
+ def response_invoice_data_emissao_path; [] end
44
+ def response_invoice_url_nf_path; [] end
45
+ def response_invoice_rps_numero_path; [] end
46
+ def response_invoice_rps_serie_path; [] end
47
+ def response_invoice_rps_tipo_path; [] end
48
+ def response_invoice_rps_situacao_path; [] end
49
+ def response_invoice_rps_substituido_numero_path; [] end
50
+ def response_invoice_rps_substituido_serie_path; [] end
51
+ def response_invoice_rps_substituido_tipo_path; [] end
52
+ def response_invoice_data_emissao_rps_path; [] end
53
+ def response_invoice_competencia_path; [] end
54
+ def response_invoice_natureza_operacao_path; [] end
55
+ def response_invoice_regime_especial_tributacao_path;[] end
56
+ def response_invoice_optante_simples_nacional_path; [] end
57
+ def response_invoice_incentivador_cultural_path; [] end
58
+ def response_invoice_outras_informacoes_path; [] end
59
+ def response_invoice_item_lista_servico_path; [] end
60
+ def response_invoice_cnae_code_path; [] end
61
+ def response_invoice_description_path; [] end
62
+ def response_invoice_codigo_municipio_path; [] end
63
+ def response_invoice_total_services_path; [] end
64
+ def response_invoice_deductions_path; [] end
65
+ def response_invoice_valor_pis_path; [] end
66
+ def response_invoice_valor_cofins_path; [] end
67
+ def response_invoice_valor_inss_path; [] end
68
+ def response_invoice_valor_ir_path; [] end
69
+ def response_invoice_valor_csll_path; [] end
70
+ def response_invoice_iss_retained_path; [] end
71
+ def response_invoice_outras_retencoes_path; [] end
72
+ def response_invoice_total_iss_path; [] end
73
+ def response_invoice_base_calculation_path; [] end
74
+ def response_invoice_iss_tax_rate_path; [] end
75
+ def response_invoice_valor_liquido_path; [] end
76
+ def response_invoice_desconto_condicionado_path; [] end
77
+ def response_invoice_desconto_incondicionado_path; [] end
78
+ def response_invoice_responsavel_retencao_path; [] end
79
+ def response_invoice_numero_processo_path; [] end
80
+ def response_invoice_municipio_incidencia_path; [] end
81
+ def response_invoice_orgao_gerador_municipio_path; [] end
82
+ def response_invoice_orgao_gerador_uf_path; [] end
83
+ def response_invoice_cancelamento_codigo_path; [] end
84
+ def response_invoice_cancelamento_numero_nf_path; [] end
85
+ def response_invoice_cancelamento_cnpj_path; [] end
86
+ def response_invoice_cancelamento_municipio_path; [] end
87
+ def response_invoice_cancelamento_data_hora_path; [] end
88
+ def response_invoice_nfe_substituidora_path; [] end
89
+ def response_invoice_codigo_obra_path; [] end
90
+ def response_invoice_codigo_art_path; [] end
91
+ def response_invoice_cancelamento_inscricao_municipal_path; [] end
92
+
93
+ def response_invoice_emitente_cnpj_path; [] end
94
+ def response_invoice_emitente_inscricao_municipal_path; [] end
95
+ def response_invoice_emitente_razao_social_path; [] end
96
+ def response_invoice_emitente_nome_fantasia_path; [] end
97
+ def response_invoice_emitente_telefone_path; [] end
98
+ def response_invoice_emitente_email_path; [] end
99
+ def response_invoice_emitente_endereco_logradouro_path; [] end
100
+ def response_invoice_emitente_endereco_numero_path; [] end
101
+ def response_invoice_emitente_endereco_complemento_path; [] end
102
+ def response_invoice_emitente_endereco_bairro_path; [] end
103
+ def response_invoice_emitente_endereco_codigo_municipio_path; [] end
104
+ def response_invoice_emitente_endereco_uf_path; [] end
105
+ def response_invoice_emitente_endereco_cep_path; [] end
106
+
107
+ def response_invoice_destinatario_cpf_path ; end
108
+ def response_invoice_destinatario_cnpj_path ; end
109
+ def response_invoice_destinatario_inscricao_municipal_path ; end
110
+ def response_invoice_destinatario_inscricao_estadual_path ; end
111
+ def response_invoice_destinatario_inscricao_suframa_path ; end
112
+ def response_invoice_destinatario_razao_social_path ; end
113
+ def response_invoice_destinatario_telefone_path ; end
114
+ def response_invoice_destinatario_email_path ; end
115
+ def response_invoice_destinatario_endereco_logradouro_path ; end
116
+ def response_invoice_destinatario_endereco_numero_path ; end
117
+ def response_invoice_destinatario_endereco_complemento_path ; end
118
+ def response_invoice_destinatario_endereco_bairro_path ; end
119
+ def response_invoice_destinatario_endereco_codigo_municipio_path ; end
120
+ def response_invoice_destinatario_endereco_uf_path ; end
121
+ def response_invoice_destinatario_endereco_cep_path ; end
122
+
89
123
  end
90
124
  end
91
125
  end
@@ -7,11 +7,11 @@ module BrNfe
7
7
  include BrNfe::Service::Response::Paths::Base
8
8
 
9
9
  # def message_alerts_path; [] end
10
- def message_errors_path
10
+ def response_message_errors_path
11
11
  [:cancelar_nfse_resposta, :lista_mensagem_retorno, :mensagem_retorno]
12
12
  end
13
13
 
14
- def cancelation_date_time_path
14
+ def response_cancelation_date_time_path
15
15
  [:cancelar_nfse_resposta, :cancelamento, :confirmacao, :inf_confirmacao_cancelamento, :data_hora]
16
16
  end
17
17
  end
@@ -8,13 +8,13 @@ module BrNfe
8
8
  include BrNfe::Service::Response::Paths::V1::TcNfse
9
9
 
10
10
  # def message_alerts_path; [] end
11
- def message_errors_path
11
+ def response_message_errors_path
12
12
  [:consultar_lote_rps_resposta, :lista_mensagem_retorno, :mensagem_retorno]
13
13
  end
14
14
 
15
15
  # Caminho referente ao caminho onde se encontra as notas fiscais
16
16
  # poderá encontrar apenas uma ou várias
17
- def invoices_path
17
+ def response_invoices_path
18
18
  [:consultar_lote_rps_resposta, :lista_nfse, :comp_nfse]
19
19
  end
20
20
  end
@@ -8,13 +8,13 @@ module BrNfe
8
8
  include BrNfe::Service::Response::Paths::V1::TcNfse
9
9
 
10
10
  # def message_alerts_path; [] end
11
- def message_errors_path
11
+ def response_message_errors_path
12
12
  [:consultar_nfse_resposta, :lista_mensagem_retorno, :mensagem_retorno]
13
13
  end
14
14
 
15
15
  # Caminho referente ao caminho onde se encontra as notas fiscais
16
16
  # poderá encontrar apenas uma ou várias
17
- def invoices_path
17
+ def response_invoices_path
18
18
  [:consultar_nfse_resposta, :lista_nfse, :comp_nfse]
19
19
  end
20
20
  end
@@ -8,13 +8,13 @@ module BrNfe
8
8
  include BrNfe::Service::Response::Paths::V1::TcNfse
9
9
 
10
10
  # def message_alerts_path; [] end
11
- def message_errors_path
11
+ def response_message_errors_path
12
12
  [:consultar_nfse_rps_resposta, :lista_mensagem_retorno, :mensagem_retorno]
13
13
  end
14
14
 
15
15
  # Caminho referente ao caminho onde se encontra as notas fiscais
16
16
  # poderá encontrar apenas uma ou várias
17
- def invoices_path
17
+ def response_invoices_path
18
18
  [:consultar_nfse_rps_resposta, :comp_nfse]
19
19
  end
20
20
  end
@@ -7,17 +7,17 @@ module BrNfe
7
7
  include BrNfe::Service::Response::Paths::Base
8
8
 
9
9
  # Caminho referente ao caminho do número do lote
10
- def lot_number_path
10
+ def response_lot_number_path
11
11
  [:consultar_situacao_lote_rps_resposta, :numero_lote]
12
12
  end
13
13
 
14
14
  # Caminho para encontrar o número do protocolo
15
- def situation_path
15
+ def response_situation_path
16
16
  [:consultar_situacao_lote_rps_resposta, :situacao]
17
17
  end
18
18
 
19
- # def message_alerts_path; [] end
20
- def message_errors_path
19
+ # def response_message_alerts_path; [] end
20
+ def response_message_errors_path
21
21
  [:consultar_situacao_lote_rps_resposta, :lista_mensagem_retorno, :mensagem_retorno]
22
22
  end
23
23
  # def message_code_key; :codigo end
@@ -7,27 +7,27 @@ module BrNfe
7
7
  include BrNfe::Service::Response::Paths::Base
8
8
 
9
9
  # Caminho referente ao caminho do número do lote
10
- def lot_number_path
10
+ def response_lot_number_path
11
11
  [:enviar_lote_rps_resposta, :numero_lote]
12
12
  end
13
13
 
14
14
  # Caminho para encontrar o número do protocolo
15
- def protocol_path
15
+ def response_protocol_path
16
16
  [:enviar_lote_rps_resposta, :protocolo]
17
17
  end
18
18
 
19
19
  # Caminho para encontrar a data de recebimento do lote/rps/nfe
20
- def received_date_path
20
+ def response_received_date_path
21
21
  [:enviar_lote_rps_resposta, :data_recebimento]
22
22
  end
23
23
 
24
- # def message_alerts_path; [] end
25
- def message_errors_path
24
+ # def response_message_alerts_path; [] end
25
+ def response_message_errors_path
26
26
  [:enviar_lote_rps_resposta, :lista_mensagem_retorno, :mensagem_retorno]
27
27
  end
28
- # def message_code_key; :codigo end
29
- # def message_msg_key; :mensagem end
30
- # def message_solution_key; :correcao end
28
+ # def response_message_code_key; :codigo end
29
+ # def response_message_msg_key; :mensagem end
30
+ # def response_message_solution_key; :correcao end
31
31
  end
32
32
  end
33
33
  end
@@ -4,120 +4,264 @@ module BrNfe
4
4
  module Paths
5
5
  module V1
6
6
  module TcNfse
7
- def default_path_to_nf
7
+ def response_default_path_to_nf
8
8
  [:nfse, :inf_nfse]
9
9
  end
10
10
 
11
- def invoice_numero_nf_path
12
- default_path_to_nf + [:numero]
11
+ def response_invoice_numero_nf_path
12
+ response_default_path_to_nf + [:numero]
13
13
  end
14
14
 
15
- def invoice_codigo_verificacao_path
16
- default_path_to_nf + [:codigo_verificacao]
15
+ def response_invoice_codigo_verificacao_path
16
+ response_default_path_to_nf + [:codigo_verificacao]
17
17
  end
18
18
 
19
- def invoice_data_emissao_path
20
- default_path_to_nf + [:data_emissao]
19
+ def response_invoice_data_emissao_path
20
+ response_default_path_to_nf + [:data_emissao]
21
21
  end
22
22
 
23
- def invoice_url_nf_path
24
- default_path_to_nf + [:outras_informacoes]
23
+ def response_invoice_rps_numero_path
24
+ response_default_path_to_nf + [:identificacao_rps, :numero]
25
25
  end
26
26
 
27
- def invoice_rps_numero_path
28
- default_path_to_nf + [:identificacao_rps, :numero]
27
+ def response_invoice_rps_serie_path
28
+ response_default_path_to_nf + [:identificacao_rps, :serie]
29
29
  end
30
30
 
31
- def invoice_rps_serie_path
32
- default_path_to_nf + [:identificacao_rps, :serie]
31
+ def response_invoice_rps_tipo_path
32
+ response_default_path_to_nf + [:identificacao_rps, :tipo]
33
33
  end
34
34
 
35
- def invoice_rps_tipo_path
36
- default_path_to_nf + [:identificacao_rps, :tipo]
35
+ def response_invoice_data_emissao_rps_path
36
+ response_default_path_to_nf + [:data_emissao_rps]
37
37
  end
38
38
 
39
- def invoice_competencia_path
40
- default_path_to_nf + [:competencia]
39
+ def response_invoice_natureza_operacao_path
40
+ response_default_path_to_nf + [:natureza_operacao]
41
41
  end
42
42
 
43
- def invoice_outras_informacoes_path
44
- default_path_to_nf + [:outras_informacoes]
43
+ def response_invoice_regime_especial_tributacao_path
44
+ response_default_path_to_nf + [:regime_especial_tributacao]
45
45
  end
46
46
 
47
- def invoice_item_lista_servico_path
48
- default_path_to_nf + [:intermediario_servico]
47
+ def response_invoice_optante_simples_nacional_path
48
+ response_default_path_to_nf + [:optante_simples_nacional]
49
49
  end
50
50
 
51
- def invoice_cnae_code_path
52
- default_path_to_nf + [:servico, :codigo_cnae]
51
+ def response_invoice_incentivador_cultural_path
52
+ response_default_path_to_nf + [:incentivador_cultural]
53
53
  end
54
54
 
55
- def invoice_description_path
56
- default_path_to_nf + [:servico, :discriminacao]
55
+ def response_invoice_competencia_path
56
+ response_default_path_to_nf + [:competencia]
57
57
  end
58
58
 
59
- def invoice_codigo_municipio_path
60
- default_path_to_nf + [:servico, :codigo_municipio]
59
+ def response_invoice_outras_informacoes_path
60
+ response_default_path_to_nf + [:outras_informacoes]
61
61
  end
62
62
 
63
- def invoice_total_services_path
64
- default_path_to_nf + [:servico, :valores, :valor_servicos]
63
+ def response_invoice_item_lista_servico_path
64
+ response_default_path_to_nf + [:servico, :item_lista_servico]
65
65
  end
66
66
 
67
- def invoice_deductions_path
68
- default_path_to_nf + [:servico, :valores, :valor_deducoes]
67
+ def response_invoice_cnae_code_path
68
+ response_default_path_to_nf + [:servico, :codigo_cnae]
69
69
  end
70
70
 
71
- def invoice_valor_pis_path
72
- default_path_to_nf + [:servico, :valores, :valor_pis]
71
+ def response_invoice_description_path
72
+ response_default_path_to_nf + [:servico, :discriminacao]
73
73
  end
74
74
 
75
- def invoice_valor_cofins_path
76
- default_path_to_nf + [:servico, :valores, :valor_cofins]
75
+ def response_invoice_codigo_municipio_path
76
+ response_default_path_to_nf + [:servico, :codigo_municipio]
77
77
  end
78
78
 
79
- def invoice_valor_inss_path
80
- default_path_to_nf + [:servico, :valores, :valor_inss]
79
+ def response_invoice_total_services_path
80
+ response_default_path_to_nf + [:servico, :valores, :valor_servicos]
81
81
  end
82
82
 
83
- def invoice_valor_ir_path
84
- default_path_to_nf + [:servico, :valores, :valor_ir]
83
+ def response_invoice_deductions_path
84
+ response_default_path_to_nf + [:servico, :valores, :valor_deducoes]
85
85
  end
86
86
 
87
- def invoice_valor_csll_path
88
- default_path_to_nf + [:servico, :valores, :valor_csll]
87
+ def response_invoice_valor_pis_path
88
+ response_default_path_to_nf + [:servico, :valores, :valor_pis]
89
89
  end
90
90
 
91
- def invoice_iss_retained_path
92
- default_path_to_nf + [:servico, :valores, :valor_iss_retido]
91
+ def response_invoice_valor_cofins_path
92
+ response_default_path_to_nf + [:servico, :valores, :valor_cofins]
93
93
  end
94
94
 
95
- def invoice_outras_retencoes_path
96
- default_path_to_nf + [:servico, :valores, :outras_retencoes]
95
+ def response_invoice_valor_inss_path
96
+ response_default_path_to_nf + [:servico, :valores, :valor_inss]
97
97
  end
98
98
 
99
- def invoice_total_iss_path
100
- default_path_to_nf + [:servico, :valores, :valor_iss]
99
+ def response_invoice_valor_ir_path
100
+ response_default_path_to_nf + [:servico, :valores, :valor_ir]
101
101
  end
102
102
 
103
- def invoice_base_calculation_path
104
- default_path_to_nf + [:servico, :valores, :base_calculo]
103
+ def response_invoice_valor_csll_path
104
+ response_default_path_to_nf + [:servico, :valores, :valor_csll]
105
105
  end
106
106
 
107
- def invoice_iss_tax_rate_path
108
- default_path_to_nf + [:servico, :valores, :iss_retido]
107
+ def response_invoice_iss_retained_path
108
+ response_default_path_to_nf + [:servico, :valores, :iss_retido]
109
109
  end
110
110
 
111
- def invoice_valor_liquido_path
112
- default_path_to_nf + [:servico, :valores, :valor_liquido_nfse]
111
+ def response_invoice_outras_retencoes_path
112
+ response_default_path_to_nf + [:servico, :valores, :outras_retencoes]
113
113
  end
114
114
 
115
- def invoice_desconto_condicionado_path
116
- default_path_to_nf + [:servico, :valores, :desconto_condicionado]
115
+ def response_invoice_total_iss_path
116
+ response_default_path_to_nf + [:servico, :valores, :valor_iss]
117
117
  end
118
118
 
119
- def invoice_desconto_incondicionado_path
120
- default_path_to_nf + [:servico, :valores, :desconto_incondicionado]
119
+ def response_invoice_base_calculation_path
120
+ response_default_path_to_nf + [:servico, :valores, :base_calculo]
121
+ end
122
+
123
+ def response_invoice_iss_tax_rate_path
124
+ response_default_path_to_nf + [:servico, :valores, :aliquota]
125
+ end
126
+
127
+ def response_invoice_valor_liquido_path
128
+ response_default_path_to_nf + [:servico, :valores, :valor_liquido_nfse]
129
+ end
130
+
131
+ def response_invoice_desconto_condicionado_path
132
+ response_default_path_to_nf + [:servico, :valores, :desconto_condicionado]
133
+ end
134
+
135
+ def response_invoice_desconto_incondicionado_path
136
+ response_default_path_to_nf + [:servico, :valores, :desconto_incondicionado]
137
+ end
138
+
139
+ def response_invoice_orgao_gerador_municipio_path
140
+ response_default_path_to_nf + [:orgao_gerador, :codigo_municipio]
141
+ end
142
+
143
+ def response_invoice_orgao_gerador_uf_path
144
+ response_default_path_to_nf + [:orgao_gerador, :uf]
145
+ end
146
+
147
+ def response_invoice_codigo_obra_path
148
+ response_default_path_to_nf + [:construcao_civil, :codigo_obra]
149
+ end
150
+
151
+ def response_invoice_codigo_art_path
152
+ response_default_path_to_nf + [:construcao_civil, :art]
153
+ end
154
+
155
+ def response_invoice_cancelamento_codigo_path
156
+ [:nfse_cancelamento, :confirmacao, :pedido, :inf_pedido_cancelamento, :codigo_cancelamento]
157
+ end
158
+ def response_invoice_cancelamento_numero_nf_path
159
+ [:nfse_cancelamento, :confirmacao, :pedido, :inf_pedido_cancelamento, :identificacao_nfse, :numero]
160
+ end
161
+ def response_invoice_cancelamento_cnpj_path
162
+ [:nfse_cancelamento, :confirmacao, :pedido, :inf_pedido_cancelamento, :identificacao_nfse, :cnpj]
163
+ end
164
+ def response_invoice_cancelamento_inscricao_municipal_path
165
+ [:nfse_cancelamento, :confirmacao, :pedido, :inf_pedido_cancelamento, :identificacao_nfse, :inscricao_municipal]
166
+ end
167
+ def response_invoice_cancelamento_municipio_path
168
+ [:nfse_cancelamento, :confirmacao, :pedido, :inf_pedido_cancelamento, :identificacao_nfse, :codigo_municipio]
169
+ end
170
+ def response_invoice_cancelamento_data_hora_path
171
+ [:nfse_cancelamento, :confirmacao, :data_hora_cancelamento]
172
+ end
173
+ def response_invoice_nfe_substituidora_path
174
+ [:nfse_substituicao, :substituicao_nfse, :nfse_substituidora]
175
+ end
176
+
177
+ ############################## PATH PARA EMITENTE ##########################################
178
+ def response_invoice_emitente_path
179
+ response_default_path_to_nf+[:prestador_servico]
180
+ end
181
+ def response_invoice_emitente_cnpj_path
182
+ response_invoice_emitente_path + [:identificacao_prestador, :cnpj]
183
+ end
184
+ def response_invoice_emitente_inscricao_municipal_path
185
+ response_invoice_emitente_path + [:identificacao_prestador, :inscricao_municipal]
186
+ end
187
+ def response_invoice_emitente_razao_social_path
188
+ response_invoice_emitente_path + [:razao_social]
189
+ end
190
+ def response_invoice_emitente_nome_fantasia_path
191
+ response_invoice_emitente_path + [:nome_fantasia]
192
+ end
193
+ def response_invoice_emitente_telefone_path
194
+ response_invoice_emitente_path + [:contato, :telefone]
195
+ end
196
+ def response_invoice_emitente_email_path
197
+ response_invoice_emitente_path + [:contato, :email]
198
+ end
199
+ def response_invoice_emitente_endereco_logradouro_path
200
+ response_invoice_emitente_path + [:endereco, :endereco]
201
+ end
202
+ def response_invoice_emitente_endereco_numero_path
203
+ response_invoice_emitente_path + [:endereco, :numero]
204
+ end
205
+ def response_invoice_emitente_endereco_complemento_path
206
+ response_invoice_emitente_path + [:endereco, :complemento]
207
+ end
208
+ def response_invoice_emitente_endereco_bairro_path
209
+ response_invoice_emitente_path + [:endereco, :bairro]
210
+ end
211
+ def response_invoice_emitente_endereco_codigo_municipio_path
212
+ response_invoice_emitente_path + [:endereco, :codigo_municipio]
213
+ end
214
+ def response_invoice_emitente_endereco_uf_path
215
+ response_invoice_emitente_path + [:endereco, :uf]
216
+ end
217
+ def response_invoice_emitente_endereco_cep_path
218
+ response_invoice_emitente_path + [:endereco, :cep]
219
+ end
220
+ ############################## PATH PARA DESTINATÁRIO ##########################################
221
+ def response_invoice_destinatario_cpf_path
222
+ response_default_path_to_nf+[:tomador_servico, :identificacao_tomador, :cpf_cnpj, :cpf]
223
+ end
224
+ def response_invoice_destinatario_cnpj_path
225
+ response_default_path_to_nf+[:tomador_servico, :identificacao_tomador, :cpf_cnpj, :cnpj]
226
+ end
227
+ def response_invoice_destinatario_inscricao_municipal_path
228
+ response_default_path_to_nf+[:tomador_servico, :identificacao_tomador, :inscricao_municipal]
229
+ end
230
+ def response_invoice_destinatario_inscricao_estadual_path
231
+ response_default_path_to_nf+[:tomador_servico, :identificacao_tomador, :inscricao_estadual]
232
+ end
233
+ def response_invoice_destinatario_inscricao_suframa_path
234
+ response_default_path_to_nf+[:tomador_servico, :identificacao_tomador, :inscricao_suframa]
235
+ end
236
+ def response_invoice_destinatario_razao_social_path
237
+ response_default_path_to_nf+[:tomador_servico, :razao_social]
238
+ end
239
+ def response_invoice_destinatario_telefone_path
240
+ response_default_path_to_nf+[:tomador_servico, :contato, :telefone]
241
+ end
242
+ def response_invoice_destinatario_email_path
243
+ response_default_path_to_nf+[:tomador_servico, :contato, :email]
244
+ end
245
+ def response_invoice_destinatario_endereco_logradouro_path
246
+ response_default_path_to_nf+[:tomador_servico, :endereco, :endereco]
247
+ end
248
+ def response_invoice_destinatario_endereco_numero_path
249
+ response_default_path_to_nf+[:tomador_servico, :endereco, :numero]
250
+ end
251
+ def response_invoice_destinatario_endereco_complemento_path
252
+ response_default_path_to_nf+[:tomador_servico, :endereco, :complemento]
253
+ end
254
+ def response_invoice_destinatario_endereco_bairro_path
255
+ response_default_path_to_nf+[:tomador_servico, :endereco, :bairro]
256
+ end
257
+ def response_invoice_destinatario_endereco_codigo_municipio_path
258
+ response_default_path_to_nf+[:tomador_servico, :endereco, :codigo_municipio]
259
+ end
260
+ def response_invoice_destinatario_endereco_uf_path
261
+ response_default_path_to_nf+[:tomador_servico, :endereco, :uf]
262
+ end
263
+ def response_invoice_destinatario_endereco_cep_path
264
+ response_default_path_to_nf+[:tomador_servico, :endereco, :cep]
121
265
  end
122
266
  end
123
267
  end