freeclimb 4.4.3 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +202 -202
  5. data/docs/SMSTenDLCCampaign.md +1 -1
  6. data/docs/TranscribeUtterance.md +28 -0
  7. data/docs/TranscribeUtteranceRecord.md +22 -0
  8. data/lib/freeclimb/models/transcribe_utterance.rb +291 -0
  9. data/lib/freeclimb/models/transcribe_utterance_record.rb +293 -0
  10. data/lib/freeclimb/version.rb +1 -1
  11. data/lib/freeclimb.rb +2 -0
  12. data/openapi.json +347 -72
  13. data/spec/api/default_api_spec.rb +13 -1
  14. data/spec/models/account_request_spec.rb +1 -0
  15. data/spec/models/account_result_spec.rb +3 -0
  16. data/spec/models/account_status_spec.rb +1 -0
  17. data/spec/models/account_type_spec.rb +1 -0
  18. data/spec/models/add_to_conference_spec.rb +1 -0
  19. data/spec/models/answered_by_spec.rb +1 -0
  20. data/spec/models/application_list_spec.rb +1 -0
  21. data/spec/models/application_request_spec.rb +1 -0
  22. data/spec/models/application_result_spec.rb +1 -0
  23. data/spec/models/available_number_list_spec.rb +1 -0
  24. data/spec/models/available_number_spec.rb +1 -0
  25. data/spec/models/buy_incoming_number_request_spec.rb +1 -0
  26. data/spec/models/call_direction_spec.rb +1 -0
  27. data/spec/models/call_list_spec.rb +1 -0
  28. data/spec/models/call_result_spec.rb +4 -0
  29. data/spec/models/call_status_spec.rb +1 -0
  30. data/spec/models/capabilities_spec.rb +1 -0
  31. data/spec/models/conference_list_spec.rb +1 -0
  32. data/spec/models/conference_participant_list_spec.rb +1 -0
  33. data/spec/models/conference_participant_result_spec.rb +1 -0
  34. data/spec/models/conference_result_spec.rb +3 -0
  35. data/spec/models/conference_status_spec.rb +1 -0
  36. data/spec/models/create_conference_request_spec.rb +2 -0
  37. data/spec/models/create_conference_spec.rb +2 -0
  38. data/spec/models/dequeue_spec.rb +1 -0
  39. data/spec/models/enqueue_spec.rb +1 -0
  40. data/spec/models/filter_logs_request_spec.rb +1 -0
  41. data/spec/models/get_digits_spec.rb +1 -0
  42. data/spec/models/get_speech_reason_spec.rb +1 -0
  43. data/spec/models/get_speech_spec.rb +2 -0
  44. data/spec/models/grammar_file_built_in_spec.rb +1 -0
  45. data/spec/models/grammar_type_spec.rb +1 -0
  46. data/spec/models/hangup_spec.rb +1 -0
  47. data/spec/models/if_machine_spec.rb +1 -0
  48. data/spec/models/incoming_number_list_spec.rb +1 -0
  49. data/spec/models/incoming_number_request_spec.rb +1 -0
  50. data/spec/models/incoming_number_result_spec.rb +1 -0
  51. data/spec/models/language_spec.rb +1 -0
  52. data/spec/models/log_level_spec.rb +1 -0
  53. data/spec/models/log_list_spec.rb +1 -0
  54. data/spec/models/log_result_spec.rb +2 -0
  55. data/spec/models/machine_type_spec.rb +1 -0
  56. data/spec/models/make_call_request_spec.rb +1 -0
  57. data/spec/models/message_direction_spec.rb +1 -0
  58. data/spec/models/message_request_spec.rb +1 -0
  59. data/spec/models/message_result_spec.rb +2 -0
  60. data/spec/models/message_status_spec.rb +1 -0
  61. data/spec/models/messages_list_spec.rb +1 -0
  62. data/spec/models/mutable_resource_model_spec.rb +1 -0
  63. data/spec/models/out_dial_spec.rb +2 -0
  64. data/spec/models/pagination_model_spec.rb +1 -0
  65. data/spec/models/park_spec.rb +1 -0
  66. data/spec/models/pause_spec.rb +1 -0
  67. data/spec/models/percl_command_spec.rb +1 -0
  68. data/spec/models/percl_script_spec.rb +1 -0
  69. data/spec/models/play_beep_spec.rb +1 -0
  70. data/spec/models/play_early_media_spec.rb +1 -0
  71. data/spec/models/play_spec.rb +1 -0
  72. data/spec/models/queue_list_spec.rb +1 -0
  73. data/spec/models/queue_member_list_spec.rb +1 -0
  74. data/spec/models/queue_member_spec.rb +1 -0
  75. data/spec/models/queue_request_spec.rb +1 -0
  76. data/spec/models/queue_result_spec.rb +1 -0
  77. data/spec/models/queue_result_status_spec.rb +1 -0
  78. data/spec/models/record_utterance_spec.rb +1 -0
  79. data/spec/models/record_utterance_term_reason_spec.rb +1 -0
  80. data/spec/models/recording_list_spec.rb +1 -0
  81. data/spec/models/recording_result_spec.rb +1 -0
  82. data/spec/models/redirect_spec.rb +1 -0
  83. data/spec/models/reject_spec.rb +1 -0
  84. data/spec/models/remove_from_conference_spec.rb +1 -0
  85. data/spec/models/request_type_spec.rb +1 -0
  86. data/spec/models/say_spec.rb +1 -0
  87. data/spec/models/send_digits_spec.rb +1 -0
  88. data/spec/models/set_listen_spec.rb +1 -0
  89. data/spec/models/set_talk_spec.rb +1 -0
  90. data/spec/models/sms_spec.rb +1 -0
  91. data/spec/models/sms_ten_dlc_brand_spec.rb +120 -73
  92. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +1 -0
  93. data/spec/models/sms_ten_dlc_campaign_spec.rb +72 -42
  94. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +1 -0
  95. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +43 -21
  96. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +91 -48
  97. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +1 -0
  98. data/spec/models/start_record_call_spec.rb +1 -0
  99. data/spec/models/terminate_conference_spec.rb +1 -0
  100. data/spec/models/transcribe_utterance_record_spec.rb +222 -0
  101. data/spec/models/transcribe_utterance_spec.rb +380 -0
  102. data/spec/models/unpark_spec.rb +1 -0
  103. data/spec/models/update_call_request_spec.rb +2 -0
  104. data/spec/models/update_call_request_status_spec.rb +1 -0
  105. data/spec/models/update_conference_participant_request_spec.rb +1 -0
  106. data/spec/models/update_conference_request_spec.rb +3 -0
  107. data/spec/models/update_conference_request_status_spec.rb +1 -0
  108. metadata +10 -2
