revo-loans_api 0.0.42 → 0.0.47

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 232a5c7194010a4fc77beb6a0b4e72f4b8103cf162268a8c9e95c23bebc66b37
4
- data.tar.gz: 3b1411102dcac72a65703a975ea4d506f43858b1f80b77bf33e9950beb5dcc9c
3
+ metadata.gz: f618187b7d79691f0185ab12885b921930c2d5cbd872420dfcf51d777d6c5c81
4
+ data.tar.gz: d62fe6fc16e180e5077b245395c8c02d5c316f3f0cdbd7a2978f326b9cf25754
5
5
  SHA512:
6
- metadata.gz: 393db7601c7e9d5ddcc3b7acc8b042a934762afdf0dd800bd0e6d54a31f44134bfe8f7d8f6904cf4019e8707986aa3aee8eb3ff084255d8235961a290fff1ce0
7
- data.tar.gz: b09e44ed4c5a51c0865693a4a026a213cb2a2d817e57314444b7a6b5037f9da439084479843d9a3a4ebf032641024e1c689f7abc59659399ca1e765c75830a35
6
+ metadata.gz: c391be3ca281210466995032b16c686a96a1255704960b4a31fd8a99fc9ea4e100af8ec3ae29a8e7285294f3bb982703c7939ae082ada2b9e78baa93502b4c0a
7
+ data.tar.gz: f02778458190367fbf1a5b2645e338b2b8089c104991835c632ea8a07a030bbea42456d6224468ee5dd9e26c5326bb651adbc133f3ad837d81334ca97ecc9bf8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.42)
4
+ revo-loans_api (0.0.47)
5
5
  activesupport
6
6
  http
7
7
 
@@ -38,7 +38,7 @@ GEM
38
38
  http-form_data (2.3.0)
39
39
  http-parser (1.2.3)
40
40
  ffi-compiler (>= 1.0, < 2.0)
41
- i18n (1.8.9)
41
+ i18n (1.8.10)
42
42
  concurrent-ruby (~> 1.0)
43
43
  minitest (5.14.4)
44
44
  public_suffix (4.0.1)
@@ -106,7 +106,8 @@ class Revo::LoansApi::Client
106
106
  make_request(
107
107
  :post,
108
108
  "loan_requests/#{token}/confirmation",
109
- params: { code: code }
109
+ params: { code: code },
110
+ headers: { 'Application-Source': application_source }
110
111
  )
111
112
  end
112
113
 
@@ -247,6 +248,18 @@ class Revo::LoansApi::Client
247
248
  )
248
249
  end
249
250
 
251
+ def send_billing_shift_confirmation_code(client_id:)
252
+ make_request(:post, "clients/#{client_id}/billing_shift")
253
+ end
254
+
255
+ def confirm_billing_shift(client_id:, code:, billing_chain:)
256
+ make_request(
257
+ :post,
258
+ "clients/#{client_id}/billing_shift/confirmation",
259
+ params: { code: code, billing_chain: billing_chain }
260
+ )
261
+ end
262
+
250
263
  def billing_shift_info(client_id:)
251
264
  make_request(:get, "clients/#{client_id}/billing_shift/info")
252
265
  end
@@ -318,6 +331,15 @@ class Revo::LoansApi::Client
318
331
  )
319
332
  end
320
333
 
334
+ def certificate(loan_application_id:, kind:)
335
+ make_request(
336
+ :post,
337
+ "loan_applications/#{loan_application_id}/certificate",
338
+ params: { kind: kind }
339
+ )
340
+ end
341
+
342
+
321
343
  private
322
344
 
323
345
  API_CONTENT_TYPE = 'application/json'.freeze
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.42'.freeze
3
+ VERSION = '0.0.47'.freeze
4
4
  end
5
5
  end
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.42
4
+ version: 0.0.47
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-03-31 00:00:00.000000000 Z
11
+ date: 2021-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http