fund_america 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +13 -5
- data/README.md +22 -12
- data/lib/fund_america/all.rb +1 -0
- data/lib/fund_america/entity.rb +3 -3
- data/lib/fund_america/investor.rb +37 -0
- data/lib/fund_america/version.rb +1 -1
- metadata +17 -16
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NGVlZTdjMDU5ZDJmODBhNDRkZDZkYjg0YzhkNGJjNDBlNDU2NTNhOA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MTA5ZWQyYmI3OTcxNzIyZGMwZjI0ZTgzNDc5MTQ2OTE3YmJhNzRmNQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MTk1MzAzZjM2MmU3NzE2ZTQzZmRmYjE4Njc2MDM0NjlmYjlhZjQzN2VhMjNi
|
10
|
+
MmI5OTI5N2JkZTljZmFiYjgxNjFhOGZkNGM4NDU2YzEwMzhhNzY4NTk5NjYw
|
11
|
+
MDgzNWZhODNjYzMyNTdjZDcwZDRmODc4ZTk3MzRhMjg2YjQ2MDA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NmE2YjI0OWEzODZhY2JiZjRkNGIzOGM1YTRlN2EzZGI0OTI2OGQ5M2JiYmVj
|
14
|
+
N2ExNmM5NTAzMGYwNjNlNzE3NTk0ZDAwNjRkOTUwNDVjYWU0YjkxMDExMTg5
|
15
|
+
NmQwMWJlZmY5MWFhNmNmODYwMTY1ODNmMTg0YjNhYmQ1NDM5MGE=
|
data/README.md
CHANGED
@@ -22,17 +22,17 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
The details on usage of FundAmerica gem are present at: http://www.rubyeffect.com/blog/category/fundamerica/. If you wish to see FundAmerica's API documentation, please visit the url: https://apps.fundamerica.com/support/documentation
|
24
24
|
|
25
|
-
1. FundAmerica Gem Introductory Post
|
26
|
-
2. Entity Endpoints Part One
|
27
|
-
3. Entity Endpoints Part Two
|
28
|
-
4. API Info
|
29
|
-
5. ACH Authorizations
|
30
|
-
6. Background Checks
|
31
|
-
7. Bank Info
|
32
|
-
8. Error Handling
|
33
|
-
9. Offerings
|
34
|
-
10. Cancel Offering Request
|
35
|
-
11. Close Offering Request
|
25
|
+
1. [FundAmerica Gem Introductory Post](http://www.rubyeffect.com/blog/fundamerica-gem/)
|
26
|
+
2. [Entity Endpoints Part One](http://www.rubyeffect.com/blog/fundamerica-gem-entity-endpoints/)
|
27
|
+
3. [Entity Endpoints Part Two](http://www.rubyeffect.com/blog/fundamerica-gem-entity-endpoints-part-two/)
|
28
|
+
4. [API Info](http://www.rubyeffect.com/blog/fundamerica-gem-api-info-ach-authorizations/)
|
29
|
+
5. [ACH Authorizations](http://www.rubyeffect.com/blog/fundamerica-gem-api-info-ach-authorizations/)
|
30
|
+
6. [Background Checks](http://www.rubyeffect.com/blog/fundamerica-gem-background-checks-bank-info/)
|
31
|
+
7. [Bank Info](http://www.rubyeffect.com/blog/fundamerica-gem-background-checks-bank-info/)
|
32
|
+
8. [Error Handling](http://www.rubyeffect.com/blog/fundamerica-gem-error-handling/)
|
33
|
+
9. [Offerings](http://www.rubyeffect.com/blog/fundamerica-gem-offerings/)
|
34
|
+
10. [Cancel Offering Request](http://www.rubyeffect.com/blog/fundamerica-gem-cancel-close-offering-requests/)
|
35
|
+
11. [Close Offering Request](http://www.rubyeffect.com/blog/fundamerica-gem-cancel-close-offering-requests/)
|
36
36
|
|
37
37
|
## TODO
|
38
38
|
|
@@ -58,4 +58,14 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
58
58
|
## Contributors
|
59
59
|
|
60
60
|
1. Dan M (https://github.com/dan987)
|
61
|
-
2. Charles (https://github.com/
|
61
|
+
2. Charles S (https://github.com/Designbookcom)
|
62
|
+
|
63
|
+
## About RubyEffect
|
64
|
+
|
65
|
+

|
66
|
+
|
67
|
+
RubyEffect builds intuitive, live and elegant software that solves real world problems. We love open source and it's community.
|
68
|
+
|
69
|
+
Liked this gem? You may also like the articles we post on our [blog](http://www.rubyeffect.com/blog). Please do check
|
70
|
+
|
71
|
+
We would love to work on your ideas and see them grow. Say hello @ http://rubyeffect.com/contact
|
data/lib/fund_america/all.rb
CHANGED
@@ -21,6 +21,7 @@ require 'fund_america/escrow_agreement'
|
|
21
21
|
require 'fund_america/escrow_service_application'
|
22
22
|
require 'fund_america/investment_payment'
|
23
23
|
require 'fund_america/investment'
|
24
|
+
require 'fund_america/investor'
|
24
25
|
require 'fund_america/offering'
|
25
26
|
require 'fund_america/plaid_authentication'
|
26
27
|
require 'fund_america/subscription_agreement'
|
data/lib/fund_america/entity.rb
CHANGED
@@ -26,10 +26,10 @@ module FundAmerica
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# End point: https://apps.fundamerica.com/api/entities/:id (GET)
|
29
|
-
# Usage: FundAmerica::Entity.details(entity_id)
|
29
|
+
# Usage: FundAmerica::Entity.details(entity_id), request options &_expand[<attribute_name>]=1
|
30
30
|
# Output: Returns the details of an entity with matching id
|
31
|
-
def details(entity_id)
|
32
|
-
API::request(:get, FundAmerica.base_uri + "entities/#{entity_id}")
|
31
|
+
def details(entity_id, request_options = "")
|
32
|
+
API::request(:get, FundAmerica.base_uri + "entities/#{entity_id}" + request_options)
|
33
33
|
end
|
34
34
|
|
35
35
|
# End point: https://apps.fundamerica.com/api/entities/:id (DELETE)
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module FundAmerica
|
2
|
+
class Investor
|
3
|
+
class << self
|
4
|
+
|
5
|
+
# End point: https://apps.fundamerica.com/api/investors (GET)
|
6
|
+
# Usage: FundAmerica::Investor.list
|
7
|
+
# Output: Returns list of investors
|
8
|
+
def list
|
9
|
+
API::request(:get, FundAmerica.base_uri + 'investors')
|
10
|
+
end
|
11
|
+
|
12
|
+
# End point: https://apps.fundamerica.com/api/investors (POST)
|
13
|
+
# Usage: FundAmerica::Investor.create(options)
|
14
|
+
# Output: Creates a new investor - proxy, joint, ira
|
15
|
+
def create(options)
|
16
|
+
API::request(:post, FundAmerica.base_uri + 'investors', options)
|
17
|
+
end
|
18
|
+
|
19
|
+
# End point: https://apps.fundamerica.com/api/investors/:id (PATCH)
|
20
|
+
# Usage: FundAmerica::Investor.update(entity_id, options)
|
21
|
+
# Output: Updates an investor - proxy, joint, irc
|
22
|
+
# Uses test_mode update when used in sandbox mode
|
23
|
+
def update(investor_id, options)
|
24
|
+
end_point_url = FundAmerica.base_uri + "#{FundAmerica.mode == 'sandbox' ? 'test_mode/' : ''}" + "investors/#{investor_id}"
|
25
|
+
API::request(:patch, end_point_url, options)
|
26
|
+
end
|
27
|
+
|
28
|
+
# End point: https://apps.fundamerica.com/api/entities/:id (GET)
|
29
|
+
# Usage: FundAmerica::Investor.details(entity_id)
|
30
|
+
# Output: Returns the details of an investor with matching id
|
31
|
+
def details(investor_id)
|
32
|
+
API::request(:get, FundAmerica.base_uri + "investors/#{investor_id}")
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
data/lib/fund_america/version.rb
CHANGED
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fund_america
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sanjay Vedula
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.9'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.10.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.10.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
name: httparty
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.13.3
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.13.3
|
83
83
|
- !ruby/object:Gem::Dependency
|
@@ -102,9 +102,9 @@ executables: []
|
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
105
|
+
- .gitignore
|
106
|
+
- .rspec
|
107
|
+
- .travis.yml
|
108
108
|
- Gemfile
|
109
109
|
- LICENSE.txt
|
110
110
|
- README.md
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- lib/fund_america/holding.rb
|
135
135
|
- lib/fund_america/investment.rb
|
136
136
|
- lib/fund_america/investment_payment.rb
|
137
|
+
- lib/fund_america/investor.rb
|
137
138
|
- lib/fund_america/investor_payment.rb
|
138
139
|
- lib/fund_america/offering.rb
|
139
140
|
- lib/fund_america/plaid_authentication.rb
|
@@ -152,17 +153,17 @@ require_paths:
|
|
152
153
|
- lib
|
153
154
|
required_ruby_version: !ruby/object:Gem::Requirement
|
154
155
|
requirements:
|
155
|
-
- -
|
156
|
+
- - ~>
|
156
157
|
- !ruby/object:Gem::Version
|
157
158
|
version: 2.2.2
|
158
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
160
|
requirements:
|
160
|
-
- -
|
161
|
+
- - ! '>='
|
161
162
|
- !ruby/object:Gem::Version
|
162
163
|
version: '0'
|
163
164
|
requirements: []
|
164
165
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.4.
|
166
|
+
rubygems_version: 2.4.8
|
166
167
|
signing_key:
|
167
168
|
specification_version: 4
|
168
169
|
summary: Ruby gem for easy implementation of FundAmerica API in ruby, rails, sinatra
|