DealMakerAPI 0.83.0 → 0.83.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -4
  3. data/docs/CompanyApi.md +213 -0
  4. data/docs/V1EntitiesBulkUploadDetails.md +18 -0
  5. data/docs/V1EntitiesBulkUploads.md +18 -0
  6. data/lib/DealMakerAPI/api/company_api.rb +210 -0
  7. data/lib/DealMakerAPI/configuration.rb +9 -7
  8. data/lib/DealMakerAPI/models/add506c_document_request.rb +14 -17
  9. data/lib/DealMakerAPI/models/add_document_request.rb +14 -17
  10. data/lib/DealMakerAPI/models/create_bulk_upload_detail_request.rb +16 -17
  11. data/lib/DealMakerAPI/models/create_bulk_upload_request.rb +16 -17
  12. data/lib/DealMakerAPI/models/create_company_request.rb +24 -17
  13. data/lib/DealMakerAPI/models/create_corporation_profile_request.rb +14 -17
  14. data/lib/DealMakerAPI/models/create_deal_setup_request.rb +18 -17
  15. data/lib/DealMakerAPI/models/create_individual_profile_request.rb +14 -17
  16. data/lib/DealMakerAPI/models/create_investor_request.rb +14 -17
  17. data/lib/DealMakerAPI/models/create_joint_profile_request.rb +14 -17
  18. data/lib/DealMakerAPI/models/create_trust_profile_request.rb +14 -17
  19. data/lib/DealMakerAPI/models/edit_investor_tags_request.rb +14 -17
  20. data/lib/DealMakerAPI/models/generate_url_request.rb +14 -17
  21. data/lib/DealMakerAPI/models/patch_corporation_profile_request.rb +12 -17
  22. data/lib/DealMakerAPI/models/patch_individual_profile_request.rb +12 -17
  23. data/lib/DealMakerAPI/models/patch_investor_request.rb +14 -17
  24. data/lib/DealMakerAPI/models/patch_joint_profile_request.rb +12 -17
  25. data/lib/DealMakerAPI/models/patch_trust_profile_request.rb +12 -17
  26. data/lib/DealMakerAPI/models/post_webhooks_request.rb +18 -17
  27. data/lib/DealMakerAPI/models/put_webhooks_id_request.rb +12 -17
  28. data/lib/DealMakerAPI/models/update_investor_request.rb +12 -17
  29. data/lib/DealMakerAPI/models/v1_entities_address.rb +12 -17
  30. data/lib/DealMakerAPI/models/v1_entities_addresses.rb +12 -17
  31. data/lib/DealMakerAPI/models/v1_entities_attachment.rb +12 -17
  32. data/lib/DealMakerAPI/models/v1_entities_background_check_search.rb +12 -17
  33. data/lib/DealMakerAPI/models/v1_entities_bulk_upload.rb +12 -17
  34. data/lib/DealMakerAPI/models/v1_entities_bulk_upload_detail.rb +12 -17
  35. data/lib/DealMakerAPI/models/v1_entities_bulk_upload_details.rb +215 -0
  36. data/lib/DealMakerAPI/models/v1_entities_bulk_uploads.rb +215 -0
  37. data/lib/DealMakerAPI/models/v1_entities_company.rb +12 -17
  38. data/lib/DealMakerAPI/models/v1_entities_company_deal.rb +12 -17
  39. data/lib/DealMakerAPI/models/v1_entities_company_deals.rb +12 -17
  40. data/lib/DealMakerAPI/models/v1_entities_deal.rb +12 -17
  41. data/lib/DealMakerAPI/models/v1_entities_deal_enterprise.rb +12 -17
  42. data/lib/DealMakerAPI/models/v1_entities_deal_funding_metrics.rb +12 -17
  43. data/lib/DealMakerAPI/models/v1_entities_deal_investor_metrics.rb +12 -17
  44. data/lib/DealMakerAPI/models/v1_entities_deal_issuer.rb +12 -17
  45. data/lib/DealMakerAPI/models/v1_entities_deal_setup.rb +12 -17
  46. data/lib/DealMakerAPI/models/v1_entities_deal_setup_user.rb +12 -17
  47. data/lib/DealMakerAPI/models/v1_entities_deals.rb +12 -17
  48. data/lib/DealMakerAPI/models/v1_entities_express_wire_instruction.rb +12 -17
  49. data/lib/DealMakerAPI/models/v1_entities_express_wire_instructions.rb +12 -17
  50. data/lib/DealMakerAPI/models/v1_entities_investor.rb +12 -17
  51. data/lib/DealMakerAPI/models/v1_entities_investor_otp_access_link.rb +12 -17
  52. data/lib/DealMakerAPI/models/v1_entities_investor_profile_address.rb +12 -17
  53. data/lib/DealMakerAPI/models/v1_entities_investor_profile_corporation.rb +12 -17
  54. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_account_holder.rb +12 -17
  55. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_corporation.rb +12 -17
  56. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_primary_holder.rb +12 -17
  57. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_trust.rb +12 -17
  58. data/lib/DealMakerAPI/models/v1_entities_investor_profile_individual.rb +12 -17
  59. data/lib/DealMakerAPI/models/v1_entities_investor_profile_item.rb +12 -17
  60. data/lib/DealMakerAPI/models/v1_entities_investor_profile_joint.rb +12 -17
  61. data/lib/DealMakerAPI/models/v1_entities_investor_profile_owner.rb +12 -17
  62. data/lib/DealMakerAPI/models/v1_entities_investor_profile_trust.rb +12 -17
  63. data/lib/DealMakerAPI/models/v1_entities_investor_profiles.rb +12 -17
  64. data/lib/DealMakerAPI/models/v1_entities_investor_user.rb +12 -17
  65. data/lib/DealMakerAPI/models/v1_entities_investors.rb +12 -17
  66. data/lib/DealMakerAPI/models/v1_entities_presigned_url_result.rb +12 -17
  67. data/lib/DealMakerAPI/models/v1_entities_shareholder.rb +12 -17
  68. data/lib/DealMakerAPI/models/v1_entities_shareholders.rb +12 -17
  69. data/lib/DealMakerAPI/models/v1_entities_shareholders_tags.rb +12 -17
  70. data/lib/DealMakerAPI/models/v1_entities_subscription_agreement.rb +12 -17
  71. data/lib/DealMakerAPI/models/v1_entities_webhooks_deal.rb +12 -17
  72. data/lib/DealMakerAPI/models/v1_entities_webhooks_security_token.rb +12 -17
  73. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription.rb +12 -17
  74. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deal.rb +12 -17
  75. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deals.rb +12 -17
  76. data/lib/DealMakerAPI/version.rb +1 -1
  77. data/lib/DealMakerAPI.rb +2 -0
  78. data/spec/api/company_api_spec.rb +41 -0
  79. data/spec/models/v1_entities_bulk_upload_details_spec.rb +34 -0
  80. data/spec/models/v1_entities_bulk_uploads_spec.rb +34 -0
  81. metadata +10 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cbda96527d24da7071c8241944416a5911f0ba423c199ae1e1a9a6fad8da743
