fund_america 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3e837f7354c9bac5f104e48c50e02f5282cf644
4
- data.tar.gz: 559d34a2abd723b06e624d0d4bd48a6d9bf47ab6
3
+ metadata.gz: d0ef8b5f68060cbf44921e914d93979a69665e5b
4
+ data.tar.gz: 3a590b44d8389d55412011ace48e6883e559414e
5
5
  SHA512:
6
- metadata.gz: ef2714f2b8125a6cfce60c4c52d4e908173c9045804807b1d9f2edbfa8c991995061811e72e6ad4420efc5e346e764922cfccbfb46c01e1acd05e9041257e357
7
- data.tar.gz: 2f6a7d8ae39bba23a4ae98f040906adb075d36af516ee91074c6cd6f87094eab49005409470f1489f8e4ee5ad2115c54d2381c4952c0749c860287515c547838
6
+ metadata.gz: 1ee916c8bc9649776761099545add1f9d6bd333e08325505e2a73778d1a23faa43f1e38208eb55a53dcd5a995bad1bf17b4bbfaf016b0730daf17698bf6a5ec0
7
+ data.tar.gz: 5b083a905c729454425289d7350914935de62fcbdc17fbf72862d0ac9a8f4cddc2525cad144402fcc09375bd717ec27e11275e2abf6794fc2198780c719d609a
data/README.md CHANGED
@@ -20,7 +20,19 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- The details on usage 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
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
+
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/
24
36
 
25
37
  ## TODO
26
38
 
@@ -37,8 +49,12 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
37
49
 
38
50
  ## Contributing
39
51
 
