freeclimb 5.2.0 → 5.4.0

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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -2
  3. data/Gemfile.lock +3 -3
  4. data/README.md +31 -4
  5. data/docs/AvailableNumber.md +0 -4
  6. data/docs/BlobListResponse.md +32 -0
  7. data/docs/BlobResult.md +32 -0
  8. data/docs/CallResult.md +2 -2
  9. data/docs/CreateBlobRequest.md +22 -0
  10. data/docs/CreateConference.md +4 -2
  11. data/docs/DefaultApi.md +835 -25
  12. data/docs/ExportList.md +32 -0
  13. data/docs/ExportOutputType.md +16 -0
  14. data/docs/ExportRequest.md +24 -0
  15. data/docs/ExportRequestOutput.md +18 -0
  16. data/docs/ExportResourceType.md +17 -0
  17. data/docs/ExportResult.md +40 -0
  18. data/docs/ExportResultOutput.md +18 -0
  19. data/docs/ExportStatus.md +21 -0
  20. data/docs/IncomingNumberResult.md +0 -4
  21. data/docs/ModifyBlobRequest.md +20 -0
  22. data/docs/PlatformError.md +24 -0
  23. data/docs/ReplaceBlobRequest.md +18 -0
  24. data/docs/Say.md +2 -0
  25. data/docs/TTSEngine.md +20 -0
  26. data/docs/TTSEngineName.md +18 -0
  27. data/lib/freeclimb/api/default_api.rb +1032 -12
  28. data/lib/freeclimb/models/available_number.rb +1 -23
  29. data/lib/freeclimb/models/blob_list_response.rb +303 -0
  30. data/lib/freeclimb/models/blob_result.rb +332 -0
  31. data/lib/freeclimb/models/call_result.rb +8 -8
  32. data/lib/freeclimb/models/create_blob_request.rb +255 -0
  33. data/lib/freeclimb/models/create_conference.rb +15 -5
  34. data/lib/freeclimb/models/export_list.rb +304 -0
  35. data/lib/freeclimb/models/export_output_type.rb +34 -0
  36. data/lib/freeclimb/models/export_request.rb +276 -0
  37. data/lib/freeclimb/models/export_request_output.rb +243 -0
  38. data/lib/freeclimb/models/export_resource_type.rb +35 -0
  39. data/lib/freeclimb/models/export_result.rb +405 -0
  40. data/lib/freeclimb/models/export_result_output.rb +243 -0
  41. data/lib/freeclimb/models/export_status.rb +39 -0
  42. data/lib/freeclimb/models/incoming_number_result.rb +1 -23
  43. data/lib/freeclimb/models/modify_blob_request.rb +245 -0
  44. data/lib/freeclimb/models/platform_error.rb +244 -0
  45. data/lib/freeclimb/models/replace_blob_request.rb +221 -0
  46. data/lib/freeclimb/models/say.rb +10 -1
  47. data/lib/freeclimb/models/tts_engine.rb +250 -0
  48. data/lib/freeclimb/models/tts_engine_name.rb +36 -0
  49. data/lib/freeclimb/version.rb +1 -1
  50. data/lib/freeclimb.rb +16 -0
  51. data/openapi.json +1245 -80
  52. data/spec/api/default_api_spec.rb +328 -33
  53. data/spec/models/account_result_spec.rb +3 -3
  54. data/spec/models/available_number_spec.rb +3 -98
  55. data/spec/models/blob_list_response_spec.rb +502 -0
  56. data/spec/models/blob_result_spec.rb +489 -0
  57. data/spec/models/call_result_spec.rb +39 -39
  58. data/spec/models/conference_result_spec.rb +3 -3
  59. data/spec/models/create_blob_request_spec.rb +273 -0
  60. data/spec/models/create_conference_spec.rb +83 -35
  61. data/spec/models/export_list_spec.rb +502 -0
  62. data/spec/models/export_output_type_spec.rb +43 -0
  63. data/spec/models/export_request_output_spec.rb +162 -0
  64. data/spec/models/export_request_spec.rb +320 -0
  65. data/spec/models/export_resource_type_spec.rb +59 -0
  66. data/spec/models/export_result_output_spec.rb +162 -0
  67. data/spec/models/export_result_spec.rb +718 -0
  68. data/spec/models/export_status_spec.rb +123 -0
  69. data/spec/models/incoming_number_result_spec.rb +6 -102
  70. data/spec/models/log_result_spec.rb +3 -3
  71. data/spec/models/message_result_spec.rb +3 -3
  72. data/spec/models/modify_blob_request_spec.rb +226 -0
  73. data/spec/models/platform_error_spec.rb +318 -0
  74. data/spec/models/queue_result_spec.rb +3 -3
  75. data/spec/models/replace_blob_request_spec.rb +176 -0
  76. data/spec/models/say_spec.rb +50 -0
  77. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +3 -3
  78. data/spec/models/transcribe_utterance_spec.rb +3 -3
  79. data/spec/models/tts_engine_name_spec.rb +75 -0
  80. data/spec/models/tts_engine_spec.rb +183 -0
  81. data/spec/spec_helper.rb +1 -1
  82. data/yarn.lock +29 -29
  83. metadata +50 -2
