freeclimb 5.2.0 → 5.3.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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -1
  3. data/Gemfile.lock +3 -3
  4. data/README.md +17 -4
  5. data/docs/CallResult.md +2 -2
  6. data/docs/CreateConference.md +4 -2
  7. data/docs/DefaultApi.md +368 -1
  8. data/docs/ExportList.md +32 -0
  9. data/docs/ExportOutputType.md +16 -0
  10. data/docs/ExportRequest.md +24 -0
  11. data/docs/ExportRequestOutput.md +18 -0
  12. data/docs/ExportResourceType.md +17 -0
  13. data/docs/ExportResult.md +40 -0
  14. data/docs/ExportResultOutput.md +18 -0
  15. data/docs/ExportStatus.md +21 -0
  16. data/lib/freeclimb/api/default_api.rb +313 -0
  17. data/lib/freeclimb/models/call_result.rb +8 -8
  18. data/lib/freeclimb/models/create_conference.rb +15 -5
  19. data/lib/freeclimb/models/export_list.rb +304 -0
  20. data/lib/freeclimb/models/export_output_type.rb +34 -0
  21. data/lib/freeclimb/models/export_request.rb +276 -0
  22. data/lib/freeclimb/models/export_request_output.rb +243 -0
  23. data/lib/freeclimb/models/export_resource_type.rb +35 -0
  24. data/lib/freeclimb/models/export_result.rb +405 -0
  25. data/lib/freeclimb/models/export_result_output.rb +243 -0
  26. data/lib/freeclimb/models/export_status.rb +39 -0
  27. data/lib/freeclimb/version.rb +1 -1
  28. data/lib/freeclimb.rb +8 -0
  29. data/openapi.json +370 -2
  30. data/spec/api/default_api_spec.rb +141 -2
  31. data/spec/models/call_result_spec.rb +36 -36
  32. data/spec/models/create_conference_spec.rb +83 -35
  33. data/spec/models/export_list_spec.rb +502 -0
  34. data/spec/models/export_output_type_spec.rb +43 -0
  35. data/spec/models/export_request_output_spec.rb +162 -0
  36. data/spec/models/export_request_spec.rb +320 -0
  37. data/spec/models/export_resource_type_spec.rb +59 -0
  38. data/spec/models/export_result_output_spec.rb +162 -0
  39. data/spec/models/export_result_spec.rb +718 -0
  40. data/spec/models/export_status_spec.rb +123 -0
  41. data/yarn.lock +29 -29
  42. metadata +26 -2
data/openapi.json CHANGED
@@ -1968,7 +1968,7 @@
1968
1968
  },
1969
1969
  "alias": {
1970
1970
  "description": "Descriptive name for the Conference. ",
1971
- "type": "boolean"
1971
+ "type": "string"
1972
1972
  },
1973
1973
  "playBeep": {
1974
1974
  "$ref": "#/components/schemas/PlayBeep"
@@ -1986,6 +1986,10 @@
1986
1986
  "description": "If specified, this URL provides the custom hold music for the Conference when it is in the populated state. This attribute is always fetched using HTTP GET and is fetched just once – when the Conference is created. The URL must be an audio file that is reachable and readable by FreeClimb.",
1987
1987
  "format": "uri",
1988
1988
  "type": "string"
1989
+ },
1990
+ "parentCallId": {
1991
+ "description": "ID of the Call that created this leg (child call).",
1992
+ "type": "string"
1989
1993
  }
1990
1994
  }
1991
1995
  }
@@ -3113,7 +3117,7 @@
3113
3117
  "description": "If the Call was inbound, this is the ID of the IncomingPhoneNumber that received the Call (DNIS). If the Call was outbound, this is the ID of the phone number from which the Call was placed (ANI).",
3114
3118
  "nullable": true
3115
3119
  },
3116
- "callStatus": {
3120
+ "status": {
3117
3121
  "$ref": "#/components/schemas/CallStatus"
3118
3122
  },
3119
3123
  "startTime": {
@@ -4830,6 +4834,187 @@
4830
4834
  "minimum": 1
4831
4835
  }
4832
4836
  }
