fund_america 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/fund_america/all.rb +3 -0
- data/lib/fund_america/api.rb +0 -1
- data/lib/fund_america/bank_transfer_method.rb +13 -0
- data/lib/fund_america/email_log.rb +21 -0
- data/lib/fund_america/entity.rb +7 -0
- data/lib/fund_america/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9179a32fc8fec1b3140b50d0a3164ea7e6d217f3
|
4
|
+
data.tar.gz: c1a1e19cee6de29a8e3cbad444e8f3ee05aec61b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f478b0b00d13cfe5e366f1c3d63ac71d35affa33527e0d8fe1f77a74937b573c4cf0fb572a9d1f07a6f1d95511dfc13a7a06f37d7527dca369b4cf3075ffc1f0
|
7
|
+
data.tar.gz: b52b17916c6a7a16992cfddfe2416074deaeb31519c6e388a91debe8eaa985c7f2ab7e4ffa9354a6e1be41e1a2e203a027ee5fdd4102f34ecbd02a85904819db
|
data/README.md
CHANGED
data/lib/fund_america/all.rb
CHANGED
data/lib/fund_america/api.rb
CHANGED
@@ -10,7 +10,6 @@ module FundAmerica
|
|
10
10
|
response = HTTParty.send(method, uri, options)
|
11
11
|
parsed_response = JSON.parse(response.body)
|
12
12
|
if response.code.to_i == 200
|
13
|
-
puts parsed_response.inspect
|
14
13
|
# Returns parsed_response - a hash of response body
|
15
14
|
# if response is successful
|
16
15
|
parsed_response
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module FundAmerica
|
2
|
+
class BankTransferMethod
|
3
|
+
class << self
|
4
|
+
|
5
|
+
# End point: https://apps.fundamerica.com/api/bank_transfer_methods/:id (GET)
|
6
|
+
# Usage: FundAmerica::BankTransferMethod.details(bank_transfer_method_id)
|
7
|
+
# Output: Returns the details of a bank transfer method with matching id
|
8
|
+
def details(bank_transfer_method_id)
|
9
|
+
API::request(:get, FundAmerica.base_uri + "bank_transfer_methods/#{bank_transfer_method_id}")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module FundAmerica
|
2
|
+
class EmailLog
|
3
|
+
class << self
|
4
|
+
|
5
|
+
# End point: https://apps.fundamerica.com/api/email_logs (GET)
|
6
|
+
# Usage: FundAmerica::EmailLog.list
|
7
|
+
# Output: Returns list of email_logs
|
8
|
+
def list
|
9
|
+
API::request(:get, FundAmerica.base_uri + 'email_logs')
|
10
|
+
end
|
11
|
+
|
12
|
+
# End point: https://apps.fundamerica.com/api/email_logs/:id (GET)
|
13
|
+
# Usage: FundAmerica::EmailLog.details(email_log_id)
|
14
|
+
# Output: Returns the details of an email_log with matching id
|
15
|
+
def details(email_log_id)
|
16
|
+
API::request(:get, FundAmerica.base_uri + "email_logs/#{email_log_id}")
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/fund_america/entity.rb
CHANGED
@@ -77,6 +77,13 @@ module FundAmerica
|
|
77
77
|
API::request(:get, FundAmerica.base_uri + "entities/#{entity_id}/investor_payments")
|
78
78
|
end
|
79
79
|
|
80
|
+
# https://apps.fundamerica.com/api/entities/:id/bank_transfer_methods (GET)
|
81
|
+
# Usage: FundAmerica::Entity.bank_transfer_methods
|
82
|
+
# Output: Returns Bank Transfer Method informations of an entity
|
83
|
+
def bank_transfer_method(entity_id)
|
84
|
+
API::request(:get, FundAmerica.base_uri + "entities/#{entity_id}/bank_transfer_methods")
|
85
|
+
end
|
86
|
+
|
80
87
|
|
81
88
|
end
|
82
89
|
end
|
data/lib/fund_america/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.3
|
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-
|
11
|
+
date: 2015-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -119,11 +119,13 @@ files:
|
|
119
119
|
- lib/fund_america/api_info.rb
|
120
120
|
- lib/fund_america/background_check.rb
|
121
121
|
- lib/fund_america/bank_info.rb
|
122
|
+
- lib/fund_america/bank_transfer_method.rb
|
122
123
|
- lib/fund_america/billing_log.rb
|
123
124
|
- lib/fund_america/cancel_offering_request.rb
|
124
125
|
- lib/fund_america/close_offering_request.rb
|
125
126
|
- lib/fund_america/distribution.rb
|
126
127
|
- lib/fund_america/electronic_signature.rb
|
128
|
+
- lib/fund_america/email_log.rb
|
127
129
|
- lib/fund_america/entity.rb
|
128
130
|
- lib/fund_america/entity_relationship.rb
|
129
131
|
- lib/fund_america/error.rb
|