DealMakerAPI 0.98.3 → 0.98.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/CompanyApi.md +144 -0
- data/docs/V1EntitiesEmailTemplate.md +3 -1
- data/lib/DealMakerAPI/api/company_api.rb +141 -0
- data/lib/DealMakerAPI/models/v1_entities_email_template.rb +14 -4
- data/lib/DealMakerAPI/version.rb +1 -1
- data/spec/api/company_api_spec.rb +28 -0
- data/spec/models/v1_entities_email_template_spec.rb +6 -0
- metadata +107 -107
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce9765e4040eeb4d69cefd15cf4bdd81726ba47e2e86f5574f91648e022d1994
|
4
|
+
data.tar.gz: 3f2073dcf9cb10762c9e8091c6df7eb5f055e8abd3256bda949f7590ceb5a50a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 296317f8fd21ab6898c7c789492b7c95fe5a226a95c666bcb524758ef1f634ad33bdc1b5c8add8d1edba7cb526526ae95e77d8ce97a82fe66a80af2e53384398
|
7
|
+
data.tar.gz: 474abbe3b619fed87c3cd1c3c55978f3b565255de5dc604a551e88916d0af1985dd625afa20352f47dacd9a25a6409fdf744d60a6b6530984aba0b1403df4a61
|
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.98.
|
341
|
+
- Package version: 0.98.4
|
342
342
|
- Generator version: 7.5.0-SNAPSHOT
|
343
343
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
344
344
|
|
@@ -355,16 +355,16 @@ gem build DealMakerAPI.gemspec
|
|
355
355
|
Then either install the gem locally:
|
356
356
|
|
357
357
|
```shell
|
358
|
-
gem install ./DealMakerAPI-0.98.
|
358
|
+
gem install ./DealMakerAPI-0.98.4.gem
|
359
359
|
```
|
360
360
|
|
361
|
-
(for development, run `gem install --dev ./DealMakerAPI-0.98.
|
361
|
+
(for development, run `gem install --dev ./DealMakerAPI-0.98.4.gem` to install the development dependencies)
|
362
362
|
|
363
363
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
364
364
|
|
365
365
|
Finally add this to the Gemfile:
|
366
366
|
|
367
|
-
gem 'DealMakerAPI', '~> 0.98.
|
367
|
+
gem 'DealMakerAPI', '~> 0.98.4'
|
368
368
|
|
369
369
|
### Install from Git
|
370
370
|
|
@@ -424,6 +424,8 @@ Class | Method | HTTP request | Description
|
|
424
424
|
*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
|
425
425
|
*DealMakerAPI::CompanyApi* | [**get_dividends**](docs/CompanyApi.md#get_dividends) | **GET** /companies/{company_id}/portal/dividends | Return dividends
|
426
426
|
*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
|
427
|
+
*DealMakerAPI::CompanyApi* | [**get_email_template**](docs/CompanyApi.md#get_email_template) | **GET** /companies/{id}/news_releases/email_template/{template_id} | Get a email template
|
428
|
+
*DealMakerAPI::CompanyApi* | [**get_email_templates**](docs/CompanyApi.md#get_email_templates) | **GET** /companies/{id}/news_releases/email_templates | Get list of email template
|
427
429
|
*DealMakerAPI::CompanyApi* | [**get_shareholder_ledger**](docs/CompanyApi.md#get_shareholder_ledger) | **GET** /companies/{id}/shareholder_ledger | Get shareholder ledger by company
|
428
430
|
*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
|
429
431
|
*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
|
data/docs/CompanyApi.md
CHANGED
@@ -17,6 +17,8 @@ All URIs are relative to *http://api.dealmaker.tech*
|
|
17
17
|
| [**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 |
|
18
18
|
| [**get_dividends**](CompanyApi.md#get_dividends) | **GET** /companies/{company_id}/portal/dividends | Return dividends |
|
19
19
|
| [**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 |
|
20
|
+
| [**get_email_template**](CompanyApi.md#get_email_template) | **GET** /companies/{id}/news_releases/email_template/{template_id} | Get a email template |
|
21
|
+
| [**get_email_templates**](CompanyApi.md#get_email_templates) | **GET** /companies/{id}/news_releases/email_templates | Get list of email template |
|
20
22
|
| [**get_shareholder_ledger**](CompanyApi.md#get_shareholder_ledger) | **GET** /companies/{id}/shareholder_ledger | Get shareholder ledger by company |
|
21
23
|
| [**get_user_accessible_companies**](CompanyApi.md#get_user_accessible_companies) | **GET** /users/accessible_companies | Get list of all Companies accessible by the user |
|
22
24
|
| [**send_portal_invite**](CompanyApi.md#send_portal_invite) | **POST** /companies/{id}/shareholders/{shareholder_id}/send_portal_invite | Send portal invite to shareholder |
|
@@ -920,6 +922,148 @@ No authorization required
|
|
920
922
|
- **Accept**: application/json
|
921
923
|
|
922
924
|
|
925
|
+
## get_email_template
|
926
|
+
|
927
|
+
> <V1EntitiesEmailTemplate> get_email_template(id, template_id)
|
928
|
+
|
929
|
+
Get a email template
|
930
|
+
|
931
|
+
Get a email template
|
932
|
+
|
933
|
+
### Examples
|
934
|
+
|
935
|
+
```ruby
|
936
|
+
require 'time'
|
937
|
+
require 'DealMakerAPI'
|
938
|
+
# setup authorization
|
939
|
+
DealMakerAPI.configure do |config|end
|
940
|
+
|
941
|
+
api_instance = DealMakerAPI::CompanyApi.new
|
942
|
+
id = 56 # Integer | The company id
|
943
|
+
template_id = 56 # Integer | The email template id
|
944
|
+
|
945
|
+
begin
|
946
|
+
# Get a email template
|
947
|
+
result = api_instance.get_email_template(id, template_id)
|
948
|
+
p result
|
949
|
+
rescue DealMakerAPI::ApiError => e
|
950
|
+
puts "Error when calling CompanyApi->get_email_template: #{e}"
|
951
|
+
end
|
952
|
+
```
|
953
|
+
|
954
|
+
#### Using the get_email_template_with_http_info variant
|
955
|
+
|
956
|
+
This returns an Array which contains the response data, status code and headers.
|
957
|
+
|
958
|
+
> <Array(<V1EntitiesEmailTemplate>, Integer, Hash)> get_email_template_with_http_info(id, template_id)
|
959
|
+
|
960
|
+
```ruby
|
961
|
+
begin
|
962
|
+
# Get a email template
|
963
|
+
data, status_code, headers = api_instance.get_email_template_with_http_info(id, template_id)
|
964
|
+
p status_code # => 2xx
|
965
|
+
p headers # => { ... }
|
966
|
+
p data # => <V1EntitiesEmailTemplate>
|
967
|
+
rescue DealMakerAPI::ApiError => e
|
968
|
+
puts "Error when calling CompanyApi->get_email_template_with_http_info: #{e}"
|
969
|
+
end
|
970
|
+
```
|
971
|
+
|
972
|
+
### Parameters
|
973
|
+
|
974
|
+
| Name | Type | Description | Notes |
|
975
|
+
| ---- | ---- | ----------- | ----- |
|
976
|
+
| **id** | **Integer** | The company id | |
|
977
|
+
| **template_id** | **Integer** | The email template id | |
|
978
|
+
|
979
|
+
### Return type
|
980
|
+
|
981
|
+
[**V1EntitiesEmailTemplate**](V1EntitiesEmailTemplate.md)
|
982
|
+
|
983
|
+
### Authorization
|
984
|
+
|
985
|
+
No authorization required
|
986
|
+
|
987
|
+
### HTTP request headers
|
988
|
+
|
989
|
+
- **Content-Type**: Not defined
|
990
|
+
- **Accept**: application/json
|
991
|
+
|
992
|
+
|
993
|
+
## get_email_templates
|
994
|
+
|
995
|
+
> <V1EntitiesEmailTemplate> get_email_templates(id, opts)
|
996
|
+
|
997
|
+
Get list of email template
|
998
|
+
|
999
|
+
Get list of email template
|
1000
|
+
|
1001
|
+
### Examples
|
1002
|
+
|
1003
|
+
```ruby
|
1004
|
+
require 'time'
|
1005
|
+
require 'DealMakerAPI'
|
1006
|
+
# setup authorization
|
1007
|
+
DealMakerAPI.configure do |config|end
|
1008
|
+
|
1009
|
+
api_instance = DealMakerAPI::CompanyApi.new
|
1010
|
+
id = 56 # Integer | The company id
|
1011
|
+
opts = {
|
1012
|
+
page: 56, # Integer | The page number
|
1013
|
+
per_page: 56, # Integer | The number of items per page
|
1014
|
+
public_template: true # Boolean | The public template
|
1015
|
+
}
|
1016
|
+
|
1017
|
+
begin
|
1018
|
+
# Get list of email template
|
1019
|
+
result = api_instance.get_email_templates(id, opts)
|
1020
|
+
p result
|
1021
|
+
rescue DealMakerAPI::ApiError => e
|
1022
|
+
puts "Error when calling CompanyApi->get_email_templates: #{e}"
|
1023
|
+
end
|
1024
|
+
```
|
1025
|
+
|
1026
|
+
#### Using the get_email_templates_with_http_info variant
|
1027
|
+
|
1028
|
+
This returns an Array which contains the response data, status code and headers.
|
1029
|
+
|
1030
|
+
> <Array(<V1EntitiesEmailTemplate>, Integer, Hash)> get_email_templates_with_http_info(id, opts)
|
1031
|
+
|
1032
|
+
```ruby
|
1033
|
+
begin
|
1034
|
+
# Get list of email template
|
1035
|
+
data, status_code, headers = api_instance.get_email_templates_with_http_info(id, opts)
|
1036
|
+
p status_code # => 2xx
|
1037
|
+
p headers # => { ... }
|
1038
|
+
p data # => <V1EntitiesEmailTemplate>
|
1039
|
+
rescue DealMakerAPI::ApiError => e
|
1040
|
+
puts "Error when calling CompanyApi->get_email_templates_with_http_info: #{e}"
|
1041
|
+
end
|
1042
|
+
```
|
1043
|
+
|
1044
|
+
### Parameters
|
1045
|
+
|
1046
|
+
| Name | Type | Description | Notes |
|
1047
|
+
| ---- | ---- | ----------- | ----- |
|
1048
|
+
| **id** | **Integer** | The company id | |
|
1049
|
+
| **page** | **Integer** | The page number | [optional][default to 1] |
|
1050
|
+
| **per_page** | **Integer** | The number of items per page | [optional][default to 10] |
|
1051
|
+
| **public_template** | **Boolean** | The public template | [optional][default to false] |
|
1052
|
+
|
1053
|
+
### Return type
|
1054
|
+
|
1055
|
+
[**V1EntitiesEmailTemplate**](V1EntitiesEmailTemplate.md)
|
1056
|
+
|
1057
|
+
### Authorization
|
1058
|
+
|
1059
|
+
No authorization required
|
1060
|
+
|
1061
|
+
### HTTP request headers
|
1062
|
+
|
1063
|
+
- **Content-Type**: Not defined
|
1064
|
+
- **Accept**: application/json
|
1065
|
+
|
1066
|
+
|
923
1067
|
## get_shareholder_ledger
|
924
1068
|
|
925
1069
|
> <V1EntitiesShareholderLedger> get_shareholder_ledger(id)
|
@@ -8,6 +8,7 @@
|
|
8
8
|
| **name** | **String** | The name of the email template. | [optional] |
|
9
9
|
| **json_content** | **String** | The json content of the email template. | [optional] |
|
10
10
|
| **company_id** | **Integer** | The ID of the company. | [optional] |
|
11
|
+
| **thumbnail_image** | **String** | The thumbnail image of the email template. | [optional] |
|
11
12
|
|
12
13
|
## Example
|
13
14
|
|
@@ -18,7 +19,8 @@ instance = DealMakerAPI::V1EntitiesEmailTemplate.new(
|
|
18
19
|
id: null,
|
19
20
|
name: null,
|
20
21
|
json_content: null,
|
21
|
-
company_id: null
|
22
|
+
company_id: null,
|
23
|
+
thumbnail_image: null
|
22
24
|
)
|
23
25
|
```
|
24
26
|
|
@@ -938,6 +938,147 @@ module DealMakerAPI
|
|
938
938
|
return data, status_code, headers
|
939
939
|
end
|
940
940
|
|
941
|
+
# Get a email template
|
942
|
+
# Get a email template
|
943
|
+
# @param id [Integer] The company id
|
944
|
+
# @param template_id [Integer] The email template id
|
945
|
+
# @param [Hash] opts the optional parameters
|
946
|
+
# @return [V1EntitiesEmailTemplate]
|
947
|
+
def get_email_template(id, template_id, opts = {})
|
948
|
+
data, _status_code, _headers = get_email_template_with_http_info(id, template_id, opts)
|
949
|
+
data
|
950
|
+
end
|
951
|
+
|
952
|
+
# Get a email template
|
953
|
+
# Get a email template
|
954
|
+
# @param id [Integer] The company id
|
955
|
+
# @param template_id [Integer] The email template id
|
956
|
+
# @param [Hash] opts the optional parameters
|
957
|
+
# @return [Array<(V1EntitiesEmailTemplate, Integer, Hash)>] V1EntitiesEmailTemplate data, response status code and response headers
|
958
|
+
def get_email_template_with_http_info(id, template_id, opts = {})
|
959
|
+
if @api_client.config.debugging
|
960
|
+
@api_client.config.logger.debug 'Calling API: CompanyApi.get_email_template ...'
|
961
|
+
end
|
962
|
+
# verify the required parameter 'id' is set
|
963
|
+
if @api_client.config.client_side_validation && id.nil?
|
964
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompanyApi.get_email_template"
|
965
|
+
end
|
966
|
+
# verify the required parameter 'template_id' is set
|
967
|
+
if @api_client.config.client_side_validation && template_id.nil?
|
968
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling CompanyApi.get_email_template"
|
969
|
+
end
|
970
|
+
# resource path
|
971
|
+
local_var_path = '/companies/{id}/news_releases/email_template/{template_id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s))
|
972
|
+
|
973
|
+
# query parameters
|
974
|
+
query_params = opts[:query_params] || {}
|
975
|
+
|
976
|
+
# header parameters
|
977
|
+
header_params = opts[:header_params] || {}
|
978
|
+
# HTTP header 'Accept' (if needed)
|
979
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
980
|
+
|
981
|
+
# form parameters
|
982
|
+
form_params = opts[:form_params] || {}
|
983
|
+
|
984
|
+
# http body (model)
|
985
|
+
post_body = opts[:debug_body]
|
986
|
+
|
987
|
+
# return_type
|
988
|
+
return_type = opts[:debug_return_type] || 'V1EntitiesEmailTemplate'
|
989
|
+
|
990
|
+
# auth_names
|
991
|
+
auth_names = opts[:debug_auth_names] || []
|
992
|
+
|
993
|
+
new_options = opts.merge(
|
994
|
+
:operation => :"CompanyApi.get_email_template",
|
995
|
+
:header_params => header_params,
|
996
|
+
:query_params => query_params,
|
997
|
+
:form_params => form_params,
|
998
|
+
:body => post_body,
|
999
|
+
:auth_names => auth_names,
|
1000
|
+
:return_type => return_type
|
1001
|
+
)
|
1002
|
+
|
1003
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1004
|
+
if @api_client.config.debugging
|
1005
|
+
@api_client.config.logger.debug "API called: CompanyApi#get_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1006
|
+
end
|
1007
|
+
return data, status_code, headers
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
# Get list of email template
|
1011
|
+
# Get list of email template
|
1012
|
+
# @param id [Integer] The company id
|
1013
|
+
# @param [Hash] opts the optional parameters
|
1014
|
+
# @option opts [Integer] :page The page number (default to 1)
|
1015
|
+
# @option opts [Integer] :per_page The number of items per page (default to 10)
|
1016
|
+
# @option opts [Boolean] :public_template The public template (default to false)
|
1017
|
+
# @return [V1EntitiesEmailTemplate]
|
1018
|
+
def get_email_templates(id, opts = {})
|
1019
|
+
data, _status_code, _headers = get_email_templates_with_http_info(id, opts)
|
1020
|
+
data
|
1021
|
+
end
|
1022
|
+
|
1023
|
+
# Get list of email template
|
1024
|
+
# Get list of email template
|
1025
|
+
# @param id [Integer] The company id
|
1026
|
+
# @param [Hash] opts the optional parameters
|
1027
|
+
# @option opts [Integer] :page The page number (default to 1)
|
1028
|
+
# @option opts [Integer] :per_page The number of items per page (default to 10)
|
1029
|
+
# @option opts [Boolean] :public_template The public template (default to false)
|
1030
|
+
# @return [Array<(V1EntitiesEmailTemplate, Integer, Hash)>] V1EntitiesEmailTemplate data, response status code and response headers
|
1031
|
+
def get_email_templates_with_http_info(id, opts = {})
|
1032
|
+
if @api_client.config.debugging
|
1033
|
+
@api_client.config.logger.debug 'Calling API: CompanyApi.get_email_templates ...'
|
1034
|
+
end
|
1035
|
+
# verify the required parameter 'id' is set
|
1036
|
+
if @api_client.config.client_side_validation && id.nil?
|
1037
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompanyApi.get_email_templates"
|
1038
|
+
end
|
1039
|
+
# resource path
|
1040
|
+
local_var_path = '/companies/{id}/news_releases/email_templates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1041
|
+
|
1042
|
+
# query parameters
|
1043
|
+
query_params = opts[:query_params] || {}
|
1044
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1045
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
1046
|
+
query_params[:'public_template'] = opts[:'public_template'] if !opts[:'public_template'].nil?
|
1047
|
+
|
1048
|
+
# header parameters
|
1049
|
+
header_params = opts[:header_params] || {}
|
1050
|
+
# HTTP header 'Accept' (if needed)
|
1051
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1052
|
+
|
1053
|
+
# form parameters
|
1054
|
+
form_params = opts[:form_params] || {}
|
1055
|
+
|
1056
|
+
# http body (model)
|
1057
|
+
post_body = opts[:debug_body]
|
1058
|
+
|
1059
|
+
# return_type
|
1060
|
+
return_type = opts[:debug_return_type] || 'V1EntitiesEmailTemplate'
|
1061
|
+
|
1062
|
+
# auth_names
|
1063
|
+
auth_names = opts[:debug_auth_names] || []
|
1064
|
+
|
1065
|
+
new_options = opts.merge(
|
1066
|
+
:operation => :"CompanyApi.get_email_templates",
|
1067
|
+
:header_params => header_params,
|
1068
|
+
:query_params => query_params,
|
1069
|
+
:form_params => form_params,
|
1070
|
+
:body => post_body,
|
1071
|
+
:auth_names => auth_names,
|
1072
|
+
:return_type => return_type
|
1073
|
+
)
|
1074
|
+
|
1075
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1076
|
+
if @api_client.config.debugging
|
1077
|
+
@api_client.config.logger.debug "API called: CompanyApi#get_email_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1078
|
+
end
|
1079
|
+
return data, status_code, headers
|
1080
|
+
end
|
1081
|
+
|
941
1082
|
# Get shareholder ledger by company
|
942
1083
|
# Get shareholder ledger by company.
|
943
1084
|
# @param id [Integer]
|
@@ -28,13 +28,17 @@ module DealMakerAPI
|
|
28
28
|
# The ID of the company.
|
29
29
|
attr_accessor :company_id
|
30
30
|
|
31
|
+
# The thumbnail image of the email template.
|
32
|
+
attr_accessor :thumbnail_image
|
33
|
+
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
35
|
def self.attribute_map
|
33
36
|
{
|
34
37
|
:'id' => :'id',
|
35
38
|
:'name' => :'name',
|
36
39
|
:'json_content' => :'jsonContent',
|
37
|
-
:'company_id' => :'companyId'
|
40
|
+
:'company_id' => :'companyId',
|
41
|
+
:'thumbnail_image' => :'thumbnailImage'
|
38
42
|
}
|
39
43
|
end
|
40
44
|
|
@@ -49,7 +53,8 @@ module DealMakerAPI
|
|
49
53
|
:'id' => :'Integer',
|
50
54
|
:'name' => :'String',
|
51
55
|
:'json_content' => :'String',
|
52
|
-
:'company_id' => :'Integer'
|
56
|
+
:'company_id' => :'Integer',
|
57
|
+
:'thumbnail_image' => :'String'
|
53
58
|
}
|
54
59
|
end
|
55
60
|
|
@@ -89,6 +94,10 @@ module DealMakerAPI
|
|
89
94
|
if attributes.key?(:'company_id')
|
90
95
|
self.company_id = attributes[:'company_id']
|
91
96
|
end
|
97
|
+
|
98
|
+
if attributes.key?(:'thumbnail_image')
|
99
|
+
self.thumbnail_image = attributes[:'thumbnail_image']
|
100
|
+
end
|
92
101
|
end
|
93
102
|
|
94
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -114,7 +123,8 @@ module DealMakerAPI
|
|
114
123
|
id == o.id &&
|
115
124
|
name == o.name &&
|
116
125
|
json_content == o.json_content &&
|
117
|
-
company_id == o.company_id
|
126
|
+
company_id == o.company_id &&
|
127
|
+
thumbnail_image == o.thumbnail_image
|
118
128
|
end
|
119
129
|
|
120
130
|
# @see the `==` method
|
@@ -126,7 +136,7 @@ module DealMakerAPI
|
|
126
136
|
# Calculates hash code according to all attributes.
|
127
137
|
# @return [Integer] Hash code
|
128
138
|
def hash
|
129
|
-
[id, name, json_content, company_id].hash
|
139
|
+
[id, name, json_content, company_id, thumbnail_image].hash
|
130
140
|
end
|
131
141
|
|
132
142
|
# Builds the object from hash
|
data/lib/DealMakerAPI/version.rb
CHANGED
@@ -205,6 +205,34 @@ describe 'CompanyApi' do
|
|
205
205
|
end
|
206
206
|
end
|
207
207
|
|
208
|
+
# unit tests for get_email_template
|
209
|
+
# Get a email template
|
210
|
+
# Get a email template
|
211
|
+
# @param id The company id
|
212
|
+
# @param template_id The email template id
|
213
|
+
# @param [Hash] opts the optional parameters
|
214
|
+
# @return [V1EntitiesEmailTemplate]
|
215
|
+
describe 'get_email_template test' do
|
216
|
+
it 'should work' do
|
217
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# unit tests for get_email_templates
|
222
|
+
# Get list of email template
|
223
|
+
# Get list of email template
|
224
|
+
# @param id The company id
|
225
|
+
# @param [Hash] opts the optional parameters
|
226
|
+
# @option opts [Integer] :page The page number
|
227
|
+
# @option opts [Integer] :per_page The number of items per page
|
228
|
+
# @option opts [Boolean] :public_template The public template
|
229
|
+
# @return [V1EntitiesEmailTemplate]
|
230
|
+
describe 'get_email_templates test' do
|
231
|
+
it 'should work' do
|
232
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
208
236
|
# unit tests for get_shareholder_ledger
|
209
237
|
# Get shareholder ledger by company
|
210
238
|
# Get shareholder ledger by company.
|
@@ -51,4 +51,10 @@ describe DealMakerAPI::V1EntitiesEmailTemplate do
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
+
describe 'test attribute "thumbnail_image"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
54
60
|
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.98.
|
4
|
+
version: 0.98.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DealMaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -467,129 +467,129 @@ signing_key:
|
|
467
467
|
specification_version: 4
|
468
468
|
summary: A ruby wrapper for the DealMaker API
|
469
469
|
test_files:
|
470
|
-
- spec/api/deals_api_spec.rb
|
471
|
-
- spec/api/user_api_spec.rb
|
472
|
-
- spec/api/shareholder_api_spec.rb
|
473
|
-
- spec/api/investor_profile_api_spec.rb
|
474
|
-
- spec/api/investor_api_spec.rb
|
475
|
-
- spec/api/incentive_plan_api_spec.rb
|
476
470
|
- spec/api/company_api_spec.rb
|
477
|
-
- spec/api/deal_api_spec.rb
|
478
|
-
- spec/api/country_api_spec.rb
|
479
471
|
- spec/api/custom_emails_api_spec.rb
|
472
|
+
- spec/api/country_api_spec.rb
|
480
473
|
- spec/api/upload_api_spec.rb
|
474
|
+
- spec/api/deals_api_spec.rb
|
475
|
+
- spec/api/incentive_plan_api_spec.rb
|
476
|
+
- spec/api/shareholder_api_spec.rb
|
477
|
+
- spec/api/user_api_spec.rb
|
478
|
+
- spec/api/deal_api_spec.rb
|
481
479
|
- spec/api/default_api_spec.rb
|
480
|
+
- spec/api/investor_api_spec.rb
|
481
|
+
- spec/api/investor_profile_api_spec.rb
|
482
482
|
- spec/api/users_api_spec.rb
|
483
|
-
- spec/models/
|
484
|
-
- spec/models/
|
485
|
-
- spec/models/
|
486
|
-
- spec/models/
|
487
|
-
- spec/models/
|
488
|
-
- spec/models/
|
489
|
-
- spec/models/
|
490
|
-
- spec/models/
|
491
|
-
- spec/models/
|
492
|
-
- spec/models/
|
493
|
-
- spec/models/
|
494
|
-
- spec/models/
|
495
|
-
- spec/models/v1_entities_investor_profile_fields_account_holder_spec.rb
|
496
|
-
- spec/models/v1_entities_webhooks_subscription_deals_spec.rb
|
497
|
-
- spec/models/v1_entities_deal_spec.rb
|
498
|
-
- spec/models/run_background_search_request_spec.rb
|
499
|
-
- spec/models/patch_deal_incentive_plan_request_spec.rb
|
500
|
-
- spec/models/v1_entities_company_spec.rb
|
501
|
-
- spec/models/v1_entities_presigned_url_result_spec.rb
|
502
|
-
- spec/models/add_document_request_spec.rb
|
503
|
-
- spec/models/create_email_template_request_spec.rb
|
483
|
+
- spec/models/post_deal_incentive_plan_request_spec.rb
|
484
|
+
- spec/models/v1_entities_investor_profile_fields_trustee_spec.rb
|
485
|
+
- spec/models/v1_entities_investor_profile_fields_provider_spec.rb
|
486
|
+
- spec/models/update_user_password_request_spec.rb
|
487
|
+
- spec/models/v1_entities_deals_incentive_plans_incentive_tier_spec.rb
|
488
|
+
- spec/models/patch_investor_request_spec.rb
|
489
|
+
- spec/models/v1_entities_investor_profile_owner_spec.rb
|
490
|
+
- spec/models/v1_entities_email_template_spec.rb
|
491
|
+
- spec/models/add506c_document_request_spec.rb
|
492
|
+
- spec/models/v1_entities_webhooks_deal_spec.rb
|
493
|
+
- spec/models/v1_entities_investor_profile_fields_corporation_spec.rb
|
494
|
+
- spec/models/v1_entities_investor_profile_joint_spec.rb
|
504
495
|
- spec/models/v1_entities_investor_profile_address_spec.rb
|
505
|
-
- spec/models/
|
496
|
+
- spec/models/v1_entities_state_spec.rb
|
497
|
+
- spec/models/create_bulk_upload_detail_request_spec.rb
|
498
|
+
- spec/models/post_investor_profiles_corporations_beneficial_owners_inner_spec.rb
|
499
|
+
- spec/models/patch_investor_profiles_corporations_beneficial_owners_inner_spec.rb
|
500
|
+
- spec/models/patch_investor_profiles_joints_spec.rb
|
501
|
+
- spec/models/v1_entities_investor_profile_fields_beneficiary_spec.rb
|
502
|
+
- spec/models/v1_entities_deal_investor_metrics_spec.rb
|
503
|
+
- spec/models/v1_entities_investor_profile_fields_signing_officer_spec.rb
|
506
504
|
- spec/models/v1_entities_bulk_upload_details_spec.rb
|
505
|
+
- spec/models/v1_entities_deals_spec.rb
|
506
|
+
- spec/models/v1_entities_money_entity_spec.rb
|
507
|
+
- spec/models/v1_entities_beefree_access_token_spec.rb
|
508
|
+
- spec/models/generate_url_request_spec.rb
|
509
|
+
- spec/models/v1_entities_company_deal_spec.rb
|
510
|
+
- spec/models/v1_entities_investor_profile_item_spec.rb
|
511
|
+
- spec/models/v1_entities_countries_spec.rb
|
512
|
+
- spec/models/v1_entities_deal_setup_user_spec.rb
|
513
|
+
- spec/models/v1_entities_address_spec.rb
|
514
|
+
- spec/models/create_email_template_request_spec.rb
|
515
|
+
- spec/models/v1_entities_investor_profile_trust_spec.rb
|
507
516
|
- spec/models/put_webhooks_id_request_spec.rb
|
508
|
-
- spec/models/
|
509
|
-
- spec/models/
|
510
|
-
- spec/models/post_investor_profiles_trusts_spec.rb
|
511
|
-
- spec/models/v1_entities_dividends_spec.rb
|
512
|
-
- spec/models/v1_entities_payments_self_serve_onboarding_payout_account_details_result_spec.rb
|
513
|
-
- spec/models/v1_entities_investor_profile_owner_spec.rb
|
514
|
-
- spec/models/patch_investor_profiles_joints_spec.rb
|
517
|
+
- spec/models/v1_entities_email_event_spec.rb
|
518
|
+
- spec/models/v1_entities_investor_search_entities_spec.rb
|
515
519
|
- spec/models/v1_entities_bulk_upload_spec.rb
|
516
|
-
- spec/models/
|
517
|
-
- spec/models/
|
518
|
-
- spec/models/
|
519
|
-
- spec/models/
|
520
|
-
- spec/models/v1_entities_deal_issuer_spec.rb
|
521
|
-
- spec/models/v1_entities_express_wire_instruction_spec.rb
|
522
|
-
- spec/models/v1_entities_deal_setup_user_spec.rb
|
523
|
-
- spec/models/v1_entities_company_deals_spec.rb
|
520
|
+
- spec/models/create_company_request_spec.rb
|
521
|
+
- spec/models/v1_entities_company_spec.rb
|
522
|
+
- spec/models/v1_entities_investor_profile_fields_trust_spec.rb
|
523
|
+
- spec/models/v1_entities_investor_profile_id_spec.rb
|
524
524
|
- spec/models/v1_entities_investor_profile_managed_spec.rb
|
525
|
-
- spec/models/
|
525
|
+
- spec/models/v1_entities_payments_self_serve_onboarding_payout_account_details_result_spec.rb
|
526
|
+
- spec/models/v1_entities_bulk_uploads_spec.rb
|
527
|
+
- spec/models/post_investor_profiles_trusts_trustees_inner_spec.rb
|
528
|
+
- spec/models/create_shareholder_action_request_spec.rb
|
529
|
+
- spec/models/edit_investor_tags_request_spec.rb
|
530
|
+
- spec/models/v1_entities_deal_spec.rb
|
531
|
+
- spec/models/put_deals_id_script_tag_environment_request_spec.rb
|
532
|
+
- spec/models/v1_entities_webhooks_subscription_spec.rb
|
526
533
|
- spec/models/v1_entities_payments_self_serve_onboarding_qualification_questionnaire_result_spec.rb
|
527
|
-
- spec/models/
|
528
|
-
- spec/models/
|
529
|
-
- spec/models/
|
530
|
-
- spec/models/
|
531
|
-
- spec/models/
|
532
|
-
- spec/models/
|
533
|
-
- spec/models/
|
534
|
-
- spec/models/
|
535
|
-
- spec/models/
|
536
|
-
- spec/models/
|
537
|
-
- spec/models/
|
534
|
+
- spec/models/v1_entities_shareholder_spec.rb
|
535
|
+
- spec/models/get_access_token_request_spec.rb
|
536
|
+
- spec/models/v1_entities_investor_profile_individual_spec.rb
|
537
|
+
- spec/models/v1_entities_investor_search_entities_required_fields_spec.rb
|
538
|
+
- spec/models/v1_entities_user_spec.rb
|
539
|
+
- spec/models/run_background_search_request_spec.rb
|
540
|
+
- spec/models/v1_entities_webhooks_subscription_deal_spec.rb
|
541
|
+
- spec/models/post_investor_profiles_joints_spec.rb
|
542
|
+
- spec/models/post_investor_profiles_corporations_spec.rb
|
543
|
+
- spec/models/bulk_upload_investors_request_spec.rb
|
544
|
+
- spec/models/v1_entities_deal_setup_spec.rb
|
545
|
+
- spec/models/v1_entities_attachment_spec.rb
|
546
|
+
- spec/models/add_document_request_spec.rb
|
547
|
+
- spec/models/v1_entities_email_events_spec.rb
|
548
|
+
- spec/models/v1_entities_deals_incentive_plan_spec.rb
|
538
549
|
- spec/models/create_bulk_upload_request_spec.rb
|
539
550
|
- spec/models/v1_entities_deal_funding_metrics_spec.rb
|
551
|
+
- spec/models/v1_entities_webhooks_subscription_deals_spec.rb
|
552
|
+
- spec/models/v1_entities_bulk_upload_detail_spec.rb
|
540
553
|
- spec/models/v1_entities_payments_self_serve_onboarding_payout_account_details_data_spec.rb
|
541
|
-
- spec/models/
|
542
|
-
- spec/models/
|
543
|
-
- spec/models/
|
544
|
-
- spec/models/
|
545
|
-
- spec/models/
|
546
|
-
- spec/models/
|
547
|
-
- spec/models/
|
548
|
-
- spec/models/
|
554
|
+
- spec/models/v1_entities_country_spec.rb
|
555
|
+
- spec/models/v1_entities_shareholders_spec.rb
|
556
|
+
- spec/models/v1_entities_subscription_agreement_spec.rb
|
557
|
+
- spec/models/v1_entities_addresses_spec.rb
|
558
|
+
- spec/models/v1_entities_company_deals_spec.rb
|
559
|
+
- spec/models/v1_entities_presigned_url_result_spec.rb
|
560
|
+
- spec/models/put_deals_id_investors_spec.rb
|
561
|
+
- spec/models/v1_entities_express_wire_instructions_spec.rb
|
562
|
+
- spec/models/patch_investor_profiles_corporations_spec.rb
|
563
|
+
- spec/models/post_webhooks_request_spec.rb
|
564
|
+
- spec/models/v1_entities_express_wire_instruction_spec.rb
|
565
|
+
- spec/models/v1_entities_investor_profile_corporation_spec.rb
|
566
|
+
- spec/models/v1_entities_shareholders_tags_spec.rb
|
567
|
+
- spec/models/patch_investor_profiles_individuals_spec.rb
|
568
|
+
- spec/models/send_portal_invite_request_spec.rb
|
549
569
|
- spec/models/v1_entities_deal_enterprise_spec.rb
|
550
|
-
- spec/models/
|
570
|
+
- spec/models/v1_entities_generic_response_spec.rb
|
571
|
+
- spec/models/v1_entities_payments_self_serve_onboarding_digital_payments_connection_data_spec.rb
|
572
|
+
- spec/models/post_investor_profiles_individuals_spec.rb
|
573
|
+
- spec/models/v1_entities_background_check_search_spec.rb
|
551
574
|
- spec/models/v1_entities_investor_profile_fields_primary_holder_spec.rb
|
575
|
+
- spec/models/v1_entities_investor_profiles_spec.rb
|
576
|
+
- spec/models/v1_entities_shareholder_ledger_spec.rb
|
577
|
+
- spec/models/v1_entities_investor_profile_fields_account_holder_spec.rb
|
552
578
|
- spec/models/v1_entities_investor_profile_fields_beneficial_owner_spec.rb
|
553
|
-
- spec/models/
|
554
|
-
- spec/models/v1_entities_investor_search_entities_required_fields_spec.rb
|
579
|
+
- spec/models/create_deal_setup_request_spec.rb
|
555
580
|
- spec/models/v1_entities_investor_spec.rb
|
556
|
-
- spec/models/patch_investor_request_spec.rb
|
557
|
-
- spec/models/v1_entities_investor_user_spec.rb
|
558
|
-
- spec/models/v1_entities_investor_profile_fields_provider_spec.rb
|
559
|
-
- spec/models/post_investor_profiles_trusts_trustees_inner_spec.rb
|
560
|
-
- spec/models/v1_entities_state_spec.rb
|
561
|
-
- spec/models/v1_entities_country_spec.rb
|
562
|
-
- spec/models/v1_entities_company_deal_spec.rb
|
563
|
-
- spec/models/v1_entities_investor_profile_fields_beneficiary_spec.rb
|
564
|
-
- spec/models/v1_entities_addresses_spec.rb
|
565
|
-
- spec/models/v1_entities_webhooks_subscription_spec.rb
|
566
|
-
- spec/models/patch_investor_profiles_trusts_spec.rb
|
567
|
-
- spec/models/v1_entities_webhooks_deal_spec.rb
|
568
|
-
- spec/models/v1_entities_deals_incentive_plans_incentive_tier_spec.rb
|
569
|
-
- spec/models/v1_entities_generic_response_spec.rb
|
570
|
-
- spec/models/get_access_token_request_spec.rb
|
571
|
-
- spec/models/v1_entities_investor_profile_fields_corporation_spec.rb
|
572
|
-
- spec/models/post_investor_profiles_corporations_spec.rb
|
573
|
-
- spec/models/generate_url_request_spec.rb
|
574
581
|
- spec/models/v1_entities_deals_price_details_spec.rb
|
575
|
-
- spec/models/
|
576
|
-
- spec/models/patch_investor_profiles_individuals_spec.rb
|
577
|
-
- spec/models/v1_entities_deals_spec.rb
|
578
|
-
- spec/models/put_deals_id_script_tag_environment_request_spec.rb
|
579
|
-
- spec/models/v1_entities_countries_spec.rb
|
580
|
-
- spec/models/v1_entities_investor_otp_access_link_spec.rb
|
581
|
-
- spec/models/v1_entities_address_spec.rb
|
582
|
-
- spec/models/put_deals_id_investors_spec.rb
|
583
|
-
- spec/models/v1_entities_deal_investor_metrics_spec.rb
|
584
|
-
- spec/models/create_shareholder_action_request_spec.rb
|
585
|
-
- spec/models/v1_entities_shareholders_spec.rb
|
586
|
-
- spec/models/update_user_password_request_spec.rb
|
587
|
-
- spec/models/patch_investor_profiles_corporations_beneficial_owners_inner_spec.rb
|
588
|
-
- spec/models/v1_entities_investor_profile_id_spec.rb
|
589
|
-
- spec/models/post_investor_profiles_joints_spec.rb
|
590
|
-
- spec/models/bulk_upload_investors_request_spec.rb
|
591
|
-
- spec/models/v1_entities_shareholders_tags_spec.rb
|
582
|
+
- spec/models/post_investor_profiles_trusts_spec.rb
|
592
583
|
- spec/models/patch_investor_profiles_trusts_trustees_inner_spec.rb
|
593
|
-
- spec/models/
|
594
|
-
- spec/models/
|
584
|
+
- spec/models/v1_entities_investors_spec.rb
|
585
|
+
- spec/models/v1_entities_investor_user_spec.rb
|
586
|
+
- spec/models/v1_entities_webhooks_security_token_spec.rb
|
587
|
+
- spec/models/patch_deal_incentive_plan_request_spec.rb
|
588
|
+
- spec/models/v1_entities_dividend_spec.rb
|
589
|
+
- spec/models/post_investor_profiles_managed_spec.rb
|
590
|
+
- spec/models/v1_entities_investor_otp_access_link_spec.rb
|
591
|
+
- spec/models/v1_entities_deal_issuer_spec.rb
|
592
|
+
- spec/models/patch_investor_profiles_trusts_spec.rb
|
593
|
+
- spec/models/v1_entities_dividends_spec.rb
|
594
|
+
- spec/models/post_deals_id_investors_spec.rb
|
595
595
|
- spec/spec_helper.rb
|