Class: BrNfe::Product::Gateway::WebServiceSvcAN

Inherits:
Base show all
Defined in:
lib/br_nfe/product/gateway/web_service_svc_an.rb

Instance Attribute Summary

Attributes inherited from Base

#env

Attributes inherited from ActiveModelBase

#reference

Instance Method Summary collapse

Methods inherited from Base

#env_production?, #operation_download_nf, #ssl_version_download_nf, #url_xmlns_download_nf, #version_xml_download_nf, #wsdl_download_nf

Methods inherited from ActiveModelBase

#assign_attributes, #default_values, #initialize

Constructor Details

This class inherits a constructor from BrNfe::ActiveModelBase

Instance Method Details

#operation_autorizacaoObject



37
38
39
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 37

def operation_autorizacao
	:nfe_autorizacao_lote
end

#operation_consulta_protocoloObject



81
82
83
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 81

def operation_consulta_protocolo
	:nfe_consulta_nf2
end

#operation_inutilizacaoObject



98
99
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 98

def operation_inutilizacao
end

#operation_recepcao_eventoObject



116
117
118
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 116

def operation_recepcao_evento
	:nfe_recepcao_evento
end

#operation_retorno_autorizacaoObject



59
60
61
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 59

def operation_retorno_autorizacao
	:nfe_ret_autorizacao_lote
end

#operation_status_servicoObject



15
16
17
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 15

def operation_status_servico
	:nfe_status_servico_nf2
end

#ssl_version_autorizacaoObject



46
47
48
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 46

def ssl_version_autorizacao
	:TLSv1
end

#ssl_version_consulta_protocoloObject



90
91
92
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 90

def ssl_version_consulta_protocolo
	:TLSv1
end

#ssl_version_inutilizacaoObject



104
105
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 104

def ssl_version_inutilizacao
end

#ssl_version_recepcao_eventoObject



125
126
127
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 125

def ssl_version_recepcao_evento
	:TLSv1
end

#ssl_version_retorno_autorizacaoObject



68
69
70
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 68

def ssl_version_retorno_autorizacao
	:TLSv1
end

#ssl_version_status_servicoObject



24
25
26
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 24

def ssl_version_status_servico
	:TLSv1
end

#url_xmlns_autorizacaoObject



43
44
45
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 43

def url_xmlns_autorizacao
	'http://www.portalfiscal.inf.br/nfe/wsdl/NfeAutorizacao'
end

#url_xmlns_consulta_protocoloObject



87
88
89
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 87

def url_xmlns_consulta_protocolo
	'http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2'
end

#url_xmlns_inutilizacaoObject



102
103
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 102

def url_xmlns_inutilizacao
end

#url_xmlns_recepcao_eventoObject



122
123
124
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 122

def url_xmlns_recepcao_evento
	'http://www.portalfiscal.inf.br/nfe/wsdl/RecepcaoEvento'
end

#url_xmlns_retorno_autorizacaoObject



65
66
67
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 65

def url_xmlns_retorno_autorizacao
	'http://www.portalfiscal.inf.br/nfe/wsdl/NfeRetAutorizacao'
end

#url_xmlns_status_servicoObject



21
22
23
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 21

def url_xmlns_status_servico
	'http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2'
end

#version_xml_autorizacaoObject



40
41
42
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 40

def version_xml_autorizacao
	:v3_10
end

#version_xml_consulta_protocoloObject



84
85
86
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 84

def version_xml_consulta_protocolo
	:v3_10
end

#version_xml_inutilizacaoObject



100
101
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 100

def version_xml_inutilizacao
end

#version_xml_recepcao_eventoObject



119
120
121
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 119

def version_xml_recepcao_evento
	:v1_00
end

#version_xml_retorno_autorizacaoObject



62
63
64
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 62

def version_xml_retorno_autorizacao
	:v3_10
end

#version_xml_status_servicoObject



18
19
20
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 18

def version_xml_status_servico
	:v3_10
end

#wsdl_autorizacaoObject

NFE AUTORIZAÇÃO #######################################



30
31
32
33
34
35
36
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 30

def wsdl_autorizacao
	if env_production?
		'https://www.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx?wsdl'
	else
		'https://hom.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx?wsdl'
	end
end

#wsdl_consulta_protocoloObject

NFE CONSULTA PROTOCOLO ################################



74
75
76
77
78
79
80
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 74

def wsdl_consulta_protocolo
	if env_production?
		'https://www.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx?wsdl'
	else
		'https://hom.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx?wsdl'
	end
end

#wsdl_inutilizacaoObject

NFE INUTILIZAÇÃO ######################################



96
97
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 96

def wsdl_inutilizacao
end

#wsdl_recepcao_eventoObject

NFE RECEPÇÃO EVENTO ###################################



109
110
111
112
113
114
115
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 109

def wsdl_recepcao_evento
	if env_production?
		'https://www.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx?wsdl'
	else
		'https://hom.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx?wsdl'
	end
end

#wsdl_retorno_autorizacaoObject

NFE RETORNO AUTORIZAÇÃO ###############################



52
53
54
55
56
57
58
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 52

def wsdl_retorno_autorizacao
	if env_production?
		'https://www.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx?wsdl'
	else
		'https://hom.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx?wsdl'
	end
end

#wsdl_status_servicoObject

NFE STATUS SERVIÇO ####################################



8
9
10
11
12
13
14
# File 'lib/br_nfe/product/gateway/web_service_svc_an.rb', line 8

def wsdl_status_servico
	if env_production?
		'https://www.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx?wsdl'
	else
		'https://hom.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx?wsdl'
	end
end