@@ -18,14 +18,15 @@ require "facets/string/snakecase"
18
18
  describe "DefaultApi" do
19
19
  before do
20
20
  # run before each test
21
+ @account_id_test_value = "AC0123456789abcdefABCDEF0123456789abcdef00"
21
22
  Freeclimb.configure do |config|
22
23
  # Configure HTTP basic authorization: fc
23
24
  config.scheme = "http"
24
25
  config.host = "http://127.0.0.1:4010/"
25
26
  config.base_path = "/"
26
27
  config.server_index = nil
27
- config.username = "ACCOUNT_ID"
28
- config.password = "API_KEY"
28
+ config.username = @account_id_test_value
29
+ config.password = "API_KEY56789abcdefABCDEF0123456789abcdef00"
29
30
  end
30
31
 
31
32
  @api_client = Freeclimb::ApiClient.new
@@ -252,6 +253,32 @@ describe "DefaultApi" do
252
253
  @knowledge_base_id_create_knowledge_base_completion_test_value = "knowledgeBaseId_example"
253
254
 
254
255
  @completion_request_create_knowledge_base_completion_test_value = Freeclimb::CompletionRequest.new({query: "query_example"})
256
+
257
+ @export_id_download_an_export_test_value = "download_exportId_example"
258
+
259
+ @export_id_delete_an_export_test_value = "delete_exportId_example"
260
+
261
+ @export_id_get_an_export_test_value = "get_exportId_example"
262
+
263
+ @create_blob_request_create_blob_test_value = Freeclimb::CreateBlobRequest.new({_alias: "alias_example", expires_at: "expires_at_example", blob: {}})
264
+
265
+ @blob_id_delete_blob_test_value = "BL0123456789abcdefABCDEF0123456789abcdef00"
266
+
267
+ @blob_id_get_blob_test_value = "BL0123456789abcdefABCDEF0123456789abcdef00"
268
+
269
+ @alias_list_blobs_test_value = "alias_example"
270
+
271
+ @blob_id_modify_blob_test_value = "BL0123456789abcdefABCDEF0123456789abcdef00"
272
+
273
+ @key_delete_blob_test_value = ["key_example"]
274
+
275
+ @cursor_list_blobs_test_value = "cursor_example"
276
+
277
+ @modify_blob_request_modify_blob_test_value = Freeclimb::ModifyBlobRequest.new({blob: {}, _alias: "alias_example"})
278
+
279
+ @replace_blob_request_replace_blob_test_value = Freeclimb::ReplaceBlobRequest.new({blob: {}})
280
+
281
+ @blob_id_replace_blob_test_value = "BL0123456789abcdefABCDEF0123456789abcdef00"
255
282
  end
256
283
 
257
284
  after do
@@ -348,6 +375,48 @@ describe "DefaultApi" do
348
375
  end
349
376
  end
350
377
 
378
+ # unit tests for create_blob
379
+ # Create a Blob
380
+ # Create a new Blob belonging to the requesting account.
381
+ # @param create_blob_request An object defining a new blob. A request body must be provided but the blob may be empty.
382
+ # @param [Hash] opts the optional parameters
383
+ # @return [BlobResult]
384
+ describe "create_blob test" do
385
+ it "should work" do
386
+ create_blob_request = @create_blob_request_create_blob_test_value
387
+
388
+ result = @api_instance.create_blob(
389
+ create_blob_request,
390
+ {}
391
+ )
392
+
393
+ expect(result).to be_a Freeclimb::BlobResult
394
+
395
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
396
+ end
397
+ end
398
+
399
+ # unit tests for create_export
400
+ # Create an Export
401
+ # @param [Hash] opts the optional parameters
402
+ # @option opts [ExportRequest] :export_request A JSON object containing export creation parameters
403
+ # @return [ExportResult]
404
+ describe "create_export test" do
405
+ it "should work" do
406
+ export_request = @export_request_create_export_test_value
407
+
408
+ result = @api_instance.create_export(
409
+ {
410
+ export_request: export_request
411
+ }
412
+ )
413
+
414
+ expect(result).to be_a Freeclimb::ExportResult
415
+
416
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
417
+ end
418
+ end
419
+
351
420
  # unit tests for create_knowledge_base_completion
352
421
  # Query the knowledge base
353
422
  # @param knowledge_base_id A string that uniquely identifies the KnowledgeBase resource.
@@ -410,6 +479,25 @@ describe "DefaultApi" do
410
479
  end
411
480
  end
412
481
 
482
+ # unit tests for delete_an_export
483
+ # Delete an Export
484
+ # @param export_id A string that uniquely identifies this export resource.
485
+ # @param [Hash] opts the optional parameters
486
+ # @return [nil]
487
+ describe "delete_an_export test" do
488
+ it "should work" do
489
+ export_id = @export_id_delete_an_export_test_value
490
+
491
+ result = @api_instance.delete_an_export(
492
+ export_id,
493
+ {}
494
+ )
495
+
496
+ expect(result).to be_nil
497
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
498
+ end
499
+ end
500
+
413
501
  # unit tests for delete_an_incoming_number
414
502
  # Delete an Incoming Number
