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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0ef8b5f68060cbf44921e914d93979a69665e5b
4
- data.tar.gz: 3a590b44d8389d55412011ace48e6883e559414e
3
+ metadata.gz: 9179a32fc8fec1b3140b50d0a3164ea7e6d217f3
4
+ data.tar.gz: c1a1e19cee6de29a8e3cbad444e8f3ee05aec61b
5
5
  SHA512:
6
- metadata.gz: 1ee916c8bc9649776761099545add1f9d6bd333e08325505e2a73778d1a23faa43f1e38208eb55a53dcd5a995bad1bf17b4bbfaf016b0730daf17698bf6a5ec0
7
- data.tar.gz: 5b083a905c729454425289d7350914935de62fcbdc17fbf72862d0ac9a8f4cddc2525cad144402fcc09375bd717ec27e11275e2abf6794fc2198780c719d609a
6
+ metadata.gz: f478b0b00d13cfe5e366f1c3d63ac71d35affa33527e0d8fe1f77a74937b573c4cf0fb572a9d1f07a6f1d95511dfc13a7a06f37d7527dca369b4cf3075ffc1f0
7
+ data.tar.gz: b52b17916c6a7a16992cfddfe2416074deaeb31519c6e388a91debe8eaa985c7f2ab7e4ffa9354a6e1be41e1a2e203a027ee5fdd4102f34ecbd02a85904819db
data/README.md CHANGED
@@ -58,3 +58,4 @@ 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/cspray)
@@ -30,3 +30,6 @@ require 'fund_america/webhook_log'
30
30
  require 'fund_america/investor_payment'
31
31
  require 'fund_america/distribution'
32
32
  require 'fund_america/holding'
33
+ require 'fund_america/email_log'
34
+ require 'fund_america/bank_transfer_method'
35
+
@@ -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
@@ -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
@@ -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.2"
6
+ VERSION = "0.0.3"
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.2
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-10-25 00:00:00.000000000 Z
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