freeclimb 4.3.0 → 4.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +20 -4
  5. data/docs/DefaultApi.md +433 -0
  6. data/docs/IncomingNumberRequest.md +3 -1
  7. data/docs/SMSTenDLCBrand.md +78 -0
  8. data/docs/SMSTenDLCBrandsListResult.md +32 -0
  9. data/docs/SMSTenDLCBrandsListResultAllOf.md +18 -0
  10. data/docs/SMSTenDLCCampaign.md +78 -0
  11. data/docs/SMSTenDLCCampaignsListResult.md +32 -0
  12. data/docs/SMSTenDLCCampaignsListResultAllOf.md +18 -0
  13. data/docs/SMSTenDLCPartnerCampaign.md +74 -0
  14. data/docs/SMSTenDLCPartnerCampaignBrand.md +38 -0
  15. data/docs/SMSTenDLCPartnerCampaignsListResult.md +32 -0
  16. data/docs/SMSTenDLCPartnerCampaignsListResultAllOf.md +18 -0
  17. data/lib/freeclimb/api/default_api.rb +360 -0
  18. data/lib/freeclimb/models/incoming_number_request.rb +15 -4
  19. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +960 -0
  20. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +306 -0
  21. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result_all_of.rb +221 -0
  22. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +814 -0
  23. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +306 -0
  24. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result_all_of.rb +221 -0
  25. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +807 -0
  26. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +445 -0
  27. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +306 -0
  28. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result_all_of.rb +221 -0
  29. data/lib/freeclimb/version.rb +1 -1
  30. data/lib/freeclimb.rb +10 -0
  31. data/openapi.json +1277 -12
  32. data/spec/api/default_api_spec.rb +151 -1
  33. data/spec/models/account_request_spec.rb +143 -2
  34. data/spec/models/account_result_spec.rb +377 -13
  35. data/spec/models/account_status_spec.rb +39 -6
  36. data/spec/models/account_type_spec.rb +26 -4
  37. data/spec/models/add_to_conference_spec.rb +343 -10
  38. data/spec/models/answered_by_spec.rb +26 -4
  39. data/spec/models/application_list_spec.rb +293 -8
  40. data/spec/models/application_request_spec.rb +268 -7
  41. data/spec/models/application_result_spec.rb +418 -13
  42. data/spec/models/available_number_list_spec.rb +293 -8
  43. data/spec/models/available_number_spec.rb +263 -7
  44. data/spec/models/buy_incoming_number_request_spec.rb +168 -3
  45. data/spec/models/call_direction_spec.rb +39 -6
  46. data/spec/models/call_list_spec.rb +293 -8
  47. data/spec/models/call_result_spec.rb +603 -22
  48. data/spec/models/call_status_spec.rb +104 -16
  49. data/spec/models/capabilities_spec.rb +218 -5
  50. data/spec/models/conference_list_spec.rb +293 -8
  51. data/spec/models/conference_participant_list_spec.rb +293 -8
  52. data/spec/models/conference_participant_result_spec.rb +343 -10
  53. data/spec/models/conference_result_spec.rb +464 -16
  54. data/spec/models/conference_status_spec.rb +52 -8
  55. data/spec/models/create_conference_request_spec.rb +228 -6
  56. data/spec/models/create_conference_spec.rb +253 -7
  57. data/spec/models/enqueue_spec.rb +193 -4
  58. data/spec/models/filter_logs_request_spec.rb +118 -1
  59. data/spec/models/get_digits_spec.rb +318 -9
  60. data/spec/models/get_speech_reason_spec.rb +78 -12
  61. data/spec/models/get_speech_spec.rb +388 -14
  62. data/spec/models/grammar_file_built_in_spec.rb +195 -30
  63. data/spec/models/grammar_type_spec.rb +26 -4
  64. data/spec/models/hangup_spec.rb +118 -1
  65. data/spec/models/if_machine_spec.rb +26 -4
  66. data/spec/models/incoming_number_list_spec.rb +293 -8
  67. data/spec/models/incoming_number_request_spec.rb +173 -2
  68. data/spec/models/incoming_number_result_spec.rb +488 -16
  69. data/spec/models/language_spec.rb +338 -52
  70. data/spec/models/log_level_spec.rb +39 -6
  71. data/spec/models/log_list_spec.rb +293 -8
  72. data/spec/models/log_result_spec.rb +275 -8
  73. data/spec/models/machine_type_spec.rb +26 -4
  74. data/spec/models/make_call_request_spec.rb +343 -10
  75. data/spec/models/message_direction_spec.rb +26 -4
  76. data/spec/models/message_request_spec.rb +318 -9
  77. data/spec/models/message_result_spec.rb +431 -13
  78. data/spec/models/message_status_spec.rb +143 -22
  79. data/spec/models/messages_list_spec.rb +293 -8
  80. data/spec/models/mutable_resource_model_spec.rb +193 -4
  81. data/spec/models/out_dial_spec.rb +345 -11
  82. data/spec/models/pagination_model_spec.rb +268 -7
  83. data/spec/models/park_spec.rb +168 -3
  84. data/spec/models/pause_spec.rb +118 -1
  85. data/spec/models/percl_command_spec.rb +132 -3
  86. data/spec/models/percl_script_spec.rb +118 -1
  87. data/spec/models/play_beep_spec.rb +52 -8
  88. data/spec/models/play_early_media_spec.rb +118 -1
  89. data/spec/models/play_spec.rb +193 -4
  90. data/spec/models/queue_list_spec.rb +293 -8
  91. data/spec/models/queue_member_list_spec.rb +293 -8
  92. data/spec/models/queue_member_spec.rb +218 -5
  93. data/spec/models/queue_request_spec.rb +143 -2
  94. data/spec/models/queue_result_spec.rb +369 -11
  95. data/spec/models/queue_result_status_spec.rb +52 -8
  96. data/spec/models/record_utterance_spec.rb +268 -7
  97. data/spec/models/record_utterance_term_reason_spec.rb +52 -8
  98. data/spec/models/recording_list_spec.rb +293 -8
  99. data/spec/models/recording_result_spec.rb +318 -9
  100. data/spec/models/redirect_spec.rb +118 -1
  101. data/spec/models/reject_spec.rb +118 -1
  102. data/spec/models/remove_from_conference_spec.rb +118 -1
  103. data/spec/models/request_type_spec.rb +299 -46
  104. data/spec/models/say_spec.rb +218 -5
  105. data/spec/models/send_digits_spec.rb +168 -3
  106. data/spec/models/set_listen_spec.rb +143 -2
  107. data/spec/models/set_talk_spec.rb +143 -2
  108. data/spec/models/sms_spec.rb +193 -4
  109. data/spec/models/sms_ten_dlc_brand_spec.rb +1240 -0
  110. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +361 -0
  111. data/spec/models/sms_ten_dlc_campaign_spec.rb +1055 -0
  112. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +361 -0
  113. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +448 -0
  114. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +994 -0
  115. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +361 -0
  116. data/spec/models/terminate_conference_spec.rb +118 -1
  117. data/spec/models/update_call_request_spec.rb +120 -2
  118. data/spec/models/update_call_request_status_spec.rb +26 -4
  119. data/spec/models/update_conference_participant_request_spec.rb +143 -2
  120. data/spec/models/update_conference_request_spec.rb +180 -5
  121. data/spec/models/update_conference_request_status_spec.rb +26 -4
  122. metadata +102 -68
