freeclimb 4.4.3 → 4.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +4 -4
  5. data/lib/freeclimb/version.rb +1 -1
  6. data/openapi.json +1 -8
  7. data/spec/models/account_request_spec.rb +1 -0
  8. data/spec/models/account_result_spec.rb +3 -0
  9. data/spec/models/account_status_spec.rb +1 -0
  10. data/spec/models/account_type_spec.rb +1 -0
  11. data/spec/models/add_to_conference_spec.rb +1 -0
  12. data/spec/models/answered_by_spec.rb +1 -0
  13. data/spec/models/application_list_spec.rb +1 -0
  14. data/spec/models/application_request_spec.rb +1 -0
  15. data/spec/models/application_result_spec.rb +1 -0
  16. data/spec/models/available_number_list_spec.rb +1 -0
  17. data/spec/models/available_number_spec.rb +1 -0
  18. data/spec/models/buy_incoming_number_request_spec.rb +1 -0
  19. data/spec/models/call_direction_spec.rb +1 -0
  20. data/spec/models/call_list_spec.rb +1 -0
  21. data/spec/models/call_result_spec.rb +4 -0
  22. data/spec/models/call_status_spec.rb +1 -0
  23. data/spec/models/capabilities_spec.rb +1 -0
  24. data/spec/models/conference_list_spec.rb +1 -0
  25. data/spec/models/conference_participant_list_spec.rb +1 -0
  26. data/spec/models/conference_participant_result_spec.rb +1 -0
  27. data/spec/models/conference_result_spec.rb +3 -0
  28. data/spec/models/conference_status_spec.rb +1 -0
  29. data/spec/models/create_conference_request_spec.rb +2 -0
  30. data/spec/models/create_conference_spec.rb +2 -0
  31. data/spec/models/dequeue_spec.rb +1 -0
  32. data/spec/models/enqueue_spec.rb +1 -0
  33. data/spec/models/filter_logs_request_spec.rb +1 -0
  34. data/spec/models/get_digits_spec.rb +1 -0
  35. data/spec/models/get_speech_reason_spec.rb +1 -0
  36. data/spec/models/get_speech_spec.rb +2 -0
  37. data/spec/models/grammar_file_built_in_spec.rb +1 -0
  38. data/spec/models/grammar_type_spec.rb +1 -0
  39. data/spec/models/hangup_spec.rb +1 -0
  40. data/spec/models/if_machine_spec.rb +1 -0
  41. data/spec/models/incoming_number_list_spec.rb +1 -0
  42. data/spec/models/incoming_number_request_spec.rb +1 -0
  43. data/spec/models/incoming_number_result_spec.rb +1 -0
  44. data/spec/models/language_spec.rb +1 -0
  45. data/spec/models/log_level_spec.rb +1 -0
  46. data/spec/models/log_list_spec.rb +1 -0
  47. data/spec/models/log_result_spec.rb +2 -0
  48. data/spec/models/machine_type_spec.rb +1 -0
  49. data/spec/models/make_call_request_spec.rb +1 -0
  50. data/spec/models/message_direction_spec.rb +1 -0
  51. data/spec/models/message_request_spec.rb +1 -0
  52. data/spec/models/message_result_spec.rb +2 -0
  53. data/spec/models/message_status_spec.rb +1 -0
  54. data/spec/models/messages_list_spec.rb +1 -0
  55. data/spec/models/mutable_resource_model_spec.rb +1 -0
  56. data/spec/models/out_dial_spec.rb +2 -0
  57. data/spec/models/pagination_model_spec.rb +1 -0
  58. data/spec/models/park_spec.rb +1 -0
  59. data/spec/models/pause_spec.rb +1 -0
  60. data/spec/models/percl_command_spec.rb +1 -0
  61. data/spec/models/percl_script_spec.rb +1 -0
  62. data/spec/models/play_beep_spec.rb +1 -0
  63. data/spec/models/play_early_media_spec.rb +1 -0
  64. data/spec/models/play_spec.rb +1 -0
  65. data/spec/models/queue_list_spec.rb +1 -0
  66. data/spec/models/queue_member_list_spec.rb +1 -0
  67. data/spec/models/queue_member_spec.rb +1 -0
  68. data/spec/models/queue_request_spec.rb +1 -0
  69. data/spec/models/queue_result_spec.rb +1 -0
  70. data/spec/models/queue_result_status_spec.rb +1 -0
  71. data/spec/models/record_utterance_spec.rb +1 -0
  72. data/spec/models/record_utterance_term_reason_spec.rb +1 -0
  73. data/spec/models/recording_list_spec.rb +1 -0
  74. data/spec/models/recording_result_spec.rb +1 -0
  75. data/spec/models/redirect_spec.rb +1 -0
  76. data/spec/models/reject_spec.rb +1 -0
  77. data/spec/models/remove_from_conference_spec.rb +1 -0
  78. data/spec/models/request_type_spec.rb +1 -0
  79. data/spec/models/say_spec.rb +1 -0
  80. data/spec/models/send_digits_spec.rb +1 -0
  81. data/spec/models/set_listen_spec.rb +1 -0
  82. data/spec/models/set_talk_spec.rb +1 -0
  83. data/spec/models/sms_spec.rb +1 -0
  84. data/spec/models/sms_ten_dlc_brand_spec.rb +120 -73
  85. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +1 -0
  86. data/spec/models/sms_ten_dlc_campaign_spec.rb +72 -42
  87. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +1 -0
  88. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +43 -21
  89. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +91 -48
  90. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +1 -0
  91. data/spec/models/start_record_call_spec.rb +1 -0
  92. data/spec/models/terminate_conference_spec.rb +1 -0
  93. data/spec/models/unpark_spec.rb +1 -0
  94. data/spec/models/update_call_request_spec.rb +2 -0
  95. data/spec/models/update_call_request_status_spec.rb +1 -0
  96. data/spec/models/update_conference_participant_request_spec.rb +1 -0
  97. data/spec/models/update_conference_request_spec.rb +3 -0
  98. data/spec/models/update_conference_request_status_spec.rb +1 -0
  99. metadata +2 -2
@@ -25,6 +25,7 @@ describe Freeclimb::SMSTenDLCCampaign do
25
25
  expect(instance).to be_instance_of(Freeclimb::SMSTenDLCCampaign)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "account_id"' do
29
30
  it 'should work' do
30
31
  instance.account_id = "TEST_STRING"
@@ -46,17 +47,17 @@ describe Freeclimb::SMSTenDLCCampaign do
46
47
  end
47
48
  end
48
49
 
49
-
50
50
  describe 'test attribute "reseller_id"' do
51
- it 'should work with length 8' do
52
- instance.reseller_id = "TEST_STR"
53
- expect(instance.reseller_id).to eq("TEST_STR")
51
+ it 'should assign a value of maxLength' do
52
+ instance.reseller_id = "T" * 8
53
+ expect(instance.reseller_id).to eq("T" * 8)
54
54
  end
55
- it 'should not work with length > 8' do
56
- expect{instance.reseller_id = "TEST_STRING"}.to raise_error(ArgumentError)
55
+ it 'should not assign a value over maxLength' do
56
+ expect{instance.reseller_id = "T" * (8 + 1)}.to raise_error(ArgumentError)
57
57
  end
58
58
  end
59
59
 
60
+
60
61
  describe 'test attribute "status"' do
61
62
  it 'assigns value ACTIVE' do
62
63
  instance.status = "ACTIVE"
@@ -93,21 +94,23 @@ describe Freeclimb::SMSTenDLCCampaign do
93
94
  end
94
95
  end
95
96
 
96
-
97
97
  describe 'test attribute "brand_id"' do
98
- it 'should work with length 8' do
99
- instance.brand_id = "TEST_STR"
100
- expect(instance.brand_id).to eq("TEST_STR")
98
+ it 'should assign a value of maxLength' do
99
+ instance.brand_id = "T" * 8
100
+ expect(instance.brand_id).to eq("T" * 8)
101
101
  end
102
- it 'should not work with length > 8' do
103
- expect{instance.brand_id = "TEST_STRING"}.to raise_error(ArgumentError)
102
+ it 'should not assign a value over maxLength' do
103
+ expect{instance.brand_id = "T" * (8 + 1)}.to raise_error(ArgumentError)
104
104
  end
105
105
  end
106
106
 
107
107
  describe 'test attribute "usecase"' do
108
- it 'should work' do
109
- instance.usecase = "TEST_STRING"
110
- expect(instance.usecase).to eq("TEST_STRING")
108
+ it 'should assign a value of maxLength' do
109
+ instance.usecase = "T" * 20
110
+ expect(instance.usecase).to eq("T" * 20)
111
+ end
112
+ it 'should not assign a value over maxLength' do
113
+ expect{instance.usecase = "T" * (20 + 1)}.to raise_error(ArgumentError)
111
114
  end
112
115
  end
113
116
 
@@ -119,9 +122,12 @@ describe Freeclimb::SMSTenDLCCampaign do
119
122
  end
120
123
 
121
124
  describe 'test attribute "description"' do
122
- it 'should work' do
123
- instance.description = "TEST_STRING"
124
- expect(instance.description).to eq("TEST_STRING")
125
+ it 'should assign a value of maxLength' do
126
+ instance.description = "T" * 4096
127
+ expect(instance.description).to eq("T" * 4096)
128
+ end
129
+ it 'should not assign a value over maxLength' do
130
+ expect{instance.description = "T" * (4096 + 1)}.to raise_error(ArgumentError)
125
131
  end
126
132
  end
127
133
 
@@ -189,58 +195,82 @@ describe Freeclimb::SMSTenDLCCampaign do
189
195
  end
190
196
 
191
197
  describe 'test attribute "sample1"' do
