freeclimb 4.5.2 → 4.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +15 -7
  5. data/docs/AddToConference.md +0 -2
  6. data/docs/AddToConferenceAllOf.md +0 -2
  7. data/docs/CreateWebRTCToken.md +22 -0
  8. data/docs/DefaultApi.md +303 -7
  9. data/docs/GetDigits.md +1 -1
  10. data/docs/GetDigitsAllOf.md +1 -1
  11. data/docs/IncomingNumberResult.md +3 -1
  12. data/docs/IncomingNumberResultAllOf.md +3 -1
  13. data/docs/MessageRequest.md +2 -2
  14. data/docs/MessageRequestAllOf.md +2 -2
  15. data/docs/MessageResult.md +3 -1
  16. data/docs/MessageResultAllOf.md +3 -1
  17. data/docs/Play.md +0 -2
  18. data/docs/PlayAllOf.md +0 -2
  19. data/docs/RemoveFromConference.md +1 -4
  20. data/docs/SMSTenDLCCampaign.md +10 -0
  21. data/docs/SMSTollFreeCampaign.md +30 -0
  22. data/docs/SMSTollFreeCampaignsListResult.md +32 -0
  23. data/docs/SMSTollFreeCampaignsListResultAllOf.md +18 -0
  24. data/docs/Say.md +0 -2
  25. data/docs/SayAllOf.md +0 -2
  26. data/docs/SetListen.md +0 -2
  27. data/docs/SetListenAllOf.md +0 -2
  28. data/docs/SetTalk.md +0 -2
  29. data/docs/SetTalkAllOf.md +0 -2
  30. data/docs/TFN.md +18 -0
  31. data/docs/TerminateConference.md +1 -4
  32. data/docs/TranscribeUtterance.md +1 -1
  33. data/docs/TranscribeUtteranceAllOf.md +28 -0
  34. data/docs/TranscribeUtteranceAllOfRecord.md +22 -0
  35. data/lib/freeclimb/api/default_api.rb +262 -7
  36. data/lib/freeclimb/models/account_request.rb +0 -2
  37. data/lib/freeclimb/models/account_result.rb +0 -6
  38. data/lib/freeclimb/models/add_to_conference.rb +1 -29
  39. data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -29
  40. data/lib/freeclimb/models/application_result.rb +0 -6
  41. data/lib/freeclimb/models/buy_incoming_number_request.rb +0 -4
  42. data/lib/freeclimb/models/call_result.rb +0 -6
  43. data/lib/freeclimb/models/conference_participant_result.rb +0 -6
  44. data/lib/freeclimb/models/conference_result.rb +0 -6
  45. data/lib/freeclimb/models/create_conference.rb +0 -8
  46. data/lib/freeclimb/models/create_conference_all_of.rb +0 -8
  47. data/lib/freeclimb/models/create_conference_request.rb +0 -6
  48. data/lib/freeclimb/models/create_web_rtc_token.rb +274 -0
  49. data/lib/freeclimb/models/dequeue.rb +1 -0
  50. data/lib/freeclimb/models/enqueue.rb +0 -6
  51. data/lib/freeclimb/models/enqueue_all_of.rb +0 -6
  52. data/lib/freeclimb/models/get_digits.rb +1 -17
  53. data/lib/freeclimb/models/get_digits_all_of.rb +1 -17
  54. data/lib/freeclimb/models/get_speech.rb +0 -22
  55. data/lib/freeclimb/models/get_speech_all_of.rb +0 -22
  56. data/lib/freeclimb/models/incoming_number_request.rb +0 -2
  57. data/lib/freeclimb/models/incoming_number_result.rb +14 -13
  58. data/lib/freeclimb/models/incoming_number_result_all_of.rb +14 -5
  59. data/lib/freeclimb/models/make_call_request.rb +0 -18
  60. data/lib/freeclimb/models/message_request.rb +10 -24
  61. data/lib/freeclimb/models/message_request_all_of.rb +10 -16
  62. data/lib/freeclimb/models/message_result.rb +17 -11
  63. data/lib/freeclimb/models/message_result_all_of.rb +17 -5
  64. data/lib/freeclimb/models/mutable_resource_model.rb +0 -6
  65. data/lib/freeclimb/models/out_dial.rb +0 -18
  66. data/lib/freeclimb/models/out_dial_all_of.rb +0 -18
  67. data/lib/freeclimb/models/park.rb +0 -4
  68. data/lib/freeclimb/models/park_all_of.rb +0 -4
  69. data/lib/freeclimb/models/play.rb +1 -17
  70. data/lib/freeclimb/models/play_all_of.rb +1 -17
  71. data/lib/freeclimb/models/queue_request.rb +0 -2
  72. data/lib/freeclimb/models/queue_result.rb +0 -6
  73. data/lib/freeclimb/models/record_utterance.rb +0 -12
  74. data/lib/freeclimb/models/record_utterance_all_of.rb +0 -12
  75. data/lib/freeclimb/models/recording_result.rb +0 -6
  76. data/lib/freeclimb/models/remove_from_conference.rb +4 -23
  77. data/lib/freeclimb/models/say.rb +1 -19
  78. data/lib/freeclimb/models/say_all_of.rb +1 -19
  79. data/lib/freeclimb/models/send_digits.rb +0 -4
  80. data/lib/freeclimb/models/send_digits_all_of.rb +0 -4
  81. data/lib/freeclimb/models/set_listen.rb +2 -18
  82. data/lib/freeclimb/models/set_listen_all_of.rb +2 -18
  83. data/lib/freeclimb/models/set_talk.rb +2 -18
  84. data/lib/freeclimb/models/set_talk_all_of.rb +2 -18
  85. data/lib/freeclimb/models/sms.rb +0 -6
  86. data/lib/freeclimb/models/sms_all_of.rb +0 -6
  87. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +0 -60
  88. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +121 -41
  89. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +0 -44
  90. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +0 -20
  91. data/lib/freeclimb/models/sms_toll_free_campaign.rb +337 -0
  92. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +311 -0
  93. data/lib/freeclimb/models/{remove_from_conference_all_of.rb → sms_toll_free_campaigns_list_result_all_of.rb} +14 -16
  94. data/lib/freeclimb/models/start_record_call.rb +1 -0
  95. data/lib/freeclimb/models/terminate_conference.rb +4 -23
  96. data/lib/freeclimb/models/{terminate_conference_all_of.rb → tfn.rb} +15 -14
  97. data/lib/freeclimb/models/transcribe_utterance.rb +11 -16
  98. data/lib/freeclimb/models/transcribe_utterance_all_of.rb +281 -0
  99. data/lib/freeclimb/models/{transcribe_utterance_record.rb → transcribe_utterance_all_of_record.rb} +3 -7
  100. data/lib/freeclimb/models/unpark.rb +1 -0
  101. data/lib/freeclimb/models/update_conference_participant_request.rb +0 -2
  102. data/lib/freeclimb/models/update_conference_request.rb +0 -2
  103. data/lib/freeclimb/version.rb +1 -1
  104. data/lib/freeclimb.rb +8 -4
  105. data/openapi.json +407 -88
  106. data/package.json +8 -0
  107. data/spec/api/default_api_spec.rb +215 -55
  108. data/spec/models/account_request_spec.rb +8 -6
  109. data/spec/models/account_result_spec.rb +28 -9
  110. data/spec/models/add_to_conference_spec.rb +21 -37
  111. data/spec/models/application_list_spec.rb +46 -22
  112. data/spec/models/application_request_spec.rb +13 -6
  113. data/spec/models/application_result_spec.rb +24 -9
  114. data/spec/models/available_number_list_spec.rb +46 -22
  115. data/spec/models/available_number_spec.rb +23 -10
  116. data/spec/models/buy_incoming_number_request_spec.rb +11 -7
  117. data/spec/models/call_list_spec.rb +46 -22
  118. data/spec/models/call_result_spec.rb +49 -15
  119. data/spec/models/capabilities_spec.rb +26 -11
  120. data/spec/models/conference_list_spec.rb +46 -22
  121. data/spec/models/conference_participant_list_spec.rb +46 -22
  122. data/spec/models/conference_participant_result_spec.rb +24 -9
  123. data/spec/models/conference_result_spec.rb +32 -9
  124. data/spec/models/create_conference_request_spec.rb +15 -6
  125. data/spec/models/create_conference_spec.rb +19 -7
  126. data/spec/models/create_web_rtc_token_spec.rb +231 -0
  127. data/spec/models/enqueue_spec.rb +16 -9
  128. data/spec/models/filter_logs_request_spec.rb +9 -7
  129. data/spec/models/get_digits_spec.rb +59 -35
  130. data/spec/models/get_speech_spec.rb +60 -24
  131. data/spec/models/hangup_spec.rb +7 -6
  132. data/spec/models/incoming_number_list_spec.rb +46 -22
  133. data/spec/models/incoming_number_request_spec.rb +9 -6
  134. data/spec/models/incoming_number_result_spec.rb +68 -13
  135. data/spec/models/log_list_spec.rb +46 -22
  136. data/spec/models/log_result_spec.rb +21 -9
  137. data/spec/models/make_call_request_spec.rb +26 -11
  138. data/spec/models/message_request_spec.rb +49 -35
  139. data/spec/models/message_result_spec.rb +64 -11
  140. data/spec/models/messages_list_spec.rb +46 -22
  141. data/spec/models/mutable_resource_model_spec.rb +15 -9
  142. data/spec/models/out_dial_spec.rb +33 -13
  143. data/spec/models/pagination_model_spec.rb +40 -21
  144. data/spec/models/park_spec.rb +13 -8
  145. data/spec/models/pause_spec.rb +14 -10
  146. data/spec/models/percl_command_spec.rb +6 -6
  147. data/spec/models/percl_script_spec.rb +11 -6
  148. data/spec/models/play_early_media_spec.rb +9 -7
  149. data/spec/models/play_spec.rb +17 -40
  150. data/spec/models/queue_list_spec.rb +46 -22
  151. data/spec/models/queue_member_list_spec.rb +46 -22
  152. data/spec/models/queue_member_spec.rb +21 -12
  153. data/spec/models/queue_request_spec.rb +13 -9
  154. data/spec/models/queue_result_spec.rb +37 -18
  155. data/spec/models/record_utterance_spec.rb +28 -13
  156. data/spec/models/recording_list_spec.rb +46 -22
  157. data/spec/models/recording_result_spec.rb +25 -12
  158. data/spec/models/redirect_spec.rb +9 -7
  159. data/spec/models/reject_spec.rb +7 -6
  160. data/spec/models/remove_from_conference_spec.rb +0 -133
  161. data/spec/models/say_spec.rb +18 -40
  162. data/spec/models/send_digits_spec.rb +17 -10
  163. data/spec/models/set_listen_spec.rb +8 -37
  164. data/spec/models/set_talk_spec.rb +8 -37
  165. data/spec/models/sms_spec.rb +16 -9
  166. data/spec/models/sms_ten_dlc_brand_spec.rb +38 -4
  167. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +46 -22
  168. data/spec/models/sms_ten_dlc_campaign_spec.rb +228 -4
  169. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +46 -22
  170. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +25 -7
  171. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +56 -8
  172. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +46 -22
  173. data/spec/models/sms_toll_free_campaign_spec.rb +382 -0
  174. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +395 -0
  175. data/spec/models/terminate_conference_spec.rb +0 -133
  176. data/spec/models/tfn_spec.rb +164 -0
  177. data/spec/models/{transcribe_utterance_record_spec.rb → transcribe_utterance_all_of_record_spec.rb} +78 -67
  178. data/spec/models/transcribe_utterance_spec.rb +37 -96
  179. data/spec/models/update_call_request_spec.rb +12 -7
  180. data/spec/models/update_conference_participant_request_spec.rb +10 -6
  181. data/spec/models/update_conference_request_spec.rb +15 -6
  182. data/yarn.lock +1292 -0
  183. metadata +105 -84