415
503
  # @param phone_number_id String that uniquely identifies this phone number resource.
@@ -429,6 +517,27 @@ describe "DefaultApi" do
429
517
  end
430
518
  end
431
519
 
520
+ # unit tests for delete_blob
521
+ # Delete Blob
522
+ # Deletes a blob or specific keys from a blob. If no keys are specified in the request body, the entire blob is deleted (returns 204). If specific keys are provided, only those keys are removed and the remaining blob is returned (returns 200).
523
+ # @param blob_id String that uniquely identifies this Blob resource.
524
+ # @param [Hash] opts the optional parameters
525
+ # @return [BlobResult]
526
+ describe "delete_blob test" do
527
+ it "should work" do
528
+ blob_id = @blob_id_delete_blob_test_value
529
+
530
+ result = @api_instance.delete_blob(
531
+ blob_id,
532
+ {}
533
+ )
534
+
535
+ expect(result).to be_a Freeclimb::BlobResult
536
+
537
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
538
+ end
539
+ end
540
+
432
541
  # unit tests for dequeue_a_member
433
542
  # Dequeue a Member
434
543
  # @param queue_id String that uniquely identifies the Queue that the Member belongs to.
@@ -491,6 +600,25 @@ describe "DefaultApi" do
491
600
  end
492
601
  end
493
602
 
603
+ # unit tests for download_an_export
604
+ # Download an Export
605
+ # @param export_id A string that uniquely identifies this export resource.
606
+ # @param [Hash] opts the optional parameters
607
+ # @return [String]
608
+ describe "download_an_export test" do
609
+ it "should work" do
610
+ export_id = @export_id_download_an_export_test_value
611
+
612
+ result = @api_instance.download_an_export(
613
+ export_id,
614
+ {}
615
+ )
616
+ expect(result).to be_a String
617
+
618
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
619
+ end
620
+ end
621
+
494
622
  # unit tests for filter_logs
495
623
  # Filter Logs
496
624
  # @param filter_logs_request Filter logs request paramters
@@ -671,6 +799,26 @@ describe "DefaultApi" do
671
799
  end
672
800
  end
673
801
 
802
+ # unit tests for get_an_export
803
+ # Get an Export
804
+ # @param export_id A string that uniquely identifies this export resource.
805
+ # @param [Hash] opts the optional parameters
806
+ # @return [ExportResult]
807
+ describe "get_an_export test" do
808
+ it "should work" do
809
+ export_id = @export_id_get_an_export_test_value
810
+
811
+ result = @api_instance.get_an_export(
812
+ export_id,
813
+ {}
814
+ )
815
+
816
+ expect(result).to be_a Freeclimb::ExportResult
817
+
818
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
819
+ end
820
+ end
821
+
674
822
  # unit tests for get_an_incoming_number
675
823
  # Get an Incoming Number
676
824
  # @param phone_number_id String that uniquely identifies this phone number resource.
@@ -711,6 +859,27 @@ describe "DefaultApi" do
711
859
  end
712
860
  end
713
861
 
862
+ # unit tests for get_blob
863
+ # Get Blob
864
+ # Retrieves a specified blob
865
+ # @param blob_id String that uniquely identifies this Blob resource.
866
+ # @param [Hash] opts the optional parameters
867
+ # @return [BlobResult]
868
+ describe "get_blob test" do
869
+ it "should work" do
870
+ blob_id = @blob_id_get_blob_test_value
871
+
872
+ result = @api_instance.get_blob(
873
+ blob_id,
874
+ {}
875
+ )
876
+
877
+ expect(result).to be_a Freeclimb::BlobResult
878
+
879
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
880
+ end
881
+ end
882
+
714
883
  # unit tests for get_head_member
715
884
  # Get Head Member
716
885
  # @param queue_id String that uniquely identifies the Queue that the Member belongs to.
@@ -982,6 +1151,23 @@ describe "DefaultApi" do
982
1151
  end
983
1152
  end
984
1153
 
1154
+ # unit tests for list_blobs
1155
+ # List Blobs belonging to an account.
1156
+ # List Blobs belonging to an account. Results are returned in paginated lists mirroring other listing features in the API.
1157
+ # @param [Hash] opts the optional parameters
1158
+ # @return [BlobListResponse]
1159
+ describe "list_blobs test" do
1160
+ it "should work" do
1161
+ result = @api_instance.list_blobs(
1162
+ {}
1163
+ )
1164
+
1165
+ expect(result).to be_a Freeclimb::BlobListResponse
1166
+
1167
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1168
+ end
1169
+ end
1170
+
985
1171
  # unit tests for list_call_logs
986
1172
  # List Call Logs
987
1173
  # @param call_id String that uniquely identifies this call resource.
@@ -1037,6 +1223,8 @@ describe "DefaultApi" do
1037
1223
  # @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
1038
1224
  # @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
1039
1225
  # @option opts [Array<String>] :application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.
1226
+ # @option opts [Integer] :risk_score_min The minimum riskScore that should be included in the list.
1227
+ # @option opts [Integer] :risk_score_max The maximum riskScore that should be included in the list.
1040
1228
  # @return [CallList]
1041
1229
  describe "list_calls test" do
