revo-loans_api 0.0.53 → 0.0.54
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/Gemfile.lock +1 -1
- data/lib/revo/loans_api/client.rb +23 -6
- 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: 6b8bf2f83d92afbc6a1324fd89e742b231eea38a38016b9ff200f044d5a59d06
|
|
4
|
+
data.tar.gz: 9664471561dfe0408f32c45f71c1329984f8706a50f268b7ba3b74cb08514524
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdbfc367d6163167ce60333c784c22e81e99379375b9ff1a89932d8c3ef0047454f1c7942274e935a461873f669d3d96a8403d9093a0a6a43799fb76ac43bdd0
|
|
7
|
+
data.tar.gz: 0f11c8fdbd44837f9b16a4e263d63a795efbd8b4915203380c0c3d95d9505bc9dc4776d7e22a90d59f19ba85122359e8db3b3f90d8a8e8ee9a73569466b67223
|
data/Gemfile.lock
CHANGED
|
@@ -104,11 +104,19 @@ class Revo::LoansApi::Client
|
|
|
104
104
|
make_request(:post, "loan_requests/#{token}/client/confirmation")
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
-
def complete_loan_request(token:, code:)
|
|
107
|
+
def complete_loan_request(token:, code: nil, session_id: nil)
|
|
108
|
+
complete_params = {}
|
|
109
|
+
|
|
110
|
+
if session_id
|
|
111
|
+
complete_params[:session_id] = session_id
|
|
112
|
+
else
|
|
113
|
+
complete_params[:code] = code
|
|
114
|
+
end
|
|
115
|
+
|
|
108
116
|
make_request(
|
|
109
117
|
:post,
|
|
110
118
|
"loan_requests/#{token}/confirmation",
|
|
111
|
-
params:
|
|
119
|
+
params: complete_params,
|
|
112
120
|
headers: { 'Application-Source': application_source }
|
|
113
121
|
)
|
|
114
122
|
end
|
|
@@ -122,13 +130,15 @@ class Revo::LoansApi::Client
|
|
|
122
130
|
)
|
|
123
131
|
end
|
|
124
132
|
|
|
125
|
-
def finalize_loan(token:, code
|
|
133
|
+
def finalize_loan(token:, code: nil, sms_info: '0', skip_confirmation: false, session_id: nil)
|
|
126
134
|
loan_params = {
|
|
127
135
|
agree_processing: '1',
|
|
128
|
-
confirmation_code: code,
|
|
129
136
|
agree_sms_info: sms_info
|
|
130
137
|
}
|
|
131
138
|
|
|
139
|
+
loan_params[:confirmation_code] = code if code
|
|
140
|
+
loan_params[:session_id] = session_id if session_id
|
|
141
|
+
|
|
132
142
|
if skip_confirmation
|
|
133
143
|
loan_params[:skip_confirmation] = true
|
|
134
144
|
loan_params.delete(:confirmation_code)
|
|
@@ -254,11 +264,18 @@ class Revo::LoansApi::Client
|
|
|
254
264
|
make_request(:post, "clients/#{client_id}/billing_shift")
|
|
255
265
|
end
|
|
256
266
|
|
|
257
|
-
def confirm_billing_shift(client_id:,
|
|
267
|
+
def confirm_billing_shift(client_id:, billing_chain:, code: nil, session_id: nil)
|
|
268
|
+
confirmation_params = {
|
|
269
|
+
billing_chain: billing_chain
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
confirmation_params[:code] = code if code
|
|
273
|
+
confirmation_params[:session_id] = session_id if session_id
|
|
274
|
+
|
|
258
275
|
make_request(
|
|
259
276
|
:post,
|
|
260
277
|
"clients/#{client_id}/billing_shift/confirmation",
|
|
261
|
-
params:
|
|
278
|
+
params: confirmation_params
|
|
262
279
|
)
|
|
263
280
|
end
|
|
264
281
|
|
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.54
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Revo Developers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-12-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: http
|