lib/revo/loans_api/client.rb in revo-loans_api-0.0.28 vs lib/revo/loans_api/client.rb in revo-loans_api-0.0.29
- old
+ new
@@ -248,9 +248,25 @@
"clients/#{client_id}/billing_shift/confirmation",
params: { code: code, billing_chain: billing_chain }
)
end
+ def send_restructuring_confirmation_code(client_id:, product:)
+ make_request(:post, "clients/#{client_id}/restructuring/#{product}")
+ end
+
+ def restructuring_info(client_id:, product:)
+ make_request(:get, "clients/#{client_id}/restructuring/#{product}/info")
+ end
+
+ def confirm_restructuring(client_id:, code:, product:)
+ make_request(
+ :post,
+ "clients/#{client_id}/restructuring/#{product}/confirmation",
+ params: { code: code }
+ )
+ end
+
def increase_client_limit(client_id:, amount:)
make_request(
:patch,
"clients/#{client_id}/limit",
params: { amount: amount }