1042
1230
  it "should work" do
@@ -1048,10 +1236,12 @@ describe "DefaultApi" do
1048
1236
  end_time = @end_time_list_calls_test_value
1049
1237
  parent_call_id = @parent_call_id_list_calls_test_value
1050
1238
  application_id = @application_id_list_calls_test_value
1239
+ risk_score_min = @risk_score_min_list_calls_test_value
1240
+ risk_score_max = @risk_score_max_list_calls_test_value
1051
1241
 
1052
1242
  result = @api_instance.list_calls(
1053
1243
  {
1054
- active: active, to: to, from: from, status: status, start_time: start_time, end_time: end_time, parent_call_id: parent_call_id, application_id: application_id
1244
+ active: active, to: to, from: from, status: status, start_time: start_time, end_time: end_time, parent_call_id: parent_call_id, application_id: application_id, risk_score_min: risk_score_min, risk_score_max: risk_score_max
1055
1245
  }
1056
1246
  )
1057
1247
 
@@ -1114,6 +1304,29 @@ describe "DefaultApi" do
1114
1304
  end
1115
1305
  end
1116
1306
 
1307
+ # unit tests for list_exports
1308
+ # List Exports
1309
+ # @param [Hash] opts the optional parameters
1310
+ # @option opts [ExportStatus] :status Status of export
1311
+ # @option opts [String] :cursor Used to reference pages of a list of exports
1312
+ # @return [ExportList]
1313
+ describe "list_exports test" do
1314
+ it "should work" do
1315
+ status = @status_list_exports_test_value
1316
+ cursor = @cursor_list_exports_test_value
1317
+
1318
+ result = @api_instance.list_exports(
1319
+ {
1320
+ status: status, cursor: cursor
1321
+ }
1322
+ )
1323
+
1324
+ expect(result).to be_a Freeclimb::ExportList
1325
+
1326
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1327
+ end
1328
+ end
1329
+
1117
1330
  # unit tests for list_incoming_numbers
1118
1331
  # List Incoming Numbers
1119
1332
  # @param [Hash] opts the optional parameters
@@ -1123,8 +1336,6 @@ describe "DefaultApi" do
1123
1336
  # @option opts [String] :country Country of this phone number.
1124
1337
  # @option opts [String] :application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.
1125
1338
  # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it.
1126
- # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
1127
- # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
1128
1339
  # @option opts [Boolean] :has_campaign Indication of whether the phone number has a campaign associated with it
1129
1340
  # @option opts [Boolean] :capabilities_voice
1130
1341
  # @option opts [Boolean] :capabilities_sms
@@ -1142,8 +1353,6 @@ describe "DefaultApi" do
1142
1353
  country = @country_list_incoming_numbers_test_value
1143
1354
  application_id = @application_id_list_incoming_numbers_test_value
1144
1355
  has_application = @has_application_list_incoming_numbers_test_value
1145
- voice_enabled = @voice_enabled_list_incoming_numbers_test_value
1146
- sms_enabled = @sms_enabled_list_incoming_numbers_test_value
1147
1356
  has_campaign = @has_campaign_list_incoming_numbers_test_value
1148
1357
  capabilities_voice = @capabilities_voice_list_incoming_numbers_test_value
1149
1358
  capabilities_sms = @capabilities_sms_list_incoming_numbers_test_value
@@ -1155,7 +1364,7 @@ describe "DefaultApi" do
1155
1364
 
1156
1365
  result = @api_instance.list_incoming_numbers(
1157
1366
  {
1158
- phone_number: phone_number, _alias: _alias, region: region, country: country, application_id: application_id, has_application: has_application, voice_enabled: voice_enabled, sms_enabled: sms_enabled, has_campaign: has_campaign, capabilities_voice: capabilities_voice, capabilities_sms: capabilities_sms, capabilities_toll_free: capabilities_toll_free, capabilities_ten_dlc: capabilities_ten_dlc, capabilities_short_code: capabilities_short_code, tfn_campaign_id: tfn_campaign_id, offnet: offnet
1367
+ phone_number: phone_number, _alias: _alias, region: region, country: country, application_id: application_id, has_application: has_application, has_campaign: has_campaign, capabilities_voice: capabilities_voice, capabilities_sms: capabilities_sms, capabilities_toll_free: capabilities_toll_free, capabilities_ten_dlc: capabilities_ten_dlc, capabilities_short_code: capabilities_short_code, tfn_campaign_id: tfn_campaign_id, offnet: offnet
1159
1368
  }
1160
1369
  )
1161
1370
 
@@ -1313,6 +1522,29 @@ describe "DefaultApi" do
1313
1522
  end
1314
1523
  end
1315
1524
 
1525
+ # unit tests for modify_blob
1526
+ # Modify Blob
1527
+ # Modifys a pre existing blob by either adding new fields, or modifying existing fields
1528
+ # @param blob_id String that uniquely identifies this Blob resource.
1529
+ # @param modify_blob_request Request body to specify keys to modify. Or new keys to add onto the already existing blob
1530
+ # @param [Hash] opts the optional parameters
1531
+ # @return [BlobResult]
1532
+ describe "modify_blob test" do
1533
+ it "should work" do
1534
+ blob_id = @blob_id_modify_blob_test_value
1535
+ modify_blob_request = @modify_blob_request_modify_blob_test_value
1536
+
1537
+ result = @api_instance.modify_blob(
1538
+ blob_id, modify_blob_request,
1539
+ {}
1540
+ )
1541
+
1542
+ expect(result).to be_a Freeclimb::BlobResult
1543
+
1544
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1545
+ end
1546
+ end
1547
+
1316
1548
  # unit tests for remove_a_participant
