twilio-ruby 5.10.7 → 5.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ module Twilio
29
29
  end
30
30
 
31
31
  ##
32
- # @param [String] sid The sid
32
+ # @param [String] sid A 34 character string that uniquely identifies this Flow.
33
33
  # @return [Twilio::REST::Studio::V1::FlowInstance] if sid was passed.
34
34
  # @return [Twilio::REST::Studio::V1::FlowList]
35
35
  def flows(sid=:unset)
@@ -19,7 +19,7 @@ module Twilio
19
19
  end
20
20
 
21
21
  ##
22
- # @param [String] sid The sid
22
+ # @param [String] sid A 34 character string that uniquely identifies this Flow.
23
23
  # @return [Twilio::REST::Studio::V1::FlowContext] if sid was passed.
24
24
  # @return [Twilio::REST::Studio::V1::FlowList]
25
25
  def flows(sid=:unset)
@@ -151,7 +151,7 @@ module Twilio
151
151
  ##
152
152
  # Initialize the FlowContext
153
153
  # @param [Version] version Version that contains the resource
154
- # @param [String] sid The sid
154
+ # @param [String] sid A 34 character string that uniquely identifies this Flow.
155
155
  # @return [FlowContext] FlowContext
156
156
  def initialize(version, sid)
157
157
  super(version)
@@ -238,7 +238,7 @@ module Twilio
238
238
  # Initialize the FlowInstance
239
239
  # @param [Version] version Version that contains the resource
240
240
  # @param [Hash] payload payload that contains response from Twilio
241
- # @param [String] sid The sid
241
+ # @param [String] sid A 34 character string that uniquely identifies this Flow.
242
242
  # @return [FlowInstance] FlowInstance
243
243
  def initialize(version, payload, sid: nil)
244
244
  super(version)
@@ -273,55 +273,55 @@ module Twilio
273
273
  end
274
274
 
275
275
  ##
276
- # @return [String] The sid
276
+ # @return [String] A string that uniquely identifies this Flow.
277
277
  def sid
278
278
  @properties['sid']
279
279
  end
280
280
 
281
281
  ##
282
- # @return [String] The account_sid
282
+ # @return [String] Account Sid.
283
283
  def account_sid
284
284
  @properties['account_sid']
285
285
  end
286
286
 
287
287
  ##
288
- # @return [String] The friendly_name
288
+ # @return [String] A human readable description of this resource.
289
289
  def friendly_name
290
290
  @properties['friendly_name']
291
291
  end
292
292
 
293
293
  ##
294
- # @return [flow.Status] The status
294
+ # @return [flow.Status] The Status of this Flow
295
295
  def status
296
296
  @properties['status']
297
297
  end
298
298
 
299
299
  ##
300
- # @return [String] The version
300
+ # @return [String] The latest version number of this Flow's definition.
301
301
  def version
302
302
  @properties['version']
303
303
  end
304
304
 
305
305
  ##
306
- # @return [Time] The date_created
306
+ # @return [Time] The date this Flow was created
307
307
  def date_created
308
308
  @properties['date_created']
309
309
  end
310
310
 
311
311
  ##
312
- # @return [Time] The date_updated
312
+ # @return [Time] The date this Flow was updated
313
313
  def date_updated
314
314
  @properties['date_updated']
315
315
  end
316
316
 
317
317
  ##
318
- # @return [String] The url
318
+ # @return [String] The URL of this resource.
319
319
  def url
320
320
  @properties['url']
321
321
  end
322
322
 
323
323
  ##
324
- # @return [String] The links
324
+ # @return [String] Nested resource URLs.
325
325
  def links
326
326
  @properties['links']
327
327
  end
@@ -17,7 +17,7 @@ module Twilio
17
17
  ##
18
18
  # Initialize the EngagementList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] flow_sid The flow_sid
20
+ # @param [String] flow_sid The unique SID identifier of the Flow.
21
21
  # @return [EngagementList] EngagementList
