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
#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
#assign_attributes, #default_values, #initialize
Instance Method Details
#operation_autorizacao ⇒ Object
37
38
39
|
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 37
def operation_autorizacao
:nfe_autorizacao_lote
end
|
#operation_consulta_protocolo ⇒ Object
81
82
83
|
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 81
def operation_consulta_protocolo
:nfe_consulta_nf2
end
|
#operation_inutilizacao ⇒ Object
103
104
105
|
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 103
def operation_inutilizacao
:nfe_inutilizacao_nf2
end
|
#operation_recepcao_evento ⇒ Object
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_autorizacao ⇒ Object
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_servico ⇒ Object
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_autorizacao ⇒ Object
46
47
48
|
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 46
def ssl_version_autorizacao
:TLSv1
end
|
#ssl_version_consulta_protocolo ⇒ Object
90
91
92
|
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 90
def ssl_version_consulta_protocolo
:TLSv1
end
|
#ssl_version_inutilizacao ⇒ Object
112
113
114
|
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 112
def ssl_version_inutilizacao
:TLSv1
end
|
#ssl_version_recepcao_evento ⇒ Object
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_autorizacao ⇒ Object
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_servico ⇒ Object
24
25
26
|
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 24
def ssl_version_status_servico
:TLSv1
end
|
#url_xmlns_autorizacao ⇒ Object
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_protocolo ⇒ Object
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_inutilizacao ⇒ Object
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_evento ⇒ Object
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_autorizacao ⇒ Object
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_servico ⇒ Object
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_autorizacao ⇒ Object
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_protocolo ⇒ Object
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_inutilizacao ⇒ Object
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_evento ⇒ Object
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_autorizacao ⇒ Object
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_servico ⇒ Object
18
19
20
|
# File 'lib/br_nfe/product/gateway/web_service_mg.rb', line 18
def version_xml_status_servico
:v3_10
end
|
#wsdl_autorizacao ⇒ Object
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_protocolo ⇒ Object
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_inutilizacao ⇒ Object
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_evento ⇒ Object
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_autorizacao ⇒ Object
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_servico ⇒ Object
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
|