Class: BrNfe::Product::Gateway::WebServiceMG

Inherits:
Base show all
Defined in:
lib/br_nfe/product/gateway/web_service_mg.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_mg.rb', line 37

def operation_autorizacao
	:nfe_autorizacao_lote
end

#operation_consulta_protocoloObject



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

def operation_consulta_protocolo
	:nfe_consulta_nf2
end

#operation_inutilizacaoObject



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

def operation_inutilizacao
	:nfe_inutilizacao_nf2
end

#operation_recepcao_eventoObject



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

def operation_recepcao_evento
	:nfe_recepcao_evento
end

#operation_retorno_autorizacaoObject



59
60
61
# File 'lib/br_nfe/product/gateway/web_service_mg.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_mg.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_mg.rb', line 46

def ssl_version_autorizacao
	:TLSv1
end

#ssl_version_consulta_protocoloObject



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

def ssl_version_consulta_protocolo
	:TLSv1
end

#ssl_version_inutilizacaoObject



112
113
114
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 112

def ssl_version_inutilizacao
	:TLSv1
end

#ssl_version_recepcao_eventoObject



134
135
136
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 134

def ssl_version_recepcao_evento
	:TLSv1
end

#ssl_version_retorno_autorizacaoObject



68
69
70
# File 'lib/br_nfe/product/gateway/web_service_mg.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_mg.rb', line 24

def ssl_version_status_servico
	:TLSv1
end

#url_xmlns_autorizacaoObject



43
44
45
# File 'lib/br_nfe/product/gateway/web_service_mg.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_mg.rb', line 87

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

#url_xmlns_inutilizacaoObject



109
110
111
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 109

def url_xmlns_inutilizacao
	'http://www.portalfiscal.inf.br/nfe/wsdl/NfeInutilizacao2'
end

#url_xmlns_recepcao_eventoObject



131
132
133
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 131

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_mg.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_mg.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_mg.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_mg.rb', line 84

def version_xml_consulta_protocolo
	:v3_10
end

#version_xml_inutilizacaoObject



106
107
108
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 106

def version_xml_inutilizacao
	:v3_10
end

#version_xml_recepcao_eventoObject



128
129
130
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 128

def version_xml_recepcao_evento
	:v1_00
end

#version_xml_retorno_autorizacaoObject



62
63
64
# File 'lib/br_nfe/product/gateway/web_service_mg.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_mg.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_mg.rb', line 30

def wsdl_autorizacao
	if env_production?
		'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao?wsdl'
	else
		'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao?wsdl'
	end
end

#wsdl_consulta_protocoloObject

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



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

def wsdl_consulta_protocolo
	if env_production?
		'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2?wsdl'
	else
		'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2?wsdl'
	end
end

#wsdl_inutilizacaoObject

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



96
97
98
99
100
101
102
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 96

def wsdl_inutilizacao
	if env_production?
		'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2?wsdl'
	else
		'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2?wsdl'
	end
end

#wsdl_recepcao_eventoObject

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



118
119
120
121
122
123
124
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 118

def wsdl_recepcao_evento
	if env_production?
		'https://nfe.fazenda.mg.gov.br/nfe2/services/RecepcaoEvento?wsdl'
	else
		'https://hnfe.fazenda.mg.gov.br/nfe2/services/RecepcaoEvento?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_mg.rb', line 52

def wsdl_retorno_autorizacao
	if env_production?
		'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao?wsdl'
	else
		'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao?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_mg.rb', line 8

def wsdl_status_servico
	if env_production?
		'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeStatus2?wsdl'
	else
		'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeStatus2?wsdl'
	end
end