zei 0.1.7 → 0.1.8

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: 65ce644f8a09283dff6e6ee13705b638b8ef3a5a776e9f71b414cd6bbd452901
4
+ data.tar.gz: fdddccf2db6c262684bef4b3666f1583fd302f056f62a6779099348c235d4b8d
5
5
  SHA512:
6
- metadata.gz: 0434a463457cd69c9e79b3d77f5c61150c913a4a301b07e9e8ec7b79999548dedbf3dda07601261425579a2b3c6a0c69de733b66d841463ee56af5b8a96b8c24
7
- data.tar.gz: a1281723a649ec8a3a44a244120cd9380db7717fac380f62747cbc608c18b0e739f5d5cd8edb2634b98a27f31a4aad6fac39f5696e57bfb0a1b5865fbf0a666c
6
+ metadata.gz: cb2a93ac568e40d4da039d475d47a9efeea269120346113da67c10c8ec8e04329d783f498a529af46914c9acfb58fc1d1f78d636e2171c4772e79cc0b2c4b795
7
+ data.tar.gz: 5a5fdcb59e193b6466655d1ac4a2ac6d59a3882f34656dbf955983d9cb306ab4bff5dc98c36fa55f784929798792d678c5b58c0feaa287f1df8664d384ebda15
@@ -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
@@ -255,6 +255,25 @@ module Sei
255
255
  Sei::Estruturas::RetornoConsultarBloco.new body
256
256
  end
257
257
 
258
+ def self.enviar_processo(id_unidade, procedimento_formatado, unidades_destino = [], data_retorno_programado = nil, dias_retorno_programado = nil, sin_dias_uteis_retorno_programado = 'N')
259
+ message = {
260
+ SiglaSistema: Sei.configuration.sigla,
261
+ IdentificacaoServico: Sei.configuration.identificacao,
262
+ IdUnidade: id_unidade,
263
+ ProtocoloProcedimento: procedimento_formatado,
264
+ UnidadesDestino: unidades_destino,
265
+ SinManterAbertoUnidade: 'N',
266
+ SinRemoverAnotacao: 'N',
267
+ SinEnviarEmailNotificacao: 'N',
268
+ DataRetornoProgramado: data_retorno_programado,
269
+ DiasRetornoProgramado: dias_retorno_programado,
270
+ SinDiasUteisRetornoProgramado: sin_dias_uteis_retorno_programado
271
+ }
272
+ response = Sei::Connection.instance.call :enviar_processo, message: message
273
+ body = response.body[:enviar_processo_response][:parametros]
274
+ Sei::Estruturas::EnviarProcesso.new body
275
+ end
276
+
258
277
  end
259
278
 
260
279
  end
data/lib/sei/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sei
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
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.8
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-12 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