@@ -26,93 +26,78 @@ describe Freeclimb::SetListen do
26
26
  end
27
27
  end
28
28
 
29
- describe 'test attribute "call_id"' do
30
- it 'should work' do
31
- instance.call_id = "TEST_STRING"
32
- expect(instance.call_id).to eq("TEST_STRING")
33
- end
34
- end
35
-
36
29
  describe 'test attribute "listen"' do
37
30
  it 'should work' do
38
31
  instance.listen = false
39
32
  expect(instance.listen).to eq(false)
33
+
40
34
  end
41
35
  end
42
36
 
43
37
  describe 'test method "initialize"' do
44
38
  it 'properly initializes with values' do
45
39
  expect{instance = Freeclimb::SetListen.new(
46
- call_id: "TS",
47
40
  listen: true,
48
41
  )}.not_to raise_error()
49
42
  end
50
43
  it 'fails to initialize with input argument that is not a hash in Freeclimb::SetListen' do
51
44
  expect{instance = Freeclimb::SetListen.new(
52
- call_id: "TS",
53
45
  listen: true,
54
46
  invalid_attribute: true
55
47
  )}.to raise_error(ArgumentError)
56
48
  end
57
49
  it 'fails to initialize with invalid attribute' do
58
50
  expect{instance = Freeclimb::SetListen.new(
59
- call_id: "TS",
60
51
  listen: true,
61
52
  invalid_attribute: true
62
53
  )}.to raise_error(ArgumentError)
63
54
  end
64
55
  end
65
-
56
+
66
57
  describe 'test method "valid"' do
67
58
  it 'checks if properties are valid' do
68
59
  instance = Freeclimb::SetListen.new(
69
- call_id: "TS",
70
60
  listen: true,
71
61
  )
72
62
  expect(instance.valid?).to eq(true)
73
63
  end
64
+
74
65
  it 'checks if properties are invalid' do
75
66
  instance = Freeclimb::SetListen.new(
76
- call_id: nil,
67
+ listen: nil,
68
+
77
69
  )
78
70
  expect(instance.valid?).to eq(false)
79
71
  end
80
- it 'checks if model is empty' do
81
- instance = Freeclimb::SetListen.new()
82
- expect(instance.valid?).to eq(false)
83
- end
72
+
84
73
  end
85
74
 
86
75
  describe 'test method "eql?"' do
87
76
  it 'checks if objects are equal' do
88
77
  obj = Object.new()
89
78
  instance_1 = Freeclimb::SetListen.new(
90
- call_id: "TS",
91
79
  listen: true,
92
80
  )
93
81
  instance_2 = Freeclimb::SetListen.new(
94
- call_id: "TS",
95
82
  listen: true,
96
83
  )
97
84
  expect(instance_1.eql?(instance_2)).to eq(true)
