lib/revo/loans_api/client.rb in revo-loans_api-0.0.11 vs lib/revo/loans_api/client.rb in revo-loans_api-0.0.12
- old
+ new
@@ -148,9 +148,17 @@
def create_card_loan(token:, term_id:)
make_request(:post, "loan_requests/#{token}/card_loan", term_id: term_id)
end
+ def send_billing_shift_confirmation_code(mobile_phone:)
+ make_request(:post, 'clients/billing_shift', mobile_phone: mobile_phone)
+ end
+
+ def billing_shift_info(mobile_phone:)
+ make_request(:get, "clients/billing_shift/info?mobile_phone=#{mobile_phone}")
+ end
+
private
API_CONTENT_TYPE = 'application/json'.freeze
attr_reader :base_url, :login, :password