revo-loans_api 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/revo/loans_api/client.rb +10 -0
- data/lib/revo/loans_api/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: c886f8eec0c7b37c12604cec95bf29e8f5502bb26ff16d5ee9e3ed6686f57ca3
|
4
|
+
data.tar.gz: c547f05d42fcc979a97c07352acd7bce1f6575ac35ddd35cd2709e9fa8eb75b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1230aa60e51a21c5733d6ece491717b161ac4d25d04ed444a27479bff571d5361400f07238e2fb50de9761c6c4b9c1286f1e134031cc77114fd3e783d22c3f7a
|
7
|
+
data.tar.gz: 00b5c7f4b15afee0c19acc715ec97e18af4a2ecdf07b995a118805b8f5d9a47375f4e5b3e6b8d2c943a893f2cb283591903d3e861f25cc0c371f05171a66e478
|
data/Gemfile.lock
CHANGED
@@ -83,6 +83,16 @@ class Revo::LoansApi::Client
|
|
83
83
|
result.success? ? result.response[:loan_request] : []
|
84
84
|
end
|
85
85
|
|
86
|
+
def get_loan_request_attributes(token:)
|
87
|
+
result = make_request(:get, "loan_requests/#{token}")
|
88
|
+
return result unless result.success?
|
89
|
+
|
90
|
+
Result.new(
|
91
|
+
success?: true,
|
92
|
+
response: result.response[:loan_request_attributes]
|
93
|
+
)
|
94
|
+
end
|
95
|
+
|
86
96
|
# prerequisite: a client with the LR's phone number should already exist
|
87
97
|
def document(token:, type:, format: 'html')
|
88
98
|
make_request(:get, "loan_requests/#{token}/documents/#{type}.#{format}")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: revo-loans_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Revo Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|