40
- 1. Fork it ( https://github.com/[my-github-username]/fund_america/fork )
52
+ 1. Fork it ( https://github.com/rubyeffect/fund_america/fork )
41
53
  2. Create your feature branch (`git checkout -b my-new-feature`)
42
54
  3. Commit your changes (`git commit -am 'Add some feature'`)
43
55
  4. Push to the branch (`git push origin my-new-feature`)
44
56
  5. Create a new Pull Request
57
+
58
+ ## Contributors
59
+
60
+ 1. Dan M (https://github.com/dan987)
@@ -30,10 +30,13 @@ Gem::Specification.new do |spec|
30
30
  # Development Dependencies
31
31
  spec.add_development_dependency "bundler", "~> 1.9"
32
32
  spec.add_development_dependency "rake", "~> 10.0"
33
- spec.add_development_dependency 'pry'
34
- spec.add_development_dependency 'rspec'
33
+ spec.add_development_dependency 'pry', "~> 0.10.1"
34
+ spec.add_development_dependency 'rspec', "3.2.0"
35
35
 
36
36
  # Runtime Dependencies
37
- spec.add_runtime_dependency 'httparty'
38
- spec.add_runtime_dependency 'json'
37
+ spec.add_runtime_dependency 'httparty', "~> 0.13.3"
38
+ spec.add_runtime_dependency 'json', "1.8.1"
39
+
40
+ # Ruby Dependency
41
+ spec.required_ruby_version = "~> 2.2.2"
39
42
  end
@@ -27,3 +27,6 @@ require 'fund_america/subscription_agreement'
27
27
  require 'fund_america/subscription_agreement_template'
28
28
  require 'fund_america/trade_review'
29
29
  require 'fund_america/webhook_log'
30
+ require 'fund_america/investor_payment'
31
+ require 'fund_america/distribution'
32
+ require 'fund_america/holding'
@@ -0,0 +1,28 @@
1
+ module FundAmerica
2
+ class Distribution
3
+ class << self
4
+
5
+ # End point: https://apps.fundamerica.com/api/distributions (GET)
6
+ # Usage: FundAmerica::Distribution.list
7
+ # Output: Returns list of distributions
8
+ def list
9
+ API::request(:get, FundAmerica.base_uri + 'distributions')
10
+ end
11
+
12
+ # End point: https://apps.fundamerica.com/api/investment_payments/:id (GET)
13
+ # Usage: FundAmerica::Distribution.details(distribution_id)
14
+ # Output: Returns the details of a distribution with matching id
15
+ def details(distribution_id)
16
+ API::request(:get, FundAmerica.base_uri + "distributions/#{distribution_id}")
17
+ end
18
+
19
+ # End point: https://apps/fundamerica.com/api/distributions/:id/investor_payments
20
+ # Usage: FundAmerica::Distribution.investor_payments(distribution_id)
21
+ # Output: Returns the investor_payments associated with distribution
22
+ def investor_payments(distribution_id, page, per)
23
+ API::request(:get, FundAmerica.base_uri + "distributions/#{distribution_id}/investor_payments?page=#{page}&per=#{per}")
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -71,6 +71,13 @@ module FundAmerica
71
71
  API::request(:patch, FundAmerica.base_uri + "entities/#{entity_id}/investor_suitability", options)
72
72
  end
73
73
 
74
+ # End point: https://apps.fundamerica.com/api/entities/:id/investor_payments (GET)
75
+ # Usage: FundAmerica::Entity.investor_payments(entity_id)
76
+ def investor_payments(entity_id)
77
+ API::request(:get, FundAmerica.base_uri + "entities/#{entity_id}/investor_payments")
78
+ end
79
+
80
+
74
81
  end
75
82
  end
76
83
  end
@@ -0,0 +1,21 @@
1
+ module FundAmerica
2
+ class Holding
3
+ class << self
4
+
5
+ # End point: https://apps.fundamerica.com/api/holdings
6
+ # Usage: FundAmerica::Holding.list
7
+ # Output: Returns list of holdings
8
+ def list
9
+ API::request(:get, FundAmerica.base_uri + 'holdings')
10
+ end
11
+
12
+ # End point: https://apps.fundamerica.com/api/holdings/:id (GET)
13
+ # Usage: FundAmerica::Holding.details(Holding_id)
14
+ # Output: Returns the details of a Holding with matching id
15
+ def details(holding_id)
16
+ API::request(:get, FundAmerica.base_uri + "holdings/#{holding_id}")
17
+ end
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module FundAmerica
2
+ class InvestorPayment
3
+ class << self
4
+
5
+ # End point: https://apps.fundamerica.com/api/investor_payments (GET)
6
+ # Usage: FundAmerica::InvestorPayment.list
7
+ # Output: Returns list of investor_payments
8
+ def list
9
+ API::request(:get, FundAmerica.base_uri + 'investor_payments')
10
+ end
11
+
12
+ # End point: https://apps.fundamerica.com/api/investor_payments/:id (GET)
13
+ # Usage: FundAmerica::InvestorPayment.details(investor_payment_id)
14
+ # Output: Returns the details of an investor_payment with matching id
15
+ def details(investor_payment_id)
16
+ API::request(:get, FundAmerica.base_uri + "investor_payments/#{investor_payment_id}")
17
+ end
18
+
19
+ end
20
+ end
21
+ end
@@ -3,5 +3,5 @@ module FundAmerica
3
3
  # The format is Major dot Minor dot patch
4
4
  # Check the FundAmerica changelog regularly and add changes from it
5
5
  # Increase the patch number
6
- VERSION = "0.0.1"
6
+ VERSION = "0.0.2"
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fund_america
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sanjay Vedula
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-07 00:00:00.000000000 Z
11
+ date: 2015-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,58 +42,58 @@ dependencies:
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
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
- version: '0'
54
+ version: 0.10.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 3.2.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 3.2.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: httparty
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
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
- version: '0'
82
+ version: 0.13.3
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: json
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 1.8.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 1.8.1
97
97
  description: This is a ruby gem to use the FundAmerica (http://www.fundamerica.com)
98
98
  API easily in your ruby, rails and sinatra apps built by RubyEffect (http://www.rubyeffect.com)
99
99
  email:
@@ -122,14 +122,17 @@ files:
122
122
  - lib/fund_america/billing_log.rb
123
123
  - lib/fund_america/cancel_offering_request.rb
124
124
  - lib/fund_america/close_offering_request.rb
125
+ - lib/fund_america/distribution.rb
125
126
  - lib/fund_america/electronic_signature.rb
126
127
  - lib/fund_america/entity.rb
127
128
  - lib/fund_america/entity_relationship.rb
128
129
  - lib/fund_america/error.rb
129
130
  - lib/fund_america/escrow_agreement.rb
130
131
  - lib/fund_america/escrow_service_application.rb
132
+ - lib/fund_america/holding.rb
131
133
  - lib/fund_america/investment.rb
132
134
  - lib/fund_america/investment_payment.rb
135
+ - lib/fund_america/investor_payment.rb
133
136
  - lib/fund_america/offering.rb
134
137
  - lib/fund_america/plaid_authentication.rb
135
138
  - lib/fund_america/subscription_agreement.rb
@@ -147,9 +150,9 @@ require_paths:
147
150
  - lib
148
151
  required_ruby_version: !ruby/object:Gem::Requirement
149
152
  requirements:
150
- - - ">="
153
+ - - "~>"
151
154
  - !ruby/object:Gem::Version
152
- version: '0'
155
+ version: 2.2.2
153
156
  required_rubygems_version: !ruby/object:Gem::Requirement
154
157
  requirements:
155
158
  - - ">="