DealMakerAPI 0.101.5 → 0.102.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a8e6e341ed61d9b8a86cca27ec62ab8c121c43849c6ff18907ebd18ff01be7e
4
- data.tar.gz: 5307c78c7e812e9f228dadb3113004375f3e043cd38b2f93f4198b556db377f2
3
+ metadata.gz: 85b79231a4ed5c35f31f1154744b73537aba775e9125263943cf7a3be76d53e2
4
+ data.tar.gz: e11c77a85ca7019d342f00bf25deaee0bbc8270fd301781853d17be191ac4bfc
5
5
  SHA512:
6
- metadata.gz: b4f4b27a07a54b6ac792852d1e0d5a8bc20247fde1228234a83944ae1b8ef5b661c766fc1c9a59764429bc40add02fe753e6754f1b984da2ec492ce61b7652fe
7
- data.tar.gz: 49db98aacde6b8dac239f078016a6ef4f97961ad883a1ff0f5a5f0ea7f50b94370ca599bb22185f366139070842180393d1ec0ffabcc32b5ff6a0f91089e1646
6
+ metadata.gz: 79194b5d910f29abffd80784f5d9e9d06bef76aeaddd69053b34dd0d8a18e50de9387e0f0de6178e532b000833fae34ed203355278cb60b44df2a1a4ae22331e
7
+ data.tar.gz: 67f167089994c983c288b88d8f81c945c192da3124f58e790968e5864d59bed240658d732604c697cbe9f315580c78ca5aad476b0ad48b897076ea8e7e9ec265
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.101.5
341
+ - Package version: 0.102.1
342
342
  - Generator version: 7.6.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.101.5.gem
358
+ gem install ./DealMakerAPI-0.102.1.gem
359
359
  ```
360
360
 
361
- (for development, run `gem install --dev ./DealMakerAPI-0.101.5.gem` to install the development dependencies)
361
+ (for development, run `gem install --dev ./DealMakerAPI-0.102.1.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.101.5'
367
+ gem 'DealMakerAPI', '~> 0.102.1'
368
368
 
369
369
  ### Install from Git
370
370
 