@@ -27,13 +27,154 @@ describe Freeclimb::SetTalk do
27
27
  end
28
28
  describe 'test attribute "call_id"' do
29
29
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
30
+ instance.call_id = "TEST_STRING"
31
+ expect(instance.call_id).to eq("TEST_STRING")
31
32
  end
32
33
  end
33
34
 
34
35
  describe 'test attribute "talk"' do
35
36
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ instance.talk = false
38
+ expect(instance.talk).to eq(false)
39
+ end
40
+ end
41
+
42
+ describe 'test method "initialize"' do
43
+ it 'properly initializes with values' do
44
+ expect{instance = Freeclimb::SetTalk.new(
45
+ call_id: "TS",
46
+ talk: true,
47
+ )}.not_to raise_error()
48
+ end
49
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::SetTalk' do
50
+ expect{instance = Freeclimb::SetTalk.new(
51
+ call_id: "TS",
52
+ talk: true,
53
+ invalid_attribute: true
54
+ )}.to raise_error(ArgumentError)
55
+ end
56
+ it 'fails to initialize with invalid attribute' do
57
+ expect{instance = Freeclimb::SetTalk.new(
58
+ call_id: "TS",
59
+ talk: true,
60
+ invalid_attribute: true
61
+ )}.to raise_error(ArgumentError)
62
+ end
63
+ end
64
+
65
+ describe 'test method "valid"' do
66
+ it 'checks if properties are valid' do
67
+ instance = Freeclimb::SetTalk.new(
68
+ call_id: "TS",
69
+ talk: true,
70
+ )
71
+ expect(instance.valid?).to eq(true)
72
+ end
73
+ end
74
+
75
+ describe 'test method "eql?"' do
76
+ it 'checks if objects are equal' do
77
+ obj = Object.new()
78
+ instance_1 = Freeclimb::SetTalk.new(
79
+ call_id: "TS",
80
+ talk: true,
81
+ )
82
+ instance_2 = Freeclimb::SetTalk.new(
83
+ call_id: "TS",
84
+ talk: true,
85
+ )
86
+ expect(instance_1.eql?(instance_2)).to eq(true)
87
+ end
88
+ it 'checks if objects are not equal' do
89
+ instance_1 = Freeclimb::SetTalk.new(
90
+ call_id: "TS",
91
+ talk: true,
92
+ )
93
+ instance_2 = Freeclimb::SetTalk.new(
94
+ call_id: "ST",
95
+ talk: false,
96
+ )
97
+ expect(instance_1.eql?(instance_2)).to eq(false)
98
+ end
99
+ end
100
+
101
+ describe 'test method "hash"' do
102
+ it 'calculates hash code' do
103
+ instance = Freeclimb::SetTalk.new(
104
+ call_id: "TS",
105
+ talk: true,
106
+ )
107
+ expect(instance.hash).to be_a_kind_of(Integer)
108
+ end
109
+ end
110
+
111
+ describe 'test method "build_from_hash"' do
112
+ it 'builds equivalent model from hash code' do
113
+ instance_1 = Freeclimb::SetTalk.new(
114
+ call_id: "TS",
115
+ talk: true,
116
+ )
117
+ instance_2 = Freeclimb::SetTalk.new
118
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
119
+ end
120
+ end
121
+
122
+ describe 'test method "_deserialize"' do
123
+ instance = Freeclimb::SetTalk.new(
124
+ call_id: "TS",
125
+ talk: true,
126
+ )
127
+ it 'deserializes the data of call_id' do
128
+ expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
129
+ end
130
+ it 'deserializes the data of talk' do
131
+ expect(instance._deserialize("Boolean", instance.talk)).to be_a_kind_of(TrueClass)
132
+ end
133
+ end
134
+
135
+ describe 'test method "to_s"' do
136
+ it 'returns the string representation of the object' do
137
+ instance = Freeclimb::SetTalk.new(
138
+ call_id: "TS",
139
+ talk: true,
140
+ )
141
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
142
+ end
143
+ end
144
+
145
+ describe 'test method "to_hash"' do
146
+ it 'returns the object in the form of hash' do
147
+ instance = Freeclimb::SetTalk.new(
148
+ call_id: "TS",
149
+ talk: true,
150
+ )
151
+ expect(instance.to_hash).to be_a_kind_of(Hash)
152
+ end
153
+ it 'creates equal hash for two equal objects' do
154
+ obj = Object.new()
155
+ instance_1 = Freeclimb::SetTalk.new(
156
+ call_id: "TS",
157
+ talk: true,
158
+ )
159
+ instance_2 = Freeclimb::SetTalk.new(
160
+ call_id: "TS",
161
+ talk: true,
162
+ )
163
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
164
+ end
165
+ end
166
+
167
+ describe 'test method "_to_hash"' do
168
+ instance = Freeclimb::SetTalk.new(
169
+ call_id: "TS",
170
+
171
+ talk: true,
172
+ )
173
+ it 'returns call_id in the form of hash' do
174
+ expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
175
+ end
176
+ it 'returns talk in the form of hash' do
177
+ expect(instance._to_hash(instance.talk)).to eq(instance.talk)
37
178
  end
