freeclimb 4.6.0 → 4.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/Gemfile.lock +2 -2
  4. data/README.md +6 -5
  5. data/docs/DefaultApi.md +7 -8
  6. data/docs/TranscribeUtterance.md +1 -1
  7. data/docs/TranscribeUtteranceAllOf.md +28 -0
  8. data/docs/TranscribeUtteranceAllOfRecord.md +22 -0
  9. data/lib/freeclimb/api/default_api.rb +11 -9
  10. data/lib/freeclimb/models/account_request.rb +0 -2
  11. data/lib/freeclimb/models/account_result.rb +0 -6
  12. data/lib/freeclimb/models/add_to_conference.rb +0 -16
  13. data/lib/freeclimb/models/add_to_conference_all_of.rb +0 -16
  14. data/lib/freeclimb/models/application_result.rb +0 -6
  15. data/lib/freeclimb/models/buy_incoming_number_request.rb +0 -4
  16. data/lib/freeclimb/models/call_result.rb +0 -6
  17. data/lib/freeclimb/models/conference_participant_result.rb +0 -6
  18. data/lib/freeclimb/models/conference_result.rb +0 -6
  19. data/lib/freeclimb/models/create_conference.rb +0 -8
  20. data/lib/freeclimb/models/create_conference_all_of.rb +0 -8
  21. data/lib/freeclimb/models/create_conference_request.rb +0 -6
  22. data/lib/freeclimb/models/create_web_rtc_token.rb +0 -4
  23. data/lib/freeclimb/models/dequeue.rb +1 -0
  24. data/lib/freeclimb/models/enqueue.rb +0 -6
  25. data/lib/freeclimb/models/enqueue_all_of.rb +0 -6
  26. data/lib/freeclimb/models/get_digits.rb +0 -16
  27. data/lib/freeclimb/models/get_digits_all_of.rb +0 -16
  28. data/lib/freeclimb/models/get_speech.rb +0 -22
  29. data/lib/freeclimb/models/get_speech_all_of.rb +0 -22
  30. data/lib/freeclimb/models/incoming_number_request.rb +0 -2
  31. data/lib/freeclimb/models/incoming_number_result.rb +0 -10
  32. data/lib/freeclimb/models/incoming_number_result_all_of.rb +0 -2
  33. data/lib/freeclimb/models/make_call_request.rb +0 -18
  34. data/lib/freeclimb/models/message_request.rb +0 -16
  35. data/lib/freeclimb/models/message_request_all_of.rb +0 -8
  36. data/lib/freeclimb/models/message_result.rb +0 -8
  37. data/lib/freeclimb/models/message_result_all_of.rb +0 -2
  38. data/lib/freeclimb/models/mutable_resource_model.rb +0 -6
  39. data/lib/freeclimb/models/out_dial.rb +0 -18
  40. data/lib/freeclimb/models/out_dial_all_of.rb +0 -18
  41. data/lib/freeclimb/models/park.rb +0 -4
  42. data/lib/freeclimb/models/park_all_of.rb +0 -4
  43. data/lib/freeclimb/models/play.rb +0 -4
  44. data/lib/freeclimb/models/play_all_of.rb +0 -4
  45. data/lib/freeclimb/models/queue_request.rb +0 -2
  46. data/lib/freeclimb/models/queue_result.rb +0 -6
  47. data/lib/freeclimb/models/record_utterance.rb +0 -12
  48. data/lib/freeclimb/models/record_utterance_all_of.rb +0 -12
  49. data/lib/freeclimb/models/recording_result.rb +0 -6
  50. data/lib/freeclimb/models/remove_from_conference.rb +1 -0
  51. data/lib/freeclimb/models/say.rb +0 -6
  52. data/lib/freeclimb/models/say_all_of.rb +0 -6
  53. data/lib/freeclimb/models/send_digits.rb +0 -4
  54. data/lib/freeclimb/models/send_digits_all_of.rb +0 -4
  55. data/lib/freeclimb/models/sms.rb +0 -6
  56. data/lib/freeclimb/models/sms_all_of.rb +0 -6
  57. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +0 -60
  58. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +0 -50
  59. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +0 -44
  60. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +0 -20
  61. data/lib/freeclimb/models/sms_toll_free_campaign.rb +0 -12
  62. data/lib/freeclimb/models/start_record_call.rb +1 -0
  63. data/lib/freeclimb/models/terminate_conference.rb +1 -0
  64. data/lib/freeclimb/models/transcribe_utterance.rb +11 -16
  65. data/lib/freeclimb/models/{terminate_conference_all_of.rb → transcribe_utterance_all_of.rb} +67 -14
  66. data/lib/freeclimb/models/{transcribe_utterance_record.rb → transcribe_utterance_all_of_record.rb} +3 -7
  67. data/lib/freeclimb/models/unpark.rb +1 -0
  68. data/lib/freeclimb/models/update_conference_participant_request.rb +0 -2
  69. data/lib/freeclimb/models/update_conference_request.rb +0 -2
  70. data/lib/freeclimb/version.rb +1 -1
  71. data/lib/freeclimb.rb +3 -2
  72. data/openapi.json +276 -319
  73. data/spec/api/default_api_spec.rb +120 -62
  74. data/spec/models/account_request_spec.rb +8 -6
  75. data/spec/models/account_result_spec.rb +28 -9
  76. data/spec/models/add_to_conference_spec.rb +21 -7
  77. data/spec/models/application_list_spec.rb +46 -22
  78. data/spec/models/application_request_spec.rb +13 -6
  79. data/spec/models/application_result_spec.rb +24 -9
  80. data/spec/models/available_number_list_spec.rb +46 -22
  81. data/spec/models/available_number_spec.rb +23 -10
  82. data/spec/models/buy_incoming_number_request_spec.rb +11 -7
  83. data/spec/models/call_list_spec.rb +46 -22
  84. data/spec/models/call_result_spec.rb +49 -15
  85. data/spec/models/capabilities_spec.rb +26 -11
  86. data/spec/models/conference_list_spec.rb +46 -22
  87. data/spec/models/conference_participant_list_spec.rb +46 -22
  88. data/spec/models/conference_participant_result_spec.rb +24 -9
  89. data/spec/models/conference_result_spec.rb +32 -9
  90. data/spec/models/create_conference_request_spec.rb +15 -6
  91. data/spec/models/create_conference_spec.rb +19 -7
  92. data/spec/models/create_web_rtc_token_spec.rb +18 -12
  93. data/spec/models/enqueue_spec.rb +16 -9
  94. data/spec/models/filter_logs_request_spec.rb +9 -7
  95. data/spec/models/get_digits_spec.rb +43 -19
  96. data/spec/models/get_speech_spec.rb +60 -24
  97. data/spec/models/hangup_spec.rb +7 -6
  98. data/spec/models/incoming_number_list_spec.rb +46 -22
  99. data/spec/models/incoming_number_request_spec.rb +9 -6
  100. data/spec/models/incoming_number_result_spec.rb +47 -17
  101. data/spec/models/log_list_spec.rb +46 -22
  102. data/spec/models/log_result_spec.rb +21 -9
  103. data/spec/models/make_call_request_spec.rb +26 -11
  104. data/spec/models/message_request_spec.rb +26 -12
  105. data/spec/models/message_result_spec.rb +34 -11
  106. data/spec/models/messages_list_spec.rb +46 -22
  107. data/spec/models/mutable_resource_model_spec.rb +15 -9
  108. data/spec/models/out_dial_spec.rb +33 -13
  109. data/spec/models/pagination_model_spec.rb +40 -21
  110. data/spec/models/park_spec.rb +13 -8
  111. data/spec/models/pause_spec.rb +14 -10
  112. data/spec/models/percl_command_spec.rb +6 -6
  113. data/spec/models/percl_script_spec.rb +11 -6
  114. data/spec/models/play_early_media_spec.rb +9 -7
  115. data/spec/models/play_spec.rb +17 -10
  116. data/spec/models/queue_list_spec.rb +46 -22
  117. data/spec/models/queue_member_list_spec.rb +46 -22
  118. data/spec/models/queue_member_spec.rb +21 -12
  119. data/spec/models/queue_request_spec.rb +13 -9
  120. data/spec/models/queue_result_spec.rb +37 -18
  121. data/spec/models/record_utterance_spec.rb +28 -13
  122. data/spec/models/recording_list_spec.rb +46 -22
  123. data/spec/models/recording_result_spec.rb +25 -12
  124. data/spec/models/redirect_spec.rb +9 -7
  125. data/spec/models/reject_spec.rb +7 -6
  126. data/spec/models/remove_from_conference_spec.rb +0 -67
  127. data/spec/models/say_spec.rb +18 -10
  128. data/spec/models/send_digits_spec.rb +17 -10
  129. data/spec/models/set_listen_spec.rb +8 -6
  130. data/spec/models/set_talk_spec.rb +8 -6
  131. data/spec/models/sms_spec.rb +16 -9
  132. data/spec/models/sms_ten_dlc_brand_spec.rb +38 -4
  133. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +46 -22
  134. data/spec/models/sms_ten_dlc_campaign_spec.rb +63 -4
  135. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +46 -22
  136. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +25 -7
  137. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +56 -8
  138. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +46 -22
  139. data/spec/models/sms_toll_free_campaign_spec.rb +29 -15
  140. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +46 -22
  141. data/spec/models/terminate_conference_spec.rb +0 -67
  142. data/spec/models/tfn_spec.rb +9 -7
  143. data/spec/models/{transcribe_utterance_record_spec.rb → transcribe_utterance_all_of_record_spec.rb} +78 -67
  144. data/spec/models/transcribe_utterance_spec.rb +37 -96
  145. data/spec/models/update_call_request_spec.rb +12 -7
  146. data/spec/models/update_conference_participant_request_spec.rb +10 -6
  147. data/spec/models/update_conference_request_spec.rb +15 -6
  148. metadata +89 -88
  149. data/lib/freeclimb/models/remove_from_conference_all_of.rb +0 -228