98
85
  end
86
+
99
87
  it 'checks if objects are not equal' do
100
88
  instance_1 = Freeclimb::SetListen.new(
101
- call_id: "TS",
102
89
  listen: true,
103
90
  )
104
91
  instance_2 = Freeclimb::SetListen.new(
105
- call_id: "ST",
106
92
  listen: false,
107
93
  )
108
94
  expect(instance_1.eql?(instance_2)).to eq(false)
109
95
  end
110
96
  end
111
-
97
+
112
98
  describe 'test method "hash"' do
113
99
  it 'calculates hash code' do
114
100
  instance = Freeclimb::SetListen.new(
115
- call_id: "TS",
116
101
  listen: true,
117
102
  )
118
103
  expect(instance.hash).to be_a_kind_of(Integer)
@@ -122,7 +107,6 @@ describe Freeclimb::SetListen do
122
107
  describe 'test method "build_from_hash"' do
123
108
  it 'builds equivalent model from hash code' do
124
109
  instance_1 = Freeclimb::SetListen.new(
125
- call_id: "TS",
126
110
  listen: true,
127
111
  )
128
112
  instance_2 = Freeclimb::SetListen.new
@@ -132,12 +116,8 @@ describe Freeclimb::SetListen do
132
116
 
133
117
  describe 'test method "_deserialize"' do
