twilio-ruby 5.46.0 → 5.50.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +112 -0
  3. data/README.md +20 -6
  4. data/lib/twilio-ruby/rest/api.rb +1 -1
  5. data/lib/twilio-ruby/rest/api/v2010.rb +5 -4
  6. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +10 -1
  7. data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +4 -4
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +4 -4
  9. data/lib/twilio-ruby/rest/autopilot/v1.rb +5 -4
  10. data/lib/twilio-ruby/rest/bulkexports/v1.rb +10 -8
  11. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +14 -0
  12. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +14 -0
  13. data/lib/twilio-ruby/rest/chat/v1.rb +10 -8
  14. data/lib/twilio-ruby/rest/chat/v2.rb +10 -8
  15. data/lib/twilio-ruby/rest/client.rb +8 -1
  16. data/lib/twilio-ruby/rest/conversations/v1.rb +25 -20
  17. data/lib/twilio-ruby/rest/events/v1.rb +20 -16
  18. data/lib/twilio-ruby/rest/events/v1/event_type.rb +4 -4
  19. data/lib/twilio-ruby/rest/events/v1/schema.rb +4 -4
  20. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +4 -4
  21. data/lib/twilio-ruby/rest/events/v1/sink.rb +6 -5
  22. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +3 -3
  23. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +3 -3
  24. data/lib/twilio-ruby/rest/events/v1/subscription.rb +15 -8
  25. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +133 -6
  26. data/lib/twilio-ruby/rest/fax/v1.rb +5 -4
  27. data/lib/twilio-ruby/rest/flex_api/v1.rb +15 -12
  28. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
  29. data/lib/twilio-ruby/rest/insights.rb +1 -1
  30. data/lib/twilio-ruby/rest/insights/v1.rb +11 -9
  31. data/lib/twilio-ruby/rest/insights/v1/room.rb +55 -43
  32. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +22 -22
  33. data/lib/twilio-ruby/rest/ip_messaging/v1.rb +10 -8
  34. data/lib/twilio-ruby/rest/ip_messaging/v2.rb +10 -8
  35. data/lib/twilio-ruby/rest/lookups/v1.rb +5 -4
  36. data/lib/twilio-ruby/rest/messaging.rb +8 -0
  37. data/lib/twilio-ruby/rest/messaging/v1.rb +21 -4
  38. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
  39. data/lib/twilio-ruby/rest/monitor/v1.rb +10 -8
  40. data/lib/twilio-ruby/rest/notify/v1.rb +10 -8
  41. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +10 -8
  42. data/lib/twilio-ruby/rest/preview/deployed_devices.rb +5 -4
  43. data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +10 -8
  44. data/lib/twilio-ruby/rest/preview/marketplace.rb +10 -8
  45. data/lib/twilio-ruby/rest/preview/sync.rb +5 -4
  46. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
  47. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +5 -4
  48. data/lib/twilio-ruby/rest/preview/understand.rb +5 -4
  49. data/lib/twilio-ruby/rest/preview/wireless.rb +15 -12
  50. data/lib/twilio-ruby/rest/proxy/v1.rb +5 -4
  51. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
  52. data/lib/twilio-ruby/rest/serverless/v1.rb +5 -4
  53. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +11 -1
  54. data/lib/twilio-ruby/rest/studio/v1.rb +5 -4
  55. data/lib/twilio-ruby/rest/studio/v2.rb +5 -4
  56. data/lib/twilio-ruby/rest/studio/v2/flow.rb +4 -12
  57. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
  58. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
  59. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
  60. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
  61. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -9
  62. data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
  63. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
  64. data/lib/twilio-ruby/rest/supersim.rb +9 -0
  65. data/lib/twilio-ruby/rest/supersim/v1.rb +41 -20
  66. data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
  67. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +86 -13
  68. data/lib/twilio-ruby/rest/supersim/v1/network.rb +4 -4
  69. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +4 -4
  70. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +4 -4
  71. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
  72. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +371 -0
  73. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
  74. data/lib/twilio-ruby/rest/sync/v1.rb +5 -4
  75. data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
  76. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +13 -32
  77. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
  78. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +9 -23
  79. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +38 -45
  80. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
  81. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +9 -23
  82. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +38 -47
  83. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -8
  84. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -23
  85. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -6
  86. data/lib/twilio-ruby/rest/taskrouter/v1.rb +5 -4
  87. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +12 -8
  88. data/lib/twilio-ruby/rest/trunking/v1.rb +5 -4
  89. data/lib/twilio-ruby/rest/trusthub.rb +100 -0
  90. data/lib/twilio-ruby/rest/trusthub/v1.rb +146 -0
  91. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +523 -0
  92. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +359 -0
  93. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +330 -0
  94. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +328 -0
  95. data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +356 -0
  96. data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +271 -0
  97. data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +262 -0
  98. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +369 -0
  99. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +271 -0
  100. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +523 -0
  101. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +359 -0
  102. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +330 -0
  103. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +328 -0
  104. data/lib/twilio-ruby/rest/verify.rb +9 -0
  105. data/lib/twilio-ruby/rest/verify/v2.rb +26 -8
  106. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +4 -3
  107. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +64 -13
  108. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +329 -0
  109. data/lib/twilio-ruby/rest/video/v1.rb +20 -16
  110. data/lib/twilio-ruby/rest/video/v1/room.rb +4 -1
  111. data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +0 -6
  112. data/lib/twilio-ruby/rest/voice/v1.rb +20 -16
  113. data/lib/twilio-ruby/rest/wireless/v1.rb +15 -12
  114. data/lib/twilio-ruby/twiml/voice_response.rb +38 -8
  115. data/lib/twilio-ruby/version.rb +1 -1
  116. data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
  117. data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +4 -16
  118. data/spec/integration/api/v2010/account/message_spec.rb +37 -0
  119. data/spec/integration/bulkexports/v1/export/export_custom_job_spec.rb +6 -2
  120. data/spec/integration/bulkexports/v1/export/job_spec.rb +3 -1
  121. data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +134 -0
  122. data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
  123. data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
  124. data/spec/integration/preview/sync/service/document_spec.rb +1 -3
  125. data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
  126. data/spec/integration/supersim/v1/fleet_spec.rb +20 -0
  127. data/spec/integration/supersim/v1/sms_command_spec.rb +184 -0
  128. data/spec/integration/sync/v1/service/document_spec.rb +1 -3
  129. data/spec/integration/taskrouter/v1/workspace/task_spec.rb +3 -1
  130. data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment_spec.rb +192 -0
  131. data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_entity_assignments_spec.rb +186 -0
  132. data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_evaluations_spec.rb +615 -0
  133. data/spec/integration/trusthub/v1/customer_profiles_spec.rb +255 -0
  134. data/spec/integration/trusthub/v1/end_user_spec.rb +247 -0
  135. data/spec/integration/trusthub/v1/end_user_type_spec.rb +176 -0
  136. data/spec/integration/trusthub/v1/policies_spec.rb +252 -0
  137. data/spec/integration/trusthub/v1/supporting_document_spec.rb +235 -0
  138. data/spec/integration/trusthub/v1/supporting_document_type_spec.rb +159 -0
  139. data/spec/integration/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment_spec.rb +192 -0
  140. data/spec/integration/trusthub/v1/trust_products/trust_products_entity_assignments_spec.rb +186 -0
  141. data/spec/integration/trusthub/v1/trust_products/trust_products_evaluations_spec.rb +615 -0
  142. data/spec/integration/trusthub/v1/trust_products_spec.rb +255 -0
  143. data/spec/integration/verify/v2/service/entity/factor_spec.rb +3 -3
  144. data/spec/integration/verify/v2/verification_attempt_spec.rb +146 -0
  145. data/spec/integration/video/v1/room_spec.rb +39 -0
  146. metadata +52 -2
