module Bancbox
Constants
- VERSION
Public Class Methods
cancel_escrow(apikey,secret,url,escrow_id,reason)
click to toggle source
# File lib/bancbox.rb, line 144 def self.cancel_escrow(apikey,secret,url,escrow_id,reason) escrow = Escrow.new() @escrow = escrow.cancel_escrow(apikey,secret,url,escrow_id,reason) obj = JSON.parse(@escrow.body) if !obj['error'].nil? obj['error']['message'] else obj end end
close_escrow(apikey,secret,url,escrow_id,reason)
click to toggle source
# File lib/bancbox.rb, line 155 def self.close_escrow(apikey,secret,url,escrow_id,reason) escrow = Escrow.new() @escrow = escrow.close_escrow(apikey,secret,url,escrow_id,reason) obj = JSON.parse(@escrow.body) if !obj['error'].nil? obj['error']['message'] else obj end end
create_fund_account(apikey,secret,account_number,client_ip,routing_number,type_account,amount,memo,holder_name,fund_text,investor_id,url,agreement_type,document_name,document_version,sign)
click to toggle source
# File lib/bancbox.rb, line 100 def self.create_fund_account(apikey,secret,account_number,client_ip,routing_number,type_account,amount,memo,holder_name,fund_text,investor_id,url,agreement_type,document_name,document_version,sign) fund_obj = FundAccount.new() @fund_obj = fund_obj.create_fund_account(apikey,secret,account_number,client_ip,routing_number,type_account,amount,memo,holder_name,fund_text,investor_id,url,agreement_type,document_name,document_version,sign) obj = JSON.parse(@fund_obj.body) if !obj['error'].nil? obj['error']['message'] else obj end end
create_fund_escrow(apikey,secret,url,investor_id,client_ip,escrow_id,amount,fund_text)
click to toggle source
# File lib/bancbox.rb, line 111 def self.create_fund_escrow(apikey,secret,url,investor_id,client_ip,escrow_id,amount,fund_text) fund_esc_obj = FundEscrow.new() @fund_esc_obj = fund_esc_obj.create_fund_escrow(apikey,secret,url,investor_id,client_ip,escrow_id,amount,fund_text) obj = JSON.parse(@fund_esc_obj.body) if !obj['error'].nil? obj['error']['message'] else obj end end
create_investor(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,dob,created)
click to toggle source
# File lib/bancbox.rb, line 24 def self.create_investor(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,dob,created) investor_obj = Investor.new() @investor = investor_obj.create_investor(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,dob,created) obj = JSON.parse(@investor.body) if !obj['error'].nil? obj['error']['message'] else obj end end
create_investor_with_ssn(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,dob,created,ssn)
click to toggle source
# File lib/bancbox.rb, line 13 def self.create_investor_with_ssn(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,dob,created,ssn) investor_obj = Investor.new() @investor = investor_obj.create_investor_with_ssn(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,dob,created,ssn) obj = JSON.parse(@investor.body) if !obj['error'].nil? obj['error']['message'] else obj end end
create_issuer(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,dob,ssn,internal,created)
click to toggle source
# File lib/bancbox.rb, line 46 def self.create_issuer(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,dob,ssn,internal,created) issuer_obj = Issuer.new() @issuer = issuer_obj.create_issuer(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,dob,ssn,internal,created) obj = JSON.parse(@issuer.body) if !obj['error'].nil? obj['error']['message'] else obj end end
create_llc_investor(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,created,llc)
click to toggle source
# File lib/bancbox.rb, line 78 def self.create_llc_investor(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,created,llc) investor_obj = AngelFund.new() @investor = investor_obj.create_investor(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,created,llc) obj = JSON.parse(@investor.body) if !obj['error'].nil? obj['error']['message'] else obj end end
create_llc_investor_with_ssn(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,created,ssn,llc)
click to toggle source
# File lib/bancbox.rb, line 68 def self.create_llc_investor_with_ssn(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,created,ssn,llc) investor_obj = AngelFund.new() @investor = investor_obj.create_investor_with_ssn(apikey,secret,url,fname,lname,email,phone,address_1,address_2,city,state,zip,created,ssn,llc) obj = JSON.parse(@investor.body) if !obj['error'].nil? obj['error']['message'] else obj end end
create_proceeds_scheduler(apikey,secret,url,escrow_id,close_date,over_funding_amount,funding_goal)
click to toggle source
# File lib/bancbox.rb, line 188 def self.create_proceeds_scheduler(apikey,secret,url,escrow_id,close_date,over_funding_amount,funding_goal) proceeds = ProceedsScheduler.new() @proceeds = proceeds.create_proceeds_scheduler(apikey,secret,url,escrow_id,close_date,over_funding_amount,funding_goal) obj = JSON.parse(@proceeds.body) if !obj['error'].nil? obj['error']['message'] else obj end end
get_angel_investor(apikey,secret,url,id)
click to toggle source
# File lib/bancbox.rb, line 89 def self.get_angel_investor(apikey,secret,url,id) investor_obj = AngelFund.new() @investor = investor_obj.get_investor(apikey,secret,url,id) obj = JSON.parse(@investor.body) if !obj['error'].nil? obj['error']['message'] else obj end end
get_escrow(apikey,secret,url,id)
click to toggle source
# File lib/bancbox.rb, line 166 def self.get_escrow(apikey,secret,url,id) escrow = Escrow.new() @escrow = escrow.get_escrow(apikey,secret,url,id) obj = JSON.parse(@escrow.body) if !obj['error'].nil? obj['error']['message'] else obj end end
get_investor(apikey,secret,url,id)
click to toggle source
# File lib/bancbox.rb, line 35 def self.get_investor(apikey,secret,url,id) investor_obj = Investor.new() @investor = investor_obj.get_investor(apikey,secret,url,id) obj = JSON.parse(@investor.body) if !obj['error'].nil? obj['error']['message'] else obj end end
get_issuer(apikey,secret,url,id)
click to toggle source
# File lib/bancbox.rb, line 57 def self.get_issuer(apikey,secret,url,id) issuer_obj = Issuer.new() @issuer = issuer_obj.get_issuer(apikey,secret,url,id) obj = JSON.parse(@issuer.body) if !obj['error'].nil? obj['error']['message'] else obj end end
modify_escrow(apikey,secret,url,escrow_id,close_date,over_funding_amount,funding_goal)
click to toggle source
# File lib/bancbox.rb, line 177 def self.modify_escrow(apikey,secret,url,escrow_id,close_date,over_funding_amount,funding_goal) escrow = Escrow.new() @escrow = escrow.modify_escrow(apikey,secret,url,escrow_id,close_date,over_funding_amount,funding_goal) obj = JSON.parse(@escrow.body) if !obj['error'].nil? obj['error']['message'] else obj end end
open_escrow(apikey,secret,url,name,issuer_id,start_date,close_date,funding_goal,minimum_funding_amount,maximum_funding_amount,platform_signatory_email,issuer_signatory_email,platform_sign_name,platform_sign_title,issuer_sign_name,issuer_sign_title,created)
click to toggle source
# File lib/bancbox.rb, line 133 def self.open_escrow(apikey,secret,url,name,issuer_id,start_date,close_date,funding_goal,minimum_funding_amount,maximum_funding_amount,platform_signatory_email,issuer_signatory_email,platform_sign_name,platform_sign_title,issuer_sign_name,issuer_sign_title,created) escrow = Escrow.new() @escrow = escrow.open_escrow(apikey,secret,url,name,issuer_id,start_date,close_date,funding_goal,minimum_funding_amount,maximum_funding_amount,platform_signatory_email,issuer_signatory_email,platform_sign_name,platform_sign_title,issuer_sign_name,issuer_sign_title,created) obj = JSON.parse(@escrow.body) if !obj['error'].nil? obj['error']['message'] else obj end end
withdraw_funds(apikey,secret,url,account_number,client_ip,routing_number,type_account,amount,memo,holder_name,fund_text,method,inv_id)
click to toggle source
# File lib/bancbox.rb, line 122 def self.withdraw_funds(apikey,secret,url,account_number,client_ip,routing_number,type_account,amount,memo,holder_name,fund_text,method,inv_id) fund_obj = WithdrawFunds.new() @fund_obj = fund_obj.create_withdraw_fund(apikey,secret,url,account_number,client_ip,routing_number,type_account,amount,memo,holder_name,fund_text,method,inv_id) obj = JSON.parse(@fund_obj.body) if !obj['error'].nil? obj['error']['message'] else obj end end