1317
1549
  # Remove a Participant
1318
1550
  # @param conference_id ID of the conference this participant is in.
@@ -1334,6 +1566,29 @@ describe "DefaultApi" do
1334
1566
  end
1335
1567
  end
1336
1568
 
1569
+ # unit tests for replace_blob
1570
+ # Replace Blob
1571
+ # Replaces the blob content with the provided values.
1572
+ # @param blob_id String that uniquely identifies this Blob resource.
1573
+ # @param replace_blob_request JSON object containing blob key the contents of which will be used to override the enitre blob contents.
1574
+ # @param [Hash] opts the optional parameters
1575
+ # @return [BlobResult]
1576
+ describe "replace_blob test" do
1577
+ it "should work" do
1578
+ blob_id = @blob_id_replace_blob_test_value
1579
+ replace_blob_request = @replace_blob_request_replace_blob_test_value
1580
+
1581
+ result = @api_instance.replace_blob(
1582
+ blob_id, replace_blob_request,
1583
+ {}
1584
+ )
1585
+
1586
+ expect(result).to be_a Freeclimb::BlobResult
1587
+
1588
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1589
+ end
1590
+ end
1591
+
1337
1592
  # unit tests for send_an_sms_message
1338
1593
  # Send an SMS Message
1339
1594
  # @param message_request Details to create a message
@@ -1549,7 +1804,7 @@ describe "DefaultApi" do
1549
1804
  filter_logs_request,
1550
1805
  {}
1551
1806
  )
1552
- result.next_page_uri = "/Accounts/{accountId}/Logs?cursor=1"
1807
+ result.next_page_uri = "/Accounts/{accountId}/Logs?cursor=1".sub("{accountId}", @account_id_test_value)
1553
1808
  next_page_result = @api_instance.get_next_page(result)
1554
1809
  expect(next_page_result).to be_a Freeclimb::LogList
1555
1810
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1565,7 +1820,7 @@ describe "DefaultApi" do
1565
1820
  result = @api_instance.get_ten_dlc_sms_brands(
1566
1821
  {}
1567
1822
  )
1568
- result.next_page_uri = "/Accounts/{accountId}/Messages/10DLC/Brands?cursor=1"
1823
+ result.next_page_uri = "/Accounts/{accountId}/Messages/10DLC/Brands?cursor=1".sub("{accountId}", @account_id_test_value)
1569
1824
  next_page_result = @api_instance.get_next_page(result)
1570
1825
  expect(next_page_result).to be_a Freeclimb::SMSTenDLCBrandsListResult
1571
1826
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1586,7 +1841,7 @@ describe "DefaultApi" do
1586
1841
  brand_id: brand_id
1587
1842
  }
1588
1843
  )
1589
- result.next_page_uri = "/Accounts/{accountId}/Messages/10DLC/Campaigns?cursor=1"
1844
+ result.next_page_uri = "/Accounts/{accountId}/Messages/10DLC/Campaigns?cursor=1".sub("{accountId}", @account_id_test_value)
1590
1845
  next_page_result = @api_instance.get_next_page(result)
1591
1846
  expect(next_page_result).to be_a Freeclimb::SMSTenDLCCampaignsListResult
1592
1847
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1607,7 +1862,7 @@ describe "DefaultApi" do
1607
1862
  brand_id: brand_id
1608
1863
  }
1609
1864
  )
1610
- result.next_page_uri = "/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns?cursor=1"
1865
+ result.next_page_uri = "/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns?cursor=1".sub("{accountId}", @account_id_test_value)
1611
1866
  next_page_result = @api_instance.get_next_page(result)
1612
1867
  expect(next_page_result).to be_a Freeclimb::SMSTenDLCPartnerCampaignsListResult
1613
1868
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1623,7 +1878,7 @@ describe "DefaultApi" do
1623
1878
  result = @api_instance.get_toll_free_sms_campaigns(
1624
1879
  {}
1625
1880
  )
1626
- result.next_page_uri = "/Accounts/{accountId}/Messages/TollFree/Campaigns?cursor=1"
1881
+ result.next_page_uri = "/Accounts/{accountId}/Messages/TollFree/Campaigns?cursor=1".sub("{accountId}", @account_id_test_value)
1627
1882
  next_page_result = @api_instance.get_next_page(result)
1628
1883
  expect(next_page_result).to be_a Freeclimb::SMSTollFreeCampaignsListResult
1629
1884
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1644,7 +1899,7 @@ describe "DefaultApi" do
1644
1899
  _alias: _alias
1645
1900
  }
1646
1901
  )
