Skip to content

Commit df6a282

Browse files
committed
WealthForge API client v2
1 parent 151027f commit df6a282

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+864
-26543
lines changed

README.md

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -26,62 +26,32 @@ Before you can use this gem, you'll need to configure it with the key and cert,
2626

2727

2828
WealthForge.configure do |config|
29-
config.wf_crt_file = ENV['WF_CRT_FILE']
30-
config.wf_key_file = ENV['WF_KEY_FILE']
29+
config.client_secret = ENV['WF_CLIENT_SECRET']
30+
config.client_id = ENV['WF_CLIENT_ID']
3131
config.environment = 'development'
3232
end
3333

34-
or
35-
36-
WealthForge.configure do |config|
37-
config.wf_crt = ENV['WF_CRT']
38-
config.wf_key = ENV['WF_KEY']
39-
config.environment = 'development'
40-
end
41-
42-
4334

4435
## Usage
4536

46-
Please refer to the official WealthForge API [documentation](https://api.wealthforge.com/) for a full list of API calls. Note that this is currently a partial implementation of the most commonly used functionality.
37+
Please refer to the official WealthForge API [documentation](https://wealthforge.api-docs.io/) for a full list of API calls. Note that this is currently a partial implementation of the most commonly used functionality.
4738

4839

4940
### Available Calls
5041

51-
#### Investor
52-
53-
WealthForge::Investor.all
54-
WealthForge::Investor.create params
55-
WealthForge::Investor.get investor_id
56-
WealthForge::Investor.update investor_id, params
57-
WealthForge::Investor.accreditation_evidence investor_id, params
58-
5942
#### Investment
6043

61-
WealthForge::Investment.all
6244
WealthForge::Investment.create params
6345
WealthForge::Investment.get investment_id
64-
WealthForge::Investment.update investment_id, params
65-
WealthForge::Investment.redirect_url investment_id
66-
WealthForge::Investment.status investment_id
67-
WealthForge::Investment.account investment_id
68-
WealthForge::Investment.update_account investment_id, account
69-
WealthForge::Investment.approve investment_id
70-
WealthForge::Investment.approve_subscription investment_id
71-
WealthForge::Investment.due_diligence investment_id
72-
WealthForge::Investment.create_subscription_agreement investment_id, params
46+
WealthForge::Investment.file_upload path, mime_type, title, subscription_id
7347

7448
#### Issuer
7549

76-
WealthForge::Issuer.all
7750
WealthForge::Issuer.create params
78-
WealthForge::Issuer.get id
7951

8052
#### Offering
8153

8254
WealthForge::Offering.create params
83-
WealthForge::Offering.all
84-
WealthForge::Offering.get id
8555

8656

8757
## Contributing
@@ -93,8 +63,8 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/dinosi
9363

9464
All tests can be run by typing `rspec`. Prior to running tests, you'll need to export your cert and key as such:
9565

96-
export WF_CRT_FILE=/home/you/wealthforge/certs/development.crt
97-
export WF_KEY_FILE=/home/you/wealthforge/certs/development.key
66+
export WF_CLIENT_SECRET=[secret]
67+
export WF_CLIENT_ID=[client-id]
9868

9969

10070
## License
@@ -109,4 +79,4 @@ This project and the code therein was not created by and is not supported by Wea
10979

11080
## Author
11181

112-
Dino Simone ([email protected])
82+
Dino Simone ([email protected]) | dinosimone.com

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
require "bundler/gem_tasks"
2-
require "rspec/core/rake_task"
1+
require 'bundler/gem_tasks'
2+
require 'rspec/core/rake_task'
33

44
RSpec::Core::RakeTask.new(:spec)
55

fixtures/vcr_cassettes/all_investors.yml

Lines changed: 0 additions & 14242 deletions
This file was deleted.

fixtures/vcr_cassettes/create_investment.yml

Lines changed: 81 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fixtures/vcr_cassettes/create_investor.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

fixtures/vcr_cassettes/create_issuer.yml

Lines changed: 54 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)