zei 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be2314dc3132d3d1eb03fcd01b4f18aa730a8b0d0ca4b3d26857f13133ff941d
4
- data.tar.gz: 396b9467396c5ab0250ee5581004246c2824b0160c13d9b4db1cf82fb9fd9bfd
3
+ metadata.gz: c36f67502b0d04fc4fe16ae4d306222a026ab7d8e3a056feb5b89844ec1a321b
4
+ data.tar.gz: 523d653e96f21b9eae8f11172cb339557a37e5740e57485585dbafac9518c4c9
5
5
  SHA512:
6
- metadata.gz: 0434a463457cd69c9e79b3d77f5c61150c913a4a301b07e9e8ec7b79999548dedbf3dda07601261425579a2b3c6a0c69de733b66d841463ee56af5b8a96b8c24
7
- data.tar.gz: a1281723a649ec8a3a44a244120cd9380db7717fac380f62747cbc608c18b0e739f5d5cd8edb2634b98a27f31a4aad6fac39f5696e57bfb0a1b5865fbf0a666c
6
+ metadata.gz: 48e8a0884e109f321a0543dc74fd7ccaa039d20d3811ef4d8e7c6dcd30aa0044a6dcc0f1fa0ff9e0e2742be8f2b1528394d270466d91814a55845ee6bf0720cd
7
+ data.tar.gz: 1aad0e0084ae0594cc3088360f764a8895a1779fb9bbe5a16f811c32a31351ad9508550a2701f0a35fd6b0b160f76ce1cd0cb41a724ed465c2b5a33c2305d885
@@ -0,0 +1,17 @@
1
+ module Sei
2
+
3
+ module Estruturas
4
+
5
+ class EnviarProcesso < ::Valuable
6
+
7
+ has_value :status
8
+
9
+ def initialize(params)
10
+ self.status = params
11
+ initialize_attributes
12
+ end
13
+ end
14
+
15
+ end
16
+
17
+ end
data/lib/sei/servico.rb CHANGED
@@ -183,7 +183,19 @@ module Sei
183
183
  Sei::Estruturas::RetornoListUsuarios.new body
184
184
  end
185
185
 
186
- def self.consultar_procedimento(id_unidade, protocolo_procedimento, sin_retornar_assuntos = 'N', sin_retornar_interessados = 'N', sin_retornar_observacoes = 'N', sin_retornar_andamento_geracao = 'N', sin_retornar_andamento_conclusao = 'N')
186
+ def self.consultar_procedimento(
187
+ id_unidade, protocolo_procedimento,
188
+ sin_retornar_assuntos = 'N',
189
+ sin_retornar_interessados = 'N',
190
+ sin_retornar_observacoes = 'N',
191
+ sin_retornar_andamento_geracao = 'N',
192
+ sin_retornar_andamento_conclusao = 'N',
193
+ sin_retornar_ultimo_andamento = 'N',
194
+ sin_retornar_ultimo_andamento = 'N',
195
+ sin_retornar_unidades_procedimento_aberto = 'S',
196
+ sin_retornar_procedimentos_relacionados = 'N',
197
+ sin_retornar_procedimentos_anexados = 'N'
198
+ )
187
199
  message = {
188
200
  SiglaSistema: Sei.configuration.sigla,
189
201
  IdentificacaoServico: Sei.configuration.identificacao,
@@ -193,7 +205,11 @@ module Sei
193
205
  SinRetornarInteressados: sin_retornar_interessados,
194
206
  SinRetornarObservacoes: sin_retornar_observacoes,
195
207
  SinRetornarAndamentoGeracao: sin_retornar_andamento_geracao,
196
- SinRetornarAndamentoConclusao: sin_retornar_andamento_conclusao
208
+ SinRetornarAndamentoConclusao: sin_retornar_andamento_conclusao,
209
+ SinRetornarUltimoAndamento: sin_retornar_ultimo_andamento,
210
+ SinRetornarUnidadesProcedimentoAberto: sin_retornar_unidades_procedimento_aberto,
211
+ SinRetornarProcedimentosRelacionados: sin_retornar_procedimentos_relacionados,
212
+ SinRetornarProcedimentosAnexados: sin_retornar_procedimentos_anexados
197
213
  }
198
214
  response = Sei::Connection.instance.call :consultar_procedimento, message: message
199
215
  body = response.body[:consultar_procedimento_response][:parametros]
@@ -255,6 +271,25 @@ module Sei
255
271
  Sei::Estruturas::RetornoConsultarBloco.new body
256
272
  end
257
273
 
274
+ def self.enviar_processo(id_unidade, procedimento_formatado, unidades_destino = [], data_retorno_programado = nil, dias_retorno_programado = nil, sin_dias_uteis_retorno_programado = 'N')
275
+ message = {
276
+ SiglaSistema: Sei.configuration.sigla,
277
+ IdentificacaoServico: Sei.configuration.identificacao,
278
+ IdUnidade: id_unidade,
279
+ ProtocoloProcedimento: procedimento_formatado,
280
+ UnidadesDestino: unidades_destino,
281
+ SinManterAbertoUnidade: 'N',
282
+ SinRemoverAnotacao: 'N',
283
+ SinEnviarEmailNotificacao: 'N',
284
+ DataRetornoProgramado: data_retorno_programado,
285
+ DiasRetornoProgramado: dias_retorno_programado,
286
+ SinDiasUteisRetornoProgramado: sin_dias_uteis_retorno_programado
287
+ }
288
+ response = Sei::Connection.instance.call :enviar_processo, message: message
289
+ body = response.body[:enviar_processo_response][:parametros]
290
+ Sei::Estruturas::EnviarProcesso.new body
291
+ end
292
+
258
293
  end
259
294
 
260
295
  end
data/lib/sei/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sei
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.9"
3
3
  end
data/lib/zei.rb CHANGED
@@ -25,6 +25,7 @@ require 'sei/estruturas/retorno_list_usuarios'
25
25
  require 'sei/estruturas/retorno_consultar_procedimento'
26
26
  require 'sei/estruturas/retorno_consultar_documento'
27
27
  require 'sei/estruturas/retorno_consultar_bloco'
28
+ require 'sei/estruturas/enviar_processo'
28
29
 
29
30
  module Sei
30
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zei
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-09 00:00:00.000000000 Z
11
+ date: 2023-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -113,6 +113,7 @@ files:
113
113
  - lib/sei/connection.rb
114
114
  - lib/sei/estruturas/documento.rb
115
115
  - lib/sei/estruturas/documento_bloco.rb
116
+ - lib/sei/estruturas/enviar_processo.rb
116
117
  - lib/sei/estruturas/procedimento.rb
117
118
  - lib/sei/estruturas/retorno_boolean.rb
118
119
  - lib/sei/estruturas/retorno_conclusao_processo.rb
@@ -153,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
154
  - !ruby/object:Gem::Version
154
155
  version: '0'
155
156
  requirements: []
156
- rubygems_version: 3.4.8
157
+ rubygems_version: 3.4.10
157
158
  signing_key:
158
159
  specification_version: 4
159
160
  summary: Integração com a API do SEI.