sticapi_client 3.3.8 → 3.4.0
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/pessoas.rb +20 -1
- 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: 2a87697bb31a79b0c123a791756fa4d25a556ec311f52d7782c1ac20af1ee62c
|
4
|
+
data.tar.gz: fae706222471770559a406c40b4ce9f56fb80bfbf1f4e61feed40f81430dc338
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0b2d43c5eff2b4d82fc7f7005639a59ff1654ae9d08bbb4fbd01a6c638d7fe298234fbf27f6d8dcde09c6acf22381e1414a14c740bf759129add6ce6b588b5f
|
7
|
+
data.tar.gz: ed3d9a599992421cc9c9a79d5d01233d44ca171ea4bdb7ff302847d18de4eb8e4b4e6c6ee0cc64a18b3f496d69b75a505211da7e329ad306082f75ecb6b04db6
|
@@ -57,7 +57,19 @@ module SticapiClient
|
|
57
57
|
def self.get_by_cpf(options = {})
|
58
58
|
options[:kind] = "get"
|
59
59
|
if options[:cpf].present?
|
60
|
-
Sticapi::SticapiClient.instance.sticapi_request("/pessoas/#{cpf}", options)
|
60
|
+
Sticapi::SticapiClient.instance.sticapi_request("/pessoas/#{options[:cpf]}", options)
|
61
|
+
else
|
62
|
+
{}
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# Retorna as autodeclarações pendentes por CPF a partir do sistema Pessoas
|
67
|
+
# Parâmetro cpf [String] cpf da pessoa
|
68
|
+
# Retorno [JSON] Autodeclarações da pessoa com pedência de preenchimento
|
69
|
+
def self.get_autodeclaracoes_ausentes_by_cpf(options = {})
|
70
|
+
options[:kind] = "get"
|
71
|
+
if options[:cpf].present?
|
72
|
+
Sticapi::SticapiClient.instance.sticapi_request("/pessoas/#{options[:cpf]}/autodeclaracoes_ausentes", options)
|
61
73
|
else
|
62
74
|
{}
|
63
75
|
end
|
@@ -100,5 +112,12 @@ module SticapiClient
|
|
100
112
|
options[:kind] = "get"
|
101
113
|
Sticapi::SticapiClient.instance.sticapi_request("/pessoas/simbolos_fcs", options)
|
102
114
|
end
|
115
|
+
|
116
|
+
# Retorna os dados basicos de uma unidade com pessoas vinculadas
|
117
|
+
# Retorno [JSON] Unidade e vinculados correspondentes
|
118
|
+
def self.unidade(options = {})
|
119
|
+
options[:kind] = "get"
|
120
|
+
Sticapi::SticapiClient.instance.sticapi_request("/pessoas/unidade", options)
|
121
|
+
end
|
103
122
|
end
|
104
123
|
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.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Viana
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
rubygems_version: 3.5.
|
142
|
+
rubygems_version: 3.5.15
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Client to use TJPI sticapi services
|