twilio-ruby 5.74.0 → 5.74.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f1304a55ded86707fbad7aeae0ab4ae00aee341
4
- data.tar.gz: 6f48062af91bc83b1322bb4b4bb8eb2bdd304140
3
+ metadata.gz: 6f6b2220266b0f6e98b681dcb4f4d24a704c3f4a
4
+ data.tar.gz: a8d8f8886ec20094497b5597798acee24c6fe833
5
5
  SHA512:
6
- metadata.gz: c26962f53539a87ddbcc81754acb97e154dd437f77ddc92e5fca0308ba8074a5058241629a05f0d03cfdac432187a3f51dd7c6a5f1b190b3888497bf574d91ee
7
- data.tar.gz: f79c209c112d8b914d1f625508673a1fef96e83d3e67c1fb8b654e9a21c30e7ce63754f1b6e47d98397dffadf6cd79d988ba3df184fa710dbadc6186a0bcd552
6
+ metadata.gz: 4f35bb732d3b023f75291b92fde1b254c44a5014ca729580c9fc108d2ee20121eb8a386f3bb7ae7a865d720e9ba7d097f92b8e689bcf698335506d18289e46b8
7
+ data.tar.gz: ed8b7139afc7499287a96970e105911dad04521e38afe7084e281d406926be4149c59d819ba8e3169c40f21f8d65defd58d8302d1f733284a299932959e97d9d
data/CHANGES.md CHANGED
@@ -1,6 +1,36 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2023-01-25] Version 5.74.2
5
+ ---------------------------
6
+ **Api**
7
+ - Add `public_application_connect_enabled` param to Application resource
8
+
9
+ **Messaging**
10
+ - Add new tollfree verification API property (ExternalReferenceId)]
11
+
12
+ **Verify**
13
+ - Add `device_ip` parameter and channel `auto` for sna/sms orchestration
14
+
15
+ **Twiml**
16
+ - Add support for `<Application>` noun and `<ApplicationSid>` noun, nested `<Parameter>` to `<Hangup>` and `<Leave>` verb
17
+
18
+
19
+ [2023-01-11] Version 5.74.1
20
+ ---------------------------
21
+ **Library - Chore**
22
+ - [PR #626](https://github.com/twilio/twilio-ruby/pull/626): Bump jwt version max version to 2.6. Thanks to [@MarcPer](https://github.com/MarcPer)!
23
+
24
+ **Conversations**
25
+ - Add support for creating Multi-Channel Rich Content Messages
26
+
27
+ **Lookups**
28
+ - Changed the no data message for match postal code from `no_data` to `data_not_available` in identity match package
29
+
30
+ **Messaging**
31
+ - Add update/edit tollfree verification API
32
+
33
+
4
34
  [2022-12-14] Version 5.74.0
5
35
  ---------------------------
6
36
  **Api**
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (C) 2022, Twilio, Inc. <help@twilio.com>
3
+ Copyright (C) 2023, Twilio, Inc. <help@twilio.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
data/README.md CHANGED
@@ -34,13 +34,13 @@ This library supports the following Ruby implementations:
34
34
  To install using [Bundler][bundler] grab the latest stable version:
35
35
 
36
36
  ```ruby
37
- gem 'twilio-ruby', '~> 5.74.0'
37
+ gem 'twilio-ruby', '~> 5.74.2'
38
38
  ```
39
39
 
40
40
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
41
41
 
42
42
  ```bash
43
- gem install twilio-ruby -v 5.74.0
43
+ gem install twilio-ruby -v 5.74.2
44
44
  ```
45
45
 
46
46
  To build and install the development branch yourself from the latest source:
@@ -61,8 +61,11 @@ module Twilio
61
61
  # method to send message status information to your application.
62
62
  # @param [String] friendly_name A descriptive string that you create to describe
63
63
  # the new application. It can be up to 64 characters long.
64
+ # @param [Boolean] public_application_connect_enabled Whether to allow other
65
+ # Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or
66
+ # `false`.
64
67
  # @return [ApplicationInstance] Created ApplicationInstance
65
- def create(api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset, friendly_name: :unset)
68
+ def create(api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset, friendly_name: :unset, public_application_connect_enabled: :unset)
66
69
  data = Twilio::Values.of({
67
70
  'ApiVersion' => api_version,
68
71
  'VoiceUrl' => voice_url,
@@ -79,6 +82,7 @@ module Twilio
79
82
  'SmsStatusCallback' => sms_status_callback,
80
83
  'MessageStatusCallback' => message_status_callback,
81
84
  'FriendlyName' => friendly_name,
85
+ 'PublicApplicationConnectEnabled' => public_application_connect_enabled,
82
86
  })
83
87
 
84
88
  payload = @version.create('POST', @uri, data: data)
@@ -283,8 +287,11 @@ module Twilio
283
287
  # sent by the application. Deprecated, included for backwards compatibility.
284
288
  # @param [String] message_status_callback The URL we should call using a POST
285
289
  # method to send message status information to your application.
290
+ # @param [Boolean] public_application_connect_enabled Whether to allow other
291
+ # Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or
292
+ # `false`.
286
293
  # @return [ApplicationInstance] Updated ApplicationInstance
287
- def update(friendly_name: :unset, api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset)
294
+ def update(friendly_name: :unset, api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset, public_application_connect_enabled: :unset)
288
295
  data = Twilio::Values.of({
289
296
  'FriendlyName' => friendly_name,
290
297
  'ApiVersion' => api_version,
@@ -301,6 +308,7 @@ module Twilio
301
308
  'SmsFallbackMethod' => sms_fallback_method,
302
309
  'SmsStatusCallback' => sms_status_callback,
303
310
  'MessageStatusCallback' => message_status_callback,
311
+ 'PublicApplicationConnectEnabled' => public_application_connect_enabled,
304
312
  })
305
313
 
306
314
  payload = @version.update('POST', @uri, data: data)
@@ -364,6 +372,7 @@ module Twilio
364
372
  'voice_fallback_url' => payload['voice_fallback_url'],
365
373
  'voice_method' => payload['voice_method'],
366
374
  'voice_url' => payload['voice_url'],
375
+ 'public_application_connect_enabled' => payload['public_application_connect_enabled'],
367
376
  }
368
377
 
369
378
  # Context
@@ -502,6 +511,12 @@ module Twilio
502
511
  @properties['voice_url']
503
512
  end
504
513
 
514
+ ##
515
+ # @return [Boolean] Whether to allow other Twilio accounts to dial this application
516
+ def public_application_connect_enabled
517
+ @properties['public_application_connect_enabled']
518
+ end
519
+
505
520
  ##
506
521
  # Delete the ApplicationInstance
507
522
  # @return [Boolean] true if delete succeeds, false otherwise
@@ -551,8 +566,11 @@ module Twilio
551
566
  # sent by the application. Deprecated, included for backwards compatibility.
552
567
  # @param [String] message_status_callback The URL we should call using a POST
553
568
  # method to send message status information to your application.
569
+ # @param [Boolean] public_application_connect_enabled Whether to allow other
570
+ # Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or
571
+ # `false`.
554
572
  # @return [ApplicationInstance] Updated ApplicationInstance
555
- def update(friendly_name: :unset, api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset)
573
+ def update(friendly_name: :unset, api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset, public_application_connect_enabled: :unset)
556
574
  context.update(
557
575
  friendly_name: friendly_name,
558
576
  api_version: api_version,
@@ -569,6 +587,7 @@ module Twilio
569
587
  sms_fallback_method: sms_fallback_method,
570
588
  sms_status_callback: sms_status_callback,
571
589
  message_status_callback: message_status_callback,
590
+ public_application_connect_enabled: public_application_connect_enabled,
572
591
  )
573
592
  end
574
593
 
@@ -40,7 +40,7 @@ module Twilio
40
40
  # @param [String] idempotency_key A unique string value to identify API call. This
41
41
  # should be a unique string value per API call and can be a randomly generated.
42
42
  # @param [String] method The HTTP method Twilio will use when requesting the above
43
- # `Url`. Either `GET` or `POST`.
43
+ # `Url`. Either `GET` or `POST`. Default is `POST`.
44
44
  # @return [UserDefinedMessageSubscriptionInstance] Created UserDefinedMessageSubscriptionInstance
45
45
  def create(callback: nil, idempotency_key: :unset, method: :unset)
46
46
  data = Twilio::Values.of({
@@ -40,10 +40,16 @@ module Twilio
40
40
  # you wish. The string value must contain structurally valid JSON if specified.
41
41
  # **Note** that if the attributes are not set "{}" will be returned.
42
42
  # @param [String] media_sid The Media SID to be attached to the new Message.
43
+ # @param [String] content_sid The unique ID of the multi-channel {Rich
44
+ # Content}[https://www.twilio.com/docs/content-api] template, required for
45
+ # template-generated messages. **Note** that if this field is set, `Body` and
46
+ # `MediaSid` parameters are ignored.
47
+ # @param [String] content_variables A structurally valid JSON string that contains
48
+ # values to resolve Rich Content template variables.
43
49
  # @param [message.WebhookEnabledType] x_twilio_webhook_enabled The
44
50
  # X-Twilio-Webhook-Enabled HTTP request header
45
51
  # @return [MessageInstance] Created MessageInstance
46
- def create(author: :unset, body: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, media_sid: :unset, x_twilio_webhook_enabled: :unset)
52
+ def create(author: :unset, body: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, media_sid: :unset, content_sid: :unset, content_variables: :unset, x_twilio_webhook_enabled: :unset)
47
53
  data = Twilio::Values.of({
48
54
  'Author' => author,
49
55
  'Body' => body,
@@ -51,6 +57,8 @@ module Twilio
51
57
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
52
58
  'Attributes' => attributes,
53
59
  'MediaSid' => media_sid,
60
+ 'ContentSid' => content_sid,
61
+ 'ContentVariables' => content_variables,
54
62
  })
55
63
  headers = Twilio::Values.of({'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
56
64
 
@@ -330,6 +338,7 @@ module Twilio
330
338
  'url' => payload['url'],
331
339
  'delivery' => payload['delivery'],
332
340
  'links' => payload['links'],
341
+ 'content_sid' => payload['content_sid'],
333
342
  }
334
343
 
335
344
  # Context
@@ -432,6 +441,12 @@ module Twilio
432
441
  @properties['links']
433
442
  end
434
443
 
444
+ ##
445
+ # @return [String] The unique ID of the multi-channel Rich Content template.
446
+ def content_sid
447
+ @properties['content_sid']
448
+ end
449
+
435
450
  ##
436
451
  # Update the MessageInstance
437
452
  # @param [String] author The channel specific identifier of the message's author.
@@ -44,10 +44,16 @@ module Twilio
44
44
  # you wish. The string value must contain structurally valid JSON if specified.
45
45
  # **Note** that if the attributes are not set "{}" will be returned.
46
46
  # @param [String] media_sid The Media SID to be attached to the new Message.
47
+ # @param [String] content_sid The unique ID of the multi-channel {Rich
48
+ # Content}[https://www.twilio.com/docs/content-api] template, required for
49
+ # template-generated messages. **Note** that if this field is set, `Body` and
50
+ # `MediaSid` parameters are ignored.
51
+ # @param [String] content_variables A structurally valid JSON string that contains
52
+ # values to resolve Rich Content template variables.
47
53
  # @param [message.WebhookEnabledType] x_twilio_webhook_enabled The
48
54
  # X-Twilio-Webhook-Enabled HTTP request header
49
55
  # @return [MessageInstance] Created MessageInstance
50
- def create(author: :unset, body: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, media_sid: :unset, x_twilio_webhook_enabled: :unset)
56
+ def create(author: :unset, body: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, media_sid: :unset, content_sid: :unset, content_variables: :unset, x_twilio_webhook_enabled: :unset)
51
57
  data = Twilio::Values.of({
52
58
  'Author' => author,
53
59
  'Body' => body,
@@ -55,6 +61,8 @@ module Twilio
55
61
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
56
62
  'Attributes' => attributes,
57
63
  'MediaSid' => media_sid,
64
+ 'ContentSid' => content_sid,
65
+ 'ContentVariables' => content_variables,
58
66
  })
59
67
  headers = Twilio::Values.of({'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
60
68
 
@@ -360,6 +368,7 @@ module Twilio
360
368
  'delivery' => payload['delivery'],
361
369
  'url' => payload['url'],
362
370
  'links' => payload['links'],
371
+ 'content_sid' => payload['content_sid'],
363
372
  }
364
373
 
365
374
  # Context
@@ -477,6 +486,12 @@ module Twilio
477
486
  @properties['links']
478
487
  end
479
488
 
489
+ ##
490
+ # @return [String] The unique ID of the multi-channel Rich Content template.
491
+ def content_sid
492
+ @properties['content_sid']
493
+ end
494
+
480
495
  ##
481
496
  # Update the MessageInstance
482
497
  # @param [String] author The channel specific identifier of the message's author.
@@ -0,0 +1,229 @@
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 FlexApi < Domain
12
+ class V1 < Version
13
+ ##
14
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
15
+ class InsightsQuestionnairesCategoryList < ListResource
16
+ ##
17
+ # Initialize the InsightsQuestionnairesCategoryList
18
+ # @param [Version] version Version that contains the resource
19
+ # @return [InsightsQuestionnairesCategoryList] InsightsQuestionnairesCategoryList
20
+ def initialize(version)
21
+ super(version)
22
+
23
+ # Path Solution
24
+ @solution = {}
25
+ @uri = "/Insights/QM/Categories"
26
+ end
27
+
28
+ ##
29
+ # Create the InsightsQuestionnairesCategoryInstance
30
+ # @param [String] name The name of this category.
31
+ # @param [String] token The Token HTTP request header
32
+ # @return [InsightsQuestionnairesCategoryInstance] Created InsightsQuestionnairesCategoryInstance
33
+ def create(name: nil, token: :unset)
34
+ data = Twilio::Values.of({'Name' => name, })
35
+ headers = Twilio::Values.of({'Token' => token, })
36
+
37
+ payload = @version.create('POST', @uri, data: data, headers: headers)
38
+
39
+ InsightsQuestionnairesCategoryInstance.new(@version, payload, )
40
+ end
41
+
42
+ ##
43
+ # Provide a user friendly representation
44
+ def to_s
45
+ '#<Twilio.FlexApi.V1.InsightsQuestionnairesCategoryList>'
46
+ end
47
+ end
48
+
49
+ ##
50
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
51
+ class InsightsQuestionnairesCategoryPage < Page
52
+ ##
53
+ # Initialize the InsightsQuestionnairesCategoryPage
54
+ # @param [Version] version Version that contains the resource
55
+ # @param [Response] response Response from the API
56
+ # @param [Hash] solution Path solution for the resource
57
+ # @return [InsightsQuestionnairesCategoryPage] InsightsQuestionnairesCategoryPage
58
+ def initialize(version, response, solution)
59
+ super(version, response)
60
+
61
+ # Path Solution
62
+ @solution = solution
63
+ end
64
+
65
+ ##
66
+ # Build an instance of InsightsQuestionnairesCategoryInstance
67
+ # @param [Hash] payload Payload response from the API
68
+ # @return [InsightsQuestionnairesCategoryInstance] InsightsQuestionnairesCategoryInstance
69
+ def get_instance(payload)
70
+ InsightsQuestionnairesCategoryInstance.new(@version, payload, )
71
+ end
72
+
73
+ ##
74
+ # Provide a user friendly representation
75
+ def to_s
76
+ '<Twilio.FlexApi.V1.InsightsQuestionnairesCategoryPage>'
77
+ end
78
+ end
79
+
80
+ ##
81
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
82
+ class InsightsQuestionnairesCategoryContext < InstanceContext
83
+ ##
84
+ # Initialize the InsightsQuestionnairesCategoryContext
85
+ # @param [Version] version Version that contains the resource
86
+ # @param [String] category_id The ID of the category to be update
87
+ # @return [InsightsQuestionnairesCategoryContext] InsightsQuestionnairesCategoryContext
88
+ def initialize(version, category_id)
89
+ super(version)
90
+
91
+ # Path Solution
92
+ @solution = {category_id: category_id, }
93
+ @uri = "/Insights/QM/Categories/#{@solution[:category_id]}"
94
+ end
95
+
96
+ ##
97
+ # Update the InsightsQuestionnairesCategoryInstance
98
+ # @param [String] name The name of this category.
99
+ # @param [String] token The Token HTTP request header
100
+ # @return [InsightsQuestionnairesCategoryInstance] Updated InsightsQuestionnairesCategoryInstance
101
+ def update(name: nil, token: :unset)
102
+ data = Twilio::Values.of({'Name' => name, })
103
+ headers = Twilio::Values.of({'Token' => token, })
104
+
105
+ payload = @version.update('POST', @uri, data: data, headers: headers)
106
+
107
+ InsightsQuestionnairesCategoryInstance.new(@version, payload, category_id: @solution[:category_id], )
108
+ end
109
+
110
+ ##
111
+ # Delete the InsightsQuestionnairesCategoryInstance
112
+ # @param [String] token The Token HTTP request header
113
+ # @return [Boolean] true if delete succeeds, false otherwise
114
+ def delete(token: :unset)
115
+ headers = Twilio::Values.of({'Token' => token, })
116
+
117
+ @version.delete('DELETE', @uri, headers: headers)
118
+ end
119
+
120
+ ##
121
+ # Provide a user friendly representation
122
+ def to_s
123
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
124
+ "#<Twilio.FlexApi.V1.InsightsQuestionnairesCategoryContext #{context}>"
125
+ end
126
+
127
+ ##
128
+ # Provide a detailed, user friendly representation
129
+ def inspect
130
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
131
+ "#<Twilio.FlexApi.V1.InsightsQuestionnairesCategoryContext #{context}>"
132
+ end
133
+ end
134
+
135
+ ##
136
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
137
+ class InsightsQuestionnairesCategoryInstance < InstanceResource
138
+ ##
139
+ # Initialize the InsightsQuestionnairesCategoryInstance
140
+ # @param [Version] version Version that contains the resource
141
+ # @param [Hash] payload payload that contains response from Twilio
142
+ # @param [String] category_id The ID of the category to be update
143
+ # @return [InsightsQuestionnairesCategoryInstance] InsightsQuestionnairesCategoryInstance
144
+ def initialize(version, payload, category_id: nil)
145
+ super(version)
146
+
147
+ # Marshaled Properties
148
+ @properties = {
149
+ 'account_sid' => payload['account_sid'],
150
+ 'category_id' => payload['category_id'],
151
+ 'name' => payload['name'],
152
+ 'url' => payload['url'],
153
+ }
154
+
155
+ # Context
156
+ @instance_context = nil
157
+ @params = {'category_id' => category_id || @properties['category_id'], }
158
+ end
159
+
160
+ ##
161
+ # Generate an instance context for the instance, the context is capable of
162
+ # performing various actions. All instance actions are proxied to the context
163
+ # @return [InsightsQuestionnairesCategoryContext] InsightsQuestionnairesCategoryContext for this InsightsQuestionnairesCategoryInstance
164
+ def context
165
+ unless @instance_context
166
+ @instance_context = InsightsQuestionnairesCategoryContext.new(@version, @params['category_id'], )
167
+ end
168
+ @instance_context
169
+ end
170
+
171
+ ##
172
+ # @return [String] The SID of the Account that created the resource and owns this Flex Insights
173
+ def account_sid
174
+ @properties['account_sid']
175
+ end
176
+
177
+ ##
178
+ # @return [String] Unique category ID
179
+ def category_id
180
+ @properties['category_id']
181
+ end
182
+
183
+ ##
184
+ # @return [String] The category name.
185
+ def name
186
+ @properties['name']
187
+ end
188
+
189
+ ##
190
+ # @return [String] The url
191
+ def url
192
+ @properties['url']
193
+ end
194
+
195
+ ##
196
+ # Update the InsightsQuestionnairesCategoryInstance
197
+ # @param [String] name The name of this category.
198
+ # @param [String] token The Token HTTP request header
199
+ # @return [InsightsQuestionnairesCategoryInstance] Updated InsightsQuestionnairesCategoryInstance
200
+ def update(name: nil, token: :unset)
201
+ context.update(name: name, token: token, )
202
+ end
203
+
204
+ ##
205
+ # Delete the InsightsQuestionnairesCategoryInstance
206
+ # @param [String] token The Token HTTP request header
207
+ # @return [Boolean] true if delete succeeds, false otherwise
208
+ def delete(token: :unset)
209
+ context.delete(token: token, )
210
+ end
211
+
212
+ ##
213
+ # Provide a user friendly representation
214
+ def to_s
215
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
216
+ "<Twilio.FlexApi.V1.InsightsQuestionnairesCategoryInstance #{values}>"
217
+ end
218
+
219
+ ##
220
+ # Provide a detailed, user friendly representation
221
+ def inspect
222
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
223
+ "<Twilio.FlexApi.V1.InsightsQuestionnairesCategoryInstance #{values}>"
224
+ end
225
+ end
226
+ end
227
+ end
228
+ end
229
+ end