Module: Rnfse::API::SpeedGov10

Includes:
Abrasf10
Defined in:
lib/rnfse/api/speed_gov_1_0.rb

Instance Method Summary collapse

Methods included from Abrasf10

extended, included

Methods included from Abrasf10::ClassMethods

#operations

Instance Method Details

#cancelar_nfse(hash = {}) ⇒ Object



66
67
68
# File 'lib/rnfse/api/speed_gov_1_0.rb', line 66

def cancelar_nfse(hash = {})
  raise Rnfse::Error::NotImplemented
end

#consultar_lote_rps(hash = {}) ⇒ Object



35
36
37
# File 'lib/rnfse/api/speed_gov_1_0.rb', line 35

def consultar_lote_rps(hash = {})
  raise Rnfse::Error::NotImplemented
end

#consultar_nfse(hash = {}) ⇒ Object



53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/rnfse/api/speed_gov_1_0.rb', line 53

def consultar_nfse(hash = {})
  validate_options(hash)
  header = xml_builder.build_header_xml()
  parameters = xml_builder.build_consultar_nfse_envio_xml(hash)
  response = self.soap_client.call(
    :consultar_situacao_lote_rps,
    soap_action: 'ConsultarNfse',
    message_tag: 'nfse:ConsultarNfse',
    message: { :'header!' => "<![CDATA[#{header}]]>",
               :'parameters!' => "<![CDATA[#{parameters}]]>" })
  parse_response(response)
end

#consultar_nfse_por_rps(hash = {}) ⇒ Object



39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/rnfse/api/speed_gov_1_0.rb', line 39

def consultar_nfse_por_rps(hash = {})
  validate_options(hash)
  validate_ascii(hash)
  header = xml_builder.build_header_xml()
  parameters = xml_builder.build_consultar_nfse_rps_envio_xml(hash)
  response = self.soap_client.call(
    :consultar_nfse_por_rps,
    soap_action: 'ConsultarNfsePorRps',
    message_tag: 'nfse:ConsultarNfsePorRps',
    message: { :'header!' => "<![CDATA[#{header}]]>",
               :'parameters!' => "<![CDATA[#{parameters}]]>" })
  parse_response(response)
end

#consultar_situacao_lote_rps(hash = {}) ⇒ Object



22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/rnfse/api/speed_gov_1_0.rb', line 22

def consultar_situacao_lote_rps(hash = {})
  validate_options(hash)
  header = xml_builder.build_header_xml()
  parameters = xml_builder.build_consultar_situacao_lote_rps_envio_xml(hash)
  response = self.soap_client.call(
    :consultar_situacao_lote_rps,
    soap_action: 'ConsultarSituacaoLoteRps',
    message_tag: 'nfse:ConsultarSituacaoLoteRps',
    message: { :'header!' => "<![CDATA[#{header}]]>",
               :'parameters!' => "<![CDATA[#{parameters}]]>" })
  parse_response(response)
end

#recepcionar_lote_rps(hash = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rnfse/api/speed_gov_1_0.rb', line 6

def recepcionar_lote_rps(hash = {})
  validate_sign_options
  validate_options(hash)
  validate_ascii(hash)
  header = xml_builder.build_header_xml()
  parameters = xml_builder.build_recepcionar_lote_rps_xml(hash)
  parameters.sign!(certificate: File.read(self.certificate), key: File.read(self.key))
  response = self.soap_client.call(
    :recepcionar_lote_rps,
    soap_action: 'RecepcionarLoteRps',
    message_tag: 'nfse:RecepcionarLoteRps',
    message: { :'header!' => "<![CDATA[#{header}]]>",
               :'parameters!' => "<![CDATA[#{parameters}]]>" })
  parse_response(response)
end