Class: CrowdPay::Account

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::AttributeMethods, ActiveModel::Validations, CrowdPay
Defined in:
lib/crowd_pay/account.rb

Constant Summary

Constants included from CrowdPay

VERSION

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from CrowdPay

included

Instance Attribute Details

#account_type_idObject

Returns the value of attribute account_type_id.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def 
  @account_type_id
end

#available_balanceObject

Returns the value of attribute available_balance.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def available_balance
  @available_balance
end

#contact_emailObject

Returns the value of attribute contact_email.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def contact_email
  @contact_email
end

#contact_nameObject

Returns the value of attribute contact_name.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def contact_name
  @contact_name
end

#contact_phoneObject

Returns the value of attribute contact_phone.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def contact_phone
  @contact_phone
end

#created_by_ip_addressObject

Returns the value of attribute created_by_ip_address.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def created_by_ip_address
  @created_by_ip_address
end

#current_balanceObject

Returns the value of attribute current_balance.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def current_balance
  @current_balance
end

#draft_account_nameObject

Returns the value of attribute draft_account_name.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def 
  @draft_account_name
end

#draft_account_numberObject

Returns the value of attribute draft_account_number.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def 
  @draft_account_number
end

#draft_account_type_idObject

Returns the value of attribute draft_account_type_id.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def 
  @draft_account_type_id
end

#draft_routing_numberObject

Returns the value of attribute draft_routing_number.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def draft_routing_number
  @draft_routing_number
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def id
  @id
end

#idology_idObject

Returns the value of attribute idology_id.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def idology_id
  @idology_id
end

#investor_idObject

Returns the value of attribute investor_id.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def investor_id
  @investor_id
end

#is_cip_satisfiedObject

Returns the value of attribute is_cip_satisfied.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def is_cip_satisfied
  @is_cip_satisfied
end

#is_mailing_address_foreignObject

Returns the value of attribute is_mailing_address_foreign.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def is_mailing_address_foreign
  @is_mailing_address_foreign
end

#mailing_address_1Object

Returns the value of attribute mailing_address_1.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def mailing_address_1
  @mailing_address_1
end

#mailing_address_2Object

Returns the value of attribute mailing_address_2.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def mailing_address_2
  @mailing_address_2
end

#mailing_cityObject

Returns the value of attribute mailing_city.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def mailing_city
  @mailing_city
end

#mailing_countryObject

Returns the value of attribute mailing_country.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def mailing_country
  @mailing_country
end

#mailing_stateObject

Returns the value of attribute mailing_state.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def mailing_state
  @mailing_state
end

#mailing_zipObject

Returns the value of attribute mailing_zip.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def mailing_zip
  @mailing_zip
end

#name_1Object

Returns the value of attribute name_1.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def name_1
  @name_1
end

#name_2Object

Returns the value of attribute name_2.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def name_2
  @name_2
end

#name_3Object

Returns the value of attribute name_3.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def name_3
  @name_3
end

#name_4Object

Returns the value of attribute name_4.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def name_4
  @name_4
end

#numberObject

Returns the value of attribute number.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def number
  @number
end

#portal_account_numberObject

Returns the value of attribute portal_account_number.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def 
  @portal_account_number
end

#status_idObject

Returns the value of attribute status_id.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def status_id
  @status_id
end

#w9_code_idObject

Returns the value of attribute w9_code_id.



7
8
9
# File 'lib/crowd_pay/account.rb', line 7

def w9_code_id
  @w9_code_id
end

Class Method Details

.create(data) ⇒ Object



63
64
65
66
67
# File 'lib/crowd_pay/account.rb', line 63

def self.create(data)
  url = 'Crowdfunding/api/Account'
  response = post(url, data)
  parse(response)
end

.find(id) ⇒ Object



51
52
53
54
55
# File 'lib/crowd_pay/account.rb', line 51

def self.find(id)
  url = "Crowdfunding/api/Account/#{id}"
  response = get(url)
  parse(response)
end

.find_with_assets(account_id) ⇒ Object



75
76
77
78
79
# File 'lib/crowd_pay/account.rb', line 75

def self.find_with_assets()
  url = "Crowdfunding/api/V2/Account/#{}/Assets/All"
  response = get(url)
  parse(response)
end

.find_with_transactions(id) ⇒ Object



57
58
59
60
61
# File 'lib/crowd_pay/account.rb', line 57

def self.find_with_transactions(id)
  url = "Crowdfunding/api/Account/#{id}/Transaction"
  response = get(url)
  parse(response)
end

.update(id, data) ⇒ Object



69
70
71
72
73
# File 'lib/crowd_pay/account.rb', line 69

def self.update(id, data)
  url = "Crowdfunding/api/Account/#{id}"
  response = put(url, data)
  parse(response)
end