sticapi_client 3.0.2 → 3.0.3
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 +4 -4
- data/lib/sticapi_client/intranet.rb +17 -6
- data/lib/sticapi_client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08fbfa039c3b8716f2b0e4dc3801ac2e7ded6e27d49713ffaef76c2e8999b9ba'
|
4
|
+
data.tar.gz: 7963c3aabffdadb14f43693fac72fd59b1a30110bb4b3946c71932d216a7e13d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff26a9a912cd499d9112bdc6bf57608345c7f68301d64674e5fee40d13e9c41951c961c2912738da41254358f757f062610ee7a0049f0f38dba8decc614c0f25
|
7
|
+
data.tar.gz: d7ed9e2927203731e2e757932f8b65182f8634808da0b02e93e46c060870ab5cf32e4001f53453708237ebaa3dab16dcb415dde263867936e93af8aa82f73ec7
|
@@ -111,26 +111,37 @@ module SticapiClient
|
|
111
111
|
end
|
112
112
|
|
113
113
|
# Lista de CPFs deferidos ndo intranet
|
114
|
+
# Parâmetro categoria [String] Categoria de vinculo do Intranet (padrao SERVIDOR_CARREIRA)
|
114
115
|
# Retorno [JSON] CPFS
|
115
116
|
# campos: [Sring]
|
116
|
-
def self.cpfs_deferidos
|
117
|
-
|
117
|
+
def self.cpfs_deferidos(options = {})
|
118
|
+
categorias = %w[APOSENTADO AUXILIAR_DA_JUSTICA CARGO_COMISSIONADO CEDIDO CONVENIADO ESTAGIARIO MAGISTRADO MEDIADOR_JUDICIAL MILITAR PENSIONISTA PRESTADOR SERVIDOR_CARREIRA TERCEIRIZADO VOLUNTARIO]
|
119
|
+
options[:categoria] = 'SERVIDOR_CARREIRA' unless categorias.include?(options[:categoria])
|
120
|
+
Sticapi::SticapiClient.instance.sticapi_request('/intranet/cpfs_deferidos', options)
|
118
121
|
end
|
119
122
|
|
120
123
|
# Dados de uma pré-pessoa fisica do Intranet
|
121
124
|
# Parâmetro cpf [String] CPF da pessoa
|
122
125
|
# Retorno [JSON] Dados da pessoa no intranet
|
123
126
|
# campos: Estrutura completa da pré-pessoa do intranet
|
124
|
-
def self.pre_pessoa_info(
|
125
|
-
|
127
|
+
def self.pre_pessoa_info(options = {})
|
128
|
+
if (options[:cpf])
|
129
|
+
Sticapi::SticapiClient.instance.sticapi_request('/intranet/pre_pessoa_info', options)
|
130
|
+
else
|
131
|
+
{}
|
132
|
+
end
|
126
133
|
end
|
127
134
|
|
128
135
|
# Dados de uma pessoa física do Intranet
|
129
136
|
# Parâmetro cpf [String] CPF da pessoa
|
130
137
|
# Retorno [JSON] Dados da pessoa no intranet
|
131
138
|
# campos: Estrutura completa da pessoa do intranet
|
132
|
-
def self.pessoa_info(
|
133
|
-
|
139
|
+
def self.pessoa_info(options = {})
|
140
|
+
if (options[:cpf])
|
141
|
+
Sticapi::SticapiClient.instance.sticapi_request('/intranet/pessoa_info', options)
|
142
|
+
else
|
143
|
+
{}
|
144
|
+
end
|
134
145
|
end
|
135
146
|
end
|
136
147
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sticapi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Viana
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
|
-
rubygems_version: 3.3.
|
138
|
+
rubygems_version: 3.3.17
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Client to use TJPI sticapi services
|