4
- data.tar.gz: 9300f5c3f1542606931accf38e7234ba7ffc2e389c1159b871a839fd7e436d64
3
+ metadata.gz: 0eaff854cc6f7be39e49a8e52adb0d441caf0f0f167120b9fa5883b596af1099
4
+ data.tar.gz: fb1c9f8c454c81e3bca79bc7970055e505cf4aebe46fe0eb5fef0966e52a7919
5
5
  SHA512:
6
- metadata.gz: d9d5576bb064ef18bae1c7151f98528607b960d2b9f5dde0827ecc723d08660a772c77f5ccfdbffd95fd3ad57588bbe80695defaf6ab46c03a7f09ed022ee611
7
- data.tar.gz: 382b9bfb6f7538b95e05f34804032ef7afb9f3e61aaf1dea82973436d4a64c755f47b20e8b04ee6f70a5c69ffb3f0cc9b6a693dad3dcb9dcbb092b119368e2ff
6
+ metadata.gz: 1af4ce98fd64e9e1c1ecf6c2d5a5519a7a7de75c9e3f9fe80916c2f8d8a0b657e46c91288e633a2e2ba88c4e95d0fc0afca1b0555d489af971a90e36bf77a688
7
+ data.tar.gz: 18939a1f8b934f24c34e5ed53b1deac7d9cecf5038e72970803d74c2443a35302ab7e3a54f7a349be3ed5ce13765c94f48d3e0d27b829e106c2acc4bbb654096
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.83.0
341
+ - Package version: 0.83.2
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.83.0.gem
357
+ gem install ./DealMakerAPI-0.83.2.gem
358
358
  ```
359
359
 
360
- (for development, run `gem install --dev ./DealMakerAPI-0.83.0.gem` to install the development dependencies)
360
+ (for development, run `gem install --dev ./DealMakerAPI-0.83.2.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.83.0'
366
+ gem 'DealMakerAPI', '~> 0.83.2'
367
367
 
