lib/revo/loans_api/client.rb in revo-loans_api-0.0.42 vs lib/revo/loans_api/client.rb in revo-loans_api-0.0.43
- old
+ new
@@ -316,9 +316,18 @@
:get,
"stores/#{store_id}/documents/#{kind}.#{format}"
)
end
+ def certificate(loan_application_id:, kind:)
+ make_request(
+ :post,
+ "loan_applications/#{loan_application_id}/certificate",
+ params: { kind: kind }
+ )
+ end
+
+
private
API_CONTENT_TYPE = 'application/json'.freeze
attr_reader :base_url, :login, :password, :application_source