Module: Rnfse::API::IssNet10
- Includes:
- Abrasf10
- Defined in:
- lib/rnfse/api/iss_net_1_0.rb
Instance Method Summary
collapse
Methods included from Abrasf10
extended, included
#cancelar_nfse, #consultar_lote_rps, #consultar_nfse
Instance Method Details
#consultar_nfse_por_rps(hash = {}) ⇒ Object
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/rnfse/api/iss_net_1_0.rb', line 39
def consultar_nfse_por_rps(hash = {})
validate_options(hash)
xml = xml_builder.build_consultar_nfse_por_rps_xml(hash)
response = self.soap_client.call(
:consultar_nfse_por_rps,
soap_action: 'ConsultarNFSePorRPS',
message_tag: 'ConsultarNFSePorRPS',
message: { :'xml!' => "<![CDATA[#{xml}]]>" })
parse_response(response)
end
|
#consultar_situacao_lote_rps(hash = {}) ⇒ Object
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/rnfse/api/iss_net_1_0.rb', line 28
def consultar_situacao_lote_rps(hash = {})
validate_options(hash)
xml = xml_builder.build_consultar_situacao_lote_rps_xml(hash)
response = self.soap_client.call(
:consultar_situacao_lote_rps,
soap_action: 'ConsultarSituacaoLoteRPS',
message_tag: 'ConsultarSituacaoLoteRPS',
message: { :'xml!' => "<![CDATA[#{xml}]]>" })
parse_response(response)
end
|
#consultar_url_visualizacao_nfse(hash = {}) ⇒ Object
50
51
52
|
# File 'lib/rnfse/api/iss_net_1_0.rb', line 50
def consultar_url_visualizacao_nfse(hash = {})
raise Rnfse::Error::NotImplemented
end
|
#consultar_url_visualizacao_nfse_serie(hash = {}) ⇒ Object
54
55
56
|
# File 'lib/rnfse/api/iss_net_1_0.rb', line 54
def consultar_url_visualizacao_nfse_serie(hash = {})
raise Rnfse::Error::NotImplemented
end
|
#json_folder ⇒ Object
58
59
60
|
# File 'lib/rnfse/api/iss_net_1_0.rb', line 58
def json_folder
'iss_net_1_0'
end
|
#operations ⇒ Object
6
7
8
9
10
11
12
13
|
# File 'lib/rnfse/api/iss_net_1_0.rb', line 6
def operations()
[
:recepcionar_lote_rps, :consultar_situacao_lote_rps,
:consultar_nfse_por_rps, :consultar_nfse, :consultar_lote_rps,
:cancelar_nfse, :consultar_url_visualizacao_nfse,
:consultar_url_visualizacao_nfse_serie
]
end
|
#recepcionar_lote_rps(hash = {}) ⇒ Object
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/rnfse/api/iss_net_1_0.rb', line 15
def recepcionar_lote_rps(hash = {})
validate_sign_options
validate_options(hash)
xml = xml_builder.build_recepcionar_lote_rps_xml(hash)
xml.sign!(certificate: File.read(self.certificate), key: File.read(self.key))
response = self.soap_client.call(
:recepcionar_lote_rps,
soap_action: 'RecepcionarLoteRps',
message_tag: 'RecepcionarLoteRps',
message: { :'xml!' => "<![CDATA[#{xml}]]>" })
parse_response(response)
end
|