class RubyBancbox::Cfp

Public Class Methods

accredit_investor_3rd_party(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 134
def accredit_investor_3rd_party(options = {})
  post('/accreditInvestor3rdParty', options)
end
cancel_escrow(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 42
def cancel_escrow(options = {})
  post('/cancelEscrow', options)
end
cancel_proceeds_schedules(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 106
def cancel_proceeds_schedules(options = {})
  post('/cancelProceedsSchedules', options)
end
change_investor_contribution(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 38
def change_investor_contribution(options = {})
  post('/changeInvestorContribution', options)
end
close_escrow(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 46
def close_escrow(options = {})
  post('/closeEscrow', options)
end
confirm_wire_transfer(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 126
def confirm_wire_transfer(options = {})
  post('/confirmWireTransfer', options)
end
create_challenge_deposit(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 150
def create_challenge_deposit(options = {})
  post('/createChallengeDeposit', options)
end
create_investor(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 6
def create_investor(options = {})
  # reference_id
  # first_name
  # last_name
  # phone
  post( '/createInvestor', options )
end
create_issuer(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 22
def create_issuer(options = {})
  post('/createIssuer', options)
end
create_proceeds_schedules(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 98
def create_proceeds_schedules(options = {})
  post('/createProceedsSchedules', options)
end
disburse_escrow(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 82
def disburse_escrow(options = {})
  post('/disburseEscrow', options)
end
freeze_investment_ledger(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 94
def freeze_investment_ledger(options = {})
  post('/freezeInvestmentLedger', options)
end
fund_account(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 30
def fund_account(options = {})
  post('/fundAccount', options)
end
fund_escrow(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 34
def fund_escrow(options = {})
  post('/fundEscrow', options)
end
get_activity(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 142
def get_activity(options = {})
  post('/getActivity', options)
end
get_challenge_deposit_status(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 158
def get_challenge_deposit_status(options = {})
  post('/getChallengeDepositStatus', options)
end
get_escrow(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 50
def get_escrow(options = {})
  post('/getEscrowDetails', options)

end
get_escrow_activity(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 60
def get_escrow_activity(options = {})
  post('/getActivityDetails', options)
end
get_investment_ledger(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 86
def get_investment_ledger(options = {})
  post('/getInvestmentLedger', options)
end
get_investor(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 68
def get_investor(options = {})
  # investor_id
  post('/getInvestorDetails', options)
end
get_issuer(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 78
def get_issuer(options = {})
  post('/getIssuerDetails', options)
end
get_ledger(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 146
def get_ledger(options = {})
  post('/getLedger', options)
end
get_proceeds_schedules(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 102
def get_proceeds_schedules(options = {})
  post('/getProceedsSchedules', options)
end
get_verification_status(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 138
def get_verification_status(options = {})
  post('/getVerificationStatus', options)
end
list_escrow_accounts() click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 55
def list_escrow_accounts
  post('/getEscrowList')

end
list_investors() click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 64
def list_investors
  post('/getInvestorList')
end
list_issuers() click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 73
def list_issuers
  post('/getIssuerList')

end
modify_escrow(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 114
def modify_escrow(options = {})
  post('/updateEscrowAccount', options)
end
open_escrow(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 26
def open_escrow(options = {})
  post('/createEscrowAccount', options)
end
submit_agreement(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 14
def submit_agreement(options = {})
  post( '/submitAgreemnt', options)
end
transfer_funds(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 118
def transfer_funds(options = {})
  post('/transferFunds', options)
end
update_investment_ledger(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 90
def update_investment_ledger(options = {})
  post('/updateInvestmentLedger', options)
end
update_investor(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 162
def update_investor(options = {})
  post('/updateInvestor', options)
end
update_issuer(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 166
def update_issuer(options = {})
  post('/updateIssuer', options)
end
verify_challenge_deposit(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 154
def verify_challenge_deposit(options = {})
  post('/verifyChallengeDeposit', options)
end
verify_identity(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 18
def verify_identity(options = {})
  post('/verifyIdentity', options)
end
verify_income(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 130
def verify_income(options = {})
  post('/verifyIncome', options)
end
withdraw_funds(options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 110
def withdraw_funds(options = {})
  post('/withdrawFunds', options)
end

Private Class Methods

credentials() click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 172
def credentials
 { api_key: RubyBancbox.configuration.api_key, secret: RubyBancbox.configuration.secret }
end
post(path, options = {}) click to toggle source
# File lib/ruby_bancbox/cfp.rb, line 176
def post(path, options = {})
  JSON.parse(
    RestClient.post(
      RubyBancbox.configuration.base_url + path, options.merge(credentials)
    )
  )
end