1647
- result.next_page_uri = "/Accounts/{accountId}/Queues?cursor=1"
1902
+ result.next_page_uri = "/Accounts/{accountId}/Queues?cursor=1".sub("{accountId}", @account_id_test_value)
1648
1903
  next_page_result = @api_instance.get_next_page(result)
1649
1904
  expect(next_page_result).to be_a Freeclimb::QueueList
1650
1905
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1660,7 +1915,7 @@ describe "DefaultApi" do
1660
1915
  result = @api_instance.list_all_account_logs(
1661
1916
  {}
1662
1917
  )
1663
- result.next_page_uri = "/Accounts/{accountId}/Logs?cursor=1"
1918
+ result.next_page_uri = "/Accounts/{accountId}/Logs?cursor=1".sub("{accountId}", @account_id_test_value)
1664
1919
  next_page_result = @api_instance.get_next_page(result)
1665
1920
  expect(next_page_result).to be_a Freeclimb::LogList
1666
1921
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1681,7 +1936,7 @@ describe "DefaultApi" do
1681
1936
  _alias: _alias
1682
1937
  }
1683
1938
  )
1684
- result.next_page_uri = "/Accounts/{accountId}/Applications?cursor=1"
1939
+ result.next_page_uri = "/Accounts/{accountId}/Applications?cursor=1".sub("{accountId}", @account_id_test_value)
1685
1940
  next_page_result = @api_instance.get_next_page(result)
1686
1941
  expect(next_page_result).to be_a Freeclimb::ApplicationList
1687
1942
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1720,13 +1975,30 @@ describe "DefaultApi" do
1720
1975
  phone_number: phone_number, region: region, country: country, voice_enabled: voice_enabled, sms_enabled: sms_enabled, capabilities_voice: capabilities_voice, capabilities_sms: capabilities_sms, capabilities_toll_free: capabilities_toll_free, capabilities_ten_dlc: capabilities_ten_dlc, capabilities_short_code: capabilities_short_code
1721
1976
  }
1722
1977
  )
1723
- result.next_page_uri = "/AvailablePhoneNumbers?cursor=1"
1978
+ result.next_page_uri = "/AvailablePhoneNumbers?cursor=1".sub("{accountId}", @account_id_test_value)
1724
1979
  next_page_result = @api_instance.get_next_page(result)
1725
1980
  expect(next_page_result).to be_a Freeclimb::AvailableNumberList
1726
1981
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1727
1982
  end
1728
1983
  end
1729
1984
 
1985
+ # unit tests for get_next_page list_blobs
1986
+ # List Blobs belonging to an account.
1987
+ # List Blobs belonging to an account. Results are returned in paginated lists mirroring other listing features in the API.
1988
+ # @param [Hash] opts the optional parameters
1989
+ # @return [BlobListResponse]
1990
+ describe "list_blobs_get_next_page test" do
1991
+ it "should work" do
1992
+ result = @api_instance.list_blobs(
1993
+ {}
1994
+ )
1995
+ result.next_page_uri = "/Accounts/{accountId}/Blobs?cursor=1".sub("{accountId}", @account_id_test_value)
1996
+ next_page_result = @api_instance.get_next_page(result)
1997
+ expect(next_page_result).to be_a Freeclimb::BlobListResponse
1998
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1999
+ end
2000
+ end
2001
+
1730
2002
  # unit tests for get_next_page list_call_logs
1731
2003
  # List Call Logs
1732
2004
  # @param call_id String that uniquely identifies this call resource.
@@ -1740,7 +2012,7 @@ describe "DefaultApi" do
1740
2012
  call_id,
1741
2013
  {}
1742
2014
  )
1743
- result.next_page_uri = "/Accounts/{accountId}/Calls/{callId}/Logs?cursor=1"
2015
+ result.next_page_uri = "/Accounts/{accountId}/Calls/{callId}/Logs?cursor=1".sub("{accountId}", @account_id_test_value)
1744
2016
  next_page_result = @api_instance.get_next_page(result)
1745
2017
  expect(next_page_result).to be_a Freeclimb::LogList
1746
2018
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1764,7 +2036,7 @@ describe "DefaultApi" do
1764
2036
  date_created: date_created
1765
2037
  }
1766
2038
  )
1767
- result.next_page_uri = "/Accounts/{accountId}/Calls/{callId}/Recordings?cursor=1"
2039
+ result.next_page_uri = "/Accounts/{accountId}/Calls/{callId}/Recordings?cursor=1".sub("{accountId}", @account_id_test_value)
1768
2040
  next_page_result = @api_instance.get_next_page(result)
1769
2041
  expect(next_page_result).to be_a Freeclimb::RecordingList
1770
2042
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1782,6 +2054,8 @@ describe "DefaultApi" do
1782
2054
  # @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
1783
2055
  # @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
1784
2056
  # @option opts [Array<String>] :application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.
2057
+ # @option opts [Integer] :risk_score_min The minimum riskScore that should be included in the list.
2058
+ # @option opts [Integer] :risk_score_max The maximum riskScore that should be included in the list.
1785
2059
  # @return [CallList]
1786
2060
  describe "list_calls_get_next_page test" do
1787
2061
  it "should work" do
@@ -1793,13 +2067,15 @@ describe "DefaultApi" do
1793
2067
  end_time = @end_time_list_calls_test_value