@@ -414,9 +414,10 @@ Class | Method | HTTP request | Description
414
414
  *DealMakerAPI::CompanyApi* | [**create_bulk_upload**](docs/CompanyApi.md#create_bulk_upload) | **POST** /companies/{id}/documents/bulk_uploads | Create bulk upload record
415
415
  *DealMakerAPI::CompanyApi* | [**create_bulk_upload_detail**](docs/CompanyApi.md#create_bulk_upload_detail) | **POST** /companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details | Create a BulkUploadDetail class record
416
416
  *DealMakerAPI::CompanyApi* | [**create_company**](docs/CompanyApi.md#create_company) | **POST** /companies | Create new company
417
- *DealMakerAPI::CompanyApi* | [**create_email_template**](docs/CompanyApi.md#create_email_template) | **POST** /companies/{id}/news_releases/email_template | Creates an email template
417
+ *DealMakerAPI::CompanyApi* | [**create_email_template**](docs/CompanyApi.md#create_email_template) | **POST** /companies/{id}/news_releases/email_templates | Creates an email template
418
418
  *DealMakerAPI::CompanyApi* | [**create_members_bulk_upload**](docs/CompanyApi.md#create_members_bulk_upload) | **POST** /companies/{id}/members/bulk_uploads | Create bulk upload record
419
419
  *DealMakerAPI::CompanyApi* | [**create_shareholder_action**](docs/CompanyApi.md#create_shareholder_action) | **POST** /companies/{company_id}/shareholders/{shareholder_id}/actions | Create a shareholder action
420
+ *DealMakerAPI::CompanyApi* | [**delete_email_template**](docs/CompanyApi.md#delete_email_template) | **DELETE** /companies/{id}/news_releases/email_templates/{template_id} | Deletes an email template
420
421
  *DealMakerAPI::CompanyApi* | [**get_bulk_upload**](docs/CompanyApi.md#get_bulk_upload) | **GET** /companies/{id}/documents/bulk_uploads/{bulk_upload_id} | Return a given bulk upload by id
421
422
  *DealMakerAPI::CompanyApi* | [**get_bulk_upload_details_errors**](docs/CompanyApi.md#get_bulk_upload_details_errors) | **GET** /companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details/errors | Returns a full list of details with errors of the given bulk upload ordered by status desc and id asc
422
423
  *DealMakerAPI::CompanyApi* | [**get_bulk_uploads**](docs/CompanyApi.md#get_bulk_uploads) | **GET** /companies/{id}/documents/bulk_uploads | Return bulk uploads
@@ -425,7 +426,7 @@ Class | Method | HTTP request | Description
425
426
  *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
426
427
  *DealMakerAPI::CompanyApi* | [**get_dividends**](docs/CompanyApi.md#get_dividends) | **GET** /companies/{company_id}/portal/dividends | Return dividends
427
428
  *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
428
- *DealMakerAPI::CompanyApi* | [**get_email_template**](docs/CompanyApi.md#get_email_template) | **GET** /companies/{id}/news_releases/email_template/{template_id} | Get a email template
429
+ *DealMakerAPI::CompanyApi* | [**get_email_template**](docs/CompanyApi.md#get_email_template) | **GET** /companies/{id}/news_releases/email_templates/{template_id} | Get an email template
429
430
  *DealMakerAPI::CompanyApi* | [**get_email_templates**](docs/CompanyApi.md#get_email_templates) | **GET** /companies/{id}/news_releases/email_templates | Get list of email template
430
431
  *DealMakerAPI::CompanyApi* | [**get_members_bulk_upload**](docs/CompanyApi.md#get_members_bulk_upload) | **GET** /companies/{id}/members/bulk_uploads/{id_members_bulk_upload} | Get bulk upload record
431
432
  *DealMakerAPI::CompanyApi* | [**get_members_bulk_uploads**](docs/CompanyApi.md#get_members_bulk_uploads) | **GET** /companies/{id}/members/bulk_uploads | Get bulk uploads records
data/docs/CompanyApi.md CHANGED
@@ -7,9 +7,10 @@ All URIs are relative to *http://api.dealmaker.tech*
7
7
  | [**create_bulk_upload**](CompanyApi.md#create_bulk_upload) | **POST** /companies/{id}/documents/bulk_uploads | Create bulk upload record |
8
8
  | [**create_bulk_upload_detail**](CompanyApi.md#create_bulk_upload_detail) | **POST** /companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details | Create a BulkUploadDetail class record |
9
9
  | [**create_company**](CompanyApi.md#create_company) | **POST** /companies | Create new company |
10
- | [**create_email_template**](CompanyApi.md#create_email_template) | **POST** /companies/{id}/news_releases/email_template | Creates an email template |
10
+ | [**create_email_template**](CompanyApi.md#create_email_template) | **POST** /companies/{id}/news_releases/email_templates | Creates an email template |
11
11
  | [**create_members_bulk_upload**](CompanyApi.md#create_members_bulk_upload) | **POST** /companies/{id}/members/bulk_uploads | Create bulk upload record |
12
12
  | [**create_shareholder_action**](CompanyApi.md#create_shareholder_action) | **POST** /companies/{company_id}/shareholders/{shareholder_id}/actions | Create a shareholder action |
13
+ | [**delete_email_template**](CompanyApi.md#delete_email_template) | **DELETE** /companies/{id}/news_releases/email_templates/{template_id} | Deletes an email template |
13
14
  | [**get_bulk_upload**](CompanyApi.md#get_bulk_upload) | **GET** /companies/{id}/documents/bulk_uploads/{bulk_upload_id} | Return a given bulk upload by id |
14
15
  | [**get_bulk_upload_details_errors**](CompanyApi.md#get_bulk_upload_details_errors) | **GET** /companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details/errors | Returns a full list of details with errors of the given bulk upload ordered by status desc and id asc |
15
16
  | [**get_bulk_uploads**](CompanyApi.md#get_bulk_uploads) | **GET** /companies/{id}/documents/bulk_uploads | Return bulk uploads |
@@ -18,7 +19,7 @@ All URIs are relative to *http://api.dealmaker.tech*
18
19
  | [**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 |
19
20
  | [**get_dividends**](CompanyApi.md#get_dividends) | **GET** /companies/{company_id}/portal/dividends | Return dividends |
20
21
  | [**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 |
21
- | [**get_email_template**](CompanyApi.md#get_email_template) | **GET** /companies/{id}/news_releases/email_template/{template_id} | Get a email template |
22
+ | [**get_email_template**](CompanyApi.md#get_email_template) | **GET** /companies/{id}/news_releases/email_templates/{template_id} | Get an email template |
22
23
  | [**get_email_templates**](CompanyApi.md#get_email_templates) | **GET** /companies/{id}/news_releases/email_templates | Get list of email template |
23
24
  | [**get_members_bulk_upload**](CompanyApi.md#get_members_bulk_upload) | **GET** /companies/{id}/members/bulk_uploads/{id_members_bulk_upload} | Get bulk upload record |
24
25
  | [**get_members_bulk_uploads**](CompanyApi.md#get_members_bulk_uploads) | **GET** /companies/{id}/members/bulk_uploads | Get bulk uploads records |
@@ -437,6 +438,73 @@ No authorization required
437
438
  - **Accept**: application/json
438
439
 
439
440
 
441
+ ## delete_email_template
442
+
443
+ > delete_email_template(id, template_id)
444
+
445
+ Deletes an email template
446
+
447
+ Delete an email template
448
+
449
+ ### Examples
450
+
451
+ ```ruby
452
+ require 'time'
453
+ require 'DealMakerAPI'
454
+ # setup authorization
455
+ DealMakerAPI.configure do |config|end
456
+
457
+ api_instance = DealMakerAPI::CompanyApi.new
458
+ id = 56 # Integer | The company id
459
+ template_id = 56 # Integer | The email template id
460
+
461
+ begin
462
+ # Deletes an email template
463
+ api_instance.delete_email_template(id, template_id)
464
+ rescue DealMakerAPI::ApiError => e
465
+ puts "Error when calling CompanyApi->delete_email_template: #{e}"
466
+ end
467
+ ```
468
+
469
+ #### Using the delete_email_template_with_http_info variant
470
+
471
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
472
+
473
+ > <Array(nil, Integer, Hash)> delete_email_template_with_http_info(id, template_id)
474
+
475
+ ```ruby
476
+ begin
477
+ # Deletes an email template
478
+ data, status_code, headers = api_instance.delete_email_template_with_http_info(id, template_id)
479
+ p status_code # => 2xx
480
+ p headers # => { ... }
481
+ p data # => nil
482
+ rescue DealMakerAPI::ApiError => e
483
+ puts "Error when calling CompanyApi->delete_email_template_with_http_info: #{e}"
484
+ end
485
+ ```
486
+
487
+ ### Parameters
488
+
489
+ | Name | Type | Description | Notes |
490
+ | ---- | ---- | ----------- | ----- |
491
+ | **id** | **Integer** | The company id | |
492
+ | **template_id** | **Integer** | The email template id | |
493
+
494
+ ### Return type
495
+
496
+ nil (empty response body)
497
+
498
+ ### Authorization
499
+
500
+ No authorization required
501
+
502
+ ### HTTP request headers
503
+
504
+ - **Content-Type**: Not defined
505
+ - **Accept**: Not defined
506
+
507
+
440
508
  ## get_bulk_upload
441
509
 
442
510
  > <V1EntitiesBulkUpload> get_bulk_upload(id, bulk_upload_id, opts)
@@ -997,9 +1065,9 @@ No authorization required
997
1065
 
998
1066
  > <V1EntitiesEmailTemplate> get_email_template(id, template_id)
999
1067
 
1000
- Get a email template
1068
+ Get an email template
1001
1069
 
1002
- Get a email template
1070
+ Get an email template
1003
1071
 
1004
1072
  ### Examples
1005
1073
 
@@ -1014,7 +1082,7 @@ id = 56 # Integer | The company id
1014
1082
  template_id = 56 # Integer | The email template id
1015
1083
 
1016
1084
  begin
1017
- # Get a email template
1085
+ # Get an email template
1018
1086
  result = api_instance.get_email_template(id, template_id)
1019
1087
  p result
1020
1088
  rescue DealMakerAPI::ApiError => e
@@ -1030,7 +1098,7 @@ This returns an Array which contains the response data, status code and headers.
1030
1098
 
1031
1099
  ```ruby
1032
1100
  begin
1033
- # Get a email template
1101
+ # Get an email template
1034
1102
  data, status_code, headers = api_instance.get_email_template_with_http_info(id, template_id)
1035
1103
  p status_code # => 2xx
1036
1104
  p headers # => { ... }
@@ -271,7 +271,7 @@ module DealMakerAPI
271
271
  fail ArgumentError, "Missing the required parameter 'create_email_template_request' when calling CompanyApi.create_email_template"
272
272
  end
273
273
  # resource path
274
- local_var_path = '/companies/{id}/news_releases/email_template'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
274
+ local_var_path = '/companies/{id}/news_releases/email_templates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
275
275
 
276
276
  # query parameters
277
277
  query_params = opts[:query_params] || {}
@@ -469,6 +469,73 @@ module DealMakerAPI
469
469
  return data, status_code, headers
470
470
  end
471
471
 
472
+ # Deletes an email template
473
+ # Delete an email template
474
+ # @param id [Integer] The company id
475
+ # @param template_id [Integer] The email template id
476
+ # @param [Hash] opts the optional parameters
477
+ # @return [nil]
478
+ def delete_email_template(id, template_id, opts = {})
479
+ delete_email_template_with_http_info(id, template_id, opts)
480
+ nil
481
+ end
482
+
483
+ # Deletes an email template
484
+ # Delete an email template
485
+ # @param id [Integer] The company id
486
+ # @param template_id [Integer] The email template id
487
+ # @param [Hash] opts the optional parameters
488
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
489
+ def delete_email_template_with_http_info(id, template_id, opts = {})
490
+ if @api_client.config.debugging
491
+ @api_client.config.logger.debug 'Calling API: CompanyApi.delete_email_template ...'
492
+ end
493
+ # verify the required parameter 'id' is set
494
+ if @api_client.config.client_side_validation && id.nil?
495
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompanyApi.delete_email_template"
496
+ end
497
+ # verify the required parameter 'template_id' is set
498
+ if @api_client.config.client_side_validation && template_id.nil?
499
+ fail ArgumentError, "Missing the required parameter 'template_id' when calling CompanyApi.delete_email_template"
500
+ end
501
+ # resource path
502
+ local_var_path = '/companies/{id}/news_releases/email_templates/{template_id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s))
503
+
504
+ # query parameters
505
+ query_params = opts[:query_params] || {}
506
+
507
+ # header parameters
508
+ header_params = opts[:header_params] || {}
509
+
510
+ # form parameters
511
+ form_params = opts[:form_params] || {}
512
+
513
+ # http body (model)
514
+ post_body = opts[:debug_body]
515
+
516
+ # return_type
517
+ return_type = opts[:debug_return_type]
518
+
519
+ # auth_names
520
+ auth_names = opts[:debug_auth_names] || []
521
+
522
+ new_options = opts.merge(
523
+ :operation => :"CompanyApi.delete_email_template",
524
+ :header_params => header_params,
525
+ :query_params => query_params,
526
+ :form_params => form_params,
527
+ :body => post_body,
528
+ :auth_names => auth_names,
529
+ :return_type => return_type
530
+ )
531
+
532
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
533
+ if @api_client.config.debugging
534
+ @api_client.config.logger.debug "API called: CompanyApi#delete_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
535
+ end
536
+ return data, status_code, headers
537
+ end
538
+
472
539
  # Return a given bulk upload by id
473
540
  # Return a given bulk upload by id
474
541
  # @param id [Integer]
@@ -1012,8 +1079,8 @@ module DealMakerAPI
1012
1079
  return data, status_code, headers
1013
1080
  end
1014
1081
 
1015
- # Get a email template
1016
- # Get a email template
1082
+ # Get an email template
1083
+ # Get an email template
1017
1084
  # @param id [Integer] The company id
1018
1085
  # @param template_id [Integer] The email template id
1019
1086
  # @param [Hash] opts the optional parameters
@@ -1023,8 +1090,8 @@ module DealMakerAPI
1023
1090
  data
1024
1091
  end
1025
1092
 
1026
- # Get a email template
1027
- # Get a email template
1093
+ # Get an email template
1094
+ # Get an email template
1028
1095
  # @param id [Integer] The company id
1029
1096
  # @param template_id [Integer] The email template id
1030
1097
  # @param [Hash] opts the optional parameters
@@ -1042,7 +1109,7 @@ module DealMakerAPI
1042
1109
  fail ArgumentError, "Missing the required parameter 'template_id' when calling CompanyApi.get_email_template"
1043
1110
  end
1044
1111
  # resource path
1045
- 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))
1112
+ local_var_path = '/companies/{id}/news_releases/email_templates/{template_id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s))
1046
1113
 
1047
1114
  # query parameters
1048
1115
  query_params = opts[:query_params] || {}
@@ -11,5 +11,5 @@ Generator version: 7.6.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module DealMakerAPI
14
- VERSION = '0.101.5'
14
+ VERSION = '0.102.1'
15
15
  end
@@ -111,6 +111,19 @@ describe 'CompanyApi' do
111
111
  end
112
112
  end
113
113
 
114
+ # unit tests for delete_email_template
115
+ # Deletes an email template
116
+ # Delete an email template
117
+ # @param id The company id
118
+ # @param template_id The email template id
119
+ # @param [Hash] opts the optional parameters
120
+ # @return [nil]
121
+ describe 'delete_email_template test' do
122
+ it 'should work' do
123
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
124
+ end
125
+ end
126
+
114
127
  # unit tests for get_bulk_upload
115
128
  # Return a given bulk upload by id
116
129
  # Return a given bulk upload by id
@@ -219,8 +232,8 @@ describe 'CompanyApi' do
219
232
  end
220
233
 
221
234
  # unit tests for get_email_template
222
- # Get a email template
223
- # Get a email template
235
+ # Get an email template
236
+ # Get an email template
224
237
  # @param id The company id
225
238
  # @param template_id The email template id
226
239
  # @param [Hash] opts the optional parameters
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.101.5
4
+ version: 0.102.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DealMaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-22 00:00:00.000000000 Z
11
+ date: 2024-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus