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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f7f334cb1a7e0136db5888bdbfb0701a6e6fc0d7ef0db52e5a8c3c5004576ae
4
- data.tar.gz: a4c37c13ca46f1c756444a58139a7015a3840efe1223faeee0bc4fe5e0afad77
3
+ metadata.gz: b8e49e35b8bb7e538575a92ae35a2e62a24b4812a7fb8d7d6aa42c62d33cffac
4
+ data.tar.gz: 943709d8daeecf7061cd54b085e8d89b3b2b54387f000bb5ff5f18a81f75c571
5
5
  SHA512:
6
- metadata.gz: f5719f8a1d1f37a6c5c10814220f8481faf8579cae629f3457e80a2ebb4e213e8c99a91fe879634c319eaccf526e12952aabf26f20fcafbea0052c4db636e510
7
- data.tar.gz: 53629fa8f812db80a37164c5327c41e20209661fb90425d863a5dfcdb8ab1f9d91cf1855df26d90298123baec9cdcc6c0c9a93b0a6de2a4d38c9e249d47f3984
6
+ metadata.gz: 1c3f6bc4a6fd36cea80a7a5a9b99b94b9ce0d33aff3f26b74cc4f984972db8b1b7c2aa316953d58257e39b381f5e7a331e736a9490358385c11c711408da4762
7
+ data.tar.gz: cd87d085afcbe982e49c992cafc9cbf56d417e488c8bb5aa90eaeb45df8c62205de3143d766d0f3706d8f2294f05151ef37abb30cb901b5a3031ef31e56edf2b
@@ -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 }
@@ -1,3 +1,3 @@
1
1
  module Credova
2
- VERSION = "0.1.14"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.14
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-02-15 00:00:00.000000000 Z
11
+ date: 2019-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler