twilio-ruby 5.63.0 → 5.65.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +27 -3
  3. data/.rubocop.yml +1 -1
  4. data/.rubocop_todo.yml +84 -21
  5. data/CHANGES.md +79 -0
  6. data/Makefile +1 -4
  7. data/README.md +3 -2
  8. data/lib/rack/twilio_webhook_authentication.rb +25 -1
  9. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +7 -0
  10. data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +674 -0
  11. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +26 -0
  12. data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +447 -0
  13. data/lib/twilio-ruby/rest/conversations/v1.rb +17 -0
  14. data/lib/twilio-ruby/rest/conversations.rb +9 -0
  15. data/lib/twilio-ruby/rest/fax/v1/fax.rb +0 -77
  16. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +33 -18
  17. data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +474 -0
  18. data/lib/twilio-ruby/rest/insights/v1/conference.rb +512 -0
  19. data/lib/twilio-ruby/rest/insights/v1.rb +16 -0
  20. data/lib/twilio-ruby/rest/insights.rb +8 -0
  21. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +7 -0
  22. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +75 -18
  23. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +372 -0
  24. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +71 -30
  25. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +1 -1
  26. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +9 -9
  27. data/lib/twilio-ruby/rest/supersim/v1.rb +16 -0
  28. data/lib/twilio-ruby/rest/supersim.rb +9 -0
  29. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +130 -8
  30. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +7 -0
  31. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +16 -6
  32. data/lib/twilio-ruby/rest/verify/v2/service.rb +8 -2
  33. data/lib/twilio-ruby/rest/verify/v2/template.rb +1 -1
  34. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +89 -21
  35. data/lib/twilio-ruby/rest/verify.rb +2 -2
  36. data/lib/twilio-ruby/rest/video/v1/room.rb +7 -4
  37. data/lib/twilio-ruby/version.rb +1 -1
  38. data/sonar-project.properties +1 -1
  39. data/twilio-ruby.gemspec +0 -1
  40. metadata +7 -16