1794
2068
  parent_call_id = @parent_call_id_list_calls_test_value
1795
2069
  application_id = @application_id_list_calls_test_value
2070
+ risk_score_min = @risk_score_min_list_calls_test_value
2071
+ risk_score_max = @risk_score_max_list_calls_test_value
1796
2072
 
1797
2073
  result = @api_instance.list_calls(
1798
2074
  {
1799
- active: active, to: to, from: from, status: status, start_time: start_time, end_time: end_time, parent_call_id: parent_call_id, application_id: application_id
2075
+ active: active, to: to, from: from, status: status, start_time: start_time, end_time: end_time, parent_call_id: parent_call_id, application_id: application_id, risk_score_min: risk_score_min, risk_score_max: risk_score_max
1800
2076
  }
1801
2077
  )
1802
- result.next_page_uri = "/Accounts/{accountId}/Calls?cursor=1"
2078
+ result.next_page_uri = "/Accounts/{accountId}/Calls?cursor=1".sub("{accountId}", @account_id_test_value)
1803
2079
  next_page_result = @api_instance.get_next_page(result)
1804
2080
  expect(next_page_result).to be_a Freeclimb::CallList
1805
2081
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1825,7 +2101,7 @@ describe "DefaultApi" do
1825
2101
  call_id: call_id, date_created: date_created
1826
2102
  }
1827
2103
  )
1828
- result.next_page_uri = "/Accounts/{accountId}/Conferences/{conferenceId}/Recordings?cursor=1"
2104
+ result.next_page_uri = "/Accounts/{accountId}/Conferences/{conferenceId}/Recordings?cursor=1".sub("{accountId}", @account_id_test_value)
1829
2105
  next_page_result = @api_instance.get_next_page(result)
1830
2106
  expect(next_page_result).to be_a Freeclimb::RecordingList
1831
2107
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1852,13 +2128,36 @@ describe "DefaultApi" do
1852
2128
  status: status, _alias: _alias, date_created: date_created, date_updated: date_updated
1853
2129
  }
1854
2130
  )
1855
- result.next_page_uri = "/Accounts/{accountId}/Conferences?cursor=1"
2131
+ result.next_page_uri = "/Accounts/{accountId}/Conferences?cursor=1".sub("{accountId}", @account_id_test_value)
1856
2132
  next_page_result = @api_instance.get_next_page(result)
1857
2133
  expect(next_page_result).to be_a Freeclimb::ConferenceList
1858
2134
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1859
2135
  end
1860
2136
  end
1861
2137
 
2138
+ # unit tests for get_next_page list_exports
2139
+ # List Exports
2140
+ # @param [Hash] opts the optional parameters
2141
+ # @option opts [ExportStatus] :status Status of export
2142
+ # @option opts [String] :cursor Used to reference pages of a list of exports
2143
+ # @return [ExportList]
2144
+ describe "list_exports_get_next_page test" do
2145
+ it "should work" do
2146
+ status = @status_list_exports_test_value
2147
+ cursor = @cursor_list_exports_test_value
2148
+
2149
+ result = @api_instance.list_exports(
2150
+ {
2151
+ status: status, cursor: cursor
2152
+ }
2153
+ )
2154
+ result.next_page_uri = "/Accounts/{accountId}/Exports?cursor=1".sub("{accountId}", @account_id_test_value)
2155
+ next_page_result = @api_instance.get_next_page(result)
2156
+ expect(next_page_result).to be_a Freeclimb::ExportList
2157
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
2158
+ end
2159
+ end
2160
+
1862
2161
  # unit tests for get_next_page list_incoming_numbers
1863
2162
  # List Incoming Numbers
1864
2163
  # @param [Hash] opts the optional parameters
@@ -1868,8 +2167,6 @@ describe "DefaultApi" do
1868
2167
  # @option opts [String] :country Country of this phone number.
1869
2168
  # @option opts [String] :application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.
1870
2169
  # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it.
1871
- # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
1872
- # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
1873
2170
  # @option opts [Boolean] :has_campaign Indication of whether the phone number has a campaign associated with it
1874
2171
  # @option opts [Boolean] :capabilities_voice
1875
2172
  # @option opts [Boolean] :capabilities_sms
@@ -1887,8 +2184,6 @@ describe "DefaultApi" do
1887
2184
  country = @country_list_incoming_numbers_test_value
1888
2185
  application_id = @application_id_list_incoming_numbers_test_value
1889
2186
  has_application = @has_application_list_incoming_numbers_test_value
1890
- voice_enabled = @voice_enabled_list_incoming_numbers_test_value
1891
- sms_enabled = @sms_enabled_list_incoming_numbers_test_value
1892
2187
  has_campaign = @has_campaign_list_incoming_numbers_test_value
1893
2188
  capabilities_voice = @capabilities_voice_list_incoming_numbers_test_value
1894
2189
  capabilities_sms = @capabilities_sms_list_incoming_numbers_test_value
@@ -1900,10 +2195,10 @@ describe "DefaultApi" do
1900
2195
 
