revo-loans_api 0.0.38 → 0.0.43

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: a86ee33e319c0ad8a896d32be12ffabf41a4748c11da4a20161915453dc04c8b
4
- data.tar.gz: e1e9b141bd0eb57fc6ac94e62cbbbb4d8589fffc25686b424981ef1421edf4e2
3
+ metadata.gz: f4b1105747d29ca22b4f19dd551243e4f907dd5d2e8371aa6049625a116fc1da
4
+ data.tar.gz: 4093c8e9841b13e77c8a92f544db968005005b241373ba0ca5df77cd5833885e
5
5
  SHA512:
6
- metadata.gz: 2857277467c17b8b9d6aa03140d6a49c3c2756f1cbfe636844ae25f0d6e35645141f7c65827f46464b494909324c33fc55f065d9d8b0e6888d94f9609855ea50
7
- data.tar.gz: 93fc72674ee8914531d2cfafa0f9f7f1a57a6e2615e79581d98b196f25012714ddf9ba1972ef1c994812edc3a28c50a4d25170807a7f330956d5fe15f7c719f1
6
+ metadata.gz: f763fdd4878b8bd2fa3c0551d9922dc91dee90437d78384fabcb4b0caefc61bab6b7d67d87618abbf958e0064cf0e8d963f0441e82b280879f43b0cb590618d1
7
+ data.tar.gz: 79fde90104ddfe2cbd627e7895cdea3767afe984daf4920a59c1109339c084912d52d583d5baf574b8d90b8189a65f07340d2acd9afd526ba5fd718b2ff5785e
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.38)
4
+ revo-loans_api (0.0.43)
5
5
  activesupport
6
6
  http
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (6.1.3)
11
+ activesupport (6.1.3.1)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
@@ -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)
@@ -239,20 +239,25 @@ class Revo::LoansApi::Client
239
239
  )
240
240
  end
241
241
 
242
- def send_billing_shift_confirmation_code(client_id:)
243
- make_request(:post, "clients/#{client_id}/billing_shift")
242
+ def send_billing_shift(client_id:, billing_chain:)
243
+ make_request(
244
+ :post,
245
+ "clients/#{client_id}/billing_shift",
246
+ params: { billing_chain: billing_chain }
247
+ )
244
248
  end
245
249
 
246
250
  def billing_shift_info(client_id:)
247
251
  make_request(:get, "clients/#{client_id}/billing_shift/info")
248
252
  end
249
253
 
250
- def confirm_billing_shift(client_id:, code:, billing_chain:)
251
- make_request(
252
- :post,
253
- "clients/#{client_id}/billing_shift/confirmation",
254
- params: { code: code, billing_chain: billing_chain }
255
- )
254
+ def billing_shift_document(client_id:, billing_chain: nil, billing_shift_id: nil)
255
+ if billing_shift_id
256
+ make_request(:get, "clients/#{client_id}/billing_shift/#{billing_shift_id}")
257
+ else
258
+ make_request(:get, "clients/#{client_id}/billing_shift/agreement",
259
+ params: { billing_chain: billing_chain })
260
+ end
256
261
  end
257
262
 
258
263
  def send_restructuring_confirmation_code(client_id:, product:)
@@ -313,9 +318,9 @@ class Revo::LoansApi::Client
313
318
  )
314
319
  end
315
320
 
316
- def get_loan_application_certificate(loan_application_id:, kind:)
321
+ def certificate(loan_application_id:, kind:)
317
322
  make_request(
318
- :get,
323
+ :post,
319
324
  "loan_applications/#{loan_application_id}/certificate",
320
325
  params: { kind: kind }
321
326
  )
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.38'.freeze
3
+ VERSION = '0.0.43'.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.38
4
+ version: 0.0.43
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-08 00:00:00.000000000 Z
11
+ date: 2021-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http