@@ -28,43 +28,61 @@ describe Freeclimb::SMSTenDLCBrandsListResult do
28
28
 
29
29
  describe 'test attribute "total"' do
30
30
  it 'should work' do
31
+
32
+
31
33
  instance.total = 1
32
- expect(instance.total).to eq(1)
34
+ expect(instance.total).to eq(1)
35
+
33
36
  end
34
37
  end
35
38
 
36
39
  describe 'test attribute "start"' do
37
40
  it 'should work' do
41
+
42
+
38
43
  instance.start = 1
39
- expect(instance.start).to eq(1)
44
+ expect(instance.start).to eq(1)
45
+
40
46
  end
41
47
  end
42
48
 
43
49
  describe 'test attribute "_end"' do
44
50
  it 'should work' do
51
+
52
+
45
53
  instance._end = 1
46
- expect(instance._end).to eq(1)
54
+ expect(instance._end).to eq(1)
55
+
47
56
  end
48
57
  end
49
58
 
50
59
  describe 'test attribute "page"' do
51
60
  it 'should work' do
61
+
62
+
52
63
  instance.page = 1
53
- expect(instance.page).to eq(1)
64
+ expect(instance.page).to eq(1)
65
+
54
66
  end
55
67
  end
56
68
 
57
69
  describe 'test attribute "num_pages"' do