4837
+ },
4838
+ "ExportStatus": {
4839
+ "type": "string",
4840
+ "description": "platform export status",
4841
+ "enum": [
4842
+ "intaking",
4843
+ "queued",
4844
+ "inProgress",
4845
+ "completed",
4846
+ "failed",
4847
+ "deleted"
4848
+ ]
4849
+ },
4850
+ "ExportResourceType": {
4851
+ "type": "string",
4852
+ "description": "platform resource type",
4853
+ "enum": [
4854
+ "Messages",
4855
+ "Calls"
4856
+ ]
4857
+ },
4858
+ "ExportOutputType": {
4859
+ "type": "string",
4860
+ "description": "output type of the export",
4861
+ "enum": [
4862
+ "csv"
4863
+ ]
4864
+ },
4865
+ "ExportRequestOutput": {
4866
+ "type": "object",
4867
+ "required": [
4868
+ "type"
4869
+ ],
4870
+ "properties": {
4871
+ "type": {
4872
+ "$ref": "#/components/schemas/ExportOutputType"
4873
+ }
4874
+ }
4875
+ },
4876
+ "ExportResultOutput": {
4877
+ "type": "object",
4878
+ "required": [
4879
+ "type"
4880
+ ],
4881
+ "properties": {
4882
+ "type": {
4883
+ "$ref": "#/components/schemas/ExportOutputType"
4884
+ }
4885
+ }
4886
+ },
4887
+ "ExportResult": {
4888
+ "type": "object",
4889
+ "required": [
4890
+ "accountId",
4891
+ "uri",
4892
+ "dateCreated",
4893
+ "dateUpdated",
4894
+ "revision",
4895
+ "exportId",
4896
+ "status",
4897
+ "size",
4898
+ "resourceType",
4899
+ "query",
4900
+ "format",
4901
+ "output"
4902
+ ],
4903
+ "properties": {
4904
+ "accountId": {
4905
+ "type": "string",
4906
+ "description": "String that uniquely identifies this account resource.",
4907
+ "nullable": true
4908
+ },
4909
+ "uri": {
4910
+ "type": "string",
4911
+ "format": "uri-reference"
4912
+ },
4913
+ "dateCreated": {
4914
+ "type": "string"
4915
+ },
4916
+ "dateUpdated": {
4917
+ "type": "string"
4918
+ },
4919
+ "revision": {
4920
+ "type": "integer",
4921
+ "minimum": 0
4922
+ },
4923
+ "exportId": {
4924
+ "type": "string",
4925
+ "description": "String that uniquely identifies this export resource",
4926
+ "nullable": true
4927
+ },
4928
+ "status": {
4929
+ "$ref": "#/components/schemas/ExportStatus"
4930
+ },
4931
+ "size": {
4932
+ "type": "integer"
4933
+ },
4934
+ "resourceType": {
4935
+ "$ref": "#/components/schemas/ExportResourceType"
4936
+ },
4937
+ "query": {
4938
+ "description": "Query params used to filter exported documents",
4939
+ "type": "object"
4940
+ },
4941
+ "format": {
4942
+ "description": "Desired fields of exported documents",
4943
+ "type": "array",
4944
+ "items": {
4945
+ "type": "string"
4946
+ }
4947
+ },
4948
+ "output": {
4949
+ "$ref": "#/components/schemas/ExportResultOutput"
4950
+ }
4951
+ },
4952
+ "example": {
4953
+ "accountId": "AC3ff5d5aed7fde9e6659673d850cbd18ea8bfca78",
4954
+ "uri": "/Accounts/AC3ff5d5aed7fde9e6659673d850cbd18ea8bfca78/Exports/EX4d7500862e3abf4b9f4da24d54f559d3024252f8",
4955
+ "dateCreated": "Wed, 26 Jun 2024 15:45:06 UTC",
4956
+ "dateUpdated": "Wed, 26 Jun 2024 15:45:06 UTC",
4957
+ "revision": 1,
4958
+ "exportId": "EX4d7500862e3abf4b9f4da24d54f559d3024252f8",
4959
+ "status": "completed",
4960
+ "size": 12893786,
4961
+ "resourceType": "Messages",
4962
+ "query": {
4963
+ "direction": "inbound"
4964
+ },
4965
+ "format": [
4966
+ "messageId",
4967
+ "dateUpdated",
4968
+ "segmentCount",
4969
+ "status"
4970
+ ],
4971
+ "output": {
4972
+ "type": "csv"
4973
+ }
4974
+ }
4975
+ },
4976
+ "ExportList": {
4977
+ "allOf": [
4978
+ {
4979
+ "$ref": "#/components/schemas/PaginationModel"
4980
+ },
4981
+ {
4982
+ "type": "object",
4983
+ "properties": {
4984
+ "exports": {
4985
+ "type": "array",
4986
+ "items": {
4987
+ "$ref": "#/components/schemas/ExportResult"
4988
+ },
4989
+ "nullable": true
4990
+ }
4991
+ }
4992
+ }
4993
+ ]
4994
+ },
4995
+ "ExportRequest": {
4996
+ "type": "object",
4997
+ "required": [
4998
+ "resourceType",
4999
+ "output"
5000
+ ],
5001
+ "properties": {
5002
+ "resourceType": {
5003
+ "$ref": "#/components/schemas/ExportResourceType"
5004
+ },
5005
+ "format": {
5006
+ "type": "array",
5007
+ "items": {
5008
+ "type": "string"
5009
+ }
5010
+ },
5011
+ "output": {
5012
+ "$ref": "#/components/schemas/ExportRequestOutput"
5013
+ },
5014
+ "query": {
5015
+ "type": "object"
5016
+ }
5017
+ }
4833
5018
  }