368
368
  ### Install from Git
369
369
 
@@ -413,6 +413,9 @@ Class | Method | HTTP request | Description
413
413
  *DealMakerAPI::CompanyApi* | [**create_bulk_upload**](docs/CompanyApi.md#create_bulk_upload) | **POST** /companies/{id}/documents/bulk_uploads | Create bulk upload record
414
414
  *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
415
415
  *DealMakerAPI::CompanyApi* | [**create_company**](docs/CompanyApi.md#create_company) | **POST** /companies | Create new company
416
+ *DealMakerAPI::CompanyApi* | [**get_bulk_upload_details**](docs/CompanyApi.md#get_bulk_upload_details) | **GET** /companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details | Return full list of bulk upload details order by status desc and id asc
417
+ *DealMakerAPI::CompanyApi* | [**get_bulk_upload_details_by_status**](docs/CompanyApi.md#get_bulk_upload_details_by_status) | **GET** /companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details/group_by_status | Return bulk upload details grouped by status
418
+ *DealMakerAPI::CompanyApi* | [**get_bulk_uploads**](docs/CompanyApi.md#get_bulk_uploads) | **GET** /companies/{id}/documents/bulk_uploads | Return bulk uploads
416
419
  *DealMakerAPI::CompanyApi* | [**get_companies**](docs/CompanyApi.md#get_companies) | **GET** /companies | Get list of Companies
417
420
  *DealMakerAPI::CompanyApi* | [**get_company**](docs/CompanyApi.md#get_company) | **GET** /companies/{id} | Get a Company
418
421
  *DealMakerAPI::DealApi* | [**get_analytics_dashboard_info**](docs/DealApi.md#get_analytics_dashboard_info) | **GET** /deals/{id}/analytics_dashboard_info | Get Analytics Dashboard Info
@@ -483,6 +486,8 @@ Class | Method | HTTP request | Description
483
486
  - [DealMakerAPI::V1EntitiesBackgroundCheckSearch](docs/V1EntitiesBackgroundCheckSearch.md)
484
487
  - [DealMakerAPI::V1EntitiesBulkUpload](docs/V1EntitiesBulkUpload.md)
485
488
  - [DealMakerAPI::V1EntitiesBulkUploadDetail](docs/V1EntitiesBulkUploadDetail.md)
489
+ - [DealMakerAPI::V1EntitiesBulkUploadDetails](docs/V1EntitiesBulkUploadDetails.md)
490
+ - [DealMakerAPI::V1EntitiesBulkUploads](docs/V1EntitiesBulkUploads.md)
486
491
  - [DealMakerAPI::V1EntitiesCompany](docs/V1EntitiesCompany.md)
487
492
  - [DealMakerAPI::V1EntitiesCompanyDeal](docs/V1EntitiesCompanyDeal.md)
488
493
  - [DealMakerAPI::V1EntitiesCompanyDeals](docs/V1EntitiesCompanyDeals.md)
data/docs/CompanyApi.md CHANGED
@@ -7,6 +7,9 @@ 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
+ | [**get_bulk_upload_details**](CompanyApi.md#get_bulk_upload_details) | **GET** /companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details | Return full list of bulk upload details order by status desc and id asc |
11
+ | [**get_bulk_upload_details_by_status**](CompanyApi.md#get_bulk_upload_details_by_status) | **GET** /companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details/group_by_status | Return bulk upload details grouped by status |
12
+ | [**get_bulk_uploads**](CompanyApi.md#get_bulk_uploads) | **GET** /companies/{id}/documents/bulk_uploads | Return bulk uploads |
10
13
  | [**get_companies**](CompanyApi.md#get_companies) | **GET** /companies | Get list of Companies |
11
14
  | [**get_company**](CompanyApi.md#get_company) | **GET** /companies/{id} | Get a Company |
12
15
 
@@ -215,6 +218,216 @@ No authorization required
215
218
  - **Accept**: application/json
216
219
 
217
220
 
221
+ ## get_bulk_upload_details
222
+
223
+ > <V1EntitiesBulkUploadDetails> get_bulk_upload_details(company_id, bulk_upload_id)
224
+
225
+ Return full list of bulk upload details order by status desc and id asc
226
+
227
+ Return full list of bulk upload details
228
+
229
+ ### Examples
230
+
231
+ ```ruby
232
+ require 'time'
233
+ require 'DealMakerAPI'
234
+ # setup authorization
235
+ DealMakerAPI.configure do |config|end
236
+
237
+ api_instance = DealMakerAPI::CompanyApi.new
238
+ company_id = 56 # Integer |
239
+ bulk_upload_id = 56 # Integer |
240
+
241
+ begin
242
+ # Return full list of bulk upload details order by status desc and id asc
243
+ result = api_instance.get_bulk_upload_details(company_id, bulk_upload_id)
244
+ p result
245
+ rescue DealMakerAPI::ApiError => e
246
+ puts "Error when calling CompanyApi->get_bulk_upload_details: #{e}"
247
+ end
248
+ ```
249
+
250
+ #### Using the get_bulk_upload_details_with_http_info variant
251
+
252
+ This returns an Array which contains the response data, status code and headers.
253
+
254
+ > <Array(<V1EntitiesBulkUploadDetails>, Integer, Hash)> get_bulk_upload_details_with_http_info(company_id, bulk_upload_id)
255
+
256
+ ```ruby
257
+ begin
258
+ # Return full list of bulk upload details order by status desc and id asc
259
+ data, status_code, headers = api_instance.get_bulk_upload_details_with_http_info(company_id, bulk_upload_id)
260
+ p status_code # => 2xx
261
+ p headers # => { ... }
262
+ p data # => <V1EntitiesBulkUploadDetails>
263
+ rescue DealMakerAPI::ApiError => e
264
+ puts "Error when calling CompanyApi->get_bulk_upload_details_with_http_info: #{e}"
265
+ end
266
+ ```
267
+
268
+ ### Parameters
269
+
270
+ | Name | Type | Description | Notes |
271
+ | ---- | ---- | ----------- | ----- |
272
+ | **company_id** | **Integer** | | |
273
+ | **bulk_upload_id** | **Integer** | | |
274
+
275
+ ### Return type
276
+
277
+ [**V1EntitiesBulkUploadDetails**](V1EntitiesBulkUploadDetails.md)
278
+
279
+ ### Authorization
280
+
281
+ No authorization required
282
+
283
+ ### HTTP request headers
284
+
285
+ - **Content-Type**: Not defined
286
+ - **Accept**: application/json
287
+
288
+
289
+ ## get_bulk_upload_details_by_status
290
+
291
+ > <V1EntitiesBulkUploadDetails> get_bulk_upload_details_by_status(company_id, bulk_upload_id)
292
+
293
+ Return bulk upload details grouped by status
294
+
295
+ Return bulk upload details grouped by status
296
+
297
+ ### Examples
298
+
299
+ ```ruby
300
+ require 'time'
301
+ require 'DealMakerAPI'
302
+ # setup authorization
303
+ DealMakerAPI.configure do |config|end
304
+
305
+ api_instance = DealMakerAPI::CompanyApi.new
306
+ company_id = 56 # Integer |
307
+ bulk_upload_id = 56 # Integer |
308
+
309
+ begin
310
+ # Return bulk upload details grouped by status
311
+ result = api_instance.get_bulk_upload_details_by_status(company_id, bulk_upload_id)
312
+ p result
313
+ rescue DealMakerAPI::ApiError => e
314
+ puts "Error when calling CompanyApi->get_bulk_upload_details_by_status: #{e}"
315
+ end
316
+ ```
317
+
318
+ #### Using the get_bulk_upload_details_by_status_with_http_info variant
319
+
320
+ This returns an Array which contains the response data, status code and headers.
321
+
322
+ > <Array(<V1EntitiesBulkUploadDetails>, Integer, Hash)> get_bulk_upload_details_by_status_with_http_info(company_id, bulk_upload_id)
323
+
324
+ ```ruby
325
+ begin
326
+ # Return bulk upload details grouped by status
327
+ data, status_code, headers = api_instance.get_bulk_upload_details_by_status_with_http_info(company_id, bulk_upload_id)
328
+ p status_code # => 2xx
329
+ p headers # => { ... }
330
+ p data # => <V1EntitiesBulkUploadDetails>
331
+ rescue DealMakerAPI::ApiError => e
332
+ puts "Error when calling CompanyApi->get_bulk_upload_details_by_status_with_http_info: #{e}"
333
+ end
334
+ ```
335
+
336
+ ### Parameters
337
+
338
+ | Name | Type | Description | Notes |
339
+ | ---- | ---- | ----------- | ----- |
340
+ | **company_id** | **Integer** | | |
341
+ | **bulk_upload_id** | **Integer** | | |
342
+
343
+ ### Return type
344
+
345
+ [**V1EntitiesBulkUploadDetails**](V1EntitiesBulkUploadDetails.md)
346
+
347
+ ### Authorization
348
+
349
+ No authorization required
350
+
351
+ ### HTTP request headers
352
+
353
+ - **Content-Type**: Not defined
354
+ - **Accept**: application/json
355
+
356
+
357
+ ## get_bulk_uploads
358
+
359
+ > <V1EntitiesBulkUploads> get_bulk_uploads(id, opts)
360
+
361
+ Return bulk uploads
362
+
363
+ Return bulk uploads
364
+
365
+ ### Examples
366
+
367
+ ```ruby
368
+ require 'time'
369
+ require 'DealMakerAPI'
370
+ # setup authorization
371
+ DealMakerAPI.configure do |config|end
372
+
373
+ api_instance = DealMakerAPI::CompanyApi.new
374
+ id = 56 # Integer |
375
+ opts = {
376
+ page: 56, # Integer | Page offset to fetch.
377
+ per_page: 56, # Integer | Number of results to return per page.
378
+ offset: 56 # Integer | Pad a number of results.
379
+ }
380
+
381
+ begin
382
+ # Return bulk uploads
383
+ result = api_instance.get_bulk_uploads(id, opts)
384
+ p result
385
+ rescue DealMakerAPI::ApiError => e
386
+ puts "Error when calling CompanyApi->get_bulk_uploads: #{e}"
387
+ end
388
+ ```
389
+
390
+ #### Using the get_bulk_uploads_with_http_info variant
391
+
392
+ This returns an Array which contains the response data, status code and headers.
393
+
394
+ > <Array(<V1EntitiesBulkUploads>, Integer, Hash)> get_bulk_uploads_with_http_info(id, opts)
395
+
396
+ ```ruby
397
+ begin
398
+ # Return bulk uploads
399
+ data, status_code, headers = api_instance.get_bulk_uploads_with_http_info(id, opts)
400
+ p status_code # => 2xx
401
+ p headers # => { ... }
402
+ p data # => <V1EntitiesBulkUploads>
403
+ rescue DealMakerAPI::ApiError => e
404
+ puts "Error when calling CompanyApi->get_bulk_uploads_with_http_info: #{e}"
405
+ end
406
+ ```
407
+
408
+ ### Parameters
409
+
410
+ | Name | Type | Description | Notes |
411
+ | ---- | ---- | ----------- | ----- |
412
+ | **id** | **Integer** | | |
413
+ | **page** | **Integer** | Page offset to fetch. | [optional][default to 1] |
414
+ | **per_page** | **Integer** | Number of results to return per page. | [optional][default to 25] |
415
+ | **offset** | **Integer** | Pad a number of results. | [optional][default to 0] |
416
+
417
+ ### Return type
418
+
419
+ [**V1EntitiesBulkUploads**](V1EntitiesBulkUploads.md)
420
+
421
+ ### Authorization
422
+
423
+ No authorization required
424
+
425
+ ### HTTP request headers
426
+
427
+ - **Content-Type**: Not defined
428
+ - **Accept**: application/json
429
+
430
+
218
431
  ## get_companies
219
432
 
220
433
  > <V1EntitiesCompany> get_companies(opts)
@@ -0,0 +1,18 @@
1
+ # DealMakerAPI::V1EntitiesBulkUploadDetails
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | [**V1EntitiesBulkUploadDetail**](V1EntitiesBulkUploadDetail.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'DealMakerAPI'
13
+
14
+ instance = DealMakerAPI::V1EntitiesBulkUploadDetails.new(
15
+ items: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # DealMakerAPI::V1EntitiesBulkUploads
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | [**V1EntitiesBulkUpload**](V1EntitiesBulkUpload.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'DealMakerAPI'
13
+
14
+ instance = DealMakerAPI::V1EntitiesBulkUploads.new(
15
+ items: null
16
+ )
17
+ ```
18
+
@@ -241,6 +241,216 @@ module DealMakerAPI
241
241
  return data, status_code, headers
242
242
  end
243
243
 
244
+ # Return full list of bulk upload details order by status desc and id asc
245
+ # Return full list of bulk upload details
246
+ # @param company_id [Integer]
247
+ # @param bulk_upload_id [Integer]
248
+ # @param [Hash] opts the optional parameters
249
+ # @return [V1EntitiesBulkUploadDetails]
250
+ def get_bulk_upload_details(company_id, bulk_upload_id, opts = {})
251
+ data, _status_code, _headers = get_bulk_upload_details_with_http_info(company_id, bulk_upload_id, opts)
252
+ data
253
+ end
254
+
255
+ # Return full list of bulk upload details order by status desc and id asc
256
+ # Return full list of bulk upload details
257
+ # @param company_id [Integer]
258
+ # @param bulk_upload_id [Integer]
259
+ # @param [Hash] opts the optional parameters
260
+ # @return [Array<(V1EntitiesBulkUploadDetails, Integer, Hash)>] V1EntitiesBulkUploadDetails data, response status code and response headers
261
+ def get_bulk_upload_details_with_http_info(company_id, bulk_upload_id, opts = {})
262
+ if @api_client.config.debugging
263
+ @api_client.config.logger.debug 'Calling API: CompanyApi.get_bulk_upload_details ...'
264
+ end
265
+ # verify the required parameter 'company_id' is set
266
+ if @api_client.config.client_side_validation && company_id.nil?
267
+ fail ArgumentError, "Missing the required parameter 'company_id' when calling CompanyApi.get_bulk_upload_details"
268
+ end
269
+ # verify the required parameter 'bulk_upload_id' is set
270
+ if @api_client.config.client_side_validation && bulk_upload_id.nil?
271
+ fail ArgumentError, "Missing the required parameter 'bulk_upload_id' when calling CompanyApi.get_bulk_upload_details"
272
+ end
273
+ # resource path
274
+ local_var_path = '/companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'bulk_upload_id' + '}', CGI.escape(bulk_upload_id.to_s))
275
+
276
+ # query parameters
277
+ query_params = opts[:query_params] || {}
278
+
279
+ # header parameters
280
+ header_params = opts[:header_params] || {}
281
+ # HTTP header 'Accept' (if needed)
282
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
283
+
284
+ # form parameters
285
+ form_params = opts[:form_params] || {}
286
+
287
+ # http body (model)
288
+ post_body = opts[:debug_body]
289
+
290
+ # return_type
291
+ return_type = opts[:debug_return_type] || 'V1EntitiesBulkUploadDetails'
292
+
293
+ # auth_names
294
+ auth_names = opts[:debug_auth_names] || []
295
+
296
+ new_options = opts.merge(
297
+ :operation => :"CompanyApi.get_bulk_upload_details",
298
+ :header_params => header_params,
299
+ :query_params => query_params,
300
+ :form_params => form_params,
301
+ :body => post_body,
302
+ :auth_names => auth_names,
303
+ :return_type => return_type
304
+ )
305
+
306
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
307
+ if @api_client.config.debugging
308
+ @api_client.config.logger.debug "API called: CompanyApi#get_bulk_upload_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
309
+ end
310
+ return data, status_code, headers
311
+ end
312
+
313
+ # Return bulk upload details grouped by status
314
+ # Return bulk upload details grouped by status
315
+ # @param company_id [Integer]
316
+ # @param bulk_upload_id [Integer]
317
+ # @param [Hash] opts the optional parameters
318
+ # @return [V1EntitiesBulkUploadDetails]
319
+ def get_bulk_upload_details_by_status(company_id, bulk_upload_id, opts = {})
320
+ data, _status_code, _headers = get_bulk_upload_details_by_status_with_http_info(company_id, bulk_upload_id, opts)
321
+ data
322
+ end
323
+
324
+ # Return bulk upload details grouped by status
325
+ # Return bulk upload details grouped by status
326
+ # @param company_id [Integer]
327
+ # @param bulk_upload_id [Integer]
328
+ # @param [Hash] opts the optional parameters
329
+ # @return [Array<(V1EntitiesBulkUploadDetails, Integer, Hash)>] V1EntitiesBulkUploadDetails data, response status code and response headers
330
+ def get_bulk_upload_details_by_status_with_http_info(company_id, bulk_upload_id, opts = {})
331
+ if @api_client.config.debugging
332
+ @api_client.config.logger.debug 'Calling API: CompanyApi.get_bulk_upload_details_by_status ...'
333
+ end
334
+ # verify the required parameter 'company_id' is set
335
+ if @api_client.config.client_side_validation && company_id.nil?
336
+ fail ArgumentError, "Missing the required parameter 'company_id' when calling CompanyApi.get_bulk_upload_details_by_status"
337
+ end
338
+ # verify the required parameter 'bulk_upload_id' is set
339
+ if @api_client.config.client_side_validation && bulk_upload_id.nil?
340
+ fail ArgumentError, "Missing the required parameter 'bulk_upload_id' when calling CompanyApi.get_bulk_upload_details_by_status"
341
+ end
342
+ # resource path
343
+ local_var_path = '/companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details/group_by_status'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'bulk_upload_id' + '}', CGI.escape(bulk_upload_id.to_s))
344
+
345
+ # query parameters
346
+ query_params = opts[:query_params] || {}
347
+
348
+ # header parameters
349
+ header_params = opts[:header_params] || {}
350
+ # HTTP header 'Accept' (if needed)
351
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
352
+
353
+ # form parameters
354
+ form_params = opts[:form_params] || {}
355
+
356
+ # http body (model)
357
+ post_body = opts[:debug_body]
358
+
359
+ # return_type
360
+ return_type = opts[:debug_return_type] || 'V1EntitiesBulkUploadDetails'
361
+
362
+ # auth_names
363
+ auth_names = opts[:debug_auth_names] || []
364
+
365
+ new_options = opts.merge(
366
+ :operation => :"CompanyApi.get_bulk_upload_details_by_status",
367
+ :header_params => header_params,
368
+ :query_params => query_params,
369
+ :form_params => form_params,
370
+ :body => post_body,
371
+ :auth_names => auth_names,
372
+ :return_type => return_type
373
+ )
374
+
375
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
376
+ if @api_client.config.debugging
377
+ @api_client.config.logger.debug "API called: CompanyApi#get_bulk_upload_details_by_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
378
+ end
379
+ return data, status_code, headers
380
+ end
381
+
382
+ # Return bulk uploads
383
+ # Return bulk uploads
384
+ # @param id [Integer]
385
+ # @param [Hash] opts the optional parameters
386
+ # @option opts [Integer] :page Page offset to fetch. (default to 1)
387
+ # @option opts [Integer] :per_page Number of results to return per page. (default to 25)
388
+ # @option opts [Integer] :offset Pad a number of results. (default to 0)
389
+ # @return [V1EntitiesBulkUploads]
390
+ def get_bulk_uploads(id, opts = {})
391
+ data, _status_code, _headers = get_bulk_uploads_with_http_info(id, opts)
392
+ data
393
+ end
394
+
395
+ # Return bulk uploads
396
+ # Return bulk uploads
397
+ # @param id [Integer]
398
+ # @param [Hash] opts the optional parameters
399
+ # @option opts [Integer] :page Page offset to fetch. (default to 1)
400
+ # @option opts [Integer] :per_page Number of results to return per page. (default to 25)
401
+ # @option opts [Integer] :offset Pad a number of results. (default to 0)
402
+ # @return [Array<(V1EntitiesBulkUploads, Integer, Hash)>] V1EntitiesBulkUploads data, response status code and response headers
403
+ def get_bulk_uploads_with_http_info(id, opts = {})
404
+ if @api_client.config.debugging
405
+ @api_client.config.logger.debug 'Calling API: CompanyApi.get_bulk_uploads ...'
406
+ end
407
+ # verify the required parameter 'id' is set
408
+ if @api_client.config.client_side_validation && id.nil?
409
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompanyApi.get_bulk_uploads"
410
+ end
411
+ # resource path
412
+ local_var_path = '/companies/{id}/documents/bulk_uploads'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
413
+
414
+ # query parameters
415
+ query_params = opts[:query_params] || {}
416
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
417
+ query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
418
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
419
+
420
+ # header parameters
421
+ header_params = opts[:header_params] || {}
422
+ # HTTP header 'Accept' (if needed)
423
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
424
+
425
+ # form parameters
426
+ form_params = opts[:form_params] || {}
427
+
428
+ # http body (model)
429
+ post_body = opts[:debug_body]
430
+
431
+ # return_type
432
+ return_type = opts[:debug_return_type] || 'V1EntitiesBulkUploads'
433
+
434
+ # auth_names
435
+ auth_names = opts[:debug_auth_names] || []
436
+
437
+ new_options = opts.merge(
438
+ :operation => :"CompanyApi.get_bulk_uploads",
439
+ :header_params => header_params,
440
+ :query_params => query_params,
441
+ :form_params => form_params,
442
+ :body => post_body,
443
+ :auth_names => auth_names,
444
+ :return_type => return_type
445
+ )
446
+
447
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
448
+ if @api_client.config.debugging
449
+ @api_client.config.logger.debug "API called: CompanyApi#get_bulk_uploads\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
450
+ end
451
+ return data, status_code, headers
452
+ end
453
+
244
454
  # Get list of Companies
245
455
  # Get companies
246
456
  # @param [Hash] opts the optional parameters
@@ -152,7 +152,7 @@ module DealMakerAPI
152
152
  @scheme = 'http'
153
153
  @host = 'api.dealmaker.tech'
154
154
  @base_path = ''
155
- @server_index = 0
155
+ @server_index = nil
156
156
  @server_operation_index = {}
157
157
  @server_variables = {}
158
158
  @server_operation_variables = {}
@@ -200,10 +200,12 @@ module DealMakerAPI
200
200
 
201
201
  # Returns base URL for specified operation based on server settings
202
202
  def base_url(operation = nil)
203
- index = server_operation_index[operation]
204
- return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if index == nil
205
-
206
- server_url(index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
203
+ if operation_server_settings.key?(operation) then
204
+ index = server_operation_index.fetch(operation, server_index)
205
+ server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
206
+ else
207
+ server_index.nil? ? "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') : server_url(server_index, server_variables, nil)
208
+ end
207
209
  end
208
210
 
209
211
  # Gets API key (with prefix if set).
@@ -258,8 +260,8 @@ module DealMakerAPI
258
260
  servers = server_settings if servers == nil
259
261
 
260
262
  # check array index out of bound
261
- if (index < 0 || index >= servers.size)
262
- fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}"
263
+ if (index.nil? || index < 0 || index >= servers.size)
264
+ fail ArgumentError, "Invalid index #{index} when selecting the server. Must not be nil and must be less than #{servers.size}"
263
265
  end
264
266
 
265
267
  server = servers[index]
@@ -65,6 +65,8 @@ module DealMakerAPI
65
65
 
66
66
  if attributes.key?(:'file')
67
67
  self.file = attributes[:'file']
68
+ else
69
+ self.file = nil
68
70
  end
69
71
 
70
72
  if attributes.key?(:'caption')
@@ -75,6 +77,7 @@ module DealMakerAPI
75
77
  # Show invalid properties with the reasons. Usually used together with valid?
76
78
  # @return Array for valid properties with the reasons
77
79
  def list_invalid_properties
80
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
81
  invalid_properties = Array.new
79
82
  if @file.nil?
80
83
  invalid_properties.push('invalid value for "file", file cannot be nil.')
@@ -86,6 +89,7 @@ module DealMakerAPI
86
89
  # Check to see if the all the properties in the model are valid
87
90
  # @return true if the model is valid
88
91
  def valid?
92
+ warn '[DEPRECATED] the `valid?` method is obsolete'
89
93
  return false if @file.nil?
90
94
  true
91
95
  end
@@ -115,37 +119,30 @@ module DealMakerAPI
115
119
  # @param [Hash] attributes Model attributes in the form of hash
116
120
  # @return [Object] Returns the model itself
117
121
  def self.build_from_hash(attributes)
118
- new.build_from_hash(attributes)
119
- end
120
-
121
- # Builds the object from hash
122
- # @param [Hash] attributes Model attributes in the form of hash
123
- # @return [Object] Returns the model itself
124
- def build_from_hash(attributes)
125
122
  return nil unless attributes.is_a?(Hash)
126
123
  attributes = attributes.transform_keys(&:to_sym)
127
- self.class.openapi_types.each_pair do |key, type|
128
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
129
- self.send("#{key}=", nil)
124
+ transformed_hash = {}
125
+ openapi_types.each_pair do |key, type|
126
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
127
+ transformed_hash["#{key}"] = nil
130
128
  elsif type =~ /\AArray<(.*)>/i
131
129
  # check to ensure the input is an array given that the attribute
132
130
  # is documented as an array but the input is not
133
- if attributes[self.class.attribute_map[key]].is_a?(Array)
134
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
131
+ if attributes[attribute_map[key]].is_a?(Array)
132
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
135
133
  end
136
- elsif !attributes[self.class.attribute_map[key]].nil?
137
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
134
+ elsif !attributes[attribute_map[key]].nil?
135
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
138
136
  end
139
137
  end
140
-
141
- self
138
+ new(transformed_hash)
142
139
  end
143
140
 
144
141
  # Deserializes the data based on type
145
142
  # @param string type Data type
146
143
  # @param string value Value to be deserialized
147
144
  # @return [Object] Deserialized data
148
- def _deserialize(type, value)
145
+ def self._deserialize(type, value)
149
146
  case type.to_sym
150
147
  when :Time
151
148
  Time.parse(value)