38
179
  end
39
180
 
@@ -27,25 +27,214 @@ describe Freeclimb::Sms do
27
27
  end
28
28
  describe 'test attribute "to"' do
29
29
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
30
+ instance.to = "TEST_STRING"
31
+ expect(instance.to).to eq("TEST_STRING")
31
32
  end
32
33
  end
33
34
 
34
35
  describe 'test attribute "from"' do
35
36
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ instance.from = "TEST_STRING"
38
+ expect(instance.from).to eq("TEST_STRING")
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "text"' do
41
43
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ instance.text = "TEST_STRING"
45
+ expect(instance.text).to eq("TEST_STRING")
43
46
  end
44
47
  end
45
48
 
46
49
  describe 'test attribute "notification_url"' do
47
50
  it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ instance.notification_url = "TEST_STRING"
52
+ expect(instance.notification_url).to eq("TEST_STRING")
53
+ end
54
+ end
55
+
56
+ describe 'test method "initialize"' do
57
+ it 'properly initializes with values' do
58
+ expect{instance = Freeclimb::Sms.new(
59
+ to: "TS",
60
+ from: "TS",
61
+ text: "TS",
62
+ notification_url: "TS",
63
+ )}.not_to raise_error()
64
+ end
65
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::Sms' do
66
+ expect{instance = Freeclimb::Sms.new(
67
+ to: "TS",
68
+ from: "TS",
69
+ text: "TS",
70
+ notification_url: "TS",
71
+ invalid_attribute: true
72
+ )}.to raise_error(ArgumentError)
73
+ end
74
+ it 'fails to initialize with invalid attribute' do
75
+ expect{instance = Freeclimb::Sms.new(
76
+ to: "TS",
77
+ from: "TS",
78
+ text: "TS",
79
+ notification_url: "TS",
80
+ invalid_attribute: true
81
+ )}.to raise_error(ArgumentError)
82
+ end
83
+ end
84
+
85
+ describe 'test method "valid"' do
86
+ it 'checks if properties are valid' do
87
+ instance = Freeclimb::Sms.new(
88
+ to: "TS",
89
+ from: "TS",
90
+ text: "TS",
91
+ notification_url: "TS",
92
+ )
93
+ expect(instance.valid?).to eq(true)
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::Sms.new(
101
+ to: "TS",
102
+ from: "TS",
103
+ text: "TS",
104
+ notification_url: "TS",
105
+ )
106
+ instance_2 = Freeclimb::Sms.new(
107
+ to: "TS",
108
+ from: "TS",
109
+ text: "TS",
110
+ notification_url: "TS",
111
+ )
112
+ expect(instance_1.eql?(instance_2)).to eq(true)
113
+ end
114
+ it 'checks if objects are not equal' do
115
+ instance_1 = Freeclimb::Sms.new(
116
+ to: "TS",
117
+ from: "TS",
118
+ text: "TS",
119
+ notification_url: "TS",
120
+ )
121
+ instance_2 = Freeclimb::Sms.new(
122
+ to: "ST",
123
+ from: "ST",
124
+ text: "ST",
125
+ notification_url: "ST",
126
+ )
127
+ expect(instance_1.eql?(instance_2)).to eq(false)
128
+ end
129
+ end
130
+
131
+ describe 'test method "hash"' do
132
+ it 'calculates hash code' do
133
+ instance = Freeclimb::Sms.new(
134
+ to: "TS",
135
+ from: "TS",
136
+ text: "TS",
137
+ notification_url: "TS",
138
+ )
139
+ expect(instance.hash).to be_a_kind_of(Integer)
140
+ end
141
+ end
142
+
143
+ describe 'test method "build_from_hash"' do
144
+ it 'builds equivalent model from hash code' do
145
+ instance_1 = Freeclimb::Sms.new(
146
+ to: "TS",
147
+ from: "TS",
148
+ text: "TS",
149
+ notification_url: "TS",
150
+ )
151
+ instance_2 = Freeclimb::Sms.new
152
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
153
+ end
154
+ end
155
+
156
+ describe 'test method "_deserialize"' do
157
+ instance = Freeclimb::Sms.new(
158
+ to: "TS",
159
+ from: "TS",
160
+ text: "TS",
161
+ notification_url: "TS",
162
+ )
163
+ it 'deserializes the data of to' do
164
+ expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
165
+ end
166
+ it 'deserializes the data of from' do
167
+ expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
168
+ end
169
+ it 'deserializes the data of text' do
170
+ expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String)
171
+ end
172
+ it 'deserializes the data of notification_url' do
173
+ expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String)
174
+ end
175
+ end
176
+
177
+ describe 'test method "to_s"' do
178
+ it 'returns the string representation of the object' do
179
+ instance = Freeclimb::Sms.new(
180
+ to: "TS",
181
+ from: "TS",
182
+ text: "TS",
183
+ notification_url: "TS",
184
+ )
185
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
186
+ end
187
+ end
188
+
189
+ describe 'test method "to_hash"' do
190
+ it 'returns the object in the form of hash' do
191
+ instance = Freeclimb::Sms.new(
192
+ to: "TS",
193
+ from: "TS",
194
+ text: "TS",
195
+ notification_url: "TS",
196
+ )
197
+ expect(instance.to_hash).to be_a_kind_of(Hash)
198
+ end
199
+ it 'creates equal hash for two equal objects' do
200
+ obj = Object.new()
201
+ instance_1 = Freeclimb::Sms.new(
202
+ to: "TS",
203
+ from: "TS",
204
+ text: "TS",
205
+ notification_url: "TS",
206
+ )
207
+ instance_2 = Freeclimb::Sms.new(
208
+ to: "TS",
209
+ from: "TS",
210
+ text: "TS",
211
+ notification_url: "TS",
212
+ )
213
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
214
+ end
215
+ end
216
+
217
+ describe 'test method "_to_hash"' do
218
+ instance = Freeclimb::Sms.new(
219
+ to: "TS",
220
+
221
+ from: "TS",
222
+
223
+ text: "TS",
224
+
225
+ notification_url: "TS",
226
+ )
227
+ it 'returns to in the form of hash' do
228
+ expect(instance._to_hash(instance.to)).to eq(instance.to)
229
+ end
230
+ it 'returns from in the form of hash' do
231
+ expect(instance._to_hash(instance.from)).to eq(instance.from)
232
+ end
233
+ it 'returns text in the form of hash' do
234
+ expect(instance._to_hash(instance.text)).to eq(instance.text)
235
+ end
236
+ it 'returns notification_url in the form of hash' do
237
+ expect(instance._to_hash(instance.notification_url)).to eq(instance.notification_url)
49
238
  end
50
239
  end
51
240