134
118
  instance = Freeclimb::SetListen.new(
135
- call_id: "TS",
136
119
  listen: true,
137
120
  )
138
- it 'deserializes the data of call_id' do
139
- expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
140
- end
141
121
  it 'deserializes the data of listen' do
142
122
  expect(instance._deserialize("Boolean", instance.listen)).to be_a_kind_of(TrueClass)
143
123
  end
@@ -146,7 +126,6 @@ describe Freeclimb::SetListen do
146
126
  describe 'test method "to_s"' do
147
127
  it 'returns the string representation of the object' do
148
128
  instance = Freeclimb::SetListen.new(
149
- call_id: "TS",
150
129
  listen: true,
151
130
  )
152
131
  expect(instance.to_s).to eq(instance.to_hash.to_s)
@@ -156,7 +135,6 @@ describe Freeclimb::SetListen do
156
135
  describe 'test method "to_hash"' do
157
136
  it 'returns the object in the form of hash' do
158
137
  instance = Freeclimb::SetListen.new(
159
- call_id: "TS",
160
138
  listen: true,
161
139
  )
162
140
  expect(instance.to_hash).to be_a_kind_of(Hash)
@@ -164,11 +142,9 @@ describe Freeclimb::SetListen do
164
142
  it 'creates equal hash for two equal objects' do
165
143
  obj = Object.new()
166
144
  instance_1 = Freeclimb::SetListen.new(
167
- call_id: "TS",
168
145
  listen: true,
169
146
  )
170
147
  instance_2 = Freeclimb::SetListen.new(
171
- call_id: "TS",
172
148
  listen: true,
173
149
  )
174
150
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
@@ -177,13 +153,8 @@ describe Freeclimb::SetListen do
177
153
 
178
154
  describe 'test method "_to_hash"' do
179
155
  instance = Freeclimb::SetListen.new(
180
- call_id: "TS",
181
-
182
156
  listen: true,
183
157
  )
184
- it 'returns call_id in the form of hash' do
185
- expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
186
- end
187
158
  it 'returns listen in the form of hash' do
188
159
  expect(instance._to_hash(instance.listen)).to eq(instance.listen)
189
160
  end
@@ -26,93 +26,78 @@ describe Freeclimb::SetTalk do
26
26
  end
27
27
  end
28
28
 
29
- describe 'test attribute "call_id"' do
30
- it 'should work' do
31
- instance.call_id = "TEST_STRING"
32
- expect(instance.call_id).to eq("TEST_STRING")
33
- end
34
- end
35
-
36
29
  describe 'test attribute "talk"' do
37
30
  it 'should work' do
38
31
  instance.talk = false
39
32
  expect(instance.talk).to eq(false)
33
+
40
34
  end
41
35
  end
42
36
 
43
37
  describe 'test method "initialize"' do
44
38
  it 'properly initializes with values' do
45
39
  expect{instance = Freeclimb::SetTalk.new(
46
- call_id: "TS",
47
40
  talk: true,
48
41
  )}.not_to raise_error()
49
42
  end
50
43
  it 'fails to initialize with input argument that is not a hash in Freeclimb::SetTalk' do
51
44
  expect{instance = Freeclimb::SetTalk.new(
52
- call_id: "TS",
53
45
  talk: true,
54
46
  invalid_attribute: true
55
47
  )}.to raise_error(ArgumentError)
56
48
  end
57
49
  it 'fails to initialize with invalid attribute' do
58
50
  expect{instance = Freeclimb::SetTalk.new(
59
- call_id: "TS",
60
51
  talk: true,
61
52
  invalid_attribute: true
62
53
  )}.to raise_error(ArgumentError)
63
54
  end
64
55
  end
65
-
56
+
66
57
  describe 'test method "valid"' do
67
58
  it 'checks if properties are valid' do
68
59
  instance = Freeclimb::SetTalk.new(
69
- call_id: "TS",
70
60
  talk: true,
71
61
  )