@@ -0,0 +1,512 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ module Twilio
10
+ module REST
11
+ class Insights < Domain
12
+ class V1 < Version
13
+ class ConferenceList < ListResource
14
+ ##
15
+ # Initialize the ConferenceList
16
+ # @param [Version] version Version that contains the resource
17
+ # @return [ConferenceList] ConferenceList
18
+ def initialize(version)
19
+ super(version)
20
+
21
+ # Path Solution
22
+ @solution = {}
23
+ @uri = "/Conferences"
24
+ end
25
+
26
+ ##
27
+ # Lists ConferenceInstance records from the API as a list.
28
+ # Unlike stream(), this operation is eager and will load `limit` records into
29
+ # memory before returning.
30
+ # @param [String] conference_sid The SID of the conference.
31
+ # @param [String] friendly_name Custom label for the conference resource, up to 64
32
+ # characters.
33
+ # @param [String] status Conference status.
34
+ # @param [String] created_after Conferences created after the provided timestamp
35
+ # specified in ISO 8601 format
36
+ # @param [String] created_before Conferences created before the provided timestamp
37
+ # specified in ISO 8601 format.
38
+ # @param [String] mixer_region Twilio region where the conference media was mixed.
39
+ # @param [String] tags Tags applied by Twilio for common potential configuration,
40
+ # quality, or performance issues.
41
+ # @param [String] subaccount Account SID for the subaccount whose resources you
42
+ # wish to retrieve.
43
+ # @param [String] detected_issues Potential configuration, behavior, or
44
+ # performance issues detected during the conference.
45
+ # @param [String] end_reason Conference end reason; e.g. last participant left,
46
+ # modified by API, etc.
47
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
48
+ # guarantees to never return more than limit. Default is no limit
49
+ # @param [Integer] page_size Number of records to fetch per request, when
50
+ # not set will use the default value of 50 records. If no page_size is defined
51
+ # but a limit is defined, stream() will attempt to read the limit with the most
52
+ # efficient page size, i.e. min(limit, 1000)
53
+ # @return [Array] Array of up to limit results
54
+ def list(conference_sid: :unset, friendly_name: :unset, status: :unset, created_after: :unset, created_before: :unset, mixer_region: :unset, tags: :unset, subaccount: :unset, detected_issues: :unset, end_reason: :unset, limit: nil, page_size: nil)
55
+ self.stream(
56
+ conference_sid: conference_sid,
57
+ friendly_name: friendly_name,
58
+ status: status,
59
+ created_after: created_after,
60
+ created_before: created_before,
61
+ mixer_region: mixer_region,
62
+ tags: tags,
63
+ subaccount: subaccount,
64
+ detected_issues: detected_issues,
65
+ end_reason: end_reason,
66
+ limit: limit,
67
+ page_size: page_size
68
+ ).entries
69
+ end
70
+
71
+ ##
72
+ # Streams ConferenceInstance records from the API as an Enumerable.
73
+ # This operation lazily loads records as efficiently as possible until the limit
74
+ # is reached.
75
+ # @param [String] conference_sid The SID of the conference.
76
+ # @param [String] friendly_name Custom label for the conference resource, up to 64
77
+ # characters.
78
+ # @param [String] status Conference status.
79
+ # @param [String] created_after Conferences created after the provided timestamp
80
+ # specified in ISO 8601 format
81
+ # @param [String] created_before Conferences created before the provided timestamp
82
+ # specified in ISO 8601 format.
83
+ # @param [String] mixer_region Twilio region where the conference media was mixed.
84
+ # @param [String] tags Tags applied by Twilio for common potential configuration,
85
+ # quality, or performance issues.
86
+ # @param [String] subaccount Account SID for the subaccount whose resources you
87
+ # wish to retrieve.
88
+ # @param [String] detected_issues Potential configuration, behavior, or
89
+ # performance issues detected during the conference.
90
+ # @param [String] end_reason Conference end reason; e.g. last participant left,
91
+ # modified by API, etc.
92
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
93
+ # guarantees to never return more than limit. Default is no limit.
94
+ # @param [Integer] page_size Number of records to fetch per request, when
95
+ # not set will use the default value of 50 records. If no page_size is defined
96
+ # but a limit is defined, stream() will attempt to read the limit with the most
97
+ # efficient page size, i.e. min(limit, 1000)
98
+ # @return [Enumerable] Enumerable that will yield up to limit results
99
+ def stream(conference_sid: :unset, friendly_name: :unset, status: :unset, created_after: :unset, created_before: :unset, mixer_region: :unset, tags: :unset, subaccount: :unset, detected_issues: :unset, end_reason: :unset, limit: nil, page_size: nil)
100
+ limits = @version.read_limits(limit, page_size)
101
+
102
+ page = self.page(
103
+ conference_sid: conference_sid,
104
+ friendly_name: friendly_name,
105
+ status: status,
106
+ created_after: created_after,
107
+ created_before: created_before,
108
+ mixer_region: mixer_region,
109
+ tags: tags,
110
+ subaccount: subaccount,
111
+ detected_issues: detected_issues,
112
+ end_reason: end_reason,
113
+ page_size: limits[:page_size],
114
+ )
115
+
116
+ @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
117
+ end
118
+
119
+ ##
120
+ # When passed a block, yields ConferenceInstance records from the API.
121
+ # This operation lazily loads records as efficiently as possible until the limit
122
+ # is reached.
123
+ def each
124
+ limits = @version.read_limits
125
+
126
+ page = self.page(page_size: limits[:page_size], )
127
+
128
+ @version.stream(page,
129
+ limit: limits[:limit],
130
+ page_limit: limits[:page_limit]).each {|x| yield x}
131
+ end
132
+
133
+ ##
134
+ # Retrieve a single page of ConferenceInstance records from the API.
135
+ # Request is executed immediately.
136
+ # @param [String] conference_sid The SID of the conference.
137
+ # @param [String] friendly_name Custom label for the conference resource, up to 64
138
+ # characters.
139
+ # @param [String] status Conference status.
140
+ # @param [String] created_after Conferences created after the provided timestamp
141
+ # specified in ISO 8601 format
142
+ # @param [String] created_before Conferences created before the provided timestamp
143
+ # specified in ISO 8601 format.
144
+ # @param [String] mixer_region Twilio region where the conference media was mixed.
145
+ # @param [String] tags Tags applied by Twilio for common potential configuration,
146
+ # quality, or performance issues.
147
+ # @param [String] subaccount Account SID for the subaccount whose resources you
148
+ # wish to retrieve.
149
+ # @param [String] detected_issues Potential configuration, behavior, or
150
+ # performance issues detected during the conference.
151
+ # @param [String] end_reason Conference end reason; e.g. last participant left,
152
+ # modified by API, etc.
153
+ # @param [String] page_token PageToken provided by the API
154
+ # @param [Integer] page_number Page Number, this value is simply for client state
155
+ # @param [Integer] page_size Number of records to return, defaults to 50
156
+ # @return [Page] Page of ConferenceInstance
157
+ def page(conference_sid: :unset, friendly_name: :unset, status: :unset, created_after: :unset, created_before: :unset, mixer_region: :unset, tags: :unset, subaccount: :unset, detected_issues: :unset, end_reason: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
158
+ params = Twilio::Values.of({
159
+ 'ConferenceSid' => conference_sid,
160
+ 'FriendlyName' => friendly_name,
161
+ 'Status' => status,
162
+ 'CreatedAfter' => created_after,
163
+ 'CreatedBefore' => created_before,
164
+ 'MixerRegion' => mixer_region,
165
+ 'Tags' => tags,
166
+ 'Subaccount' => subaccount,
167
+ 'DetectedIssues' => detected_issues,
168
+ 'EndReason' => end_reason,
169
+ 'PageToken' => page_token,
170
+ 'Page' => page_number,
171
+ 'PageSize' => page_size,
172
+ })
173
+
174
+ response = @version.page('GET', @uri, params: params)
175
+
176
+ ConferencePage.new(@version, response, @solution)
177
+ end
178
+
179
+ ##
180
+ # Retrieve a single page of ConferenceInstance records from the API.
181
+ # Request is executed immediately.
182
+ # @param [String] target_url API-generated URL for the requested results page
183
+ # @return [Page] Page of ConferenceInstance
184
+ def get_page(target_url)
185
+ response = @version.domain.request(
186
+ 'GET',
187
+ target_url
188
+ )
189
+ ConferencePage.new(@version, response, @solution)
190
+ end
191
+
192
+ ##
193
+ # Provide a user friendly representation
194
+ def to_s
195
+ '#<Twilio.Insights.V1.ConferenceList>'
196
+ end
197
+ end
198
+
199
+ class ConferencePage < Page
200
+ ##
201
+ # Initialize the ConferencePage
202
+ # @param [Version] version Version that contains the resource
203
+ # @param [Response] response Response from the API
204
+ # @param [Hash] solution Path solution for the resource
205
+ # @return [ConferencePage] ConferencePage
206
+ def initialize(version, response, solution)
207
+ super(version, response)
208
+
209
+ # Path Solution
210
+ @solution = solution
211
+ end
212
+
213
+ ##
214
+ # Build an instance of ConferenceInstance
215
+ # @param [Hash] payload Payload response from the API
216
+ # @return [ConferenceInstance] ConferenceInstance
217
+ def get_instance(payload)
218
+ ConferenceInstance.new(@version, payload, )
219
+ end
220
+
221
+ ##
222
+ # Provide a user friendly representation
223
+ def to_s
224
+ '<Twilio.Insights.V1.ConferencePage>'
225
+ end
226
+ end
227
+
228
+ class ConferenceContext < InstanceContext
229
+ ##
230
+ # Initialize the ConferenceContext
231
+ # @param [Version] version Version that contains the resource
232
+ # @param [String] conference_sid The unique SID identifier of the Conference.
233
+ # @return [ConferenceContext] ConferenceContext
234
+ def initialize(version, conference_sid)
235
+ super(version)
236
+
237
+ # Path Solution
238
+ @solution = {conference_sid: conference_sid, }
239
+ @uri = "/Conferences/#{@solution[:conference_sid]}"
240
+
241
+ # Dependents
242
+ @conference_participants = nil
243
+ end
244
+
245
+ ##
246
+ # Fetch the ConferenceInstance
247
+ # @return [ConferenceInstance] Fetched ConferenceInstance
248
+ def fetch
249
+ payload = @version.fetch('GET', @uri)
250
+
251
+ ConferenceInstance.new(@version, payload, conference_sid: @solution[:conference_sid], )
252
+ end
253
+
254
+ ##
255
+ # Access the conference_participants
256
+ # @return [ConferenceParticipantList]
257
+ # @return [ConferenceParticipantContext] if participant_sid was passed.
258
+ def conference_participants(participant_sid=:unset)
259
+ raise ArgumentError, 'participant_sid cannot be nil' if participant_sid.nil?
260
+
261
+ if participant_sid != :unset
262
+ return ConferenceParticipantContext.new(@version, @solution[:conference_sid], participant_sid, )
263
+ end
264
+
265
+ unless @conference_participants
266
+ @conference_participants = ConferenceParticipantList.new(
267
+ @version,
268
+ conference_sid: @solution[:conference_sid],
269
+ )
270
+ end
271
+
272
+ @conference_participants
273
+ end
274
+
275
+ ##
276
+ # Provide a user friendly representation
277
+ def to_s
278
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
279
+ "#<Twilio.Insights.V1.ConferenceContext #{context}>"
280
+ end
281
+
282
+ ##
283
+ # Provide a detailed, user friendly representation
284
+ def inspect
285
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
286
+ "#<Twilio.Insights.V1.ConferenceContext #{context}>"
287
+ end
288
+ end
289
+
290
+ class ConferenceInstance < InstanceResource
291
+ ##
292
+ # Initialize the ConferenceInstance
293
+ # @param [Version] version Version that contains the resource
294
+ # @param [Hash] payload payload that contains response from Twilio
295
+ # @param [String] conference_sid The unique SID identifier of the Conference.
296
+ # @return [ConferenceInstance] ConferenceInstance
297
+ def initialize(version, payload, conference_sid: nil)
298
+ super(version)
299
+
300
+ # Marshaled Properties
301
+ @properties = {
302
+ 'conference_sid' => payload['conference_sid'],
303
+ 'account_sid' => payload['account_sid'],
304
+ 'friendly_name' => payload['friendly_name'],
305
+ 'create_time' => Twilio.deserialize_iso8601_datetime(payload['create_time']),
306
+ 'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']),
307
+ 'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']),
308
+ 'duration_seconds' => payload['duration_seconds'] == nil ? payload['duration_seconds'] : payload['duration_seconds'].to_i,
309
+ 'connect_duration_seconds' => payload['connect_duration_seconds'] == nil ? payload['connect_duration_seconds'] : payload['connect_duration_seconds'].to_i,
310
+ 'status' => payload['status'],
311
+ 'max_participants' => payload['max_participants'] == nil ? payload['max_participants'] : payload['max_participants'].to_i,
312
+ 'max_concurrent_participants' => payload['max_concurrent_participants'] == nil ? payload['max_concurrent_participants'] : payload['max_concurrent_participants'].to_i,
313
+ 'unique_participants' => payload['unique_participants'] == nil ? payload['unique_participants'] : payload['unique_participants'].to_i,
314
+ 'end_reason' => payload['end_reason'],
315
+ 'ended_by' => payload['ended_by'],
316
+ 'mixer_region' => payload['mixer_region'],
317
+ 'mixer_region_requested' => payload['mixer_region_requested'],
318
+ 'recording_enabled' => payload['recording_enabled'],
319
+ 'detected_issues' => payload['detected_issues'],
320
+ 'tags' => payload['tags'],
321
+ 'tag_info' => payload['tag_info'],
322
+ 'processing_state' => payload['processing_state'],
323
+ 'url' => payload['url'],
324
+ 'links' => payload['links'],
325
+ }
326
+
327
+ # Context
328
+ @instance_context = nil
329
+ @params = {'conference_sid' => conference_sid || @properties['conference_sid'], }
330
+ end
331
+
332
+ ##
333
+ # Generate an instance context for the instance, the context is capable of
334
+ # performing various actions. All instance actions are proxied to the context
335
+ # @return [ConferenceContext] ConferenceContext for this ConferenceInstance
336
+ def context
337
+ unless @instance_context
338
+ @instance_context = ConferenceContext.new(@version, @params['conference_sid'], )
339
+ end
340
+ @instance_context
341
+ end
342
+
343
+ ##
344
+ # @return [String] Conference SID.
345
+ def conference_sid
346
+ @properties['conference_sid']
347
+ end
348
+
349
+ ##
350
+ # @return [String] Account SID.
351
+ def account_sid
352
+ @properties['account_sid']
353
+ end
354
+
355
+ ##
356
+ # @return [String] Custom label for the conference.
357
+ def friendly_name
358
+ @properties['friendly_name']
359
+ end
360
+
361
+ ##
362
+ # @return [Time] Conference creation date/time.
363
+ def create_time
364
+ @properties['create_time']
365
+ end
366
+
367
+ ##
368
+ # @return [Time] Timestamp in ISO 8601 format when the conference started.
369
+ def start_time
370
+ @properties['start_time']
371
+ end
372
+
373
+ ##
374
+ # @return [Time] Conference end date/time.
375
+ def end_time
376
+ @properties['end_time']
377
+ end
378
+
379
+ ##
380
+ # @return [String] Conference duration in seconds.
381
+ def duration_seconds
382
+ @properties['duration_seconds']
383
+ end
384
+
385
+ ##
386
+ # @return [String] Duration of the conference in seconds.
387
+ def connect_duration_seconds
388
+ @properties['connect_duration_seconds']
389
+ end
390
+
391
+ ##
392
+ # @return [conference.ConferenceStatus] Status of conference
393
+ def status
394
+ @properties['status']
395
+ end
396
+
397
+ ##
398
+ # @return [String] Max participants specified in config.
399
+ def max_participants
400
+ @properties['max_participants']
401
+ end
402
+
403
+ ##
404
+ # @return [String] Actual maximum concurrent participants.
405
+ def max_concurrent_participants
406
+ @properties['max_concurrent_participants']
407
+ end
408
+
409
+ ##
410
+ # @return [String] Unique conference participants.
411
+ def unique_participants
412
+ @properties['unique_participants']
413
+ end
414
+
415
+ ##
416
+ # @return [conference.ConferenceEndReason] Conference end reason.
417
+ def end_reason
418
+ @properties['end_reason']
419
+ end
420
+
421
+ ##
422
+ # @return [String] Call SID that ended the conference.
423
+ def ended_by
424
+ @properties['ended_by']
425
+ end
426
+
427
+ ##
428
+ # @return [conference.Region] Region where the conference was mixed.
429
+ def mixer_region
430
+ @properties['mixer_region']
431
+ end
432
+
433
+ ##
434
+ # @return [conference.Region] Configuration-requested conference mixer region.
435
+ def mixer_region_requested
436
+ @properties['mixer_region_requested']
437
+ end
438
+
439
+ ##
440
+ # @return [Boolean] Boolean. Indicates whether recording was enabled.
441
+ def recording_enabled
442
+ @properties['recording_enabled']
443
+ end
444
+
445
+ ##
446
+ # @return [Hash] Potential issues detected during the conference.
447
+ def detected_issues
448
+ @properties['detected_issues']
449
+ end
450
+
451
+ ##
452
+ # @return [Array[conference.Tag]] Tags for detected conference conditions and participant behaviors.
453
+ def tags
454
+ @properties['tags']
455
+ end
456
+
457
+ ##
458
+ # @return [Hash] Object. Contains details about conference tags.
459
+ def tag_info
460
+ @properties['tag_info']
461
+ end
462
+
463
+ ##
464
+ # @return [conference.ProcessingState] Processing state for the Conference Summary resource.
465
+ def processing_state
466
+ @properties['processing_state']
467
+ end
468
+
469
+ ##
470
+ # @return [String] The URL of this resource.
471
+ def url
472
+ @properties['url']
473
+ end
474
+
475
+ ##
476
+ # @return [String] Nested resource URLs.
477
+ def links
478
+ @properties['links']
479
+ end
480
+
481
+ ##
482
+ # Fetch the ConferenceInstance
483
+ # @return [ConferenceInstance] Fetched ConferenceInstance
484
+ def fetch
485
+ context.fetch
486
+ end
487
+
488
+ ##
489
+ # Access the conference_participants
490
+ # @return [conference_participants] conference_participants
491
+ def conference_participants
492
+ context.conference_participants
493
+ end
494
+
495
+ ##
496
+ # Provide a user friendly representation
497
+ def to_s
498
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
499
+ "<Twilio.Insights.V1.ConferenceInstance #{values}>"
500
+ end
501
+
502
+ ##
503
+ # Provide a detailed, user friendly representation
504
+ def inspect
505
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
506
+ "<Twilio.Insights.V1.ConferenceInstance #{values}>"
507
+ end
508
+ end
509
+ end
510
+ end
511
+ end
512
+ end
@@ -18,6 +18,7 @@ module Twilio
18
18
  @settings = nil