@@ -0,0 +1,222 @@
1
+ =begin
2
+ #FreeClimb API
3
+
4
+ #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@freeclimb.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.4.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Freeclimb::TranscribeUtteranceRecord
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Freeclimb::TranscribeUtteranceRecord do
21
+ let(:instance) { Freeclimb::TranscribeUtteranceRecord.new }
22
+
23
+ describe 'test an instance of TranscribeUtteranceRecord' do
24
+ it 'should create an instance of TranscribeUtteranceRecord' do
25
+ expect(instance).to be_instance_of(Freeclimb::TranscribeUtteranceRecord)
26
+ end
27
+ end
28
+
29
+ describe 'test attribute "save_recording"' do
30
+ it 'should work' do
31
+ instance.save_recording = false
32
+ expect(instance.save_recording).to eq(false)
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "max_length_sec"' do
37
+ it 'should work' do
38
+ instance.max_length_sec = 1
39
+ expect(instance.max_length_sec).to eq(1)
40
+ end
41
+ end
42
+
43
+ describe 'test attribute "rcrd_termination_silence_time_ms"' do
44
+ it 'should work' do
45
+ instance.rcrd_termination_silence_time_ms = 1
46
+ expect(instance.rcrd_termination_silence_time_ms).to eq(1)
47
+ end
48
+ end
49
+
50
+ describe 'test method "initialize"' do
51
+ it 'properly initializes with values' do
52
+ expect{instance = Freeclimb::TranscribeUtteranceRecord.new(
53
+ save_recording: true,
54
+ max_length_sec: 1,
55
+ rcrd_termination_silence_time_ms: 1,
56
+ )}.not_to raise_error()
57
+ end
58
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::TranscribeUtteranceRecord' do
59
+ expect{instance = Freeclimb::TranscribeUtteranceRecord.new(
60
+ save_recording: true,
61
+ max_length_sec: 1,
62
+ rcrd_termination_silence_time_ms: 1,
63
+ invalid_attribute: true
64
+ )}.to raise_error(ArgumentError)
65
+ end
66
+ it 'fails to initialize with invalid attribute' do
67
+ expect{instance = Freeclimb::TranscribeUtteranceRecord.new(
68
+ save_recording: true,
69
+ max_length_sec: 1,
70
+ rcrd_termination_silence_time_ms: 1,
71
+ invalid_attribute: true
72
+ )}.to raise_error(ArgumentError)
73
+ end
74
+ end
75
+
76
+ describe 'test method "valid"' do
77
+ it 'checks if properties are valid' do
78
+ instance = Freeclimb::TranscribeUtteranceRecord.new(
79
+ save_recording: true,
80
+ max_length_sec: 1,
81
+ rcrd_termination_silence_time_ms: 1,
82
+ )
83
+ expect(instance.valid?).to eq(true)
84
+ end
85
+ it 'checks if properties are invalid' do
86
+ instance = Freeclimb::TranscribeUtteranceRecord.new(
87
+ save_recording: nil,
88
+ )
89
+ expect(instance.valid?).to eq(false)
90
+ end
91
+ it 'checks if model is empty' do
92
+ instance = Freeclimb::TranscribeUtteranceRecord.new()
93
+ expect(instance.valid?).to eq(false)
94
+ end
95
+ end
96
+
97
+ describe 'test method "eql?"' do
98
+ it 'checks if objects are equal' do
99
+ obj = Object.new()
100
+ instance_1 = Freeclimb::TranscribeUtteranceRecord.new(
101
+ save_recording: true,
102
+ max_length_sec: 1,
103
+ rcrd_termination_silence_time_ms: 1,
104
+ )
105
+ instance_2 = Freeclimb::TranscribeUtteranceRecord.new(
106
+ save_recording: true,
107
+ max_length_sec: 1,
108
+ rcrd_termination_silence_time_ms: 1,
109
+ )
110
+ expect(instance_1.eql?(instance_2)).to eq(true)
111
+ end
112
+ it 'checks if objects are not equal' do
113
+ instance_1 = Freeclimb::TranscribeUtteranceRecord.new(
114
+ save_recording: true,
115
+ max_length_sec: 2,
116
+ rcrd_termination_silence_time_ms: 2,
117
+ )
118
+ instance_2 = Freeclimb::TranscribeUtteranceRecord.new(
119
+ save_recording: false,
120
+ max_length_sec: 1,
121
+ rcrd_termination_silence_time_ms: 1,
122
+ )
123
+ expect(instance_1.eql?(instance_2)).to eq(false)
124
+ end
125
+ end
126
+
127
+ describe 'test method "hash"' do
128
+ it 'calculates hash code' do
129
+ instance = Freeclimb::TranscribeUtteranceRecord.new(
130
+ save_recording: true,
131
+ max_length_sec: 1,
132
+ rcrd_termination_silence_time_ms: 1,
133
+ )
134
+ expect(instance.hash).to be_a_kind_of(Integer)
135
+ end
136
+ end
137
+
138
+ describe 'test method "build_from_hash"' do
139
+ it 'builds equivalent model from hash code' do
140
+ instance_1 = Freeclimb::TranscribeUtteranceRecord.new(
141
+ save_recording: true,
142
+ max_length_sec: 1,
143
+ rcrd_termination_silence_time_ms: 1,
144
+ )
145
+ instance_2 = Freeclimb::TranscribeUtteranceRecord.new
146
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
147
+ end
148
+ end
149
+
150
+ describe 'test method "_deserialize"' do
151
+ instance = Freeclimb::TranscribeUtteranceRecord.new(
152
+ save_recording: true,
153
+ max_length_sec: 1,
154
+ rcrd_termination_silence_time_ms: 1,
155
+ )
156
+ it 'deserializes the data of save_recording' do
157
+ expect(instance._deserialize("Boolean", instance.save_recording)).to be_a_kind_of(TrueClass)
158
+ end
159
+ it 'deserializes the data of max_length_sec' do
160
+ expect(instance._deserialize("Integer", instance.max_length_sec)).to be_a_kind_of(Integer)
161
+ end
162
+ it 'deserializes the data of rcrd_termination_silence_time_ms' do
163
+ expect(instance._deserialize("Integer", instance.rcrd_termination_silence_time_ms)).to be_a_kind_of(Integer)
164
+ end
165
+ end
166
+
167
+ describe 'test method "to_s"' do
168
+ it 'returns the string representation of the object' do
169
+ instance = Freeclimb::TranscribeUtteranceRecord.new(
170
+ save_recording: true,
171
+ max_length_sec: 1,
172
+ rcrd_termination_silence_time_ms: 1,
173
+ )
174
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
175
+ end
176
+ end
177
+
178
+ describe 'test method "to_hash"' do
179
+ it 'returns the object in the form of hash' do
180
+ instance = Freeclimb::TranscribeUtteranceRecord.new(
181
+ save_recording: true,
182
+ max_length_sec: 1,
183
+ rcrd_termination_silence_time_ms: 1,
184
+ )
185
+ expect(instance.to_hash).to be_a_kind_of(Hash)
186
+ end
187
+ it 'creates equal hash for two equal objects' do
188
+ obj = Object.new()
189
+ instance_1 = Freeclimb::TranscribeUtteranceRecord.new(
190
+ save_recording: true,
191
+ max_length_sec: 1,
192
+ rcrd_termination_silence_time_ms: 1,
193
+ )
194
+ instance_2 = Freeclimb::TranscribeUtteranceRecord.new(
195
+ save_recording: true,
196
+ max_length_sec: 1,
197
+ rcrd_termination_silence_time_ms: 1,
198
+ )
199
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
200
+ end
201
+ end
202
+
203
+ describe 'test method "_to_hash"' do
204
+ instance = Freeclimb::TranscribeUtteranceRecord.new(
205
+ save_recording: true,
206
+
207
+ max_length_sec: 1,
208
+
209
+ rcrd_termination_silence_time_ms: 1,
210
+ )
211
+ it 'returns save_recording in the form of hash' do
212
+ expect(instance._to_hash(instance.save_recording)).to eq(instance.save_recording)
213
+ end
214
+ it 'returns max_length_sec in the form of hash' do
215
+ expect(instance._to_hash(instance.max_length_sec)).to eq(instance.max_length_sec)
216
+ end
217
+ it 'returns rcrd_termination_silence_time_ms in the form of hash' do
218
+ expect(instance._to_hash(instance.rcrd_termination_silence_time_ms)).to eq(instance.rcrd_termination_silence_time_ms)
219
+ end
220
+ end
221
+
222
+ end
@@ -0,0 +1,380 @@
1
+ =begin
2
+ #FreeClimb API
3
+
4
+ #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@freeclimb.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.4.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Freeclimb::TranscribeUtterance
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Freeclimb::TranscribeUtterance do
21
+ let(:instance) { Freeclimb::TranscribeUtterance.new }
22
+
23
+ describe 'test an instance of TranscribeUtterance' do
24
+ it 'should create an instance of TranscribeUtterance' do
25
+ expect(instance).to be_instance_of(Freeclimb::TranscribeUtterance)
26
+ end
27
+ end
28
+
29
+ describe 'test attribute "action_url"' do
30
+ it 'should work' do
31
+ instance.action_url = "TEST_STRING"
32
+ expect(instance.action_url).to eq("TEST_STRING")
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "play_beep"' do
37
+ it 'should work' do
38
+ instance.play_beep = false
39
+ expect(instance.play_beep).to eq(false)
40
+ end
41
+ end
42
+
43
+ describe 'test attribute "record"' do
44
+ it 'should work' do
45
+ instance.record = Freeclimb::TranscribeUtteranceRecord.new(
46
+ save_recording: true,
47
+ max_length_sec: 1,
48
+ rcrd_termination_silence_time_ms: 1,
49
+ )
50
+ expect(instance.record).to be_instance_of(Freeclimb::TranscribeUtteranceRecord)
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "privacy_for_logging"' do
55
+ it 'should work' do
56
+ instance.privacy_for_logging = false
57
+ expect(instance.privacy_for_logging).to eq(false)
58
+ end
59
+ end
60
+
61
+ describe 'test attribute "privacy_for_recording"' do
62
+ it 'should work' do
63
+ instance.privacy_for_recording = false
64
+ expect(instance.privacy_for_recording).to eq(false)
65
+ end
66
+ end
67
+
68
+ describe 'test attribute "prompts"' do
69
+ it 'should work' do
70
+ instance.prompts = ["ELEMENT_1", "ELEMENT_2"]
71
+ expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"])
72
+ end
73
+ end
74
+
75
+ describe 'test method "initialize"' do
76
+ it 'properly initializes with values' do
77
+ expect{instance = Freeclimb::TranscribeUtterance.new(
78
+ action_url: "TS",
79
+ play_beep: true,
80
+ record: Freeclimb::TranscribeUtteranceRecord.new(
81
+ save_recording: true,
82
+ max_length_sec: 1,
83
+ rcrd_termination_silence_time_ms: 1,
84
+ ),
85
+ privacy_for_logging: true,
86
+ privacy_for_recording: true,
87
+ prompts: Array.new(),
88
+ )}.not_to raise_error()
89
+ end
90
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::TranscribeUtterance' do
91
+ expect{instance = Freeclimb::TranscribeUtterance.new(
92
+ action_url: "TS",
93
+ play_beep: true,
94
+ record: Freeclimb::TranscribeUtteranceRecord.new(
95
+ save_recording: true,
96
+ max_length_sec: 1,
97
+ rcrd_termination_silence_time_ms: 1,
98
+ ),
99
+ privacy_for_logging: true,
100
+ privacy_for_recording: true,
101
+ prompts: Array.new(),
102
+ invalid_attribute: true
103
+ )}.to raise_error(ArgumentError)
104
+ end
105
+ it 'fails to initialize with invalid attribute' do
106
+ expect{instance = Freeclimb::TranscribeUtterance.new(
107
+ action_url: "TS",
108
+ play_beep: true,
109
+ record: Freeclimb::TranscribeUtteranceRecord.new(
110
+ save_recording: true,
111
+ max_length_sec: 1,
112
+ rcrd_termination_silence_time_ms: 1,
113
+ ),
114
+ privacy_for_logging: true,
115
+ privacy_for_recording: true,
116
+ prompts: Array.new(),
117
+ invalid_attribute: true
118
+ )}.to raise_error(ArgumentError)
119
+ end
120
+ end
121
+
122
+ describe 'test method "valid"' do
123
+ it 'checks if properties are valid' do
124
+ instance = Freeclimb::TranscribeUtterance.new(
125
+ action_url: "TS",
126
+ play_beep: true,
127
+ record: Freeclimb::TranscribeUtteranceRecord.new(
128
+ save_recording: true,
129
+ max_length_sec: 1,
130
+ rcrd_termination_silence_time_ms: 1,
131
+ ),
132
+ privacy_for_logging: true,
133
+ privacy_for_recording: true,
134
+ prompts: Array.new(),
135
+ )
136
+ expect(instance.valid?).to eq(true)
137
+ end
138
+ it 'checks if properties are invalid' do
139
+ instance = Freeclimb::TranscribeUtterance.new(
140
+ action_url: nil,
141
+ )
142
+ expect(instance.valid?).to eq(false)
143
+ end
144
+ it 'checks if model is empty' do
145
+ instance = Freeclimb::TranscribeUtterance.new()
146
+ expect(instance.valid?).to eq(false)
147
+ end
148
+ end
149
+
150
+ describe 'test method "eql?"' do
151
+ it 'checks if objects are equal' do
152
+ obj = Object.new()
153
+ instance_1 = Freeclimb::TranscribeUtterance.new(
154
+ action_url: "TS",
155
+ play_beep: true,
156
+ record: Freeclimb::TranscribeUtteranceRecord.new(
157
+ save_recording: true,
158
+ max_length_sec: 1,
159
+ rcrd_termination_silence_time_ms: 1,
160
+ ),
161
+ privacy_for_logging: true,
162
+ privacy_for_recording: true,
163
+ prompts: [],
164
+ )
165
+ instance_2 = Freeclimb::TranscribeUtterance.new(
166
+ action_url: "TS",
167
+ play_beep: true,
168
+ record: Freeclimb::TranscribeUtteranceRecord.new(
169
+ save_recording: true,
170
+ max_length_sec: 1,
171
+ rcrd_termination_silence_time_ms: 1,
172
+ ),
173
+ privacy_for_logging: true,
174
+ privacy_for_recording: true,
175
+ prompts: [],
176
+ )
177
+ expect(instance_1.eql?(instance_2)).to eq(true)
178
+ end
179
+ it 'checks if objects are not equal' do
180
+ instance_1 = Freeclimb::TranscribeUtterance.new(
181
+ action_url: "TS",
182
+ play_beep: true,
183
+ record: Freeclimb::TranscribeUtteranceRecord.new(
184
+ save_recording: true,
185
+ max_length_sec: 2,
186
+ rcrd_termination_silence_time_ms: 2,
187
+ ),
188
+ privacy_for_logging: true,
189
+ privacy_for_recording: true,
190
+ prompts: [],
191
+ )
192
+ instance_2 = Freeclimb::TranscribeUtterance.new(
193
+ action_url: "ST",
194
+ play_beep: false,
195
+ record: Freeclimb::TranscribeUtteranceRecord.new(
196
+ save_recording: true,
197
+ max_length_sec: 1,
198
+ rcrd_termination_silence_time_ms: 1,
199
+ ),
200
+ privacy_for_logging: false,
201
+ privacy_for_recording: false,
202
+ prompts: nil,
203
+ )
204
+ expect(instance_1.eql?(instance_2)).to eq(false)
205
+ end
206
+ end
207
+
208
+ describe 'test method "hash"' do
209
+ it 'calculates hash code' do
210
+ instance = Freeclimb::TranscribeUtterance.new(
211
+ action_url: "TS",
212
+ play_beep: true,
213
+ record: Freeclimb::TranscribeUtteranceRecord.new(
214
+ save_recording: true,
215
+ max_length_sec: 1,
216
+ rcrd_termination_silence_time_ms: 1,
217
+ ),
218
+ privacy_for_logging: true,
219
+ privacy_for_recording: true,
220
+ prompts: Array.new(),
221
+ )
222
+ expect(instance.hash).to be_a_kind_of(Integer)
223
+ end
224
+ end
225
+
226
+ describe 'test method "build_from_hash"' do
227
+ it 'builds equivalent model from hash code' do
228
+ instance_1 = Freeclimb::TranscribeUtterance.new(
229
+ action_url: "TS",
230
+ play_beep: true,
231
+ record: Freeclimb::TranscribeUtteranceRecord.new(
232
+ save_recording: true,
233
+ max_length_sec: 1,
234
+ rcrd_termination_silence_time_ms: 1,
235
+ ),
236
+ privacy_for_logging: true,
237
+ privacy_for_recording: true,
238
+ prompts: Array.new(),
239
+ )
240
+ instance_2 = Freeclimb::TranscribeUtterance.new
241
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
242
+ end
243
+ end
244
+
245
+ describe 'test method "_deserialize"' do
246
+ instance = Freeclimb::TranscribeUtterance.new(
247
+ action_url: "TS",
248
+ play_beep: true,
249
+ record: Freeclimb::TranscribeUtteranceRecord.new(
250
+ save_recording: true,
251
+ max_length_sec: 1,
252
+ rcrd_termination_silence_time_ms: 1,
253
+ ),
254
+ privacy_for_logging: true,
255
+ privacy_for_recording: true,
256
+ prompts: Array.new(),
257
+ )
258
+ it 'deserializes the data of action_url' do
259
+ expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String)
260
+ end
261
+ it 'deserializes the data of play_beep' do
262
+ expect(instance._deserialize("Boolean", instance.play_beep)).to be_a_kind_of(TrueClass)
263
+ end
264
+ it 'deserializes the data of record' do
265
+ expect(instance._deserialize("Object", instance.record)).to be_a_kind_of(Freeclimb::TranscribeUtteranceRecord)
266
+ end
267
+ it 'deserializes the data of privacy_for_logging' do
268
+ expect(instance._deserialize("Boolean", instance.privacy_for_logging)).to be_a_kind_of(TrueClass)
269
+ end
270
+ it 'deserializes the data of privacy_for_recording' do
271
+ expect(instance._deserialize("Boolean", instance.privacy_for_recording)).to be_a_kind_of(TrueClass)
272
+ end
273
+ it 'deserializes the data of prompts' do
274
+ expect(instance._deserialize("Array<Object>", instance.prompts)).to be_a_kind_of(Array)
275
+ end
276
+ end
277
+
278
+ describe 'test method "to_s"' do
279
+ it 'returns the string representation of the object' do
280
+ instance = Freeclimb::TranscribeUtterance.new(
281
+ action_url: "TS",
282
+ play_beep: true,
283
+ record: Freeclimb::TranscribeUtteranceRecord.new(
284
+ save_recording: true,
285
+ max_length_sec: 1,
286
+ rcrd_termination_silence_time_ms: 1,
287
+ ),
288
+ privacy_for_logging: true,
289
+ privacy_for_recording: true,
290
+ prompts: Array.new(),
291
+ )
292
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
293
+ end
294
+ end
295
+
296
+ describe 'test method "to_hash"' do
297
+ it 'returns the object in the form of hash' do
298
+ instance = Freeclimb::TranscribeUtterance.new(
299
+ action_url: "TS",
300
+ play_beep: true,
301
+ record: Freeclimb::TranscribeUtteranceRecord.new(
302
+ save_recording: true,
303
+ max_length_sec: 1,
304
+ rcrd_termination_silence_time_ms: 1,
305
+ ),
306
+ privacy_for_logging: true,
307
+ privacy_for_recording: true,
308
+ prompts: Array.new(),
309
+ )
310
+ expect(instance.to_hash).to be_a_kind_of(Hash)
311
+ end
312
+ it 'creates equal hash for two equal objects' do
313
+ obj = Object.new()
314
+ instance_1 = Freeclimb::TranscribeUtterance.new(
315
+ action_url: "TS",
316
+ play_beep: true,
317
+ record: Freeclimb::TranscribeUtteranceRecord.new(
318
+ save_recording: true,
319
+ max_length_sec: 1,
320
+ rcrd_termination_silence_time_ms: 1,
321
+ ),
322
+ privacy_for_logging: true,
323
+ privacy_for_recording: true,
324
+ prompts: Array.new(),
325
+ )
326
+ instance_2 = Freeclimb::TranscribeUtterance.new(
327
+ action_url: "TS",
328
+ play_beep: true,
329
+ record: Freeclimb::TranscribeUtteranceRecord.new(
330
+ save_recording: true,
331
+ max_length_sec: 1,
332
+ rcrd_termination_silence_time_ms: 1,
333
+ ),
334
+ privacy_for_logging: true,
335
+ privacy_for_recording: true,
336
+ prompts: Array.new(),
337
+ )
338
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
339
+ end
340
+ end
341
+
342
+ describe 'test method "_to_hash"' do
343
+ instance = Freeclimb::TranscribeUtterance.new(
344
+ action_url: "TS",
345
+
346
+ play_beep: true,
347
+
348
+ record: Freeclimb::TranscribeUtteranceRecord.new(
349
+ save_recording: true,
350
+ max_length_sec: 1,
351
+ rcrd_termination_silence_time_ms: 1,
352
+ ),
353
+
354
+ privacy_for_logging: true,
355
+
356
+ privacy_for_recording: true,
357
+
358
+ prompts: Array.new(),
359
+ )
360
+ it 'returns action_url in the form of hash' do
361
+ expect(instance._to_hash(instance.action_url)).to eq(instance.action_url)
362
+ end
363
+ it 'returns play_beep in the form of hash' do
364
+ expect(instance._to_hash(instance.play_beep)).to eq(instance.play_beep)
365
+ end
366
+ it 'returns record in the form of hash' do
367
+ expect(instance._to_hash(instance.record)).to eq({:maxLengthSec=>1, :rcrdTerminationSilenceTimeMs=>1, :saveRecording=>true})
368
+ end
369
+ it 'returns privacy_for_logging in the form of hash' do
370
+ expect(instance._to_hash(instance.privacy_for_logging)).to eq(instance.privacy_for_logging)
371
+ end
372
+ it 'returns privacy_for_recording in the form of hash' do
373
+ expect(instance._to_hash(instance.privacy_for_recording)).to eq(instance.privacy_for_recording)
374
+ end
375
+ it 'returns prompts in the form of hash' do
376
+ expect(instance._to_hash(instance.prompts)).to eq(instance.prompts)
377
+ end
378
+ end
379
+
380
+ end
@@ -25,4 +25,5 @@ describe Freeclimb::Unpark do
25
25
  expect(instance).to be_instance_of(Freeclimb::Unpark)