4834
5019
  }
4835
5020
  },
@@ -5654,6 +5839,24 @@
5654
5839
  },
5655
5840
  {
5656
5841
  "$ref": "#/components/parameters/AccountId"
5842
+ },
5843
+ {
5844
+ "name": "riskScoreMin",
5845
+ "in": "query",
5846
+ "description": "The minimum riskScore that should be included in the list.",
5847
+ "required": false,
5848
+ "schema": {
5849
+ "type": "integer"
5850
+ }
5851
+ },
5852
+ {
5853
+ "name": "riskScoreMax",
5854
+ "in": "query",
5855
+ "description": "The maximum riskScore that should be included in the list.",
5856
+ "required": false,
5857
+ "schema": {
5858
+ "type": "integer"
5859
+ }
5657
5860
  }
5658
5861
  ],
5659
5862
  "deprecated": false,
@@ -7331,6 +7534,171 @@
7331
7534
  },
7332
7535
  "deprecated": false
7333
7536
  }
7537
+ },
7538
+ "/Accounts/{accountId}/Exports": {
7539
+ "get": {
7540
+ "tags": [],
7541
+ "summary": "List Exports",
7542
+ "operationId": "list-exports",
7543
+ "responses": {
7544
+ "200": {
7545
+ "description": "Successful retrieved export list",
7546
+ "content": {
7547
+ "application/json": {
7548
+ "schema": {
7549
+ "$ref": "#/components/schemas/ExportList"
7550
+ }
7551
+ }
7552
+ }
7553
+ }
7554
+ },
7555
+ "parameters": [
7556
+ {
7557
+ "$ref": "#/components/parameters/AccountId"
7558
+ },
7559
+ {
7560
+ "schema": {
7561
+ "$ref": "#/components/schemas/ExportStatus"
7562
+ },
7563
+ "in": "query",
7564
+ "name": "status",
7565
+ "description": "Status of export"
7566
+ },
7567
+ {
7568
+ "schema": {
7569
+ "type": "string"
7570
+ },
7571
+ "in": "query",
7572
+ "name": "cursor",
7573
+ "description": "Used to reference pages of a list of exports"
7574
+ }
7575
+ ]
7576
+ },
7577
+ "post": {
7578
+ "summary": "Create an Export",
7579
+ "operationId": "create-export",
7580
+ "tags": [],
7581
+ "requestBody": {
7582
+ "description": "A JSON object containing export creation parameters",
7583
+ "content": {
7584
+ "application/json": {
7585
+ "schema": {
7586
+ "$ref": "#/components/schemas/ExportRequest"
7587
+ }
7588
+ }
7589
+ }
7590
+ },
7591
+ "responses": {
7592
+ "200": {
7593
+ "description": "Export successfully created",
7594
+ "content": {
7595
+ "application/json": {
7596
+ "schema": {
7597
+ "$ref": "#/components/schemas/ExportResult"
7598
+ }
7599
+ }
7600
+ }
7601
+ }
7602
+ },
7603
+ "parameters": [
7604
+ {
7605
+ "$ref": "#/components/parameters/AccountId"
7606
+ }
7607
+ ]
7608
+ }
7609
+ },
7610
+ "/Accounts/{accountId}/Exports/{exportId}": {
7611
+ "get": {
7612
+ "tags": [],
7613
+ "summary": "Get an Export",
7614
+ "operationId": "get-an-export",
7615
+ "parameters": [
7616
+ {
7617
+ "$ref": "#/components/parameters/AccountId"
7618
+ },
7619
+ {
7620
+ "name": "exportId",
7621
+ "in": "path",
7622
+ "description": "A string that uniquely identifies this export resource.",
7623
+ "required": true,
7624
+ "schema": {
7625
+ "type": "string"
7626
+ }
7627
+ }
7628
+ ],
7629
+ "deprecated": false,
7630
+ "responses": {
7631
+ "200": {
7632
+ "description": "Export Details",
7633
+ "content": {
7634
+ "application/json": {
7635
+ "schema": {
7636
+ "$ref": "#/components/schemas/ExportResult"
7637
+ }
7638
+ }
7639
+ }
7640
+ }
7641
+ }
7642
+ },
7643
+ "delete": {
7644
+ "tags": [],
7645
+ "summary": "Delete an Export",
7646
+ "operationId": "delete-an-export",
7647
+ "parameters": [
7648
+ {
7649
+ "$ref": "#/components/parameters/AccountId"
7650
+ },
7651
+ {
7652
+ "name": "exportId",
7653
+ "in": "path",
7654
+ "description": "A string that uniquely identifies this export resource.",
7655
+ "required": true,
7656
+ "schema": {
7657
+ "type": "string"
7658
+ }
7659
+ }
7660
+ ],
7661
+ "deprecated": false,
7662
+ "responses": {
7663
+ "204": {
7664
+ "description": "Successful Export deletion"
7665
+ }
7666
+ }
7667
+ }
7668
+ },
7669
+ "/Accounts/{accountId}/Exports/{exportId}/Download": {
7670
+ "get": {
7671
+ "tags": [],
7672
+ "summary": "Download an Export",
7673
+ "operationId": "download-an-export",
7674
+ "parameters": [
7675
+ {
7676
+ "$ref": "#/components/parameters/AccountId"
7677
+ },
7678
+ {
7679
+ "name": "exportId",
7680
+ "in": "path",
7681
+ "description": "A string that uniquely identifies this export resource.",
7682
+ "required": true,
7683
+ "schema": {
7684
+ "type": "string"
7685
+ }
7686
+ }
7687
+ ],
7688
+ "deprecated": false,
7689
+ "responses": {
7690
+ "200": {
7691
+ "description": "Export Details",
7692
+ "content": {
7693
+ "text/csv": {
7694
+ "schema": {
7695
+ "type": "string"
7696
+ }
7697
+ }
7698
+ }
7699
+ }
7700
+ }
7701
+ }
7334
7702
  }