72
62
  expect(instance.valid?).to eq(true)
73
63
  end
64
+
74
65
  it 'checks if properties are invalid' do
75
66
  instance = Freeclimb::SetTalk.new(
76
- call_id: nil,
67
+ talk: nil,
68
+
77
69
  )
78
70
  expect(instance.valid?).to eq(false)
79
71
  end
80
- it 'checks if model is empty' do
81
- instance = Freeclimb::SetTalk.new()
82
- expect(instance.valid?).to eq(false)
83
- end
72
+
84
73
  end
85
74
 
86
75
  describe 'test method "eql?"' do
87
76
  it 'checks if objects are equal' do
88
77
  obj = Object.new()
89
78
  instance_1 = Freeclimb::SetTalk.new(
90
- call_id: "TS",
91
79
  talk: true,
92
80
  )
93
81
  instance_2 = Freeclimb::SetTalk.new(
94
- call_id: "TS",
95
82
  talk: true,
96
83
  )
97
84
  expect(instance_1.eql?(instance_2)).to eq(true)
98
85
  end
86
+
99
87
  it 'checks if objects are not equal' do
100
88
  instance_1 = Freeclimb::SetTalk.new(
101
- call_id: "TS",
102
89
  talk: true,
103
90
  )
104
91
  instance_2 = Freeclimb::SetTalk.new(
105
- call_id: "ST",
106
92
  talk: false,
107
93
  )
108
94
  expect(instance_1.eql?(instance_2)).to eq(false)
109
95
  end
110
96
  end
111
-
97
+
112
98
  describe 'test method "hash"' do
113
99
  it 'calculates hash code' do
114
100
  instance = Freeclimb::SetTalk.new(
115
- call_id: "TS",
116
101
  talk: true,
117
102
  )
118
103
  expect(instance.hash).to be_a_kind_of(Integer)
@@ -122,7 +107,6 @@ describe Freeclimb::SetTalk do
122
107
  describe 'test method "build_from_hash"' do
123
108
  it 'builds equivalent model from hash code' do
124
109
  instance_1 = Freeclimb::SetTalk.new(
125
- call_id: "TS",
126
110
  talk: true,
127
111
  )
128
112
  instance_2 = Freeclimb::SetTalk.new
@@ -132,12 +116,8 @@ describe Freeclimb::SetTalk do
132
116
 
133
117
  describe 'test method "_deserialize"' do
134
118
  instance = Freeclimb::SetTalk.new(
135
- call_id: "TS",
136
119
  talk: true,
137
120
  )
138
- it 'deserializes the data of call_id' do
139
- expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
140
- end
141
121
  it 'deserializes the data of talk' do
142
122
  expect(instance._deserialize("Boolean", instance.talk)).to be_a_kind_of(TrueClass)
143
123
  end
@@ -146,7 +126,6 @@ describe Freeclimb::SetTalk do
146
126
  describe 'test method "to_s"' do
147
127
  it 'returns the string representation of the object' do
148
128
  instance = Freeclimb::SetTalk.new(
149
- call_id: "TS",
150
129
  talk: true,
151
130
  )
152
131
  expect(instance.to_s).to eq(instance.to_hash.to_s)
@@ -156,7 +135,6 @@ describe Freeclimb::SetTalk do
156
135
  describe 'test method "to_hash"' do
157
136
  it 'returns the object in the form of hash' do
158
137
  instance = Freeclimb::SetTalk.new(
159
- call_id: "TS",
160
138
  talk: true,
161
139
  )
162
140
  expect(instance.to_hash).to be_a_kind_of(Hash)
@@ -164,11 +142,9 @@ describe Freeclimb::SetTalk do
164
142
  it 'creates equal hash for two equal objects' do
165
143
  obj = Object.new()
166
144
  instance_1 = Freeclimb::SetTalk.new(
167
- call_id: "TS",
168
145
  talk: true,
169
146
  )
170
147
  instance_2 = Freeclimb::SetTalk.new(
171
- call_id: "TS",
172
148
  talk: true,
173
149
  )