1901
2196
  result = @api_instance.list_incoming_numbers(
1902
2197
  {
1903
- phone_number: phone_number, _alias: _alias, region: region, country: country, application_id: application_id, has_application: has_application, voice_enabled: voice_enabled, sms_enabled: sms_enabled, has_campaign: has_campaign, capabilities_voice: capabilities_voice, capabilities_sms: capabilities_sms, capabilities_toll_free: capabilities_toll_free, capabilities_ten_dlc: capabilities_ten_dlc, capabilities_short_code: capabilities_short_code, tfn_campaign_id: tfn_campaign_id, offnet: offnet
2198
+ phone_number: phone_number, _alias: _alias, region: region, country: country, application_id: application_id, has_application: has_application, has_campaign: has_campaign, capabilities_voice: capabilities_voice, capabilities_sms: capabilities_sms, capabilities_toll_free: capabilities_toll_free, capabilities_ten_dlc: capabilities_ten_dlc, capabilities_short_code: capabilities_short_code, tfn_campaign_id: tfn_campaign_id, offnet: offnet
1904
2199
  }
1905
2200
  )
1906
- result.next_page_uri = "/Accounts/{accountId}/IncomingPhoneNumbers?cursor=1"
2201
+ result.next_page_uri = "/Accounts/{accountId}/IncomingPhoneNumbers?cursor=1".sub("{accountId}", @account_id_test_value)
1907
2202
  next_page_result = @api_instance.get_next_page(result)
1908
2203
  expect(next_page_result).to be_a Freeclimb::IncomingNumberList
1909
2204
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1923,7 +2218,7 @@ describe "DefaultApi" do
1923
2218
  queue_id,
1924
2219
  {}
1925
2220
  )
1926
- result.next_page_uri = "/Accounts/{accountId}/Queues/{queueId}/Members?cursor=1"
2221
+ result.next_page_uri = "/Accounts/{accountId}/Queues/{queueId}/Members?cursor=1".sub("{accountId}", @account_id_test_value)
1927
2222
  next_page_result = @api_instance.get_next_page(result)
1928
2223
  expect(next_page_result).to be_a Freeclimb::QueueMemberList
1929
2224
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1951,7 +2246,7 @@ describe "DefaultApi" do
1951
2246
  talk: talk, listen: listen, dtmf_pass_through: dtmf_pass_through
1952
2247
  }
1953
2248
  )
1954
- result.next_page_uri = "/Accounts/{accountId}/Conferences/{conferenceId}/Participants?cursor=1"
2249
+ result.next_page_uri = "/Accounts/{accountId}/Conferences/{conferenceId}/Participants?cursor=1".sub("{accountId}", @account_id_test_value)
1955
2250
  next_page_result = @api_instance.get_next_page(result)
1956
2251
  expect(next_page_result).to be_a Freeclimb::ConferenceParticipantList
1957
2252
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1976,7 +2271,7 @@ describe "DefaultApi" do
1976
2271
  call_id: call_id, conference_id: conference_id, date_created: date_created
1977
2272
  }
1978
2273
  )
1979
- result.next_page_uri = "/Accounts/{accountId}/Recordings?cursor=1"
2274
+ result.next_page_uri = "/Accounts/{accountId}/Recordings?cursor=1".sub("{accountId}", @account_id_test_value)
1980
2275
  next_page_result = @api_instance.get_next_page(result)
1981
2276
  expect(next_page_result).to be_a Freeclimb::RecordingList
1982
2277
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -2011,7 +2306,7 @@ describe "DefaultApi" do
2011
2306
  to: to, from: from, begin_time: begin_time, end_time: end_time, direction: direction, campaign_id: campaign_id, brand_id: brand_id, is10_dlc: is10_dlc
2012
2307
  }
2013
2308
  )
2014
- result.next_page_uri = "/Accounts/{accountId}/Messages?cursor=1"
2309
+ result.next_page_uri = "/Accounts/{accountId}/Messages?cursor=1".sub("{accountId}", @account_id_test_value)
2015
2310
  next_page_result = @api_instance.get_next_page(result)
2016
2311
  expect(next_page_result).to be_a Freeclimb::MessagesList
2017
2312
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -242,7 +242,7 @@ describe Freeclimb::AccountResult do
242
242
 
243
243
  describe 'test method "eql?"' do
244
244
  it "checks if objects are equal" do
245
- obj_Object = Object.new
245
+ obj_subresource_uris = Object.new
246
246
 
247
247
  instance_1 = Freeclimb::AccountResult.new(
248
248
  uri: "TS",
@@ -265,7 +265,7 @@ describe Freeclimb::AccountResult do
265
265
 
266
266
  status: Freeclimb::AccountStatus::CLOSED,
267
267
 
268
- subresource_uris: obj_Object
268
+ subresource_uris: obj_subresource_uris
269
269
  )
270
270
  instance_2 = Freeclimb::AccountResult.new(
271
271
  uri: "TS",
@@ -288,7 +288,7 @@ describe Freeclimb::AccountResult do
288
288
 
289
289
  status: Freeclimb::AccountStatus::CLOSED,
290
290
 
291
- subresource_uris: obj_Object
291
+ subresource_uris: obj_subresource_uris
292
292
  )
293
293
  expect(instance_1.eql?(instance_2)).to eq(true)
294
294
  end