7335
7703
  },
7336
7704
  "x-headers": [],
@@ -252,6 +252,12 @@ describe "DefaultApi" do
252
252
  @knowledge_base_id_create_knowledge_base_completion_test_value = "knowledgeBaseId_example"
253
253
 
254
254
  @completion_request_create_knowledge_base_completion_test_value = Freeclimb::CompletionRequest.new({query: "query_example"})
255
+
256
+ @export_id_download_an_export_test_value = "download_exportId_example"
257
+
258
+ @export_id_delete_an_export_test_value = "delete_exportId_example"
259
+
260
+ @export_id_get_an_export_test_value = "get_exportId_example"
255
261
  end
256
262
 
257
263
  after do
@@ -348,6 +354,27 @@ describe "DefaultApi" do
348
354
  end
349
355
  end
350
356
 
357
+ # unit tests for create_export
358
+ # Create an Export
359
+ # @param [Hash] opts the optional parameters
360
+ # @option opts [ExportRequest] :export_request A JSON object containing export creation parameters
361
+ # @return [ExportResult]
362
+ describe "create_export test" do
363
+ it "should work" do
364
+ export_request = @export_request_create_export_test_value
365
+
366
+ result = @api_instance.create_export(
367
+ {
368
+ export_request: export_request
369
+ }
370
+ )
371
+
372
+ expect(result).to be_a Freeclimb::ExportResult
373
+
374
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
375
+ end
376
+ end
377
+
351
378
  # unit tests for create_knowledge_base_completion