58
70
  it 'should work' do
71
+
72
+
59
73
  instance.num_pages = 1
60
- expect(instance.num_pages).to eq(1)
74
+ expect(instance.num_pages).to eq(1)
75
+
61
76
  end
62
77
  end
63
78
 
64
79
  describe 'test attribute "page_size"' do
65
80
  it 'should work' do
81
+
82
+
66
83
  instance.page_size = 1
67
- expect(instance.page_size).to eq(1)
84
+ expect(instance.page_size).to eq(1)
85
+
68
86
  end
69
87
  end
70
88
 
@@ -72,11 +90,13 @@ describe Freeclimb::SMSTenDLCBrandsListResult do
72
90
  it 'should work' do
73
91
  instance.next_page_uri = "TEST_STRING"
74
92
  expect(instance.next_page_uri).to eq("TEST_STRING")
93
+
75
94
  end
76
95
  end
77
96
 
78
97
  describe 'test attribute "brands"' do
79
98
  it 'should work' do
99
+
80
100
  instance.brands = ["ELEMENT_1", "ELEMENT_2"]
81
101
  expect(instance.brands).to eq(["ELEMENT_1", "ELEMENT_2"])
82
102
  end
@@ -122,7 +142,7 @@ describe Freeclimb::SMSTenDLCBrandsListResult do
122
142
  )}.to raise_error(ArgumentError)
123
143
  end
124
144
  end
125
-
145
+
126
146
  describe 'test method "valid"' do
127
147
  it 'checks if properties are valid' do
128
148
  instance = Freeclimb::SMSTenDLCBrandsListResult.new(
@@ -137,15 +157,14 @@ describe Freeclimb::SMSTenDLCBrandsListResult do
137
157
  )
138
158
  expect(instance.valid?).to eq(true)
139
159
  end
160
+
140
161
  it 'checks if properties are invalid' do
141
162
  instance = Freeclimb::SMSTenDLCBrandsListResult.new(
163
+
142
164
  )
143
165
  expect(instance.valid?).to eq(false)
144
166
  end
145
- it 'checks if model is empty' do
146
- instance = Freeclimb::SMSTenDLCBrandsListResult.new()
147
- expect(instance.valid?).to eq(false)
148
- end
167
+
149
168
  end
150
169
 
151
170
  describe 'test method "eql?"' do
@@ -159,6 +178,7 @@ describe Freeclimb::SMSTenDLCBrandsListResult do
159
178
  num_pages: 1,
160
179
  page_size: 1,
161
180
  next_page_uri: "TS",
181
+ brands: Freeclimb::SMSTenDLCBrand.new(),
162
182
  brands: [],
163
183
  )
164
184
  instance_2 = Freeclimb::SMSTenDLCBrandsListResult.new(
@@ -169,35 +189,39 @@ describe Freeclimb::SMSTenDLCBrandsListResult do
169
189
  num_pages: 1,
170
190
  page_size: 1,
171
191
  next_page_uri: "TS",
192
+ brands: Freeclimb::SMSTenDLCBrand.new(),
172
193
  brands: [],
173
194
  )
174
195
  expect(instance_1.eql?(instance_2)).to eq(true)
175
196
  end
197
+
176
198
  it 'checks if objects are not equal' do
177
199
  instance_1 = Freeclimb::SMSTenDLCBrandsListResult.new(
200
+ total: 2,
201
+ start: 2,
202
+ _end: 2,
203
+ page: 2,
204
+ num_pages: 2,
205
+ page_size: 2,
206
+ next_page_uri: "TS",
207
+ brands: Freeclimb::SMSTenDLCBrand.new(),
208
+ brands: [],
209
+ )
210
+ instance_2 = Freeclimb::SMSTenDLCBrandsListResult.new(
178
211
  total: 1,
179
212
  start: 1,
180
213
  _end: 1,
181
214
  page: 1,
182
215
  num_pages: 1,
183
216
  page_size: 1,
184
- next_page_uri: "TS",
185
- brands: [],
186
- )
187
- instance_2 = Freeclimb::SMSTenDLCBrandsListResult.new(
188
- total: 0,
189
- start: 0,
190
- _end: 0,
191
- page: 0,
192
- num_pages: 0,
193
- page_size: 0,
194
217
  next_page_uri: "ST",
218
+ brands: Freeclimb::SMSTenDLCBrand.new(),
195
219
  brands: nil,
196
220
  )
197
221
  expect(instance_1.eql?(instance_2)).to eq(false)
198
222
  end
199
223
  end
200
-
224
+
201
225
  describe 'test method "hash"' do
202
226
  it 'calculates hash code' do
203
227
  instance = Freeclimb::SMSTenDLCBrandsListResult.new(
@@ -30,6 +30,7 @@ describe Freeclimb::SMSTenDLCCampaign do
30
30
  it 'should work' do
31
31
  instance.account_id = "TEST_STRING"
32
32
  expect(instance.account_id).to eq("TEST_STRING")
33
+
33
34
  end
34
35
  end
35
36
 
@@ -37,6 +38,7 @@ describe Freeclimb::SMSTenDLCCampaign do
37
38
  it 'should work' do
38
39
  instance.campaign_id = "TEST_STRING"
39
40
  expect(instance.campaign_id).to eq("TEST_STRING")
41
+
40
42
  end
41
43
  end
42
44
 
@@ -44,6 +46,7 @@ describe Freeclimb::SMSTenDLCCampaign do
44
46
  it 'should work' do
45
47
  instance.csp_id = "TEST_STRING"
46
48
  expect(instance.csp_id).to eq("TEST_STRING")
49
+
47
50
  end
48
51
  end
49
52
 
@@ -77,6 +80,7 @@ describe Freeclimb::SMSTenDLCCampaign do
77
80
  it 'should work' do
78
81
  instance.create_date = "2022-07-05T15:17:05Z"
79
82
  expect(instance.create_date).to eq("2022-07-05T15:17:05Z")
83
+
80
84
  end
81
85
  end
82
86
 
@@ -84,6 +88,7 @@ describe Freeclimb::SMSTenDLCCampaign do
84
88
  it 'should work' do
85
89
  instance.auto_renewal = false
86
90
  expect(instance.auto_renewal).to eq(false)
91
+
87
92
  end
88
93
  end
89
94
 
@@ -91,6 +96,7 @@ describe Freeclimb::SMSTenDLCCampaign do
91
96
  it 'should work' do
92
97
  instance.billed_date = "2022-07-05T15:17:05Z"
93
98
  expect(instance.billed_date).to eq("2022-07-05T15:17:05Z")
99
+
94
100
  end
95
101
  end
96
102
 
@@ -116,6 +122,7 @@ describe Freeclimb::SMSTenDLCCampaign do
116
122
 
117
123
  describe 'test attribute "sub_usecases"' do
118
124
  it 'should work' do
125
+
119
126
  instance.sub_usecases = ["ELEMENT_1", "ELEMENT_2"]
120
127
  expect(instance.sub_usecases).to eq(["ELEMENT_1", "ELEMENT_2"])
121
128
  end
@@ -135,6 +142,7 @@ describe Freeclimb::SMSTenDLCCampaign do
135
142
  it 'should work' do
136
143
  instance.embedded_link = false
137
144
  expect(instance.embedded_link).to eq(false)
145
+
138
146
  end
139
147
  end
140
148
 
@@ -142,6 +150,7 @@ describe Freeclimb::SMSTenDLCCampaign do
142
150
  it 'should work' do
143
151
  instance.embedded_phone = false
144
152
  expect(instance.embedded_phone).to eq(false)
153
+
145
154
  end
146
155
  end
147
156
 
@@ -149,6 +158,7 @@ describe Freeclimb::SMSTenDLCCampaign do
149
158
  it 'should work' do
150
159
  instance.affiliate_marketing = false
151
160
  expect(instance.affiliate_marketing).to eq(false)
161
+
152
162
  end
153
163
  end
154
164
 
@@ -156,6 +166,7 @@ describe Freeclimb::SMSTenDLCCampaign do
156
166
  it 'should work' do
157
167
  instance.number_pool = false
158
168
  expect(instance.number_pool).to eq(false)
169
+
159
170
  end
160
171
  end
161
172
 
@@ -163,6 +174,7 @@ describe Freeclimb::SMSTenDLCCampaign do
163
174
  it 'should work' do
164
175
  instance.age_gated = false
165
176
  expect(instance.age_gated).to eq(false)
177
+
166
178
  end
167
179
  end
168
180
 
@@ -170,6 +182,7 @@ describe Freeclimb::SMSTenDLCCampaign do
170
182
  it 'should work' do
171
183
  instance.direct_lending = false
172
184
  expect(instance.direct_lending).to eq(false)
185
+
173
186
  end
174
187
  end
175
188
 
@@ -177,6 +190,7 @@ describe Freeclimb::SMSTenDLCCampaign do
177
190
  it 'should work' do
178
191
  instance.subscriber_optin = false
179
192
  expect(instance.subscriber_optin).to eq(false)
193
+
180
194
  end
181
195
  end
182
196
 
@@ -184,6 +198,7 @@ describe Freeclimb::SMSTenDLCCampaign do
184
198
  it 'should work' do
185
199
  instance.subscriber_optout = false
186
200
  expect(instance.subscriber_optout).to eq(false)
201
+
187
202
  end
188
203
  end
189
204
 
@@ -191,6 +206,7 @@ describe Freeclimb::SMSTenDLCCampaign do
191
206
  it 'should work' do
192
207
  instance.subscriber_help = false
193
208
  expect(instance.subscriber_help).to eq(false)
209
+
194
210
  end
195
211
  end
196
212
 
@@ -328,6 +344,7 @@ describe Freeclimb::SMSTenDLCCampaign do
328
344
  it 'should work' do
329
345
  instance.mock = false
330
346
  expect(instance.mock).to eq(false)
347
+
331
348
  end
332
349
  end
333
350
 
@@ -335,6 +352,7 @@ describe Freeclimb::SMSTenDLCCampaign do
335
352
  it 'should work' do
336
353
  instance.next_renewal_or_expiration_date = "2000-01-01"
337
354
  expect(instance.next_renewal_or_expiration_date).to eq("2000-01-01")
355
+
338
356
  end
339
357
  end
340
358
 
@@ -462,7 +480,7 @@ describe Freeclimb::SMSTenDLCCampaign do
462
480
  )}.to raise_error(ArgumentError)
463
481
  end
464
482
  end
465
-
483
+
466
484
  describe 'test method "valid"' do
467
485
  it 'checks if properties are valid' do
468
486
  instance = Freeclimb::SMSTenDLCCampaign.new(
@@ -505,10 +523,50 @@ describe Freeclimb::SMSTenDLCCampaign do
505
523
  )
506
524
  expect(instance.valid?).to eq(true)
507
525
  end
508
- it 'checks if model is empty' do
509
- instance = Freeclimb::SMSTenDLCCampaign.new()
526
+
527
+ it 'checks if properties are invalid' do
528
+ instance = Freeclimb::SMSTenDLCCampaign.new(
529
+
530
+ campaign_id: nil,
531
+
532
+ csp_id: nil,
533
+ reseller_id: nil,
534
+ auto_renewal: nil,
535
+
536
+ brand_id: "T" * 8,
537
+ usecase: "T" * 20,
538
+ sub_usecases: nil,
539
+
540
+ description: "T" * 4096,embedded_link: nil,
541
+ embedded_phone: nil,
542
+ affiliate_marketing: nil,
543
+ number_pool: nil,
544
+ age_gated: nil,
545
+ direct_lending: nil,
546
+ subscriber_optin: nil,
547
+ subscriber_optout: nil,
548
+ subscriber_help: nil,
549
+ sample1: nil,
550
+ sample2: nil,
551
+ sample3: nil,
552
+ sample4: nil,
553
+ sample5: nil,
554
+ message_flow: nil,
555
+ help_message: nil,
556
+ optin_keywords: nil,
557
+ optout_keywords: nil,
558
+ help_keywords: nil,
559
+ optin_message: nil,
560
+ optout_message: nil,
561
+ reference_id: nil,
562
+ mock: nil,
563
+
564
+ mock: nil,
565
+
566
+ )
510
567
  expect(instance.valid?).to eq(false)
511
568
  end
569
+
512
570
  end
513
571
 
514
572
  describe 'test method "eql?"' do
@@ -586,6 +644,7 @@ describe Freeclimb::SMSTenDLCCampaign do
586
644
  )
587
645
  expect(instance_1.eql?(instance_2)).to eq(true)
588
646
  end
647
+
589
648
  it 'checks if objects are not equal' do
