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,25 +27,214 @@ describe Freeclimb::Enqueue do
27
27
  end
28
28
  describe 'test attribute "action_url"' do
29
29
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
30
+ instance.action_url = "TEST_STRING"
31
+ expect(instance.action_url).to eq("TEST_STRING")
31
32
  end
32
33
  end
33
34
 
34
35
  describe 'test attribute "notification_url"' do
35
36
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ instance.notification_url = "TEST_STRING"
38
+ expect(instance.notification_url).to eq("TEST_STRING")
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "queue_id"' do
41
43
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ instance.queue_id = "TEST_STRING"
45
+ expect(instance.queue_id).to eq("TEST_STRING")
43
46
  end
44
47
  end
45
48
 
46
49
  describe 'test attribute "wait_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.wait_url = "TEST_STRING"
52
+ expect(instance.wait_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::Enqueue.new(
59
+ action_url: "TS",
60
+ notification_url: "TS",
61
+ queue_id: "TS",
62
+ wait_url: "TS",
63
+ )}.not_to raise_error()
64
+ end
65
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::Enqueue' do
66
+ expect{instance = Freeclimb::Enqueue.new(
67
+ action_url: "TS",
68
+ notification_url: "TS",
69
+ queue_id: "TS",
70
+ wait_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::Enqueue.new(
76
+ action_url: "TS",
77
+ notification_url: "TS",
78
+ queue_id: "TS",
79
+ wait_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::Enqueue.new(
88
+ action_url: "TS",
89
+ notification_url: "TS",
90
+ queue_id: "TS",
91
+ wait_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::Enqueue.new(
101
+ action_url: "TS",
102
+ notification_url: "TS",
103
+ queue_id: "TS",
104
+ wait_url: "TS",
105
+ )
106
+ instance_2 = Freeclimb::Enqueue.new(
107
+ action_url: "TS",
108
+ notification_url: "TS",
109
+ queue_id: "TS",
110
+ wait_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::Enqueue.new(
116
+ action_url: "TS",
117
+ notification_url: "TS",
118
+ queue_id: "TS",
119
+ wait_url: "TS",
120
+ )
121
+ instance_2 = Freeclimb::Enqueue.new(
122
+ action_url: "ST",
123
+ notification_url: "ST",
124
+ queue_id: "ST",
125
+ wait_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::Enqueue.new(
134
+ action_url: "TS",
135
+ notification_url: "TS",
136
+ queue_id: "TS",
137
+ wait_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::Enqueue.new(
146
+ action_url: "TS",
147
+ notification_url: "TS",
148
+ queue_id: "TS",
149
+ wait_url: "TS",
150
+ )
151
+ instance_2 = Freeclimb::Enqueue.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::Enqueue.new(
158
+ action_url: "TS",
159
+ notification_url: "TS",
160
+ queue_id: "TS",
161
+ wait_url: "TS",
162
+ )
163
+ it 'deserializes the data of action_url' do
164
+ expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String)
165
+ end
166
+ it 'deserializes the data of notification_url' do
167
+ expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String)
168
+ end
169
+ it 'deserializes the data of queue_id' do
170
+ expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String)
171
+ end
172
+ it 'deserializes the data of wait_url' do
173
+ expect(instance._deserialize("String", instance.wait_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::Enqueue.new(
180
+ action_url: "TS",
181
+ notification_url: "TS",
182
+ queue_id: "TS",
183
+ wait_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::Enqueue.new(
192
+ action_url: "TS",
193
+ notification_url: "TS",
194
+ queue_id: "TS",
195
+ wait_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::Enqueue.new(
202
+ action_url: "TS",
203
+ notification_url: "TS",
204
+ queue_id: "TS",
205
+ wait_url: "TS",
206
+ )
207
+ instance_2 = Freeclimb::Enqueue.new(
208
+ action_url: "TS",
209
+ notification_url: "TS",
210
+ queue_id: "TS",
211
+ wait_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::Enqueue.new(
219
+ action_url: "TS",
220
+
221
+ notification_url: "TS",
222
+
223
+ queue_id: "TS",
224
+
225
+ wait_url: "TS",
226
+ )
227
+ it 'returns action_url in the form of hash' do
228
+ expect(instance._to_hash(instance.action_url)).to eq(instance.action_url)
229
+ end
230
+ it 'returns notification_url in the form of hash' do
231
+ expect(instance._to_hash(instance.notification_url)).to eq(instance.notification_url)
232
+ end
233
+ it 'returns queue_id in the form of hash' do
234
+ expect(instance._to_hash(instance.queue_id)).to eq(instance.queue_id)
235
+ end
236
+ it 'returns wait_url in the form of hash' do
237
+ expect(instance._to_hash(instance.wait_url)).to eq(instance.wait_url)
49
238
  end
50
239
  end
51
240
 
@@ -27,7 +27,124 @@ describe Freeclimb::FilterLogsRequest do
27
27
  end
28
28
  describe 'test attribute "pql"' do
29
29
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
30
+ instance.pql = "TEST_STRING"
31
+ expect(instance.pql).to eq("TEST_STRING")
32
+ end
33
+ end
34
+
35
+ describe 'test method "initialize"' do
36
+ it 'properly initializes with values' do
37
+ expect{instance = Freeclimb::FilterLogsRequest.new(
38
+ pql: "TS",
39
+ )}.not_to raise_error()
40
+ end
41
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::FilterLogsRequest' do
42
+ expect{instance = Freeclimb::FilterLogsRequest.new(
43
+ pql: "TS",
44
+ invalid_attribute: true
45
+ )}.to raise_error(ArgumentError)
46
+ end
47
+ it 'fails to initialize with invalid attribute' do
48
+ expect{instance = Freeclimb::FilterLogsRequest.new(
49
+ pql: "TS",
50
+ invalid_attribute: true
51
+ )}.to raise_error(ArgumentError)
52
+ end
53
+ end
54
+
55
+ describe 'test method "valid"' do
56
+ it 'checks if properties are valid' do
57
+ instance = Freeclimb::FilterLogsRequest.new(
58
+ pql: "TS",
59
+ )
60
+ expect(instance.valid?).to eq(true)
61
+ end
62
+ end
63
+
64
+ describe 'test method "eql?"' do
65
+ it 'checks if objects are equal' do
66
+ obj = Object.new()
67
+ instance_1 = Freeclimb::FilterLogsRequest.new(
68
+ pql: "TS",
69
+ )
70
+ instance_2 = Freeclimb::FilterLogsRequest.new(
71
+ pql: "TS",
72
+ )
73
+ expect(instance_1.eql?(instance_2)).to eq(true)
74
+ end
75
+ it 'checks if objects are not equal' do
76
+ instance_1 = Freeclimb::FilterLogsRequest.new(
77
+ pql: "TS",
78
+ )
79
+ instance_2 = Freeclimb::FilterLogsRequest.new(
80
+ pql: "ST",
81
+ )
82
+ expect(instance_1.eql?(instance_2)).to eq(false)
83
+ end
84
+ end
85
+
86
+ describe 'test method "hash"' do
87
+ it 'calculates hash code' do
88
+ instance = Freeclimb::FilterLogsRequest.new(
89
+ pql: "TS",
90
+ )
91
+ expect(instance.hash).to be_a_kind_of(Integer)
92
+ end
93
+ end
94
+
95
+ describe 'test method "build_from_hash"' do
96
+ it 'builds equivalent model from hash code' do
97
+ instance_1 = Freeclimb::FilterLogsRequest.new(
98
+ pql: "TS",
99
+ )
100
+ instance_2 = Freeclimb::FilterLogsRequest.new
101
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
102
+ end
103
+ end
104
+
105
+ describe 'test method "_deserialize"' do
106
+ instance = Freeclimb::FilterLogsRequest.new(
107
+ pql: "TS",
108
+ )
109
+ it 'deserializes the data of pql' do
110
+ expect(instance._deserialize("String", instance.pql)).to be_a_kind_of(String)
111
+ end
112
+ end
113
+
114
+ describe 'test method "to_s"' do
115
+ it 'returns the string representation of the object' do
116
+ instance = Freeclimb::FilterLogsRequest.new(
117
+ pql: "TS",
118
+ )
119
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
120
+ end
121
+ end
122
+
123
+ describe 'test method "to_hash"' do
124
+ it 'returns the object in the form of hash' do
125
+ instance = Freeclimb::FilterLogsRequest.new(
126
+ pql: "TS",
127
+ )
128
+ expect(instance.to_hash).to be_a_kind_of(Hash)
129
+ end
130
+ it 'creates equal hash for two equal objects' do
131
+ obj = Object.new()
132
+ instance_1 = Freeclimb::FilterLogsRequest.new(
133
+ pql: "TS",
134
+ )
135
+ instance_2 = Freeclimb::FilterLogsRequest.new(
136
+ pql: "TS",
137
+ )
138
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
139
+ end
140
+ end
141
+
142
+ describe 'test method "_to_hash"' do
143
+ instance = Freeclimb::FilterLogsRequest.new(
144
+ pql: "TS",
145
+ )
146
+ it 'returns pql in the form of hash' do
147
+ expect(instance._to_hash(instance.pql)).to eq(instance.pql)
31
148
  end
32
149
  end
33
150