174
150
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
@@ -177,13 +153,8 @@ describe Freeclimb::SetTalk do
177
153
 
178
154
  describe 'test method "_to_hash"' do
179
155
  instance = Freeclimb::SetTalk.new(
180
- call_id: "TS",
181
-
182
156
  talk: true,
183
157
  )
184
- it 'returns call_id in the form of hash' do
185
- expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
186
- end
187
158
  it 'returns talk in the form of hash' do
188
159
  expect(instance._to_hash(instance.talk)).to eq(instance.talk)
189
160
  end
@@ -30,6 +30,7 @@ describe Freeclimb::Sms do
30
30
  it 'should work' do
31
31
  instance.to = "TEST_STRING"
32
32
  expect(instance.to).to eq("TEST_STRING")
33
+
33
34
  end
34
35
  end
35
36
 
@@ -37,6 +38,7 @@ describe Freeclimb::Sms do
37
38
  it 'should work' do
38
39
  instance.from = "TEST_STRING"
39
40
  expect(instance.from).to eq("TEST_STRING")
41
+
40
42
  end
41
43
  end
42
44
 
@@ -44,6 +46,7 @@ describe Freeclimb::Sms do
44
46
  it 'should work' do
45
47
  instance.text = "TEST_STRING"
46
48
  expect(instance.text).to eq("TEST_STRING")
49
+
47
50
  end
48
51
  end
49
52
 
@@ -51,6 +54,7 @@ describe Freeclimb::Sms do
51
54
  it 'should work' do
52
55
  instance.notification_url = "TEST_STRING"
53
56
  expect(instance.notification_url).to eq("TEST_STRING")
57
+
54
58
  end
55
59
  end
56
60
 
@@ -82,7 +86,7 @@ describe Freeclimb::Sms do
82
86
  )}.to raise_error(ArgumentError)
83
87
  end
84
88
  end
85
-
89
+
86
90
  describe 'test method "valid"' do
87
91
  it 'checks if properties are valid' do
88
92
  instance = Freeclimb::Sms.new(
@@ -93,18 +97,20 @@ describe Freeclimb::Sms do
93
97
  )
94
98
  expect(instance.valid?).to eq(true)
95
99
  end
100
+
96
101
  it 'checks if properties are invalid' do
97
102
  instance = Freeclimb::Sms.new(
98
- to: nil,
99
- from: nil,
100
- text: nil,
103
+
104
+ to: nil,
105
+
106
+ from: nil,
107
+
108
+ text: nil,
109
+
101
110
  )
102
111
  expect(instance.valid?).to eq(false)
103
112
  end
104
- it 'checks if model is empty' do
105
- instance = Freeclimb::Sms.new()
106
- expect(instance.valid?).to eq(false)
107
- end
113
+
108
114
  end
109
115
 
110
116
  describe 'test method "eql?"' do
@@ -124,6 +130,7 @@ describe Freeclimb::Sms do
124
130
  )
125
131
  expect(instance_1.eql?(instance_2)).to eq(true)
126
132
  end
133
+
127
134
  it 'checks if objects are not equal' do