352
379
  # Query the knowledge base
353
380
  # @param knowledge_base_id A string that uniquely identifies the KnowledgeBase resource.
@@ -410,6 +437,25 @@ describe "DefaultApi" do
410
437
  end
411
438
  end
412
439
 
440
+ # unit tests for delete_an_export
441
+ # Delete an Export
442
+ # @param export_id A string that uniquely identifies this export resource.
443
+ # @param [Hash] opts the optional parameters
444
+ # @return [nil]
445
+ describe "delete_an_export test" do
446
+ it "should work" do
447
+ export_id = @export_id_delete_an_export_test_value
448
+
449
+ result = @api_instance.delete_an_export(
450
+ export_id,
451
+ {}
452
+ )
453
+
454
+ expect(result).to be_nil
455
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
456
+ end
457
+ end
458
+
413
459
  # unit tests for delete_an_incoming_number
414
460
  # Delete an Incoming Number
415
461
  # @param phone_number_id String that uniquely identifies this phone number resource.
@@ -491,6 +537,25 @@ describe "DefaultApi" do
491
537
  end
492
538
  end
493
539
 
540
+ # unit tests for download_an_export
541
+ # Download an Export
542
+ # @param export_id A string that uniquely identifies this export resource.
543
+ # @param [Hash] opts the optional parameters
544
+ # @return [String]
545
+ describe "download_an_export test" do
546
+ it "should work" do
547
+ export_id = @export_id_download_an_export_test_value
548
+
549
+ result = @api_instance.download_an_export(
550
+ export_id,
551
+ {}
552
+ )
553
+ expect(result).to be_a String
554
+
555
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
556
+ end
557
+ end
558
+
494
559
  # unit tests for filter_logs
495
560
  # Filter Logs
496
561
  # @param filter_logs_request Filter logs request paramters
@@ -671,6 +736,26 @@ describe "DefaultApi" do
671
736
  end
672
737
  end
673
738
 
739
+ # unit tests for get_an_export
740
+ # Get an Export
741
+ # @param export_id A string that uniquely identifies this export resource.
742
+ # @param [Hash] opts the optional parameters
743
+ # @return [ExportResult]
744
+ describe "get_an_export test" do
745
+ it "should work" do
746
+ export_id = @export_id_get_an_export_test_value
747
+
748
+ result = @api_instance.get_an_export(
749
+ export_id,
750
+ {}
751
+ )
752
+
753
+ expect(result).to be_a Freeclimb::ExportResult
754
+
755
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
756
+ end
757
+ end
758
+
674
759
  # unit tests for get_an_incoming_number
675
760
  # Get an Incoming Number
676
761
  # @param phone_number_id String that uniquely identifies this phone number resource.
@@ -1037,6 +1122,8 @@ describe "DefaultApi" do
1037
1122
  # @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
1038
1123
  # @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
1039
1124
  # @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.
1125
+ # @option opts [Integer] :risk_score_min The minimum riskScore that should be included in the list.
1126
+ # @option opts [Integer] :risk_score_max The maximum riskScore that should be included in the list.
1040
1127
  # @return [CallList]
1041
1128
  describe "list_calls test" do
1042
1129
  it "should work" do