22
22
  def initialize(version, flow_sid: nil)
23
23
  super(version)
@@ -112,9 +112,17 @@ module Twilio
112
112
  ##
113
113
  # Retrieve a single page of EngagementInstance records from the API.
114
114
  # Request is executed immediately.
115
- # @param [String] to The to
116
- # @param [String] from The from
117
- # @param [Hash] parameters The parameters
115
+ # @param [String] to The Contact phone number to start a Studio Flow Engagement,
116
+ # available as variable {{contact.channel.address}}.
117
+ # @param [String] from The Twilio phone number to send messages or initiate calls
118
+ # from during the Flow Engagement, available as variable {{flow.channel.address}}
119
+ # @param [Hash] parameters JSON data that will be added to your flow's context and
120
+ # can accessed as variables inside your flow. For example, if you pass in
121
+ # Parameters={'name':'Zeke'} then inside a widget you can reference the variable
122
+ # {{flow.data.name}} which will return the string 'Zeke'. Note: the JSON value
123
+ # must explicitly be passed as a string, not as a hash object. Depending on your
124
+ # particular HTTP library, you may need to add quotes or URL encode your JSON
125
+ # string.
118
126
  # @return [EngagementInstance] Newly created EngagementInstance
119
127
  def create(to: nil, from: nil, parameters: :unset)