128
135
  instance_1 = Freeclimb::Sms.new(
129
136
  to: "TS",
@@ -140,7 +147,7 @@ describe Freeclimb::Sms do
140
147
  expect(instance_1.eql?(instance_2)).to eq(false)
141
148
  end
142
149
  end
143
-
150
+
144
151
  describe 'test method "hash"' do
145
152
  it 'calculates hash code' do
146
153
  instance = Freeclimb::Sms.new(
@@ -30,6 +30,7 @@ describe Freeclimb::SMSTenDLCBrand 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
 
@@ -65,6 +66,7 @@ describe Freeclimb::SMSTenDLCBrand do
65
66
  it 'should work' do
66
67
  instance.csp_id = "TEST_STRING"
67
68
  expect(instance.csp_id).to eq("TEST_STRING")
69
+
68
70
  end
69
71
  end
70
72
 
@@ -72,6 +74,7 @@ describe Freeclimb::SMSTenDLCBrand do
72
74
  it 'should work' do
73
75
  instance.brand_id = "TEST_STRING"
74
76
  expect(instance.brand_id).to eq("TEST_STRING")
77
+
75
78
  end
76
79
  end
77
80
 
@@ -427,6 +430,7 @@ describe Freeclimb::SMSTenDLCBrand do
427
430
  it 'should work' do
428
431
  instance.universal_ein = "TEST_STRING"
429
432
  expect(instance.universal_ein).to eq("TEST_STRING")
433
+
430
434
  end
431
435
  end
432
436
 
@@ -442,6 +446,7 @@ describe Freeclimb::SMSTenDLCBrand do
442
446
 
443
447
  describe 'test attribute "optional_attributes"' do
444
448
  it 'should work' do
449
+
445
450
  testObject = Object.new()
446
451
  instance.optional_attributes = testObject
447
452
  expect(instance.optional_attributes).to eq(testObject)
@@ -452,6 +457,7 @@ describe Freeclimb::SMSTenDLCBrand do
452
457
  it 'should work' do
453
458
  instance.mock = false
454
459
  expect(instance.mock).to eq(false)
460
+
455
461
  end
456
462
  end
457
463
 
@@ -483,6 +489,7 @@ describe Freeclimb::SMSTenDLCBrand do
483
489
  it 'should work' do
484
490
  instance.create_date = "2022-07-05T15:17:05Z"
485
491
  expect(instance.create_date).to eq("2022-07-05T15:17:05Z")
492
+
486
493
  end
487
494
  end
488
495
 
@@ -595,7 +602,7 @@ describe Freeclimb::SMSTenDLCBrand do
595
602
  )}.to raise_error(ArgumentError)
596
603
  end
597
604
  end
598
-
605
+
599
606
  describe 'test method "valid"' do
600
607
  it 'checks if properties are valid' do
601
608
  instance = Freeclimb::SMSTenDLCBrand.new(
@@ -633,10 +640,36 @@ describe Freeclimb::SMSTenDLCBrand do
633
640
  )
634
641
  expect(instance.valid?).to eq(true)
635
642
  end
636
- it 'checks if model is empty' do
637
- instance = Freeclimb::SMSTenDLCBrand.new()
643
+
644
+ it 'checks if properties are invalid' do
645
+ instance = Freeclimb::SMSTenDLCBrand.new(
646
+ first_name: nil,
647
+ last_name: nil,
648
+
649
+ display_name: "T" * 255,company_name: nil,
650
+ ein: nil,
651
+ ein_issuing_country: nil,
652
+
653
+ phone: "T" * 20,street: nil,
654
+ city: nil,
655
+ state: nil,
656
+ postal_code: nil,
657
+
658
+ country: "T" * 2,
659
+ email: "T" * 100,stock_symbol: nil,
660
+ ip_address: nil,
661
+ website: nil,
662
+
663
+ vertical: "T" * 50,alt_business_id: nil,
664
+ reference_id: nil,
665
+ mock: nil,
666
+
667
+ mock: nil,
668
+
669
+ )
638
670
  expect(instance.valid?).to eq(false)
639
671
  end
672
+
640
673
  end
641
674
 
642
675
  describe 'test method "eql?"' do
@@ -706,6 +739,7 @@ describe Freeclimb::SMSTenDLCBrand do
706
739
  )
707
740
  expect(instance_1.eql?(instance_2)).to eq(true)
708
741
  end
742
+
709
743
  it 'checks if objects are not equal' do
710
744
  instance_1 = Freeclimb::SMSTenDLCBrand.new(
711
745
  account_id: "TS",
@@ -772,7 +806,7 @@ describe Freeclimb::SMSTenDLCBrand do
772
806
  expect(instance_1.eql?(instance_2)).to eq(false)
773
807
  end
774
808
  end
775
-
809
+
776
810
  describe 'test method "hash"' do
777
811
  it 'calculates hash code' do
778
812
  instance = Freeclimb::SMSTenDLCBrand.new(
@@ -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(