19
19
  @calls = nil
20
20
  @call_summaries = nil
21
+ @conferences = nil
21
22
  @rooms = nil
22
23
  end
23
24
 
@@ -48,6 +49,21 @@ module Twilio
48
49
  @call_summaries ||= CallSummariesList.new self
49
50
  end
50
51
 
52
+ ##
53
+ # @param [String] conference_sid The unique SID identifier of the Conference.
54
+ # @return [Twilio::REST::Insights::V1::ConferenceContext] if conference_sid was passed.
55
+ # @return [Twilio::REST::Insights::V1::ConferenceList]
56
+ def conferences(conference_sid=:unset)
57
+ if conference_sid.nil?
58
+ raise ArgumentError, 'conference_sid cannot be nil'
59
+ end
60
+ if conference_sid == :unset
61
+ @conferences ||= ConferenceList.new self
62
+ else
63
+ ConferenceContext.new(self, conference_sid)
64
+ end
65
+ end
66
+
51
67
  ##
52
68
  # @param [String] room_sid The SID of the Room resource.
53
69
  # @return [Twilio::REST::Insights::V1::RoomContext] if room_sid was passed.
@@ -48,6 +48,14 @@ module Twilio
48
48
  self.v1.call_summaries()
49
49
  end
50
50
 
51
+ ##
52
+ # @param [String] conference_sid The unique SID identifier of the Conference.
53
+ # @return [Twilio::REST::Insights::V1::ConferenceInstance] if conference_sid was passed.
54
+ # @return [Twilio::REST::Insights::V1::ConferenceList]
55
+ def conferences(conference_sid=:unset)
56
+ self.v1.conferences(conference_sid)
57
+ end
58
+
51
59
  ##
52
60
  # @param [String] room_sid Unique identifier for the room.
53
61
  # @return [Twilio::REST::Insights::V1::RoomInstance] if room_sid was passed.
@@ -269,6 +269,7 @@ module Twilio
269
269
  'brand_feedback' => payload['brand_feedback'],
270
270
  'identity_status' => payload['identity_status'],
271
271
  'russell_3000' => payload['russell_3000'],
272
+ 'government_entity' => payload['government_entity'],
272
273
  'tax_exempt_status' => payload['tax_exempt_status'],
273
274
  'skip_automatic_sec_vet' => payload['skip_automatic_sec_vet'],
274
275
  'mock' => payload['mock'],
@@ -381,6 +382,12 @@ module Twilio
381
382
  @properties['russell_3000']
382
383
  end
383
384
 
385
+ ##
386
+ # @return [Boolean] Government Entity
387
+ def government_entity
388
+ @properties['government_entity']
389
+ end
390
+
384
391
  ##
385
392
  # @return [String] Tax Exempt Status
386
393
  def tax_exempt_status