120
128
  data = Twilio::Values.of({
@@ -176,8 +184,8 @@ module Twilio
176
184
  ##
177
185
  # Initialize the EngagementContext
178
186
  # @param [Version] version Version that contains the resource
179
- # @param [String] flow_sid The flow_sid
180
- # @param [String] sid The sid
187
+ # @param [String] flow_sid The unique SID identifier of the Flow.
188
+ # @param [String] sid The unique SID identifier of the Engagement.
181
189
  # @return [EngagementContext] EngagementContext
182
190
  def initialize(version, flow_sid, sid)
183
191
  super(version)
@@ -254,8 +262,8 @@ module Twilio
254
262
  # Initialize the EngagementInstance
255
263
  # @param [Version] version Version that contains the resource
256
264
  # @param [Hash] payload payload that contains response from Twilio
257
- # @param [String] flow_sid The flow_sid
258
- # @param [String] sid The sid
265
+ # @param [String] flow_sid The unique SID identifier of the Flow.
266
+ # @param [String] sid The unique SID identifier of the Engagement.
259
267
  # @return [EngagementInstance] EngagementInstance
260
268
  def initialize(version, payload, flow_sid: nil, sid: nil)
261
269
  super(version)
@@ -292,67 +300,67 @@ module Twilio
292
300
  end
293
301
 
294
302
  ##
295
- # @return [String] The sid
303
+ # @return [String] A string that uniquely identifies this Engagement.
296
304
  def sid
297
305
  @properties['sid']
298
306
  end
299
307
 
300
308
  ##
301
- # @return [String] The account_sid
309
+ # @return [String] Account Sid.
302
310
  def account_sid
303
311
  @properties['account_sid']
304
312
  end
305
313
 
306
314
  ##
307
- # @return [String] The flow_sid
315
+ # @return [String] Flow Sid.
308
316
  def flow_sid
309
317
  @properties['flow_sid']
310
318
  end
311
319
 
312
320
  ##
313
- # @return [String] The contact_sid
321
+ # @return [String] Contact Sid.
314
322
  def contact_sid
315
323
  @properties['contact_sid']
316
324
  end
317
325
 
318
326
  ##
319
- # @return [String] The contact_channel_address
327
+ # @return [String] The phone number, SIP address or Client identifier that triggered this Engagement.
320
328
  def contact_channel_address
321
329
  @properties['contact_channel_address']
322
330
  end
323
331
 
324
332
  ##
325
- # @return [Hash] The context
333
+ # @return [Hash] Flow state.
326
334
  def context
327
335
  @properties['context']
328
336
  end
329
337
 
330
338
  ##
331
- # @return [engagement.Status] The status
339
+ # @return [engagement.Status] The Status of this Engagement
332
340
  def status
333
341
  @properties['status']
334
342
  end
335
343
 
336
344
  ##
337
- # @return [Time] The date_created
345
+ # @return [Time] The date this Engagement was created
338
346
  def date_created
339
347
  @properties['date_created']
340
348
  end
341
349
 
342
350
  ##
343
- # @return [Time] The date_updated
351
+ # @return [Time] The date this Engagement was updated
344
352
  def date_updated
345
353
  @properties['date_updated']
346
354
  end
347
355
 
348
356
  ##
349
- # @return [String] The url
357
+ # @return [String] The URL of this resource.
350
358
  def url
351
359
  @properties['url']
352
360
  end
353
361
 
354
362
  ##
355
- # @return [String] The links
363
+ # @return [String] Nested resource URLs.
356
364
  def links
357
365
  @properties['links']
358
366
  end
@@ -18,8 +18,8 @@ module Twilio
18
18
  ##
19
19
  # Initialize the EngagementContextList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] flow_sid The flow_sid
22
- # @param [String] engagement_sid The engagement_sid
21
+ # @param [String] flow_sid The unique SID identifier of the Flow.
22
+ # @param [String] engagement_sid The unique SID identifier of the Engagement.
23
23
  # @return [EngagementContextList] EngagementContextList
24
24
  def initialize(version, flow_sid: nil, engagement_sid: nil)
25
25
  super(version)
@@ -77,8 +77,8 @@ module Twilio
77
77
  ##
78
78
  # Initialize the EngagementContextContext
79
79
  # @param [Version] version Version that contains the resource
80
- # @param [String] flow_sid The flow_sid
81
- # @param [String] engagement_sid The engagement_sid
80
+ # @param [String] flow_sid The unique SID identifier of the Flow.
81
+ # @param [String] engagement_sid The unique SID identifier of the Engagement.
82
82
  # @return [EngagementContextContext] EngagementContextContext
83
83
  def initialize(version, flow_sid, engagement_sid)
84
84
  super(version)
@@ -123,8 +123,8 @@ module Twilio
123
123
  # Initialize the EngagementContextInstance
124
124
  # @param [Version] version Version that contains the resource
125
125
  # @param [Hash] payload payload that contains response from Twilio
126
- # @param [String] flow_sid The flow_sid
127
- # @param [String] engagement_sid The engagement_sid
126
+ # @param [String] flow_sid The unique SID identifier of the Flow.
127
+ # @param [String] engagement_sid The unique SID identifier of the Engagement.
128
128
  # @return [EngagementContextInstance] EngagementContextInstance
129
129
  def initialize(version, payload, flow_sid: nil, engagement_sid: nil)
130
130
  super(version)
@@ -159,31 +159,31 @@ module Twilio
159
159
  end
160
160
 
161
161
  ##
162
- # @return [String] The account_sid
162
+ # @return [String] Account Sid.
163
163
  def account_sid
164
164
  @properties['account_sid']
165
165
  end
166
166
 
167
167
  ##
168
- # @return [Hash] The context
168
+ # @return [Hash] Flow state.
169
169
  def context
170
170
  @properties['context']
171
171
  end
172
172
 
173
173
  ##
174
- # @return [String] The engagement_sid
174
+ # @return [String] Engagement Sid.
175
175
  def engagement_sid
176
176
  @properties['engagement_sid']
177
177
  end
178
178
 
179
179
  ##
180
- # @return [String] The flow_sid
180
+ # @return [String] Flow Sid.
181
181
  def flow_sid
182
182
  @properties['flow_sid']
183
183
  end
184
184
 
185
185
  ##
186
- # @return [String] The url
186
+ # @return [String] The URL of this resource.
187
187
  def url
188
188
  @properties['url']
189
189
  end
@@ -18,8 +18,8 @@ module Twilio
18
18
  ##
19
19
  # Initialize the StepList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] flow_sid The flow_sid
22
- # @param [String] engagement_sid The engagement_sid
21
+ # @param [String] flow_sid The unique SID identifier of the Flow.
22
+ # @param [String] engagement_sid The unique SID identifier of the Engagement.
23
23
  # @return [StepList] StepList
24
24
  def initialize(version, flow_sid: nil, engagement_sid: nil)
25
25
  super(version)
@@ -160,9 +160,9 @@ module Twilio
160
160
  ##
161
161
  # Initialize the StepContext
162
162
  # @param [Version] version Version that contains the resource
163
- # @param [String] flow_sid The flow_sid
164
- # @param [String] engagement_sid The engagement_sid
165
- # @param [String] sid The sid
163
+ # @param [String] flow_sid The unique SID identifier of the Flow.
164
+ # @param [String] engagement_sid The unique SID identifier of the Engagement.
165
+ # @param [String] sid The unique SID identifier of the Step.
166
166
  # @return [StepContext] StepContext
167
167
  def initialize(version, flow_sid, engagement_sid, sid)
168
168
  super(version)
@@ -219,9 +219,9 @@ module Twilio
219
219
  # Initialize the StepInstance
220
220
  # @param [Version] version Version that contains the resource
221
221
  # @param [Hash] payload payload that contains response from Twilio
222
- # @param [String] flow_sid The flow_sid
223
- # @param [String] engagement_sid The engagement_sid
224
- # @param [String] sid The sid
222
+ # @param [String] flow_sid The unique SID identifier of the Flow.
223
+ # @param [String] engagement_sid The unique SID identifier of the Engagement.
224
+ # @param [String] sid The unique SID identifier of the Step.
225
225
  # @return [StepInstance] StepInstance
226
226
  def initialize(version, payload, flow_sid: nil, engagement_sid: nil, sid: nil)
227
227
  super(version)
@@ -268,31 +268,31 @@ module Twilio
268
268
  end
269
269
 
270
270
  ##
271
- # @return [String] The sid
271
+ # @return [String] A string that uniquely identifies this Step.
272
272
  def sid
273
273
  @properties['sid']
274
274
  end
275
275
 
276
276
  ##
277
- # @return [String] The account_sid
277
+ # @return [String] Account Sid.
278
278
  def account_sid
279
279
  @properties['account_sid']
280
280
  end
281
281
 
282
282
  ##
283
- # @return [String] The flow_sid
283
+ # @return [String] Flow Sid.
284
284
  def flow_sid
285
285
  @properties['flow_sid']
286
286
  end
287
287
 
288
288
  ##
289
- # @return [String] The engagement_sid
289
+ # @return [String] Engagement Sid.
290
290
  def engagement_sid
291
291
  @properties['engagement_sid']
292
292
  end
293
293
 
294
294
  ##
295
- # @return [String] The name
295
+ # @return [String] The event that caused the flow to transition to this Step.
296
296
  def name
297
297
  @properties['name']
298
298
  end
@@ -304,31 +304,31 @@ module Twilio
304
304
  end
305
305
 
306
306
  ##
307
- # @return [String] The transitioned_from
307
+ # @return [String] The Widget that preceded the Widget for this Step.
308
308
  def transitioned_from
309
309
  @properties['transitioned_from']
310
310
  end
311
311
 
312
312
  ##
313
- # @return [String] The transitioned_to
313
+ # @return [String] The Widget that will follow the Widget for this Step.
314
314
  def transitioned_to
315
315
  @properties['transitioned_to']
316
316
  end
317
317
 
318
318
  ##
319
- # @return [Time] The date_created
319
+ # @return [Time] The date this Step was created
320
320
  def date_created
321
321
  @properties['date_created']
322
322
  end
323
323
 
324
324
  ##
325
- # @return [Time] The date_updated
325
+ # @return [Time] The date this Step was updated
326
326
  def date_updated
327
327
  @properties['date_updated']
328
328
  end
329
329
 
330
330
  ##
331
- # @return [String] The url
331
+ # @return [String] The URL of this resource.
332
332
  def url
333
333
  @properties['url']
334
334
  end
@@ -19,9 +19,10 @@ module Twilio
19
19
  ##
20
20
  # Initialize the StepContextList
21
21
  # @param [Version] version Version that contains the resource
22
- # @param [String] flow_sid The flow_sid
23
- # @param [String] engagement_sid The engagement_sid
24
- # @param [String] step_sid The step_sid
22
+ # @param [String] flow_sid The unique SID identifier of the Flow.
23
+ # @param [String] engagement_sid The unique SID identifier of the Engagement.
24
+ # @param [String] step_sid The unique SID identifier of the Step this context is
25
+ # associated with.
25
26
  # @return [StepContextList] StepContextList
26
27
  def initialize(version, flow_sid: nil, engagement_sid: nil, step_sid: nil)
27
28
  super(version)
@@ -80,9 +81,9 @@ module Twilio
80
81
  ##
81
82
  # Initialize the StepContextContext
82
83
  # @param [Version] version Version that contains the resource
83
- # @param [String] flow_sid The flow_sid
84
- # @param [String] engagement_sid The engagement_sid
85
- # @param [String] step_sid The step_sid
84
+ # @param [String] flow_sid The unique SID identifier of the Flow.
85
+ # @param [String] engagement_sid The unique SID identifier of the Engagement.
86
+ # @param [String] step_sid The unique SID identifier of the Step.
86
87
  # @return [StepContextContext] StepContextContext
87
88
  def initialize(version, flow_sid, engagement_sid, step_sid)
88
89
  super(version)
@@ -128,9 +129,10 @@ module Twilio
128
129
  # Initialize the StepContextInstance
129
130
  # @param [Version] version Version that contains the resource
130
131
  # @param [Hash] payload payload that contains response from Twilio
131
- # @param [String] flow_sid The flow_sid
132
- # @param [String] engagement_sid The engagement_sid
133
- # @param [String] step_sid The step_sid
132
+ # @param [String] flow_sid The unique SID identifier of the Flow.
133
+ # @param [String] engagement_sid The unique SID identifier of the Engagement.
134
+ # @param [String] step_sid The unique SID identifier of the Step this context is
135
+ # associated with.
134
136
  # @return [StepContextInstance] StepContextInstance
135
137
  def initialize(version, payload, flow_sid: nil, engagement_sid: nil, step_sid: nil)
136
138
  super(version)
@@ -167,37 +169,37 @@ module Twilio
167
169
  end
168
170
 
169
171
  ##
170
- # @return [String] The account_sid
172
+ # @return [String] Account Sid.
171
173
  def account_sid
172
174
  @properties['account_sid']
173
175
  end
174
176
 
175
177
  ##
176
- # @return [Hash] The context
178
+ # @return [Hash] Flow state.
177
179
  def context
178
180
  @properties['context']
179
181
  end
180
182
 
181
183
  ##
182
- # @return [String] The engagement_sid
184
+ # @return [String] Engagement Sid.
183
185
  def engagement_sid
184
186
  @properties['engagement_sid']
185
187
  end
186
188
 
187
189
  ##
188
- # @return [String] The flow_sid
190
+ # @return [String] Flow Sid.
189
191
  def flow_sid
190
192
  @properties['flow_sid']
191
193
  end
192
194
 
193
195
  ##
194
- # @return [String] The step_sid
196
+ # @return [String] Step Sid.
195
197
  def step_sid
196
198
  @properties['step_sid']
197
199
  end
198
200
 
199
201
  ##
200
- # @return [String] The url
202
+ # @return [String] The URL of this resource.
201
203
  def url
202
204
  @properties['url']
203
205
  end