590
649
  instance_1 = Freeclimb::SMSTenDLCCampaign.new(
591
650
  account_id: "TS",
@@ -660,7 +719,7 @@ describe Freeclimb::SMSTenDLCCampaign do
660
719
  expect(instance_1.eql?(instance_2)).to eq(false)
661
720
  end
662
721
  end
663
-
722
+
664
723
  describe 'test method "hash"' do
665
724
  it 'calculates hash code' do
666
725
  instance = Freeclimb::SMSTenDLCCampaign.new(
@@ -28,43 +28,61 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
28
28
 
29
29
  describe 'test attribute "total"' do
30
30
  it 'should work' do
31
+
32
+
31
33
  instance.total = 1
32
- expect(instance.total).to eq(1)
34
+ expect(instance.total).to eq(1)
35
+
33
36
  end
34
37
  end
35
38
 
36
39
  describe 'test attribute "start"' do
37
40
  it 'should work' do
41
+
42
+
38
43
  instance.start = 1
39
- expect(instance.start).to eq(1)
44
+ expect(instance.start).to eq(1)
45
+
40
46
  end
41
47
  end
42
48
 
43
49
  describe 'test attribute "_end"' do
44
50
  it 'should work' do
51
+
52
+
45
53
  instance._end = 1
46
- expect(instance._end).to eq(1)
54
+ expect(instance._end).to eq(1)
55
+
47
56
  end
48
57
  end
49
58
 
50
59
  describe 'test attribute "page"' do
51
60
  it 'should work' do
61
+
62
+
52
63
  instance.page = 1
53
- expect(instance.page).to eq(1)
64
+ expect(instance.page).to eq(1)
65
+
54
66
  end
55
67
  end
56
68
 
57
69
  describe 'test attribute "num_pages"' do
58
70
  it 'should work' do
71
+
72
+
59
73
  instance.num_pages = 1
60
- expect(instance.num_pages).to eq(1)
74
+ expect(instance.num_pages).to eq(1)
75
+
61
76
  end
62
77
  end
63
78
 
64
79
  describe 'test attribute "page_size"' do
65
80
  it 'should work' do
81
+
82
+
66
83
  instance.page_size = 1
67
- expect(instance.page_size).to eq(1)
84
+ expect(instance.page_size).to eq(1)
85
+
68
86
  end
69
87
  end
70
88
 
@@ -72,11 +90,13 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
72
90
  it 'should work' do
73
91
  instance.next_page_uri = "TEST_STRING"
74
92
  expect(instance.next_page_uri).to eq("TEST_STRING")
93
+
75
94
  end
76
95
  end
77
96
 
78
97
  describe 'test attribute "campaigns"' do
79
98
  it 'should work' do
99
+
80
100
  instance.campaigns = ["ELEMENT_1", "ELEMENT_2"]
81
101
  expect(instance.campaigns).to eq(["ELEMENT_1", "ELEMENT_2"])
82
102
  end
@@ -122,7 +142,7 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
122
142
  )}.to raise_error(ArgumentError)
123
143
  end
124
144
  end
125
-
145
+
126
146
  describe 'test method "valid"' do
127
147
  it 'checks if properties are valid' do
128
148
  instance = Freeclimb::SMSTenDLCCampaignsListResult.new(
@@ -137,15 +157,14 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
137
157
  )
138
158
  expect(instance.valid?).to eq(true)
139
159
  end
160
+
140
161
  it 'checks if properties are invalid' do
141
162
  instance = Freeclimb::SMSTenDLCCampaignsListResult.new(
163
+
142
164
  )
143
165
  expect(instance.valid?).to eq(false)
144
166
  end
145
- it 'checks if model is empty' do
146
- instance = Freeclimb::SMSTenDLCCampaignsListResult.new()
147
- expect(instance.valid?).to eq(false)
148
- end
167
+
149
168
  end
150
169
 
151
170
  describe 'test method "eql?"' do
@@ -159,6 +178,7 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
159
178
  num_pages: 1,
160
179
  page_size: 1,
161
180
  next_page_uri: "TS",
181
+ campaigns: Freeclimb::SMSTenDLCCampaign.new(),
162
182
  campaigns: [],
163
183
  )
164
184
  instance_2 = Freeclimb::SMSTenDLCCampaignsListResult.new(
@@ -169,35 +189,39 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
169
189
  num_pages: 1,
170
190
  page_size: 1,
171
191
  next_page_uri: "TS",
192
+ campaigns: Freeclimb::SMSTenDLCCampaign.new(),
172
193
  campaigns: [],
173
194
  )
174
195
  expect(instance_1.eql?(instance_2)).to eq(true)
175
196
  end
197
+
176
198
  it 'checks if objects are not equal' do
177
199
  instance_1 = Freeclimb::SMSTenDLCCampaignsListResult.new(
200
+ total: 2,
201
+ start: 2,
202
+ _end: 2,
203
+ page: 2,
204
+ num_pages: 2,
205
+ page_size: 2,
206
+ next_page_uri: "TS",
207
+ campaigns: Freeclimb::SMSTenDLCCampaign.new(),
208
+ campaigns: [],
209
+ )
210
+ instance_2 = Freeclimb::SMSTenDLCCampaignsListResult.new(
178
211
  total: 1,
179
212
  start: 1,
180
213
  _end: 1,
181
214
  page: 1,
182
215
  num_pages: 1,
183
216
  page_size: 1,
184
- next_page_uri: "TS",
185
- campaigns: [],
186
- )
187
- instance_2 = Freeclimb::SMSTenDLCCampaignsListResult.new(
188
- total: 0,
189
- start: 0,
190
- _end: 0,
191
- page: 0,
192
- num_pages: 0,
193
- page_size: 0,
194
217
  next_page_uri: "ST",
218
+ campaigns: Freeclimb::SMSTenDLCCampaign.new(),
195
219
  campaigns: nil,
196
220
  )