@@ -0,0 +1,255 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ require 'spec_helper.rb'
10
+
11
+ describe 'TrustProducts' do
12
+ it "can create" do
13
+ @holodeck.mock(Twilio::Response.new(500, ''))
14
+
15
+ expect {
16
+ @client.trusthub.v1.trust_products.create(friendly_name: 'friendly_name', email: 'email', policy_sid: 'RNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
17
+ }.to raise_exception(Twilio::REST::TwilioError)
18
+
19
+ values = {
20
+ 'FriendlyName' => 'friendly_name',
21
+ 'Email' => 'email',
22
+ 'PolicySid' => 'RNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
23
+ }
24
+ expect(
25
+ @holodeck.has_request?(Holodeck::Request.new(
26
+ method: 'post',
27
+ url: 'https://trusthub.twilio.com/v1/TrustProducts',
28
+ data: values,
29
+ ))).to eq(true)
30
+ end
31
+
32
+ it "receives create responses" do
33
+ @holodeck.mock(Twilio::Response.new(
34
+ 201,
35
+ %q[
36
+ {
37
+ "sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
38
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
39
+ "policy_sid": "RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
40
+ "friendly_name": "friendly_name",
41
+ "status": "draft",
42
+ "email": "email",
43
+ "status_callback": "http://www.example.com",
44
+ "valid_until": null,
45
+ "date_created": "2019-07-30T22:29:24Z",
46
+ "date_updated": "2019-07-31T01:09:00Z",
47
+ "url": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
48
+ "links": {
49
+ "trust_products_entity_assignments": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/EntityAssignments",
50
+ "trust_products_evaluations": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations",
51
+ "trust_products_channel_endpoint_assignment": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ChannelEndpointAssignments"
52
+ }
53
+ }
54
+ ]
55
+ ))
56
+
57
+ actual = @client.trusthub.v1.trust_products.create(friendly_name: 'friendly_name', email: 'email', policy_sid: 'RNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
58
+
59
+ expect(actual).to_not eq(nil)
60
+ end
61
+
62
+ it "can read" do
63
+ @holodeck.mock(Twilio::Response.new(500, ''))
64
+
65
+ expect {
66
+ @client.trusthub.v1.trust_products.list()
67
+ }.to raise_exception(Twilio::REST::TwilioError)
68
+
69
+ expect(
70
+ @holodeck.has_request?(Holodeck::Request.new(
71
+ method: 'get',
72
+ url: 'https://trusthub.twilio.com/v1/TrustProducts',
73
+ ))).to eq(true)
74
+ end
75
+
76
+ it "receives read_empty responses" do
77
+ @holodeck.mock(Twilio::Response.new(
78
+ 200,
79
+ %q[
80
+ {
81
+ "results": [],
82
+ "meta": {
83
+ "page": 0,
84
+ "page_size": 50,
85
+ "first_page_url": "https://trusthub.twilio.com/v1/TrustProducts?PageSize=50&Page=0",
86
+ "previous_page_url": null,
87
+ "url": "https://trusthub.twilio.com/v1/TrustProducts?PageSize=50&Page=0",
88
+ "next_page_url": null,
89
+ "key": "results"
90
+ }
91
+ }
92
+ ]
93
+ ))
94
+
95
+ actual = @client.trusthub.v1.trust_products.list()
96
+
97
+ expect(actual).to_not eq(nil)
98
+ end
99
+
100
+ it "receives read_full responses" do
101
+ @holodeck.mock(Twilio::Response.new(
102
+ 200,
103
+ %q[
104
+ {
105
+ "results": [
106
+ {
107
+ "sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
108
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
109
+ "policy_sid": "RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
110
+ "friendly_name": "friendly_name",
111
+ "status": "provisionally-approved",
112
+ "email": "email",
113
+ "status_callback": "http://www.example.com",
114
+ "valid_until": "2020-07-31T01:00:00Z",
115
+ "date_created": "2019-07-30T22:29:24Z",
116
+ "date_updated": "2019-07-31T01:09:00Z",
117
+ "url": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
118
+ "links": {
119
+ "trust_products_entity_assignments": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/EntityAssignments",
120
+ "trust_products_evaluations": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations",
121
+ "trust_products_channel_endpoint_assignment": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ChannelEndpointAssignments"
122
+ }
123
+ }
124
+ ],
125
+ "meta": {
126
+ "page": 0,
127
+ "page_size": 50,
128
+ "first_page_url": "https://trusthub.twilio.com/v1/TrustProducts?Status=draft&FriendlyName=friendly_name&PolicySid=RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
129
+ "previous_page_url": null,
130
+ "url": "https://trusthub.twilio.com/v1/TrustProducts?Status=draft&FriendlyName=friendly_name&PolicySid=RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
131
+ "next_page_url": null,
132
+ "key": "results"
133
+ }
134
+ }
135
+ ]
136
+ ))
137
+
138
+ actual = @client.trusthub.v1.trust_products.list()
139
+
140
+ expect(actual).to_not eq(nil)
141
+ end
142
+
143
+ it "can fetch" do
144
+ @holodeck.mock(Twilio::Response.new(500, ''))
145
+
146
+ expect {
147
+ @client.trusthub.v1.trust_products('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
148
+ }.to raise_exception(Twilio::REST::TwilioError)
149
+
150
+ expect(
151
+ @holodeck.has_request?(Holodeck::Request.new(
152
+ method: 'get',
153
+ url: 'https://trusthub.twilio.com/v1/TrustProducts/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
154
+ ))).to eq(true)
155
+ end
156
+
157
+ it "receives fetch responses" do
158
+ @holodeck.mock(Twilio::Response.new(
159
+ 200,
160
+ %q[
161
+ {
162
+ "sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
163
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
164
+ "policy_sid": "RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
165
+ "friendly_name": "friendly_name",
166
+ "status": "draft",
167
+ "valid_until": null,
168
+ "email": "email",
169
+ "status_callback": "http://www.example.com",
170
+ "date_created": "2019-07-30T22:29:24Z",
171
+ "date_updated": "2019-07-31T01:09:00Z",
172
+ "url": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
173
+ "links": {
174
+ "trust_products_entity_assignments": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/EntityAssignments",
175
+ "trust_products_evaluations": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations",
176
+ "trust_products_channel_endpoint_assignment": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ChannelEndpointAssignments"
177
+ }
178
+ }
179
+ ]
180
+ ))
181
+
182
+ actual = @client.trusthub.v1.trust_products('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
183
+
184
+ expect(actual).to_not eq(nil)
185
+ end
186
+
187
+ it "can update" do
188
+ @holodeck.mock(Twilio::Response.new(500, ''))
189
+
190
+ expect {
191
+ @client.trusthub.v1.trust_products('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
192
+ }.to raise_exception(Twilio::REST::TwilioError)
193
+
194
+ expect(
195
+ @holodeck.has_request?(Holodeck::Request.new(
196
+ method: 'post',
197
+ url: 'https://trusthub.twilio.com/v1/TrustProducts/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
198
+ ))).to eq(true)
199
+ end
200
+
201
+ it "receives update responses" do
202
+ @holodeck.mock(Twilio::Response.new(
203
+ 200,
204
+ %q[
205
+ {
206
+ "sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
207
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
208
+ "policy_sid": "RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
209
+ "friendly_name": "friendly_name",
210
+ "status": "draft",
211
+ "email": "email",
212
+ "status_callback": "http://www.example.com",
213
+ "valid_until": null,
214
+ "date_created": "2019-07-30T22:29:24Z",
215
+ "date_updated": "2019-07-31T01:09:00Z",
216
+ "url": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
217
+ "links": {
218
+ "trust_products_entity_assignments": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/EntityAssignments",
219
+ "trust_products_evaluations": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations",
220
+ "trust_products_channel_endpoint_assignment": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ChannelEndpointAssignments"
221
+ }
222
+ }
223
+ ]
224
+ ))
225
+
226
+ actual = @client.trusthub.v1.trust_products('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
227
+
228
+ expect(actual).to_not eq(nil)
229
+ end
230
+
231
+ it "can delete" do
232
+ @holodeck.mock(Twilio::Response.new(500, ''))
233
+
234
+ expect {
235
+ @client.trusthub.v1.trust_products('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
236
+ }.to raise_exception(Twilio::REST::TwilioError)
237
+
238
+ expect(
239
+ @holodeck.has_request?(Holodeck::Request.new(
240
+ method: 'delete',
241
+ url: 'https://trusthub.twilio.com/v1/TrustProducts/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
242
+ ))).to eq(true)
243
+ end
244
+
245
+ it "receives delete responses" do
246
+ @holodeck.mock(Twilio::Response.new(
247
+ 204,
248
+ nil,
249
+ ))
250
+
251
+ actual = @client.trusthub.v1.trust_products('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
252
+
253
+ expect(actual).to eq(true)
254
+ end
255
+ end
@@ -27,7 +27,7 @@ describe 'Factor' do
27
27
  ))).to eq(true)
28
28
  end
29
29
 
30
- it "receives create responses" do
30
+ it "receives create_push responses" do
31
31
  @holodeck.mock(Twilio::Response.new(
32
32
  201,
33
33
  %q[
@@ -105,7 +105,7 @@ describe 'Factor' do
105
105
  ))).to eq(true)
106
106
  end
107
107
 
108
- it "receives fetch responses" do
108
+ it "receives fetch_push responses" do
109
109
  @holodeck.mock(Twilio::Response.new(
110
110
  200,
111
111
  %q[
@@ -242,7 +242,7 @@ describe 'Factor' do
242
242
  ))).to eq(true)
243
243
  end
244
244
 
245
- it "receives verify responses" do
245
+ it "receives verify_push responses" do
246
246
  @holodeck.mock(Twilio::Response.new(
247
247
  200,
248
248
  %q[
@@ -0,0 +1,146 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ require 'spec_helper.rb'
10
+
11
+ describe 'VerificationAttempt' do
12
+ it "can read" do
13
+ @holodeck.mock(Twilio::Response.new(500, ''))
14
+
15
+ expect {
16
+ @client.verify.v2.verification_attempts.list()
17
+ }.to raise_exception(Twilio::REST::TwilioError)
18
+
19
+ expect(
20
+ @holodeck.has_request?(Holodeck::Request.new(
21
+ method: 'get',
22
+ url: 'https://verify.twilio.com/v2/Attempts',
23
+ ))).to eq(true)
24
+ end
25
+
26
+ it "receives list_verification_attempts_empty responses" do
27
+ @holodeck.mock(Twilio::Response.new(
28
+ 200,
29
+ %q[
30
+ {
31
+ "attempts": [],
32
+ "meta": {
33
+ "key": "attempts",
34
+ "page": 0,
35
+ "page_size": 50,
36
+ "first_page_url": "https://verify.twilio.com/v2/Attempts?PageSize=50&Page=0",
37
+ "previous_page_url": null,
38
+ "url": "https://verify.twilio.com/v2/Attempts?PageSize=50&Page=0",
39
+ "next_page_url": null
40
+ }
41
+ }
42
+ ]
43
+ ))
44
+
45
+ actual = @client.verify.v2.verification_attempts.list()
46
+
47
+ expect(actual).to_not eq(nil)
48
+ end
49
+
50
+ it "receives list_verification_attempts responses" do
51
+ @holodeck.mock(Twilio::Response.new(
52
+ 200,
53
+ %q[
54
+ {
55
+ "attempts": [
56
+ {
57
+ "sid": "VLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
58
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
59
+ "service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
60
+ "date_created": "2020-08-11T18:36:59Z",
61
+ "date_updated": "2020-08-11T18:37:00Z",
62
+ "conversion_status": "unconverted",
63
+ "channel": "sms",
64
+ "channel_data": {
65
+ "verification_sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
66
+ "to": "+573003003030",
67
+ "status": "unconfirmed",
68
+ "message_status": "undelivered",
69
+ "error_code": "30008",
70
+ "country": "CO",
71
+ "code_length": 6,
72
+ "locale": "es",
73
+ "mcc": "732",
74
+ "mnc": "103",
75
+ "carrier": "Colombia Movil (Tigo)"
76
+ },
77
+ "url": "https://verify.twilio.com/v2/Attempts/VLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
78
+ }
79
+ ],
80
+ "meta": {
81
+ "key": "attempts",
82
+ "page": 0,
83
+ "page_size": 50,
84
+ "first_page_url": "https://verify.twilio.com/v2/Attempts?PageSize=50&Page=0",
85
+ "previous_page_url": null,
86
+ "url": "https://verify.twilio.com/v2/Attempts?PageSize=50&Page=0",
87
+ "next_page_url": null
88
+ }
89
+ }
90
+ ]
91
+ ))
92
+
93
+ actual = @client.verify.v2.verification_attempts.list()
94
+
95
+ expect(actual).to_not eq(nil)
96
+ end
97
+
98
+ it "can fetch" do
99
+ @holodeck.mock(Twilio::Response.new(500, ''))
100
+
101
+ expect {
102
+ @client.verify.v2.verification_attempts('VLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
103
+ }.to raise_exception(Twilio::REST::TwilioError)
104
+
105
+ expect(
106
+ @holodeck.has_request?(Holodeck::Request.new(
107
+ method: 'get',
108
+ url: 'https://verify.twilio.com/v2/Attempts/VLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
109
+ ))).to eq(true)
110
+ end
111
+
112
+ it "receives fetch_verification_attempt responses" do
113
+ @holodeck.mock(Twilio::Response.new(
114
+ 200,
115
+ %q[
116
+ {
117
+ "sid": "VLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
118
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
119
+ "service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
120
+ "date_created": "2020-08-11T18:36:59Z",
121
+ "date_updated": "2020-08-11T18:37:00Z",
122
+ "conversion_status": "unconverted",
123
+ "channel": "sms",
124
+ "channel_data": {
125
+ "verification_sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
126
+ "to": "+573003003030",
127
+ "status": "unconfirmed",
128
+ "message_status": "undelivered",
129
+ "error_code": "30008",
130
+ "country": "CO",
131
+ "code_length": 6,
132
+ "locale": "es",
133
+ "mcc": "732",
134
+ "mnc": "103",
135
+ "carrier": "Colombia Movil (Tigo)"
136
+ },
137
+ "url": "https://verify.twilio.com/v2/Attempts/VLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
138
+ }
139
+ ]
140
+ ))
141
+
142
+ actual = @client.verify.v2.verification_attempts('VLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
143
+
144
+ expect(actual).to_not eq(nil)
145
+ end
146
+ end
@@ -154,6 +154,45 @@ describe 'Room' do
154
154
  expect(actual).to_not eq(nil)
155
155
  end
156
156
 
157
+ it "receives create_group_rooms responses" do
158
+ @holodeck.mock(Twilio::Response.new(
159
+ 201,
160
+ %q[
161
+ {
162
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
163
+ "date_created": "2015-07-30T20:00:00Z",
164
+ "date_updated": "2015-07-30T20:00:00Z",
165
+ "status": "in-progress",
166
+ "type": "group",
167
+ "sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
168
+ "enable_turn": true,
169
+ "unique_name": "grouproom",
170
+ "max_participants": 50,
171
+ "max_concurrent_published_tracks": 10,
172
+ "duration": 0,
173
+ "status_callback_method": "POST",
174
+ "status_callback": "",
175
+ "record_participants_on_connect": false,
176
+ "video_codecs": [
177
+ "VP8"
178
+ ],
179
+ "media_region": "us1",
180
+ "end_time": "2015-07-30T20:00:00Z",
181
+ "url": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
182
+ "links": {
183
+ "participants": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",
184
+ "recordings": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings",
185
+ "recording_rules": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RecordingRules"
186
+ }
187
+ }
188
+ ]
189
+ ))
190
+
191
+ actual = @client.video.v1.rooms.create()
192
+
193
+ expect(actual).to_not eq(nil)
194
+ end
195
+
157
196
  it "can read" do
158
197
  @holodeck.mock(Twilio::Response.new(500, ''))
159
198