credova 0.1.14 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/credova/ffl.rb +7 -0
- data/lib/credova/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8e49e35b8bb7e538575a92ae35a2e62a24b4812a7fb8d7d6aa42c62d33cffac
|
4
|
+
data.tar.gz: 943709d8daeecf7061cd54b085e8d89b3b2b54387f000bb5ff5f18a81f75c571
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c3f6bc4a6fd36cea80a7a5a9b99b94b9ce0d33aff3f26b74cc4f984972db8b1b7c2aa316953d58257e39b381f5e7a331e736a9490358385c11c711408da4762
|
7
|
+
data.tar.gz: cd87d085afcbe982e49c992cafc9cbf56d417e488c8bb5aa90eaeb45df8c62205de3143d766d0f3706d8f2294f05151ef37abb30cb901b5a3031ef31e56edf2b
|
data/lib/credova/ffl.rb
CHANGED
@@ -12,6 +12,7 @@ module Credova
|
|
12
12
|
|
13
13
|
ENDPOINTS = {
|
14
14
|
create: "federallicense".freeze,
|
15
|
+
find: "federallicense/licensenumber/%s".freeze,
|
15
16
|
upload_document: "federallicense/%s/uploadfile".freeze,
|
16
17
|
}
|
17
18
|
|
@@ -34,6 +35,12 @@ module Credova
|
|
34
35
|
post_request(endpoint, ffl_data, headers)
|
35
36
|
end
|
36
37
|
|
38
|
+
def find(license_number)
|
39
|
+
endpoint = ENDPOINTS[:find] % license_number
|
40
|
+
|
41
|
+
get_request(endpoint, auth_header(@client.access_token))
|
42
|
+
end
|
43
|
+
|
37
44
|
def upload_document(ffl_public_id, ffl_document_url)
|
38
45
|
endpoint = ENDPOINTS[:upload_document] % ffl_public_id
|
39
46
|
data = { form_data: ['file=@', ffl_document_url, '; type=application/', extract_file_extension(ffl_document_url)].join }
|
data/lib/credova/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credova
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeffrey Dill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|