197
221
  expect(instance_1.eql?(instance_2)).to eq(false)
198
222
  end
199
223
  end
200
-
224
+
201
225
  describe 'test method "hash"' do
202
226
  it 'calculates hash code' do
203
227
  instance = Freeclimb::SMSTenDLCCampaignsListResult.new(
@@ -30,6 +30,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaignBrand do
30
30
  it 'should work' do
31
31
  instance.account_id = "TEST_STRING"
32
32
  expect(instance.account_id).to eq("TEST_STRING")
33
+
33
34
  end
34
35
  end
35
36
 
@@ -37,6 +38,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaignBrand do
37
38
  it 'should work' do
38
39
  instance.brand_id = "TEST_STRING"
39
40
  expect(instance.brand_id).to eq("TEST_STRING")
41
+
40
42
  end
41
43
  end
42
44
 
@@ -112,6 +114,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaignBrand do
112
114
 
113
115
  describe 'test attribute "optional_attributes"' do
114
116
  it 'should work' do
117
+
115
118
  testObject = Object.new()
116
119
  instance.optional_attributes = testObject
117
120
  expect(instance.optional_attributes).to eq(testObject)
@@ -120,8 +123,11 @@ describe Freeclimb::SMSTenDLCPartnerCampaignBrand do
120
123
 
121
124
  describe 'test attribute "evp_vetting_score"' do
122
125
  it 'should work' do
126
+
127
+
123
128
  instance.evp_vetting_score = 1
124
- expect(instance.evp_vetting_score).to eq(1)
129
+ expect(instance.evp_vetting_score).to eq(1)
130
+
125
131
  end
126
132
  end
127
133
 
@@ -174,7 +180,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaignBrand do
174
180
  )}.to raise_error(ArgumentError)
175
181
  end
176
182
  end
177
-
183
+
178
184
  describe 'test method "valid"' do
179
185
  it 'checks if properties are valid' do
180
186
  instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new(
@@ -192,10 +198,21 @@ describe Freeclimb::SMSTenDLCPartnerCampaignBrand do
192
198
  )
193
199
  expect(instance.valid?).to eq(true)
194
200
  end
195
- it 'checks if model is empty' do
196
- instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new()
201
+
202
+ it 'checks if properties are invalid' do
203
+ instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new(
204
+ first_name: nil,
205
+ last_name: nil,
206
+ display_name: nil,
207
+ company_name: nil,
208
+
209
+ phone: "T" * 20,
210
+ email: "T" * 100,website: nil,
211
+
212
+ )
197
213
  expect(instance.valid?).to eq(false)
198
214
  end
215
+
199
216
  end
200
217
 
201
218
  describe 'test method "eql?"' do
@@ -227,6 +244,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaignBrand do
227
244
  )
228
245
  expect(instance_1.eql?(instance_2)).to eq(true)
229
246
  end
247
+
230
248
  it 'checks if objects are not equal' do
231
249
  instance_1 = Freeclimb::SMSTenDLCPartnerCampaignBrand.new(
232
250
  account_id: "TS",
@@ -238,7 +256,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaignBrand do
238
256
  phone: "TS",
239
257
  email: "TS",
240
258
  website: "TS",
241
- evp_vetting_score: 1,
259
+ evp_vetting_score: 2,
242
260
  )
243
261
  instance_2 = Freeclimb::SMSTenDLCPartnerCampaignBrand.new(
244
262
  account_id: "ST",
@@ -250,12 +268,12 @@ describe Freeclimb::SMSTenDLCPartnerCampaignBrand do
250
268
  phone: "ST",
251
269
  email: "ST",
252
270
  website: "ST",
253
- evp_vetting_score: 0,
271
+ evp_vetting_score: 1,
254
272
  )
255
273
  expect(instance_1.eql?(instance_2)).to eq(false)
256
274
  end
257
275
  end
258
-
276
+
259
277
  describe 'test method "hash"' do
260
278
  it 'calculates hash code' do
261
279
  instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new(