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



78
79
80
# File 'lib/rnfse/api/speed_gov_1_0.rb', line 78

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

#consultar_lote_rps(hash = {}) ⇒ Object



36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/rnfse/api/speed_gov_1_0.rb', line 36

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

#consultar_nfse(hash = {}) ⇒ Object



64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/rnfse/api/speed_gov_1_0.rb', line 64

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

#consultar_nfse_por_rps(hash = {}) ⇒ Object



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

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
34
# File 'lib/rnfse/api/speed_gov_1_0.rb', line 22

def consultar_situacao_lote_rps(hash = {})
  validate_options(hash)
  validate_ascii(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