@@ -1048,10 +1135,12 @@ describe "DefaultApi" do
1048
1135
  end_time = @end_time_list_calls_test_value
1049
1136
  parent_call_id = @parent_call_id_list_calls_test_value
1050
1137
  application_id = @application_id_list_calls_test_value
1138
+ risk_score_min = @risk_score_min_list_calls_test_value
1139
+ risk_score_max = @risk_score_max_list_calls_test_value
1051
1140
 
1052
1141
  result = @api_instance.list_calls(
1053
1142
  {
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
1143
+ 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
1144
  }
1056
1145
  )
1057
1146
 
@@ -1114,6 +1203,29 @@ describe "DefaultApi" do
1114
1203
  end
1115
1204
  end
1116
1205
 
1206
+ # unit tests for list_exports
1207
+ # List Exports
1208
+ # @param [Hash] opts the optional parameters
1209
+ # @option opts [ExportStatus] :status Status of export
1210
+ # @option opts [String] :cursor Used to reference pages of a list of exports
1211
+ # @return [ExportList]
1212
+ describe "list_exports test" do
1213
+ it "should work" do
1214
+ status = @status_list_exports_test_value
1215
+ cursor = @cursor_list_exports_test_value
1216
+
1217
+ result = @api_instance.list_exports(
1218
+ {
1219
+ status: status, cursor: cursor
1220
+ }
1221
+ )
1222
+
1223
+ expect(result).to be_a Freeclimb::ExportList
1224
+
1225
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1226
+ end
1227
+ end
1228
+
1117
1229
  # unit tests for list_incoming_numbers
1118
1230
  # List Incoming Numbers
1119
1231
  # @param [Hash] opts the optional parameters
@@ -1782,6 +1894,8 @@ describe "DefaultApi" do
1782
1894
  # @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
1783
1895
  # @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
1784
1896
  # @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.
1897
+ # @option opts [Integer] :risk_score_min The minimum riskScore that should be included in the list.
1898
+ # @option opts [Integer] :risk_score_max The maximum riskScore that should be included in the list.
1785
1899
  # @return [CallList]
1786
1900
  describe "list_calls_get_next_page test" do
1787
1901
  it "should work" do
@@ -1793,10 +1907,12 @@ describe "DefaultApi" do
1793
1907
  end_time = @end_time_list_calls_test_value
1794
1908
  parent_call_id = @parent_call_id_list_calls_test_value
1795
1909
  application_id = @application_id_list_calls_test_value
1910
+ risk_score_min = @risk_score_min_list_calls_test_value
1911
+ risk_score_max = @risk_score_max_list_calls_test_value
1796
1912
 
1797
1913
  result = @api_instance.list_calls(
1798
1914
  {
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
1915
+ 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
1916
  }
1801
1917
  )
1802
1918
  result.next_page_uri = "/Accounts/{accountId}/Calls?cursor=1"
@@ -1859,6 +1975,29 @@ describe "DefaultApi" do
1859
1975
  end
1860
1976
  end
1861
1977
 
1978
+ # unit tests for get_next_page list_exports
1979
+ # List Exports
1980
+ # @param [Hash] opts the optional parameters
1981
+ # @option opts [ExportStatus] :status Status of export
1982
+ # @option opts [String] :cursor Used to reference pages of a list of exports
1983
+ # @return [ExportList]
1984
+ describe "list_exports_get_next_page test" do
1985
+ it "should work" do
1986
+ status = @status_list_exports_test_value
1987
+ cursor = @cursor_list_exports_test_value
1988
+
1989
+ result = @api_instance.list_exports(
1990
+ {
1991
+ status: status, cursor: cursor
1992
+ }
1993
+ )
1994
+ result.next_page_uri = "/Accounts/{accountId}/Exports?cursor=1"
1995
+ next_page_result = @api_instance.get_next_page(result)
1996
+ expect(next_page_result).to be_a Freeclimb::ExportList
1997
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1998
+ end
1999
+ end
2000
+
1862
2001
  # unit tests for get_next_page list_incoming_numbers
1863
2002
  # List Incoming Numbers
1864
2003
  # @param [Hash] opts the optional parameters