192
- it 'should work' do
193
- instance.sample1 = "TEST_STRING"
194
- expect(instance.sample1).to eq("TEST_STRING")
198
+ it 'should assign a value of maxLength' do
199
+ instance.sample1 = "T" * 1024
200
+ expect(instance.sample1).to eq("T" * 1024)
201
+ end
202
+ it 'should not assign a value over maxLength' do
203
+ expect{instance.sample1 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
195
204
  end
196
205
  end
197
206
 
198
207
  describe 'test attribute "sample2"' do
199
- it 'should work' do
200
- instance.sample2 = "TEST_STRING"
201
- expect(instance.sample2).to eq("TEST_STRING")
208
+ it 'should assign a value of maxLength' do
209
+ instance.sample2 = "T" * 1024
210
+ expect(instance.sample2).to eq("T" * 1024)
211
+ end
212
+ it 'should not assign a value over maxLength' do
213
+ expect{instance.sample2 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
202
214
  end
203
215
  end
204
216
 
205
217
  describe 'test attribute "sample3"' do
206
- it 'should work' do
207
- instance.sample3 = "TEST_STRING"
208
- expect(instance.sample3).to eq("TEST_STRING")
218
+ it 'should assign a value of maxLength' do
219
+ instance.sample3 = "T" * 1024
220
+ expect(instance.sample3).to eq("T" * 1024)
221
+ end
222
+ it 'should not assign a value over maxLength' do
223
+ expect{instance.sample3 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
209
224
  end
210
225
  end
211
226
 
212
227
  describe 'test attribute "sample4"' do
213
- it 'should work' do
214
- instance.sample4 = "TEST_STRING"
215
- expect(instance.sample4).to eq("TEST_STRING")
228
+ it 'should assign a value of maxLength' do
229
+ instance.sample4 = "T" * 1024
230
+ expect(instance.sample4).to eq("T" * 1024)
231
+ end
232
+ it 'should not assign a value over maxLength' do
233
+ expect{instance.sample4 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
216
234
  end
217
235
  end
218
236
 
219
237
  describe 'test attribute "sample5"' do
220
- it 'should work' do
221
- instance.sample5 = "TEST_STRING"
222
- expect(instance.sample5).to eq("TEST_STRING")
238
+ it 'should assign a value of maxLength' do
239
+ instance.sample5 = "T" * 1024
240
+ expect(instance.sample5).to eq("T" * 1024)
241
+ end
242
+ it 'should not assign a value over maxLength' do
243
+ expect{instance.sample5 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
223
244
  end
224
245
  end
225
246
 
226
247
  describe 'test attribute "message_flow"' do
227
- it 'should work' do
228
- instance.message_flow = "TEST_STRING"
229
- expect(instance.message_flow).to eq("TEST_STRING")
248
+ it 'should assign a value of maxLength' do
249
+ instance.message_flow = "T" * 2048
250
+ expect(instance.message_flow).to eq("T" * 2048)
251
+ end
252
+ it 'should not assign a value over maxLength' do
253
+ expect{instance.message_flow = "T" * (2048 + 1)}.to raise_error(ArgumentError)
230
254
  end
231
255
  end
232
256
 
233
257
  describe 'test attribute "help_message"' do
234
- it 'should work' do
235
- instance.help_message = "TEST_STRING"
236
- expect(instance.help_message).to eq("TEST_STRING")
258
+ it 'should assign a value of maxLength' do
259
+ instance.help_message = "T" * 255
260
+ expect(instance.help_message).to eq("T" * 255)
261
+ end
262
+ it 'should not assign a value over maxLength' do
263
+ expect{instance.help_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
237
264
  end
238
265
  end
239
266
 
240
267
  describe 'test attribute "reference_id"' do
241
- it 'should work' do
242
- instance.reference_id = "TEST_STRING"
243
- expect(instance.reference_id).to eq("TEST_STRING")
268
+ it 'should assign a value of maxLength' do
269
+ instance.reference_id = "T" * 50
270
+ expect(instance.reference_id).to eq("T" * 50)
271
+ end
272
+ it 'should not assign a value over maxLength' do
273
+ expect{instance.reference_id = "T" * (50 + 1)}.to raise_error(ArgumentError)
244
274
  end
245
275
  end
246
276
 
@@ -25,6 +25,7 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
25
25
  expect(instance).to be_instance_of(Freeclimb::SMSTenDLCCampaignsListResult)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "total"' do
29
30
  it 'should work' do
30
31
  instance.total = 1
@@ -25,6 +25,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaignBrand do
25
25
  expect(instance).to be_instance_of(Freeclimb::SMSTenDLCPartnerCampaignBrand)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "account_id"' do
29
30
  it 'should work' do
30
31
  instance.account_id = "TEST_STRING"
@@ -40,51 +41,72 @@ describe Freeclimb::SMSTenDLCPartnerCampaignBrand do
40
41
  end
41
42
 
42
43
  describe 'test attribute "first_name"' do
43
- it 'should work' do
44
- instance.first_name = "TEST_STRING"
45
- expect(instance.first_name).to eq("TEST_STRING")
44
+ it 'should assign a value of maxLength' do
45
+ instance.first_name = "T" * 100
46
+ expect(instance.first_name).to eq("T" * 100)
47
+ end
48
+ it 'should not assign a value over maxLength' do
49
+ expect{instance.first_name = "T" * (100 + 1)}.to raise_error(ArgumentError)
46
50
  end
47
51
  end
48
52
 
49
53
  describe 'test attribute "last_name"' do
50
- it 'should work' do
51
- instance.last_name = "TEST_STRING"
52
- expect(instance.last_name).to eq("TEST_STRING")
54
+ it 'should assign a value of maxLength' do
55
+ instance.last_name = "T" * 100
56
+ expect(instance.last_name).to eq("T" * 100)
57
+ end
58
+ it 'should not assign a value over maxLength' do
59
+ expect{instance.last_name = "T" * (100 + 1)}.to raise_error(ArgumentError)
53
60
  end
54
61
  end
55
62
 
56
63
  describe 'test attribute "display_name"' do
57
- it 'should work' do
58
- instance.display_name = "TEST_STRING"
59
- expect(instance.display_name).to eq("TEST_STRING")
64
+ it 'should assign a value of maxLength' do
65
+ instance.display_name = "T" * 255
66
+ expect(instance.display_name).to eq("T" * 255)
67
+ end
68
+ it 'should not assign a value over maxLength' do
69
+ expect{instance.display_name = "T" * (255 + 1)}.to raise_error(ArgumentError)
60
70
  end
61
71
  end
62
72
 
63
73
  describe 'test attribute "company_name"' do
64
- it 'should work' do
65
- instance.company_name = "TEST_STRING"
66
- expect(instance.company_name).to eq("TEST_STRING")
74
+ it 'should assign a value of maxLength' do
75
+ instance.company_name = "T" * 255
76
+ expect(instance.company_name).to eq("T" * 255)
77
+ end
78
+ it 'should not assign a value over maxLength' do
79
+ expect{instance.company_name = "T" * (255 + 1)}.to raise_error(ArgumentError)
67
80
  end
68
81
  end
69
82
 
70
83
  describe 'test attribute "phone"' do
71
- it 'should work' do
72
- instance.phone = "TEST_STRING"
73
- expect(instance.phone).to eq("TEST_STRING")
84
+ it 'should assign a value of maxLength' do
85
+ instance.phone = "T" * 20
86
+ expect(instance.phone).to eq("T" * 20)
87
+ end
88
+ it 'should not assign a value over maxLength' do
89
+ expect{instance.phone = "T" * (20 + 1)}.to raise_error(ArgumentError)
74
90
  end
75
91
  end
76
92
 
77
93
  describe 'test attribute "email"' do
78
- it 'should work' do
79
- instance.email = "TEST_STRING"
80
- expect(instance.email).to eq("TEST_STRING")
94
+ it 'should assign a value of maxLength' do
95
+ instance.email = "T" * 100
96
+ expect(instance.email).to eq("T" * 100)
97
+ end
98
+ it 'should not assign a value over maxLength' do
99
+ expect{instance.email = "T" * (100 + 1)}.to raise_error(ArgumentError)
81
100
  end
82
101
  end
83
102
 
84
103
  describe 'test attribute "website"' do
85
- it 'should work' do
86
- instance.website = "TEST_STRING"
87
- expect(instance.website).to eq("TEST_STRING")
104
+ it 'should assign a value of maxLength' do
105
+ instance.website = "T" * 100
106
+ expect(instance.website).to eq("T" * 100)
107
+ end
108
+ it 'should not assign a value over maxLength' do
109
+ expect{instance.website = "T" * (100 + 1)}.to raise_error(ArgumentError)
88
110
  end
89
111
  end
90
112
 
@@ -25,6 +25,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
25
25
  expect(instance).to be_instance_of(Freeclimb::SMSTenDLCPartnerCampaign)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "account_id"' do
29
30
  it 'should work' do
30
31
  instance.account_id = "TEST_STRING"
@@ -39,6 +40,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
39
40
  end
40
41
  end
41
42
 
43
+
42
44
  describe 'test attribute "status"' do
43
45
  it 'assigns value ACTIVE' do
44
46
  instance.status = "ACTIVE"
@@ -61,28 +63,33 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
61
63
  end
62
64
  end
63
65
 
64
-
65
66
  describe 'test attribute "brand_id"' do
66
- it 'should work with length 8' do
67
- instance.brand_id = "TEST_STR"
68
- expect(instance.brand_id).to eq("TEST_STR")
67
+ it 'should assign a value of maxLength' do
68
+ instance.brand_id = "T" * 8
69
+ expect(instance.brand_id).to eq("T" * 8)
69
70
  end
70
- it 'should not work with length > 8' do
71
- expect{instance.brand_id = "TEST_STRING"}.to raise_error(ArgumentError)
71
+ it 'should not assign a value over maxLength' do
72
+ expect{instance.brand_id = "T" * (8 + 1)}.to raise_error(ArgumentError)
72
73
  end
73
74
  end
74
75
 
75
76
  describe 'test attribute "usecase"' do
76
- it 'should work' do
77
- instance.usecase = "TEST_STRING"
78
- expect(instance.usecase).to eq("TEST_STRING")
77
+ it 'should assign a value of maxLength' do
78
+ instance.usecase = "T" * 20
79
+ expect(instance.usecase).to eq("T" * 20)
80
+ end
81
+ it 'should not assign a value over maxLength' do
82
+ expect{instance.usecase = "T" * (20 + 1)}.to raise_error(ArgumentError)
79
83
  end
80
84
  end
81
85
 
82
86
  describe 'test attribute "description"' do
83
- it 'should work' do
84
- instance.description = "TEST_STRING"
85
- expect(instance.description).to eq("TEST_STRING")
87
+ it 'should assign a value of maxLength' do
88
+ instance.description = "T" * 4096
89
+ expect(instance.description).to eq("T" * 4096)
90
+ end
91
+ it 'should not assign a value over maxLength' do
92
+ expect{instance.description = "T" * (4096 + 1)}.to raise_error(ArgumentError)
86
93
  end
87
94
  end
88
95
 
@@ -150,86 +157,122 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
150
157
  end
151
158
 
152
159
  describe 'test attribute "sample1"' do
153
- it 'should work' do
154
- instance.sample1 = "TEST_STRING"
155
- expect(instance.sample1).to eq("TEST_STRING")
160
+ it 'should assign a value of maxLength' do
161
+ instance.sample1 = "T" * 1024
162
+ expect(instance.sample1).to eq("T" * 1024)
163
+ end
164
+ it 'should not assign a value over maxLength' do
165
+ expect{instance.sample1 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
156
166
  end
157
167
  end
158
168
 
159
169
  describe 'test attribute "sample2"' do
160
- it 'should work' do
161
- instance.sample2 = "TEST_STRING"
162
- expect(instance.sample2).to eq("TEST_STRING")
170
+ it 'should assign a value of maxLength' do
171
+ instance.sample2 = "T" * 1024
172
+ expect(instance.sample2).to eq("T" * 1024)
173
+ end
174
+ it 'should not assign a value over maxLength' do
175
+ expect{instance.sample2 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
163
176
  end
164
177
  end
165
178
 
166
179
  describe 'test attribute "sample3"' do
167
- it 'should work' do
168
- instance.sample3 = "TEST_STRING"
169
- expect(instance.sample3).to eq("TEST_STRING")
180
+ it 'should assign a value of maxLength' do
181
+ instance.sample3 = "T" * 1024
182
+ expect(instance.sample3).to eq("T" * 1024)
183
+ end
184
+ it 'should not assign a value over maxLength' do
185
+ expect{instance.sample3 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
170
186
  end
171
187
  end
172
188
 
173
189
  describe 'test attribute "sample4"' do
174
- it 'should work' do
175
- instance.sample4 = "TEST_STRING"
176
- expect(instance.sample4).to eq("TEST_STRING")
190
+ it 'should assign a value of maxLength' do
191
+ instance.sample4 = "T" * 1024
192
+ expect(instance.sample4).to eq("T" * 1024)
193
+ end
194
+ it 'should not assign a value over maxLength' do
195
+ expect{instance.sample4 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
177
196
  end
178
197
  end
179
198
 
180
199
  describe 'test attribute "sample5"' do
181
- it 'should work' do
182
- instance.sample5 = "TEST_STRING"
183
- expect(instance.sample5).to eq("TEST_STRING")
200
+ it 'should assign a value of maxLength' do
201
+ instance.sample5 = "T" * 1024
202
+ expect(instance.sample5).to eq("T" * 1024)
203
+ end
204
+ it 'should not assign a value over maxLength' do
205
+ expect{instance.sample5 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
184
206
  end
185
207
  end
186
208
 
187
209
  describe 'test attribute "message_flow"' do
188
- it 'should work' do
189
- instance.message_flow = "TEST_STRING"
190
- expect(instance.message_flow).to eq("TEST_STRING")
210
+ it 'should assign a value of maxLength' do
211
+ instance.message_flow = "T" * 2048
212
+ expect(instance.message_flow).to eq("T" * 2048)
213
+ end
214
+ it 'should not assign a value over maxLength' do
215
+ expect{instance.message_flow = "T" * (2048 + 1)}.to raise_error(ArgumentError)
191
216
  end
192
217
  end
193
218
 
194
219
  describe 'test attribute "help_message"' do
195
- it 'should work' do
196
- instance.help_message = "TEST_STRING"
197
- expect(instance.help_message).to eq("TEST_STRING")
220
+ it 'should assign a value of maxLength' do
221
+ instance.help_message = "T" * 255
222
+ expect(instance.help_message).to eq("T" * 255)
223
+ end
224
+ it 'should not assign a value over maxLength' do
225
+ expect{instance.help_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
198
226
  end
199
227
  end
200
228
 
201
229
  describe 'test attribute "optin_keywords"' do
202
- it 'should work' do
203
- instance.optin_keywords = "TEST_STRING"
204
- expect(instance.optin_keywords).to eq("TEST_STRING")
230
+ it 'should assign a value of maxLength' do
231
+ instance.optin_keywords = "T" * 255
232
+ expect(instance.optin_keywords).to eq("T" * 255)
233
+ end
234
+ it 'should not assign a value over maxLength' do
235
+ expect{instance.optin_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
205
236
  end
206
237
  end
207
238
 
208
239
  describe 'test attribute "optout_keywords"' do
209
- it 'should work' do
210
- instance.optout_keywords = "TEST_STRING"
211
- expect(instance.optout_keywords).to eq("TEST_STRING")
240
+ it 'should assign a value of maxLength' do
241
+ instance.optout_keywords = "T" * 255
242
+ expect(instance.optout_keywords).to eq("T" * 255)
243
+ end
244
+ it 'should not assign a value over maxLength' do
245
+ expect{instance.optout_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
212
246
  end
213
247
  end
214
248
 
215
249
  describe 'test attribute "help_keywords"' do
216
- it 'should work' do
217
- instance.help_keywords = "TEST_STRING"
218
- expect(instance.help_keywords).to eq("TEST_STRING")
250
+ it 'should assign a value of maxLength' do
251
+ instance.help_keywords = "T" * 255
252
+ expect(instance.help_keywords).to eq("T" * 255)
253
+ end
254
+ it 'should not assign a value over maxLength' do
255
+ expect{instance.help_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
219
256
  end
220
257
  end
221
258
 
222
259
  describe 'test attribute "optin_message"' do
223
- it 'should work' do
224
- instance.optin_message = "TEST_STRING"
225
- expect(instance.optin_message).to eq("TEST_STRING")
260
+ it 'should assign a value of maxLength' do
261
+ instance.optin_message = "T" * 255
262
+ expect(instance.optin_message).to eq("T" * 255)
263
+ end
264
+ it 'should not assign a value over maxLength' do
265
+ expect{instance.optin_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
226
266
  end
227
267
  end
228
268
 
229
269
  describe 'test attribute "optout_message"' do
230
- it 'should work' do
231
- instance.optout_message = "TEST_STRING"
232
- expect(instance.optout_message).to eq("TEST_STRING")
270
+ it 'should assign a value of maxLength' do
271
+ instance.optout_message = "T" * 255
272
+ expect(instance.optout_message).to eq("T" * 255)
273
+ end
274
+ it 'should not assign a value over maxLength' do
275
+ expect{instance.optout_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
233
276
  end
234
277
  end
235
278
 
@@ -25,6 +25,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaignsListResult do
25
25
  expect(instance).to be_instance_of(Freeclimb::SMSTenDLCPartnerCampaignsListResult)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "total"' do
29
30
  it 'should work' do
30
31
  instance.total = 1
@@ -25,4 +25,5 @@ describe Freeclimb::StartRecordCall do
25
25
  expect(instance).to be_instance_of(Freeclimb::StartRecordCall)
26
26
  end
27
27
  end
28
+
28
29
  end
@@ -25,6 +25,7 @@ describe Freeclimb::TerminateConference do
25
25
  expect(instance).to be_instance_of(Freeclimb::TerminateConference)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "conference_id"' do
29
30
  it 'should work' do
30
31
  instance.conference_id = "TEST_STRING"
@@ -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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freeclimb
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.3
4
+ version: 4.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-17 00:00:00.000000000 Z
11
+ date: 2023-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus