DealMakerAPI 0.97.3 → 0.97.5

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
  SHA256:
3
- metadata.gz: 1177b3639c23dad5bfa1f2cde8f424b51223e8e9f5e81bad3f5aa5d80470f347
4
- data.tar.gz: 1314786d5f0e39bf1d79c183cd7bd89cd7c427f310a3fcd1feb2bc42de7b695a
3
+ metadata.gz: aec3c144c9ad979a5ed1529aab3e6252bc6c356f5d1eaa3838a2f91f3f2ceada
4
+ data.tar.gz: ff184160d0e0ae6f4363c02ba197ec8282e597eb814ed13fd51989cbd202b182
5
5
  SHA512:
6
- metadata.gz: cb5821b6904bf8932010a4410a02be08bfd64fd97d5f929a319d6eda3c5338986c9b1a2654eed7de2f0f7c80bfd60d8b5db21c30b23af499725ea5711ac86670
7
- data.tar.gz: ba712a1a1848d2cc554ba59961ac0f1fc78e02fe5463c0ffe6d45090128dff7fef62463a0ebe7f226afb77ce1b61a5aec0741b9581f9368f4acab2ada0b6a448
6
+ metadata.gz: 67c072294d8b44877a8cc9011bedb95751dcab7012c92ec34e6e634b9ee3b330c21d6f2421c91bfe3f3bf42908f01bdc2154025a492773788fc68ad532b4ea1c
7
+ data.tar.gz: e0463b476669d0a8a655a1a7c812ee1a4a90faaeffd9db209c4de70d1b7e20854163a9f9c891ed6f9ac0a8f212871246a6e05e0f79661ce961a7eea3e6aaeb26
data/README.md CHANGED
@@ -338,7 +338,7 @@ Given the high number of updates our platform performs on any investor, we’ve
338
338
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
339
339
 
340
340
  - API version: 1.75.0
341
- - Package version: 0.97.3
341
+ - Package version: 0.97.5
342
342
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
343
343
 
344
344
  ## Installation
@@ -354,16 +354,16 @@ gem build DealMakerAPI.gemspec
354
354
  Then either install the gem locally:
355
355
 
356
356
  ```shell
357
- gem install ./DealMakerAPI-0.97.3.gem
357
+ gem install ./DealMakerAPI-0.97.5.gem
358
358
  ```
359
359
 
360
- (for development, run `gem install --dev ./DealMakerAPI-0.97.3.gem` to install the development dependencies)
360
+ (for development, run `gem install --dev ./DealMakerAPI-0.97.5.gem` to install the development dependencies)
361
361
 
362
362
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
363
363
 
364
364
  Finally add this to the Gemfile:
365
365
 
366
- gem 'DealMakerAPI', '~> 0.97.3'
366
+ gem 'DealMakerAPI', '~> 0.97.5'
367
367
 
368
368
  ### Install from Git
369
369
 
@@ -422,6 +422,7 @@ Class | Method | HTTP request | Description
422
422
  *DealMakerAPI::CompanyApi* | [**get_details_errors_grouped**](docs/CompanyApi.md#get_details_errors_grouped) | **GET** /companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details/grouped_errors | Return bulk upload details grouped by status
423
423
  *DealMakerAPI::CompanyApi* | [**get_dividends**](docs/CompanyApi.md#get_dividends) | **GET** /companies/{company_id}/portal/dividends | Return dividends
424
424
  *DealMakerAPI::CompanyApi* | [**get_email_events**](docs/CompanyApi.md#get_email_events) | **GET** /companies/{company_communication_id}/email_events | Get a list of email events for a company communication
425
+ *DealMakerAPI::CompanyApi* | [**get_shareholder_ledger**](docs/CompanyApi.md#get_shareholder_ledger) | **GET** /companies/{id}/shareholder_ledger | Get shareholder ledger by company
425
426
  *DealMakerAPI::CompanyApi* | [**get_user_accessible_companies**](docs/CompanyApi.md#get_user_accessible_companies) | **GET** /users/accessible_companies | Get list of all Companies accessible by the user
426
427
  *DealMakerAPI::CompanyApi* | [**send_portal_invite**](docs/CompanyApi.md#send_portal_invite) | **POST** /companies/{id}/shareholders/{shareholder_id}/send_portal_invite | Send portal invite to shareholder
427
428
  *DealMakerAPI::CountryApi* | [**get_country_states**](docs/CountryApi.md#get_country_states) | **GET** /country/states | Returns a list of all valid countries and it states
@@ -582,6 +583,7 @@ Class | Method | HTTP request | Description
582
583
  - [DealMakerAPI::V1EntitiesPaymentsSelfServeOnboardingQualificationQuestionnaireResult](docs/V1EntitiesPaymentsSelfServeOnboardingQualificationQuestionnaireResult.md)
583
584
  - [DealMakerAPI::V1EntitiesPresignedUrlResult](docs/V1EntitiesPresignedUrlResult.md)
584
585
  - [DealMakerAPI::V1EntitiesShareholder](docs/V1EntitiesShareholder.md)
586
+ - [DealMakerAPI::V1EntitiesShareholderLedger](docs/V1EntitiesShareholderLedger.md)
585
587
  - [DealMakerAPI::V1EntitiesShareholders](docs/V1EntitiesShareholders.md)
586
588
  - [DealMakerAPI::V1EntitiesShareholdersTags](docs/V1EntitiesShareholdersTags.md)
587
589
  - [DealMakerAPI::V1EntitiesState](docs/V1EntitiesState.md)
data/docs/CompanyApi.md CHANGED
@@ -16,6 +16,7 @@ All URIs are relative to *http://api.dealmaker.tech*
16
16
  | [**get_details_errors_grouped**](CompanyApi.md#get_details_errors_grouped) | **GET** /companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details/grouped_errors | Return bulk upload details grouped by status |
17
17
  | [**get_dividends**](CompanyApi.md#get_dividends) | **GET** /companies/{company_id}/portal/dividends | Return dividends |
18
18
  | [**get_email_events**](CompanyApi.md#get_email_events) | **GET** /companies/{company_communication_id}/email_events | Get a list of email events for a company communication |
19
+ | [**get_shareholder_ledger**](CompanyApi.md#get_shareholder_ledger) | **GET** /companies/{id}/shareholder_ledger | Get shareholder ledger by company |
19
20
  | [**get_user_accessible_companies**](CompanyApi.md#get_user_accessible_companies) | **GET** /users/accessible_companies | Get list of all Companies accessible by the user |
20
21
  | [**send_portal_invite**](CompanyApi.md#send_portal_invite) | **POST** /companies/{id}/shareholders/{shareholder_id}/send_portal_invite | Send portal invite to shareholder |
21
22
 
@@ -850,6 +851,72 @@ No authorization required
850
851
  - **Accept**: application/json
851
852
 
852
853
 
854
+ ## get_shareholder_ledger
855
+
856
+ > <V1EntitiesShareholderLedger> get_shareholder_ledger(id)
857
+
858
+ Get shareholder ledger by company
859
+
860
+ Get shareholder ledger by company.
861
+
862
+ ### Examples
863
+
864
+ ```ruby
865
+ require 'time'
866
+ require 'DealMakerAPI'
867
+ # setup authorization
868
+ DealMakerAPI.configure do |config|end
869
+
870
+ api_instance = DealMakerAPI::CompanyApi.new
871
+ id = 56 # Integer |
872
+
873
+ begin
874
+ # Get shareholder ledger by company
875
+ result = api_instance.get_shareholder_ledger(id)
876
+ p result
877
+ rescue DealMakerAPI::ApiError => e
878
+ puts "Error when calling CompanyApi->get_shareholder_ledger: #{e}"
879
+ end
880
+ ```
881
+
882
+ #### Using the get_shareholder_ledger_with_http_info variant
883
+
884
+ This returns an Array which contains the response data, status code and headers.
885
+
886
+ > <Array(<V1EntitiesShareholderLedger>, Integer, Hash)> get_shareholder_ledger_with_http_info(id)
887
+
888
+ ```ruby
889
+ begin
890
+ # Get shareholder ledger by company
891
+ data, status_code, headers = api_instance.get_shareholder_ledger_with_http_info(id)
892
+ p status_code # => 2xx
893
+ p headers # => { ... }
894
+ p data # => <V1EntitiesShareholderLedger>
895
+ rescue DealMakerAPI::ApiError => e
896
+ puts "Error when calling CompanyApi->get_shareholder_ledger_with_http_info: #{e}"
897
+ end
898
+ ```
899
+
900
+ ### Parameters
901
+
902
+ | Name | Type | Description | Notes |
903
+ | ---- | ---- | ----------- | ----- |
904
+ | **id** | **Integer** | | |
905
+
906
+ ### Return type
907
+
908
+ [**V1EntitiesShareholderLedger**](V1EntitiesShareholderLedger.md)
909
+
910
+ ### Authorization
911
+
912
+ No authorization required
913
+
914
+ ### HTTP request headers
915
+
916
+ - **Content-Type**: Not defined
917
+ - **Accept**: application/json
918
+
919
+
853
920
  ## get_user_accessible_companies
854
921
 
855
922
  > <V1EntitiesCompany> get_user_accessible_companies(opts)
data/docs/InvestorApi.md CHANGED
@@ -927,7 +927,7 @@ No authorization required
927
927
 
928
928
  ## run_background_search
929
929
 
930
- > <V1EntitiesInvestor> run_background_search(id, investor_id, run_background_search_request)
930
+ > run_background_search(id, investor_id, run_background_search_request)
931
931
 
932
932
  Run Alloy background search for the investor
933
933
 
@@ -946,8 +946,7 @@ run_background_search_request = DealMakerAPI::RunBackgroundSearchRequest.new({se
946
946
 
947
947
  begin
948
948
  # Run Alloy background search for the investor
949
- result = api_instance.run_background_search(id, investor_id, run_background_search_request)
950
- p result
949
+ api_instance.run_background_search(id, investor_id, run_background_search_request)
951
950
  rescue DealMakerAPI::ApiError => e
952
951
  puts "Error when calling InvestorApi->run_background_search: #{e}"
953
952
  end
@@ -955,9 +954,9 @@ end
955
954
 
956
955
  #### Using the run_background_search_with_http_info variant
957
956
 
958
- This returns an Array which contains the response data, status code and headers.
957
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
959
958
 
960
- > <Array(<V1EntitiesInvestor>, Integer, Hash)> run_background_search_with_http_info(id, investor_id, run_background_search_request)
959
+ > <Array(nil, Integer, Hash)> run_background_search_with_http_info(id, investor_id, run_background_search_request)
961
960
 
962
961
  ```ruby
963
962
  begin
@@ -965,7 +964,7 @@ begin
965
964
  data, status_code, headers = api_instance.run_background_search_with_http_info(id, investor_id, run_background_search_request)
966
965
  p status_code # => 2xx
967
966
  p headers # => { ... }
968
- p data # => <V1EntitiesInvestor>
967
+ p data # => nil
969
968
  rescue DealMakerAPI::ApiError => e
970
969
  puts "Error when calling InvestorApi->run_background_search_with_http_info: #{e}"
971
970
  end
@@ -981,7 +980,7 @@ end
981
980
 
982
981
  ### Return type
983
982
 
984
- [**V1EntitiesInvestor**](V1EntitiesInvestor.md)
983
+ nil (empty response body)
985
984
 
986
985
  ### Authorization
987
986
 
@@ -990,7 +989,7 @@ No authorization required
990
989
  ### HTTP request headers
991
990
 
992
991
  - **Content-Type**: application/json
993
- - **Accept**: application/json
992
+ - **Accept**: Not defined
994
993
 
995
994
 
996
995
  ## update_investor
@@ -0,0 +1,20 @@
1
+ # DealMakerAPI::V1EntitiesShareholderLedger
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **shareholder_ledger_url** | **String** | The URL of the shareholder ledger. | [optional] |
8
+ | **created_at** | **Time** | The date and time the shareholder ledger was created. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'DealMakerAPI'
14
+
15
+ instance = DealMakerAPI::V1EntitiesShareholderLedger.new(
16
+ shareholder_ledger_url: null,
17
+ created_at: null
18
+ )
19
+ ```
20
+
@@ -864,6 +864,69 @@ module DealMakerAPI
864
864
  return data, status_code, headers
865
865
  end
866
866
 
867
+ # Get shareholder ledger by company
868
+ # Get shareholder ledger by company.
869
+ # @param id [Integer]
870
+ # @param [Hash] opts the optional parameters
871
+ # @return [V1EntitiesShareholderLedger]
872
+ def get_shareholder_ledger(id, opts = {})
873
+ data, _status_code, _headers = get_shareholder_ledger_with_http_info(id, opts)
874
+ data
875
+ end
876
+
877
+ # Get shareholder ledger by company
878
+ # Get shareholder ledger by company.
879
+ # @param id [Integer]
880
+ # @param [Hash] opts the optional parameters
881
+ # @return [Array<(V1EntitiesShareholderLedger, Integer, Hash)>] V1EntitiesShareholderLedger data, response status code and response headers
882
+ def get_shareholder_ledger_with_http_info(id, opts = {})
883
+ if @api_client.config.debugging
884
+ @api_client.config.logger.debug 'Calling API: CompanyApi.get_shareholder_ledger ...'
885
+ end
886
+ # verify the required parameter 'id' is set
887
+ if @api_client.config.client_side_validation && id.nil?
888
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompanyApi.get_shareholder_ledger"
889
+ end
890
+ # resource path
891
+ local_var_path = '/companies/{id}/shareholder_ledger'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
892
+
893
+ # query parameters
894
+ query_params = opts[:query_params] || {}
895
+
896
+ # header parameters
897
+ header_params = opts[:header_params] || {}
898
+ # HTTP header 'Accept' (if needed)
899
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
900
+
901
+ # form parameters
902
+ form_params = opts[:form_params] || {}
903
+
904
+ # http body (model)
905
+ post_body = opts[:debug_body]
906
+
907
+ # return_type
908
+ return_type = opts[:debug_return_type] || 'V1EntitiesShareholderLedger'
909
+
910
+ # auth_names
911
+ auth_names = opts[:debug_auth_names] || []
912
+
913
+ new_options = opts.merge(
914
+ :operation => :"CompanyApi.get_shareholder_ledger",
915
+ :header_params => header_params,
916
+ :query_params => query_params,
917
+ :form_params => form_params,
918
+ :body => post_body,
919
+ :auth_names => auth_names,
920
+ :return_type => return_type
921
+ )
922
+
923
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
924
+ if @api_client.config.debugging
925
+ @api_client.config.logger.debug "API called: CompanyApi#get_shareholder_ledger\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
926
+ end
927
+ return data, status_code, headers
928
+ end
929
+
867
930
  # Get list of all Companies accessible by the user
868
931
  # Get user accessible companies
869
932
  # @param [Hash] opts the optional parameters
@@ -993,10 +993,10 @@ module DealMakerAPI
993
993
  # @param investor_id [Integer]
994
994
  # @param run_background_search_request [RunBackgroundSearchRequest]
995
995
  # @param [Hash] opts the optional parameters
996
- # @return [V1EntitiesInvestor]
996
+ # @return [nil]
997
997
  def run_background_search(id, investor_id, run_background_search_request, opts = {})
998
- data, _status_code, _headers = run_background_search_with_http_info(id, investor_id, run_background_search_request, opts)
999
- data
998
+ run_background_search_with_http_info(id, investor_id, run_background_search_request, opts)
999
+ nil
1000
1000
  end
1001
1001
 
1002
1002
  # Run Alloy background search for the investor
@@ -1005,7 +1005,7 @@ module DealMakerAPI
1005
1005
  # @param investor_id [Integer]
1006
1006
  # @param run_background_search_request [RunBackgroundSearchRequest]
1007
1007
  # @param [Hash] opts the optional parameters
1008
- # @return [Array<(V1EntitiesInvestor, Integer, Hash)>] V1EntitiesInvestor data, response status code and response headers
1008
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1009
1009
  def run_background_search_with_http_info(id, investor_id, run_background_search_request, opts = {})
1010
1010
  if @api_client.config.debugging
1011
1011
  @api_client.config.logger.debug 'Calling API: InvestorApi.run_background_search ...'
@@ -1030,8 +1030,6 @@ module DealMakerAPI
1030
1030
 
1031
1031
  # header parameters
1032
1032
  header_params = opts[:header_params] || {}
1033
- # HTTP header 'Accept' (if needed)
1034
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1035
1033
  # HTTP header 'Content-Type'
1036
1034
  content_type = @api_client.select_header_content_type(['application/json'])
1037
1035
  if !content_type.nil?
@@ -1045,7 +1043,7 @@ module DealMakerAPI
1045
1043
  post_body = opts[:debug_body] || @api_client.object_to_http_body(run_background_search_request)
1046
1044
 
1047
1045
  # return_type
1048
- return_type = opts[:debug_return_type] || 'V1EntitiesInvestor'
1046
+ return_type = opts[:debug_return_type]
1049
1047
 
1050
1048
  # auth_names
1051
1049
  auth_names = opts[:debug_auth_names] || []
@@ -0,0 +1,226 @@
1
+ =begin
2
+ #DealMaker API
3
+
4
+ ## Introduction Welcome to DealMaker’s Web API v1! This API is RESTful, easy to integrate with, and offers support in 2 different languages. This is the technical documentation for our API. There are tutorials and examples of integrations with our API available on our [knowledge centre](https://help.dealmaker.tech/training-centre) as well. # Libraries - Javascript - Ruby # Authentication To authenticate, add an Authorization header to your API request that contains an access token. Before you [generate an access token](#how-to-generate-an-access-token) your must first [create an application](#create-an-application) on your portal and retrieve the your client ID and secret ## Create an Application DealMaker’s Web API v1 supports the use of OAuth applications. Applications can be generated in your [account](https://app.dealmaker.tech/developer/applications). To create an API Application, click on your user name in the top right corner to open a dropdown menu, and select \"Integrations\". Under the API settings tab, click the `Create New Application` button ![Screenshot](https://s3.ca-central-1.amazonaws.com/docs.dealmaker.tech/images/api-application-1.png) Name your application and assign the level of permissions for this application ![Screenshot](https://s3.ca-central-1.amazonaws.com/docs.dealmaker.tech/images/api-application-2.png) Once your application is created, save in a secure space your client ID and secret. **WARNING**: The secret key will not be visible after you click the close button ![Screenshot](https://s3.ca-central-1.amazonaws.com/docs.dealmaker.tech/images/api-application-3.png) From the developer tab, you will be able to view and manage all the available applications ![Screenshot](https://s3.ca-central-1.amazonaws.com/docs.dealmaker.tech/images/api-application-4.png) Each Application consists of a client id, secret and set of scopes. The scopes define what resources you want to have access to. The client ID and secret are used to generate an access token. You will need to create an application to use API endpoints. ## How to generate an access token After creating an application, you must make a call to obtain a bearer token using the Generate an OAuth token operation. This operation requires the following parameters: `token endpoint` - https://app.dealmaker.tech/oauth/token `grant_type` - must be set to `client_credentials` `client_id` - the Client ID displayed when you created the OAuth application in the previous step `client_secret` - the Client Secret displayed when you created the OAuth application in the previous step `scope` - the scope is established when you created the OAuth application in the previous step Note: The Generate an OAuth token response specifies how long the bearer token is valid for. You should reuse the bearer token until it is expired. When the token is expired, call Generate an OAuth token again to generate a new one. To use the access token, you must set a plain text header named `Authorization` with the contents of the header being “Bearer XXX” where XXX is your generated access token. ### Example #### Postman Here's an example on how to generate the access token with Postman, where `{{CLIENT_ID}}` and `{{CLIENT_SECRET}}` are the values generated after following the steps on [Create an Application](#create-an-application) ![Get access token postman example](https://s3.ca-central-1.amazonaws.com/docs.dealmaker.tech/images/token-postman.png) # Status Codes ## Content-Type Header All responses are returned in JSON format. We specify this by sending the Content-Type header. ## Status Codes Below is a table containing descriptions of the various status codes we currently support against various resources. Sometimes your API call will generate an error. Here you will find additional information about what to expect if you don’t format your request properly, or we fail to properly process your request. | Status Code | Description | | ----------- | ----------- | | `200` | Success | | `403` | Forbidden | | `404` | Not found | # Pagination Pagination is used to divide large responses is smaller portions (pages). By default, all endpoints return a maximum of 25 records per page. You can change the number of records on a per request basis by passing a `per_page` parameter in the request header parameters. The largest supported `per_page` parameter is 100. When the response exceeds the `per_page` parameter, you can paginate through the records by increasing the `offset` parameter. Example: `offset=25` will return 25 records starting from 26th record. You may also paginate using the `page` parameter to indicate the page number you would like to show on the response. Please review the table below for the input parameters ## Inputs | Parameter | Description | | ---------- | ------------------------------------------------------------------------------- | | `per_page` | Amount of records included on each page (Default is 25) | | `page` | Page number | | `offset` | Amount of records offset on the API request where 0 represents the first record | ## Response Headers | Response Header | Description | | --------------- | -------------------------------------------- | | `X-Total` | Total number of records of response | | `X-Total-Pages` | Total number of pages of response | | `X-Per-Page` | Total number of records per page of response | | `X-Page` | Number of current page | | `X-Next-Page` | Number of next page | | `X-Prev-Page` | Number of previous page | | `X-Offset` | Total number of records offset | # Search and Filtering (The q parameter) The q optional parameter accepts a string as input and allows you to filter the request based on that string. Please note that search strings must be encoded according to ASCII. For example, \"john+investor&#64;dealmaker.tech\" should be passed as “john%2Binvestor%40dealmaker.tech”. There are two main ways to filter with it. ## Keyword filtering Some keywords allow you to filter investors based on a specific “scope” of the investors, for example using the string “Invited” will filter all investors with the status invited, and the keyword “Has attachments” will filter investors with attachments. Here’s a list of possible keywords and the “scope” each one of the keywords filters by: | Keywords | Scope | Decoded Example | Encoded Example | | ---------------------------------------------- | --------------------------------------------------------------------------- | -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | Signed on \\(date range\\) | Investors who signed in the provided date range | Signed on (date range) [2020-07-01:2020-07-31] | `Signed%20on%20%28date%20range%29%20%5B2020-07-01%3A2020-07-31%5D` | | Enabled for countersignature on \\(date range\\) | Investors who were enabled for counter signature in the provided date range | Enabled for countersignature on (date range) [2022-05-24:2022-05-25] | `Enabled%20for%20countersignature%20on%20(date%20range)%20%5B2022-05-24%3A2022-05-25%5D` | | Accepted on \\(date range\\) | Investors accepted in the provided date rage | Accepted on (date range) [2022-05-24:2022-05-25] | `Accepted%20on%20(date%20range)%20%5B2022-05-24%3A2022-05-25%5D` | | Offline | Investors added to the deal offline | Offline | `Offline` | | Online | Investors added to the deal online | Online | `Online` | | Signed | Investors who signed their agreement | Signed | `Signed` | | Waiting for countersignature | Investors who have signed and are waiting for counter signature | Waiting for countersignature | `Waiting%20for%20countersignature` | | Invited | Investors on the Invited Status | Invited | `Invited` | | Accepted | Investors in the Accepted Status | Accepted | `Accepted` | | Questionnaire in progress | All Investors who have not finished completing the questionnaire | Questionnaire in progress | `Questionnaire%20in%20progress` | | Has attachments | All Investors with attachments | Has attachments | `Has%20attachments` | | Has notes | All Investors with notes | Has notes | `Has%20notes` | | Waiting for co-signature | Investors who have signed and are waiting for co-signature | Waiting for co-signature | `Waiting%20for%20co-signature` | | Background Check Approved | Investors with approved background check | Background Check Approved | `Background%20Check%20Approved` | | Document Review Pending | Investors with pending review | Document Review Pending | `Document%20Review%20Pending` | | Document Upload Pending | Investors with pending documents to upload | Document Upload Pending | `Document%20Upload%20Pending` | | Required adjudicator review | Investors who are required to be review by the adjudicator | Required adjudicator review | `Required%20adjudicator%20review` | --- **NOTE** Filtering keywords are case sensitive and need to be encoded --- ## Search String Any value for the parameter which does not match one of the keywords listed above, will use fields like `first name`, `last name`, `email`, `tags` to search for the investor. For example, if you search “Robert”, because this does not match one of the keywords listed above, it will then return any investors who have the string “Robert” in their name, email, or tags fields. # Versioning The latest version is v1. The version can be updated on the `Accept` header, just set the version as stated on the following example: ``` Accept:application/vnd.dealmaker-v1+json ``` | Version | Accept Header | | ------- | ----------------------------------- | | `v1` | application/vnd.dealmaker-`v1`+json | # SDK’s For instruction on installing SDKs, please view the following links - [Javascript](https://github.com/DealMakerTech/api/tree/main/v1/clients/javascript) - [Ruby](https://github.com/DealMakerTech/api/tree/main/v1/clients/ruby) # Webhooks Our webhooks functionality allows clients to automatically receive updates on a deal's investor data. Some of the data that the webhooks include: - Investor Name - Date created - Email - Phone - Allocation - Attachments - Accredited investor status - Accredited investor category - State (Draft, Invited, Signed, Accepted, Waiting, Inactive) Via webhooks clients can subscribe to the following events as they happen on Dealmaker: - Investor is created - Investor details are updated (any of the investor details above change or are updated) - Investor has signed their agreement - Invertor fully funded their investment - Investor has been accepted - Investor is deleted A URL supplied by the client will receive all the events with the information as part of the payload. Clients are able to add and update the URL within DealMaker. ## Configuration For a comprehensive guide on how to configure Webhooks please visit our support article: [Configuring Webhooks on DealMaker – DealMaker Support](https://help.dealmaker.tech/configuring-webhooks-on-dealmaker). As a developer user on DealMaker, you are able to configure webhooks by following the steps below: 1. Sign into Dealmaker 2. Go to **“Your profile”** in the top right corner 3. Access an **“Integrations”** configuration via the left menu 4. The developer configures webhooks by including: - The HTTPS URL where the request will be sent - Optionally, a security token that we would use to build a SHA1 hash that would be included in the request headers. The name of the header is `X-DealMaker-Signature`. If the secret is not specified, the hash won’t be included in the headers. - The Deal(s) to include in the webhook subscription - An email address that will be used to notify about errors. 5. The developers can disable webhooks temporarily if needed ## Specification ### Events The initial set of events will be related to the investor. The events are: 1. `investor.created` - Triggers every time a new investor is added to a deal 2. `investor.updated` - Triggers on updates to any of the following fields: - Status - Name - Email - (this is a user field so we trigger event for all investors with webhook subscription) - Allocated Amount - Investment Amount - Accredited investor fields - Adding or removing attachments - Tags - When the investor status is signed, the payload also includes a link to the signed document; the link expires after 30 minutes 3. `investor.signed` - Triggers when the investor signs their subscription agreement (terms and conditions) - When this happens the investor.state becomes `signed` - This event includes the same fields as the `investor.updated` event 4. `investor.funded` - Triggers when the investor becomes fully funded - This happens when the investor.funded_state becomes `funded` - This event includes the same fields as the `investor.updated` event 5. `investor.accepted` - Triggers when the investor is countersigned - When this happens the investor.state becomes `accepted` - This event includes the same fields as the `investor.updated` event 6. `investor.deleted` - Triggers when the investor is removed from the deal - The investor key of the payload only includes investor ID - The deal is not included in the payload. Due to our implementation it’s impossible to retrieve the deal the investor was part of ### Requests - The request is a `POST` - The payload’s `content-type` is `application/json` - Only `2XX` responses are considered successful. In the event of a different response, we consider it failed and queue the event for retry - We retry the request five times, after the initial attempt. Doubling the waiting time between intervals with each try. The first retry happens after 30 seconds, then 60 seconds, 2 mins, 4 minutes, and 8 minutes. This timing scheme gives the receiver about 1 hour if all the requests fail - If an event fails all the attempts to be delivered, we send an email to the address that the user configured ### Payload #### Common Properties There will be some properties that are common to all the events on the system. | Key | Type | Description | | ----------------- | ------ | -------------------------------------------------------------------------------------- | | event | String | The event that triggered the call | | event_id | String | A unique identifier for the event | | deal<sup>\\*</sup> | Object | The deal in which the event occurred. please see below for an example on the deal object<sup>\\*\\*</sup> | <sup>\\*</sup>This field is not included when deleting a resource <sup>\\*\\*</sup> Sample Deal Object in the webhook payload ```json \"deal\": { \"id\": 0, \"title\": \"string\", \"created_at\": \"2022-12-06T18:14:44.000Z\", \"updated_at\": \"2022-12-08T12:46:48.000Z\", \"state\": \"string\", \"currency\": \"string\", \"security_type\": \"string\", \"price_per_security\": 0.00, \"deal_type\": \"string\", \"minimum_investment\": 0, \"maximum_investment\": 0, \"issuer\": { \"id\": 0, \"name\": \"string\" }, \"enterprise\": { \"id\": 0, \"name\": \"string\" } } ``` #### Common Properties (investor scope) By design, we have incorporated on the webhooks payload the same investor-related fields included in the Investor model, for reference on the included fields, their types and values please click [here](https://docs.dealmaker.tech/#tag/investor_model). This will allow you to get all the necessary information you need about a particular investor without having to call the Get Investor by ID endpoint. | #### Investor State Here is a brief description of each investor state: - **Draft:** the investor is added to the platform but hasn't been invited yet and cannot access the portal - **Invited:** the investor was added to the platform but hasn’t completed the questionnaire - **Signed:** the investor signed the document (needs approval from Lawyer or Reviewer before countersignature) - **Waiting:** the investor was approved for countersignature by any of the Lawyers or Reviewers in the deal - **Accepted:** the investor's agreement was countersigned by the Signatory - **Inactive** the investor is no longer eligible to participate in the offering. This may be because their warrant expired, they requested a refund, or they opted out of the offering #### Update Delay Given the high number of updates our platform performs on any investor, we’ve added a cool down period on update events that allows us to “group” updates and trigger only one every minute. In consequence, update events will be delivered 1 minute after the initial request was made and will include the latest version of the investor data at delivery time.
5
+
6
+ The version of the OpenAPI document: 1.75.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module DealMakerAPI
17
+ # V1_Entities_ShareholderLedger model
18
+ class V1EntitiesShareholderLedger
19
+ # The URL of the shareholder ledger.
20
+ attr_accessor :shareholder_ledger_url
21
+
22
+ # The date and time the shareholder ledger was created.
23
+ attr_accessor :created_at
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'shareholder_ledger_url' => :'shareholder_ledger_url',
29
+ :'created_at' => :'created_at'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'shareholder_ledger_url' => :'String',
42
+ :'created_at' => :'Time'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.openapi_nullable
48
+ Set.new([
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DealMakerAPI::V1EntitiesShareholderLedger` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DealMakerAPI::V1EntitiesShareholderLedger`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'shareholder_ledger_url')
68
+ self.shareholder_ledger_url = attributes[:'shareholder_ledger_url']
69
+ end
70
+
71
+ if attributes.key?(:'created_at')
72
+ self.created_at = attributes[:'created_at']
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
80
+ invalid_properties = Array.new
81
+ invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ warn '[DEPRECATED] the `valid?` method is obsolete'
88
+ true
89
+ end
90
+
91
+ # Checks equality by comparing each attribute.
92
+ # @param [Object] Object to be compared
93
+ def ==(o)
94
+ return true if self.equal?(o)
95
+ self.class == o.class &&
96
+ shareholder_ledger_url == o.shareholder_ledger_url &&
97
+ created_at == o.created_at
98
+ end
99
+
100
+ # @see the `==` method
101
+ # @param [Object] Object to be compared
102
+ def eql?(o)
103
+ self == o
104
+ end
105
+
106
+ # Calculates hash code according to all attributes.
107
+ # @return [Integer] Hash code
108
+ def hash
109
+ [shareholder_ledger_url, created_at].hash
110
+ end
111
+
112
+ # Builds the object from hash
113
+ # @param [Hash] attributes Model attributes in the form of hash
114
+ # @return [Object] Returns the model itself
115
+ def self.build_from_hash(attributes)
116
+ return nil unless attributes.is_a?(Hash)
117
+ attributes = attributes.transform_keys(&:to_sym)
118
+ transformed_hash = {}
119
+ openapi_types.each_pair do |key, type|
120
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
121
+ transformed_hash["#{key}"] = nil
122
+ elsif type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the attribute
124
+ # is documented as an array but the input is not
125
+ if attributes[attribute_map[key]].is_a?(Array)
126
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
127
+ end
128
+ elsif !attributes[attribute_map[key]].nil?
129
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
130
+ end
131
+ end
132
+ new(transformed_hash)
133
+ end
134
+
135
+ # Deserializes the data based on type
136
+ # @param string type Data type
137
+ # @param string value Value to be deserialized
138
+ # @return [Object] Deserialized data
139
+ def self._deserialize(type, value)
140
+ case type.to_sym
141
+ when :Time
142
+ Time.parse(value)
143
+ when :Date
144
+ Date.parse(value)
145
+ when :String
146
+ value.to_s
147
+ when :Integer
148
+ value.to_i
149
+ when :Float
150
+ value.to_f
151
+ when :Boolean
152
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
153
+ true
154
+ else
155
+ false
156
+ end
157
+ when :Object
158
+ # generic object (usually a Hash), return directly
159
+ value
160
+ when /\AArray<(?<inner_type>.+)>\z/
161
+ inner_type = Regexp.last_match[:inner_type]
162
+ value.map { |v| _deserialize(inner_type, v) }
163
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
164
+ k_type = Regexp.last_match[:k_type]
165
+ v_type = Regexp.last_match[:v_type]
166
+ {}.tap do |hash|
167
+ value.each do |k, v|
168
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
169
+ end
170
+ end
171
+ else # model
172
+ # models (e.g. Pet) or oneOf
173
+ klass = DealMakerAPI.const_get(type)
174
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ if value.nil?
197
+ is_nullable = self.class.openapi_nullable.include?(attr)
198
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
199
+ end
200
+
201
+ hash[param] = _to_hash(value)
202
+ end
203
+ hash
204
+ end
205
+
206
+ # Outputs non-array value in the form of hash
207
+ # For object, use to_hash. Otherwise, just return the value
208
+ # @param [Object] value Any valid value
209
+ # @return [Hash] Returns the value in the form of hash
210
+ def _to_hash(value)
211
+ if value.is_a?(Array)
212
+ value.compact.map { |v| _to_hash(v) }
213
+ elsif value.is_a?(Hash)
214
+ {}.tap do |hash|
215
+ value.each { |k, v| hash[k] = _to_hash(v) }
216
+ end
217
+ elsif value.respond_to? :to_hash
218
+ value.to_hash
219
+ else
220
+ value
221
+ end
222
+ end
223
+
224
+ end
225
+
226
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.4.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module DealMakerAPI
14
- VERSION = '0.97.3'
14
+ VERSION = '0.97.5'
15
15
  end
data/lib/DealMakerAPI.rb CHANGED
@@ -114,6 +114,7 @@ require 'DealMakerAPI/models/v1_entities_payments_self_serve_onboarding_payout_a
114
114
  require 'DealMakerAPI/models/v1_entities_payments_self_serve_onboarding_qualification_questionnaire_result'
115
115
  require 'DealMakerAPI/models/v1_entities_presigned_url_result'
116
116
  require 'DealMakerAPI/models/v1_entities_shareholder'
117
+ require 'DealMakerAPI/models/v1_entities_shareholder_ledger'
117
118
  require 'DealMakerAPI/models/v1_entities_shareholders'
118
119
  require 'DealMakerAPI/models/v1_entities_shareholders_tags'
119
120
  require 'DealMakerAPI/models/v1_entities_state'
@@ -192,6 +192,18 @@ describe 'CompanyApi' do
192
192
  end
193
193
  end
194
194
 
195
+ # unit tests for get_shareholder_ledger
196
+ # Get shareholder ledger by company
197
+ # Get shareholder ledger by company.
198
+ # @param id
199
+ # @param [Hash] opts the optional parameters
200
+ # @return [V1EntitiesShareholderLedger]
201
+ describe 'get_shareholder_ledger test' do
202
+ it 'should work' do
203
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
204
+ end
205
+ end
206
+
195
207
  # unit tests for get_user_accessible_companies
196
208
  # Get list of all Companies accessible by the user
197
209
  # Get user accessible companies
@@ -218,7 +218,7 @@ describe 'InvestorApi' do
218
218
  # @param investor_id
219
219
  # @param run_background_search_request
220
220
  # @param [Hash] opts the optional parameters
221
- # @return [V1EntitiesInvestor]
221
+ # @return [nil]
222
222
  describe 'run_background_search test' do
223
223
  it 'should work' do
224
224
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #DealMaker API
3
+
4
+ ## Introduction Welcome to DealMaker’s Web API v1! This API is RESTful, easy to integrate with, and offers support in 2 different languages. This is the technical documentation for our API. There are tutorials and examples of integrations with our API available on our [knowledge centre](https://help.dealmaker.tech/training-centre) as well. # Libraries - Javascript - Ruby # Authentication To authenticate, add an Authorization header to your API request that contains an access token. Before you [generate an access token](#how-to-generate-an-access-token) your must first [create an application](#create-an-application) on your portal and retrieve the your client ID and secret ## Create an Application DealMaker’s Web API v1 supports the use of OAuth applications. Applications can be generated in your [account](https://app.dealmaker.tech/developer/applications). To create an API Application, click on your user name in the top right corner to open a dropdown menu, and select \"Integrations\". Under the API settings tab, click the `Create New Application` button ![Screenshot](https://s3.ca-central-1.amazonaws.com/docs.dealmaker.tech/images/api-application-1.png) Name your application and assign the level of permissions for this application ![Screenshot](https://s3.ca-central-1.amazonaws.com/docs.dealmaker.tech/images/api-application-2.png) Once your application is created, save in a secure space your client ID and secret. **WARNING**: The secret key will not be visible after you click the close button ![Screenshot](https://s3.ca-central-1.amazonaws.com/docs.dealmaker.tech/images/api-application-3.png) From the developer tab, you will be able to view and manage all the available applications ![Screenshot](https://s3.ca-central-1.amazonaws.com/docs.dealmaker.tech/images/api-application-4.png) Each Application consists of a client id, secret and set of scopes. The scopes define what resources you want to have access to. The client ID and secret are used to generate an access token. You will need to create an application to use API endpoints. ## How to generate an access token After creating an application, you must make a call to obtain a bearer token using the Generate an OAuth token operation. This operation requires the following parameters: `token endpoint` - https://app.dealmaker.tech/oauth/token `grant_type` - must be set to `client_credentials` `client_id` - the Client ID displayed when you created the OAuth application in the previous step `client_secret` - the Client Secret displayed when you created the OAuth application in the previous step `scope` - the scope is established when you created the OAuth application in the previous step Note: The Generate an OAuth token response specifies how long the bearer token is valid for. You should reuse the bearer token until it is expired. When the token is expired, call Generate an OAuth token again to generate a new one. To use the access token, you must set a plain text header named `Authorization` with the contents of the header being “Bearer XXX” where XXX is your generated access token. ### Example #### Postman Here's an example on how to generate the access token with Postman, where `{{CLIENT_ID}}` and `{{CLIENT_SECRET}}` are the values generated after following the steps on [Create an Application](#create-an-application) ![Get access token postman example](https://s3.ca-central-1.amazonaws.com/docs.dealmaker.tech/images/token-postman.png) # Status Codes ## Content-Type Header All responses are returned in JSON format. We specify this by sending the Content-Type header. ## Status Codes Below is a table containing descriptions of the various status codes we currently support against various resources. Sometimes your API call will generate an error. Here you will find additional information about what to expect if you don’t format your request properly, or we fail to properly process your request. | Status Code | Description | | ----------- | ----------- | | `200` | Success | | `403` | Forbidden | | `404` | Not found | # Pagination Pagination is used to divide large responses is smaller portions (pages). By default, all endpoints return a maximum of 25 records per page. You can change the number of records on a per request basis by passing a `per_page` parameter in the request header parameters. The largest supported `per_page` parameter is 100. When the response exceeds the `per_page` parameter, you can paginate through the records by increasing the `offset` parameter. Example: `offset=25` will return 25 records starting from 26th record. You may also paginate using the `page` parameter to indicate the page number you would like to show on the response. Please review the table below for the input parameters ## Inputs | Parameter | Description | | ---------- | ------------------------------------------------------------------------------- | | `per_page` | Amount of records included on each page (Default is 25) | | `page` | Page number | | `offset` | Amount of records offset on the API request where 0 represents the first record | ## Response Headers | Response Header | Description | | --------------- | -------------------------------------------- | | `X-Total` | Total number of records of response | | `X-Total-Pages` | Total number of pages of response | | `X-Per-Page` | Total number of records per page of response | | `X-Page` | Number of current page | | `X-Next-Page` | Number of next page | | `X-Prev-Page` | Number of previous page | | `X-Offset` | Total number of records offset | # Search and Filtering (The q parameter) The q optional parameter accepts a string as input and allows you to filter the request based on that string. Please note that search strings must be encoded according to ASCII. For example, \"john+investor&#64;dealmaker.tech\" should be passed as “john%2Binvestor%40dealmaker.tech”. There are two main ways to filter with it. ## Keyword filtering Some keywords allow you to filter investors based on a specific “scope” of the investors, for example using the string “Invited” will filter all investors with the status invited, and the keyword “Has attachments” will filter investors with attachments. Here’s a list of possible keywords and the “scope” each one of the keywords filters by: | Keywords | Scope | Decoded Example | Encoded Example | | ---------------------------------------------- | --------------------------------------------------------------------------- | -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | Signed on \\(date range\\) | Investors who signed in the provided date range | Signed on (date range) [2020-07-01:2020-07-31] | `Signed%20on%20%28date%20range%29%20%5B2020-07-01%3A2020-07-31%5D` | | Enabled for countersignature on \\(date range\\) | Investors who were enabled for counter signature in the provided date range | Enabled for countersignature on (date range) [2022-05-24:2022-05-25] | `Enabled%20for%20countersignature%20on%20(date%20range)%20%5B2022-05-24%3A2022-05-25%5D` | | Accepted on \\(date range\\) | Investors accepted in the provided date rage | Accepted on (date range) [2022-05-24:2022-05-25] | `Accepted%20on%20(date%20range)%20%5B2022-05-24%3A2022-05-25%5D` | | Offline | Investors added to the deal offline | Offline | `Offline` | | Online | Investors added to the deal online | Online | `Online` | | Signed | Investors who signed their agreement | Signed | `Signed` | | Waiting for countersignature | Investors who have signed and are waiting for counter signature | Waiting for countersignature | `Waiting%20for%20countersignature` | | Invited | Investors on the Invited Status | Invited | `Invited` | | Accepted | Investors in the Accepted Status | Accepted | `Accepted` | | Questionnaire in progress | All Investors who have not finished completing the questionnaire | Questionnaire in progress | `Questionnaire%20in%20progress` | | Has attachments | All Investors with attachments | Has attachments | `Has%20attachments` | | Has notes | All Investors with notes | Has notes | `Has%20notes` | | Waiting for co-signature | Investors who have signed and are waiting for co-signature | Waiting for co-signature | `Waiting%20for%20co-signature` | | Background Check Approved | Investors with approved background check | Background Check Approved | `Background%20Check%20Approved` | | Document Review Pending | Investors with pending review | Document Review Pending | `Document%20Review%20Pending` | | Document Upload Pending | Investors with pending documents to upload | Document Upload Pending | `Document%20Upload%20Pending` | | Required adjudicator review | Investors who are required to be review by the adjudicator | Required adjudicator review | `Required%20adjudicator%20review` | --- **NOTE** Filtering keywords are case sensitive and need to be encoded --- ## Search String Any value for the parameter which does not match one of the keywords listed above, will use fields like `first name`, `last name`, `email`, `tags` to search for the investor. For example, if you search “Robert”, because this does not match one of the keywords listed above, it will then return any investors who have the string “Robert” in their name, email, or tags fields. # Versioning The latest version is v1. The version can be updated on the `Accept` header, just set the version as stated on the following example: ``` Accept:application/vnd.dealmaker-v1+json ``` | Version | Accept Header | | ------- | ----------------------------------- | | `v1` | application/vnd.dealmaker-`v1`+json | # SDK’s For instruction on installing SDKs, please view the following links - [Javascript](https://github.com/DealMakerTech/api/tree/main/v1/clients/javascript) - [Ruby](https://github.com/DealMakerTech/api/tree/main/v1/clients/ruby) # Webhooks Our webhooks functionality allows clients to automatically receive updates on a deal's investor data. Some of the data that the webhooks include: - Investor Name - Date created - Email - Phone - Allocation - Attachments - Accredited investor status - Accredited investor category - State (Draft, Invited, Signed, Accepted, Waiting, Inactive) Via webhooks clients can subscribe to the following events as they happen on Dealmaker: - Investor is created - Investor details are updated (any of the investor details above change or are updated) - Investor has signed their agreement - Invertor fully funded their investment - Investor has been accepted - Investor is deleted A URL supplied by the client will receive all the events with the information as part of the payload. Clients are able to add and update the URL within DealMaker. ## Configuration For a comprehensive guide on how to configure Webhooks please visit our support article: [Configuring Webhooks on DealMaker – DealMaker Support](https://help.dealmaker.tech/configuring-webhooks-on-dealmaker). As a developer user on DealMaker, you are able to configure webhooks by following the steps below: 1. Sign into Dealmaker 2. Go to **“Your profile”** in the top right corner 3. Access an **“Integrations”** configuration via the left menu 4. The developer configures webhooks by including: - The HTTPS URL where the request will be sent - Optionally, a security token that we would use to build a SHA1 hash that would be included in the request headers. The name of the header is `X-DealMaker-Signature`. If the secret is not specified, the hash won’t be included in the headers. - The Deal(s) to include in the webhook subscription - An email address that will be used to notify about errors. 5. The developers can disable webhooks temporarily if needed ## Specification ### Events The initial set of events will be related to the investor. The events are: 1. `investor.created` - Triggers every time a new investor is added to a deal 2. `investor.updated` - Triggers on updates to any of the following fields: - Status - Name - Email - (this is a user field so we trigger event for all investors with webhook subscription) - Allocated Amount - Investment Amount - Accredited investor fields - Adding or removing attachments - Tags - When the investor status is signed, the payload also includes a link to the signed document; the link expires after 30 minutes 3. `investor.signed` - Triggers when the investor signs their subscription agreement (terms and conditions) - When this happens the investor.state becomes `signed` - This event includes the same fields as the `investor.updated` event 4. `investor.funded` - Triggers when the investor becomes fully funded - This happens when the investor.funded_state becomes `funded` - This event includes the same fields as the `investor.updated` event 5. `investor.accepted` - Triggers when the investor is countersigned - When this happens the investor.state becomes `accepted` - This event includes the same fields as the `investor.updated` event 6. `investor.deleted` - Triggers when the investor is removed from the deal - The investor key of the payload only includes investor ID - The deal is not included in the payload. Due to our implementation it’s impossible to retrieve the deal the investor was part of ### Requests - The request is a `POST` - The payload’s `content-type` is `application/json` - Only `2XX` responses are considered successful. In the event of a different response, we consider it failed and queue the event for retry - We retry the request five times, after the initial attempt. Doubling the waiting time between intervals with each try. The first retry happens after 30 seconds, then 60 seconds, 2 mins, 4 minutes, and 8 minutes. This timing scheme gives the receiver about 1 hour if all the requests fail - If an event fails all the attempts to be delivered, we send an email to the address that the user configured ### Payload #### Common Properties There will be some properties that are common to all the events on the system. | Key | Type | Description | | ----------------- | ------ | -------------------------------------------------------------------------------------- | | event | String | The event that triggered the call | | event_id | String | A unique identifier for the event | | deal<sup>\\*</sup> | Object | The deal in which the event occurred. please see below for an example on the deal object<sup>\\*\\*</sup> | <sup>\\*</sup>This field is not included when deleting a resource <sup>\\*\\*</sup> Sample Deal Object in the webhook payload ```json \"deal\": { \"id\": 0, \"title\": \"string\", \"created_at\": \"2022-12-06T18:14:44.000Z\", \"updated_at\": \"2022-12-08T12:46:48.000Z\", \"state\": \"string\", \"currency\": \"string\", \"security_type\": \"string\", \"price_per_security\": 0.00, \"deal_type\": \"string\", \"minimum_investment\": 0, \"maximum_investment\": 0, \"issuer\": { \"id\": 0, \"name\": \"string\" }, \"enterprise\": { \"id\": 0, \"name\": \"string\" } } ``` #### Common Properties (investor scope) By design, we have incorporated on the webhooks payload the same investor-related fields included in the Investor model, for reference on the included fields, their types and values please click [here](https://docs.dealmaker.tech/#tag/investor_model). This will allow you to get all the necessary information you need about a particular investor without having to call the Get Investor by ID endpoint. | #### Investor State Here is a brief description of each investor state: - **Draft:** the investor is added to the platform but hasn't been invited yet and cannot access the portal - **Invited:** the investor was added to the platform but hasn’t completed the questionnaire - **Signed:** the investor signed the document (needs approval from Lawyer or Reviewer before countersignature) - **Waiting:** the investor was approved for countersignature by any of the Lawyers or Reviewers in the deal - **Accepted:** the investor's agreement was countersigned by the Signatory - **Inactive** the investor is no longer eligible to participate in the offering. This may be because their warrant expired, they requested a refund, or they opted out of the offering #### Update Delay Given the high number of updates our platform performs on any investor, we’ve added a cool down period on update events that allows us to “group” updates and trigger only one every minute. In consequence, update events will be delivered 1 minute after the initial request was made and will include the latest version of the investor data at delivery time.
5
+
6
+ The version of the OpenAPI document: 1.75.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DealMakerAPI::V1EntitiesShareholderLedger
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe DealMakerAPI::V1EntitiesShareholderLedger do
21
+ let(:instance) { DealMakerAPI::V1EntitiesShareholderLedger.new }
22
+
23
+ describe 'test an instance of V1EntitiesShareholderLedger' do
24
+ it 'should create an instance of V1EntitiesShareholderLedger' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(DealMakerAPI::V1EntitiesShareholderLedger)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "shareholder_ledger_url"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "created_at"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: DealMakerAPI
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.97.3
4
+ version: 0.97.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - DealMaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-22 00:00:00.000000000 Z
11
+ date: 2024-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -171,6 +171,7 @@ files:
171
171
  - docs/V1EntitiesPaymentsSelfServeOnboardingQualificationQuestionnaireResult.md
172
172
  - docs/V1EntitiesPresignedUrlResult.md
173
173
  - docs/V1EntitiesShareholder.md
174
+ - docs/V1EntitiesShareholderLedger.md
174
175
  - docs/V1EntitiesShareholders.md
175
176
  - docs/V1EntitiesShareholdersTags.md
176
177
  - docs/V1EntitiesState.md
@@ -296,6 +297,7 @@ files:
296
297
  - lib/DealMakerAPI/models/v1_entities_payments_self_serve_onboarding_qualification_questionnaire_result.rb
297
298
  - lib/DealMakerAPI/models/v1_entities_presigned_url_result.rb
298
299
  - lib/DealMakerAPI/models/v1_entities_shareholder.rb
300
+ - lib/DealMakerAPI/models/v1_entities_shareholder_ledger.rb
299
301
  - lib/DealMakerAPI/models/v1_entities_shareholders.rb
300
302
  - lib/DealMakerAPI/models/v1_entities_shareholders_tags.rb
301
303
  - lib/DealMakerAPI/models/v1_entities_state.rb
@@ -416,6 +418,7 @@ files:
416
418
  - spec/models/v1_entities_payments_self_serve_onboarding_payout_account_details_result_spec.rb
417
419
  - spec/models/v1_entities_payments_self_serve_onboarding_qualification_questionnaire_result_spec.rb
418
420
  - spec/models/v1_entities_presigned_url_result_spec.rb
421
+ - spec/models/v1_entities_shareholder_ledger_spec.rb
419
422
  - spec/models/v1_entities_shareholder_spec.rb
420
423
  - spec/models/v1_entities_shareholders_spec.rb
421
424
  - spec/models/v1_entities_shareholders_tags_spec.rb
@@ -542,6 +545,7 @@ test_files:
542
545
  - spec/models/v1_entities_deals_incentive_plan_spec.rb
543
546
  - spec/models/v1_entities_country_spec.rb
544
547
  - spec/models/v1_entities_dividend_spec.rb
548
+ - spec/models/v1_entities_shareholder_ledger_spec.rb
545
549
  - spec/models/v1_entities_deal_setup_spec.rb
546
550
  - spec/models/v1_entities_investor_profile_trust_spec.rb
547
551
  - spec/models/v1_entities_investor_profile_fields_beneficiary_spec.rb