lib/revo/loans_api/client.rb in revo-loans_api-0.0.25 vs lib/revo/loans_api/client.rb in revo-loans_api-0.0.26
- old
+ new
@@ -197,14 +197,15 @@
"loan_requests/#{token}/client/check_code",
params: { code: code }
)
end
- def create_client(token:, client_params:, provider_data: {})
+ def create_client(token:, client_params:, provider_data: {}, skip_email_confirmation: false)
make_request(
:post,
"loan_requests/#{token}/client",
- params: { client: client_params, provider_data: provider_data }
+ params: { client: client_params, provider_data: provider_data,
+ skip_email_confirmation: skip_email_confirmation }
)
end
def update_client(id:, client_params:)
make_request(:patch, "clients/#{id}", params: { client: client_params })