26
26
  end
27
27
  end
28
+
28
29
  end
@@ -25,6 +25,8 @@ describe Freeclimb::UpdateCallRequest do
25
25
  expect(instance).to be_instance_of(Freeclimb::UpdateCallRequest)
26
26
  end
27
27
  end
28
+
29
+
28
30
  describe 'test attribute "status"' do
29
31
  it 'assigns value CANCELED' do
30
32
  instance.status = Freeclimb::UpdateCallRequestStatus::CANCELED
@@ -25,6 +25,7 @@ describe Freeclimb::UpdateCallRequestStatus do
25
25
  expect(instance).to be_instance_of(Freeclimb::UpdateCallRequestStatus)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "CANCELED"' do
29
30
  it 'should work' do
30
31
  expect { Freeclimb::UpdateCallRequestStatus::CANCELED = "canceled" }.not_to raise_error
@@ -25,6 +25,7 @@ describe Freeclimb::UpdateConferenceParticipantRequest do
25
25
  expect(instance).to be_instance_of(Freeclimb::UpdateConferenceParticipantRequest)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "talk"' do
29
30
  it 'should work' do
30
31
  instance.talk = false
@@ -25,6 +25,7 @@ describe Freeclimb::UpdateConferenceRequest do
25
25
  expect(instance).to be_instance_of(Freeclimb::UpdateConferenceRequest)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "_alias"' do
29
30
  it 'should work' do
30
31
  instance._alias = "TEST_STRING"
@@ -32,6 +33,7 @@ describe Freeclimb::UpdateConferenceRequest do
32
33
  end
33
34
  end
34
35
 
36
+
35
37
  describe 'test attribute "play_beep"' do
36
38
  it 'assigns value ALWAYS' do
37
39
  instance.play_beep = Freeclimb::PlayBeep::ALWAYS
@@ -51,6 +53,7 @@ describe Freeclimb::UpdateConferenceRequest do
51
53
  end
52
54
  end
53
55
 
56
+
54
57
  describe 'test attribute "status"' do
55
58
  it 'assigns value EMPTY' do
56
59
  instance.status = Freeclimb::UpdateConferenceRequestStatus::EMPTY
@@ -25,6 +25,7 @@ describe Freeclimb::UpdateConferenceRequestStatus do
25
25
  expect(instance).to be_instance_of(Freeclimb::UpdateConferenceRequestStatus)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "EMPTY"' do
29
30
  it 'should work' do
30
31
  expect { Freeclimb::UpdateConferenceRequestStatus::EMPTY = "empty" }.not_to raise_error