twilio-ruby 5.16.0 → 5.17.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.
- checksums.yaml +5 -5
- data/CHANGES.md +22 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +2 -2
- data/lib/twilio-ruby/rest/authy.rb +9 -9
- data/lib/twilio-ruby/rest/authy/v1.rb +16 -16
- data/lib/twilio-ruby/rest/authy/v1/form.rb +18 -18
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +6 -12
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +6 -13
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +25 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +25 -3
- data/lib/twilio-ruby/rest/preview.rb +13 -20
- data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v1/service/verification.rb +4 -1
- data/lib/twilio-ruby/rest/video.rb +9 -9
- data/lib/twilio-ruby/rest/video/v1.rb +16 -16
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/authy/v1/form_spec.rb +1 -1
- data/spec/integration/authy/v1/service/entity/factor/challenge_spec.rb +5 -10
- data/spec/integration/authy/v1/service/entity/factor_spec.rb +3 -3
- data/spec/integration/chat/v2/service/channel/member_spec.rb +4 -0
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +4 -0
- metadata +3 -10
- data/lib/twilio-ruby/rest/preview/authy.rb +0 -43
- data/lib/twilio-ruby/rest/preview/authy/service.rb +0 -364
- data/lib/twilio-ruby/rest/preview/authy/service/entity.rb +0 -326
- data/spec/integration/preview/authy/service/entity_spec.rb +0 -173
- data/spec/integration/preview/authy/service_spec.rb +0 -201
@@ -55,8 +55,12 @@ module Twilio
|
|
55
55
|
# Chat service if not specified. Note that this should only be used in cases
|
56
56
|
# where a Member is being recreated from a backup/separate source and where a
|
57
57
|
# Member was previously updated.
|
58
|
+
# @param [String] attributes An optional string metadata field you can use to
|
59
|
+
# store any data you wish. The string value must contain structurally valid JSON
|
60
|
+
# if specified. **Note** that if the attributes are not set "{}" will be
|
61
|
+
# returned.
|
58
62
|
# @return [MemberInstance] Newly created MemberInstance
|
59
|
-
def create(identity: nil, role_sid: :unset, last_consumed_message_index: :unset, last_consumption_timestamp: :unset, date_created: :unset, date_updated: :unset)
|
63
|
+
def create(identity: nil, role_sid: :unset, last_consumed_message_index: :unset, last_consumption_timestamp: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
|
60
64
|
data = Twilio::Values.of({
|
61
65
|
'Identity' => identity,
|
62
66
|
'RoleSid' => role_sid,
|
@@ -64,6 +68,7 @@ module Twilio
|
|
64
68
|
'LastConsumptionTimestamp' => Twilio.serialize_iso8601_datetime(last_consumption_timestamp),
|
65
69
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
66
70
|
'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
|
71
|
+
'Attributes' => attributes,
|
67
72
|
})
|
68
73
|
|
69
74
|
payload = @version.create(
|
@@ -287,14 +292,19 @@ module Twilio
|
|
287
292
|
# Chat service if not specified. Note that this should only be used in cases
|
288
293
|
# where a Member is being recreated from a backup/separate source and where a
|
289
294
|
# Member was previously updated.
|
295
|
+
# @param [String] attributes An optional string metadata field you can use to
|
296
|
+
# store any data you wish. The string value must contain structurally valid JSON
|
297
|
+
# if specified. **Note** that if the attributes are not set "{}" will be
|
298
|
+
# returned.
|
290
299
|
# @return [MemberInstance] Updated MemberInstance
|
291
|
-
def update(role_sid: :unset, last_consumed_message_index: :unset, last_consumption_timestamp: :unset, date_created: :unset, date_updated: :unset)
|
300
|
+
def update(role_sid: :unset, last_consumed_message_index: :unset, last_consumption_timestamp: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
|
292
301
|
data = Twilio::Values.of({
|
293
302
|
'RoleSid' => role_sid,
|
294
303
|
'LastConsumedMessageIndex' => last_consumed_message_index,
|
295
304
|
'LastConsumptionTimestamp' => Twilio.serialize_iso8601_datetime(last_consumption_timestamp),
|
296
305
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
297
306
|
'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
|
307
|
+
'Attributes' => attributes,
|
298
308
|
})
|
299
309
|
|
300
310
|
payload = @version.update(
|
@@ -349,6 +359,7 @@ module Twilio
|
|
349
359
|
'last_consumed_message_index' => payload['last_consumed_message_index'] == nil ? payload['last_consumed_message_index'] : payload['last_consumed_message_index'].to_i,
|
350
360
|
'last_consumption_timestamp' => Twilio.deserialize_iso8601_datetime(payload['last_consumption_timestamp']),
|
351
361
|
'url' => payload['url'],
|
362
|
+
'attributes' => payload['attributes'],
|
352
363
|
}
|
353
364
|
|
354
365
|
# Context
|
@@ -442,6 +453,12 @@ module Twilio
|
|
442
453
|
@properties['url']
|
443
454
|
end
|
444
455
|
|
456
|
+
##
|
457
|
+
# @return [String] An optional string metadata field you can use to store any data you wish.
|
458
|
+
def attributes
|
459
|
+
@properties['attributes']
|
460
|
+
end
|
461
|
+
|
445
462
|
##
|
446
463
|
# Fetch a MemberInstance
|
447
464
|
# @return [MemberInstance] Fetched MemberInstance
|
@@ -475,14 +492,19 @@ module Twilio
|
|
475
492
|
# Chat service if not specified. Note that this should only be used in cases
|
476
493
|
# where a Member is being recreated from a backup/separate source and where a
|
477
494
|
# Member was previously updated.
|
495
|
+
# @param [String] attributes An optional string metadata field you can use to
|
496
|
+
# store any data you wish. The string value must contain structurally valid JSON
|
497
|
+
# if specified. **Note** that if the attributes are not set "{}" will be
|
498
|
+
# returned.
|
478
499
|
# @return [MemberInstance] Updated MemberInstance
|
479
|
-
def update(role_sid: :unset, last_consumed_message_index: :unset, last_consumption_timestamp: :unset, date_created: :unset, date_updated: :unset)
|
500
|
+
def update(role_sid: :unset, last_consumed_message_index: :unset, last_consumption_timestamp: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
|
480
501
|
context.update(
|
481
502
|
role_sid: role_sid,
|
482
503
|
last_consumed_message_index: last_consumed_message_index,
|
483
504
|
last_consumption_timestamp: last_consumption_timestamp,
|
484
505
|
date_created: date_created,
|
485
506
|
date_updated: date_updated,
|
507
|
+
attributes: attributes,
|
486
508
|
)
|
487
509
|
end
|
488
510
|
|
@@ -19,7 +19,6 @@ module Twilio
|
|
19
19
|
@port = 443
|
20
20
|
|
21
21
|
# Versions
|
22
|
-
@authy = nil
|
23
22
|
@bulk_exports = nil
|
24
23
|
@deployed_devices = nil
|
25
24
|
@hosted_numbers = nil
|
@@ -30,12 +29,6 @@ module Twilio
|
|
30
29
|
@wireless = nil
|
31
30
|
end
|
32
31
|
|
33
|
-
##
|
34
|
-
# Version authy of preview
|
35
|
-
def authy
|
36
|
-
@authy ||= Authy.new self
|
37
|
-
end
|
38
|
-
|
39
32
|
##
|
40
33
|
# Version bulk_exports of preview
|
41
34
|
def bulk_exports
|
@@ -84,14 +77,6 @@ module Twilio
|
|
84
77
|
@wireless ||= Wireless.new self
|
85
78
|
end
|
86
79
|
|
87
|
-
##
|
88
|
-
# @param [String] sid The sid
|
89
|
-
# @return [Twilio::REST::Preview::Sync::ServiceInstance] if sid was passed.
|
90
|
-
# @return [Twilio::REST::Preview::Sync::ServiceList]
|
91
|
-
def services(sid=:unset)
|
92
|
-
self.sync.services(sid)
|
93
|
-
end
|
94
|
-
|
95
80
|
##
|
96
81
|
# @param [String] resource_type The resource_type
|
97
82
|
# @return [Twilio::REST::Preview::BulkExports::ExportInstance] if resource_type was passed.
|
@@ -135,6 +120,14 @@ module Twilio
|
|
135
120
|
self.hosted_numbers.hosted_number_orders(sid)
|
136
121
|
end
|
137
122
|
|
123
|
+
##
|
124
|
+
# @param [String] sid A 34 character string that uniquely identifies this Add-on.
|
125
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed.
|
126
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
|
127
|
+
def available_add_ons(sid=:unset)
|
128
|
+
self.marketplace.available_add_ons(sid)
|
129
|
+
end
|
130
|
+
|
138
131
|
##
|
139
132
|
# @param [String] sid 34 character string that uniquely identifies the Add-on.
|
140
133
|
# This Sid can also be found in the Console on that specific Add-ons page as the
|
@@ -146,11 +139,11 @@ module Twilio
|
|
146
139
|
end
|
147
140
|
|
148
141
|
##
|
149
|
-
# @param [String] sid
|
150
|
-
# @return [Twilio::REST::Preview::
|
151
|
-
# @return [Twilio::REST::Preview::
|
152
|
-
def
|
153
|
-
self.
|
142
|
+
# @param [String] sid The sid
|
143
|
+
# @return [Twilio::REST::Preview::Sync::ServiceInstance] if sid was passed.
|
144
|
+
# @return [Twilio::REST::Preview::Sync::ServiceList]
|
145
|
+
def services(sid=:unset)
|
146
|
+
self.sync.services(sid)
|
154
147
|
end
|
155
148
|
|
156
149
|
##
|
@@ -15,37 +15,37 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'marketplace'
|
18
|
-
@installed_add_ons = nil
|
19
18
|
@available_add_ons = nil
|
19
|
+
@installed_add_ons = nil
|
20
20
|
end
|
21
21
|
|
22
22
|
##
|
23
|
-
# @param [String] sid The
|
23
|
+
# @param [String] sid The Available Add-on Sid that uniquely identifies this
|
24
24
|
# resource
|
25
|
-
# @return [Twilio::REST::Preview::Marketplace::
|
26
|
-
# @return [Twilio::REST::Preview::Marketplace::
|
27
|
-
def
|
25
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnContext] if sid was passed.
|
26
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
|
27
|
+
def available_add_ons(sid=:unset)
|
28
28
|
if sid.nil?
|
29
29
|
raise ArgumentError, 'sid cannot be nil'
|
30
30
|
elsif sid == :unset
|
31
|
-
@
|
31
|
+
@available_add_ons ||= AvailableAddOnList.new self
|
32
32
|
else
|
33
|
-
|
33
|
+
AvailableAddOnContext.new(self, sid)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
37
|
##
|
38
|
-
# @param [String] sid The
|
38
|
+
# @param [String] sid The Installed Add-on Sid that uniquely identifies this
|
39
39
|
# resource
|
40
|
-
# @return [Twilio::REST::Preview::Marketplace::
|
41
|
-
# @return [Twilio::REST::Preview::Marketplace::
|
42
|
-
def
|
40
|
+
# @return [Twilio::REST::Preview::Marketplace::InstalledAddOnContext] if sid was passed.
|
41
|
+
# @return [Twilio::REST::Preview::Marketplace::InstalledAddOnList]
|
42
|
+
def installed_add_ons(sid=:unset)
|
43
43
|
if sid.nil?
|
44
44
|
raise ArgumentError, 'sid cannot be nil'
|
45
45
|
elsif sid == :unset
|
46
|
-
@
|
46
|
+
@installed_add_ons ||= InstalledAddOnList.new self
|
47
47
|
else
|
48
|
-
|
48
|
+
InstalledAddOnContext.new(self, sid)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -44,7 +44,8 @@ module Twilio
|
|
44
44
|
# often within seconds, making this a good tool for garbage management.
|
45
45
|
# @param [String] collection_ttl Time-to-live of this item's parent List in
|
46
46
|
# seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0
|
47
|
-
# for infinity.
|
47
|
+
# for infinity. This parameter can only be used when the list item's data or ttl
|
48
|
+
# is updated in the same request.
|
48
49
|
# @return [SyncListItemInstance] Newly created SyncListItemInstance
|
49
50
|
def create(data: nil, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
|
50
51
|
data = Twilio::Values.of({
|
@@ -269,7 +270,8 @@ module Twilio
|
|
269
270
|
# often within seconds, making this a good tool for garbage management.
|
270
271
|
# @param [String] collection_ttl Time-to-live of this item's parent List in
|
271
272
|
# seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0
|
272
|
-
# for infinity.
|
273
|
+
# for infinity. This parameter can only be used when the list item's data or ttl
|
274
|
+
# is updated in the same request.
|
273
275
|
# @return [SyncListItemInstance] Updated SyncListItemInstance
|
274
276
|
def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
|
275
277
|
data = Twilio::Values.of({
|
@@ -450,7 +452,8 @@ module Twilio
|
|
450
452
|
# often within seconds, making this a good tool for garbage management.
|
451
453
|
# @param [String] collection_ttl Time-to-live of this item's parent List in
|
452
454
|
# seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0
|
453
|
-
# for infinity.
|
455
|
+
# for infinity. This parameter can only be used when the list item's data or ttl
|
456
|
+
# is updated in the same request.
|
454
457
|
# @return [SyncListItemInstance] Updated SyncListItemInstance
|
455
458
|
def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
|
456
459
|
context.update(data: data, ttl: ttl, item_ttl: item_ttl, collection_ttl: collection_ttl, )
|
@@ -46,7 +46,8 @@ module Twilio
|
|
46
46
|
# within seconds, making this a good tool for garbage management.
|
47
47
|
# @param [String] collection_ttl Time-to-live of this item's parent Map in
|
48
48
|
# seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0
|
49
|
-
# for infinity.
|
49
|
+
# for infinity. This parameter can only be used when the map item's data or ttl is
|
50
|
+
# updated in the same request.
|
50
51
|
# @return [SyncMapItemInstance] Newly created SyncMapItemInstance
|
51
52
|
def create(key: nil, data: nil, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
|
52
53
|
data = Twilio::Values.of({
|
@@ -281,7 +282,8 @@ module Twilio
|
|
281
282
|
# within seconds, making this a good tool for garbage management.
|
282
283
|
# @param [String] collection_ttl Time-to-live of this item's parent Map in
|
283
284
|
# seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0
|
284
|
-
# for infinity.
|
285
|
+
# for infinity. This parameter can only be used when the map item's data or ttl is
|
286
|
+
# updated in the same request.
|
285
287
|
# @return [SyncMapItemInstance] Updated SyncMapItemInstance
|
286
288
|
def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
|
287
289
|
data = Twilio::Values.of({
|
@@ -458,7 +460,8 @@ module Twilio
|
|
458
460
|
# within seconds, making this a good tool for garbage management.
|
459
461
|
# @param [String] collection_ttl Time-to-live of this item's parent Map in
|
460
462
|
# seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0
|
461
|
-
# for infinity.
|
463
|
+
# for infinity. This parameter can only be used when the map item's data or ttl is
|
464
|
+
# updated in the same request.
|
462
465
|
# @return [SyncMapItemInstance] Updated SyncMapItemInstance
|
463
466
|
def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
|
464
467
|
context.update(data: data, ttl: ttl, item_ttl: item_ttl, collection_ttl: collection_ttl, )
|
@@ -40,14 +40,17 @@ module Twilio
|
|
40
40
|
# @param [String] locale Supported values are af, ar, ca, cs, da, de, el, en, es,
|
41
41
|
# fi, fr, he, hi, hr, hu, id, it, ja, ko, ms, nb, nl, pl, pt, pr-BR, ro, ru, sv,
|
42
42
|
# th, tl, tr, vi, zh, zh-CN, zh-HK
|
43
|
+
# @param [String] custom_code Pass in a pre-generated code. Code length can be
|
44
|
+
# between 4-10 characters.
|
43
45
|
# @return [VerificationInstance] Newly created VerificationInstance
|
44
|
-
def create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset)
|
46
|
+
def create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset)
|
45
47
|
data = Twilio::Values.of({
|
46
48
|
'To' => to,
|
47
49
|
'Channel' => channel,
|
48
50
|
'CustomMessage' => custom_message,
|
49
51
|
'SendDigits' => send_digits,
|
50
52
|
'Locale' => locale,
|
53
|
+
'CustomCode' => custom_code,
|
51
54
|
})
|
52
55
|
|
53
56
|
payload = @version.create(
|
@@ -28,6 +28,15 @@ module Twilio
|
|
28
28
|
@v1 ||= V1.new self
|
29
29
|
end
|
30
30
|
|
31
|
+
##
|
32
|
+
# @param [String] sid `CJxx…xx` A system-generated 34-character string that
|
33
|
+
# uniquely identifies this Composition.
|
34
|
+
# @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
|
35
|
+
# @return [Twilio::REST::Video::V1::CompositionList]
|
36
|
+
def compositions(sid=:unset)
|
37
|
+
self.v1.compositions(sid)
|
38
|
+
end
|
39
|
+
|
31
40
|
##
|
32
41
|
# @param [String] sid `HKxx…xx` A system-generated 34-character string that
|
33
42
|
# uniquely identifies this Composition Hook.
|
@@ -58,15 +67,6 @@ module Twilio
|
|
58
67
|
self.v1.recording_settings()
|
59
68
|
end
|
60
69
|
|
61
|
-
##
|
62
|
-
# @param [String] sid `CJxx…xx` A system-generated 34-character string that
|
63
|
-
# uniquely identifies this Composition.
|
64
|
-
# @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
|
65
|
-
# @return [Twilio::REST::Video::V1::CompositionList]
|
66
|
-
def compositions(sid=:unset)
|
67
|
-
self.v1.compositions(sid)
|
68
|
-
end
|
69
|
-
|
70
70
|
##
|
71
71
|
# @param [String] sid A system-generated 34-character string that uniquely
|
72
72
|
# identifies this resource.
|
@@ -15,14 +15,29 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'v1'
|
18
|
+
@compositions = nil
|
18
19
|
@composition_hooks = nil
|
19
20
|
@composition_settings = nil
|
20
21
|
@recordings = nil
|
21
22
|
@recording_settings = nil
|
22
|
-
@compositions = nil
|
23
23
|
@rooms = nil
|
24
24
|
end
|
25
25
|
|
26
|
+
##
|
27
|
+
# @param [String] sid The Composition Sid that uniquely identifies the Composition
|
28
|
+
# to fetch.
|
29
|
+
# @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
|
30
|
+
# @return [Twilio::REST::Video::V1::CompositionList]
|
31
|
+
def compositions(sid=:unset)
|
32
|
+
if sid.nil?
|
33
|
+
raise ArgumentError, 'sid cannot be nil'
|
34
|
+
elsif sid == :unset
|
35
|
+
@compositions ||= CompositionList.new self
|
36
|
+
else
|
37
|
+
CompositionContext.new(self, sid)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
26
41
|
##
|
27
42
|
# @param [String] sid The Composition Hook Sid that uniquely identifies the
|
28
43
|
# Composition Hook to fetch.
|
@@ -65,21 +80,6 @@ module Twilio
|
|
65
80
|
@recording_settings ||= RecordingSettingsContext.new self
|
66
81
|
end
|
67
82
|
|
68
|
-
##
|
69
|
-
# @param [String] sid The Composition Sid that uniquely identifies the Composition
|
70
|
-
# to fetch.
|
71
|
-
# @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
|
72
|
-
# @return [Twilio::REST::Video::V1::CompositionList]
|
73
|
-
def compositions(sid=:unset)
|
74
|
-
if sid.nil?
|
75
|
-
raise ArgumentError, 'sid cannot be nil'
|
76
|
-
elsif sid == :unset
|
77
|
-
@compositions ||= CompositionList.new self
|
78
|
-
else
|
79
|
-
CompositionContext.new(self, sid)
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
83
|
##
|
84
84
|
# @param [String] sid The Room Sid or name that uniquely identifies this resource.
|
85
85
|
# @return [Twilio::REST::Video::V1::RoomContext] if sid was passed.
|
data/lib/twilio-ruby/version.rb
CHANGED
@@ -42,9 +42,8 @@ describe 'Challenge' do
|
|
42
42
|
"date_updated": "2015-07-30T20:00:00Z",
|
43
43
|
"date_responded": "2015-07-30T20:00:00Z",
|
44
44
|
"expiration_date": "2015-07-30T20:00:00Z",
|
45
|
-
"verification_sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
46
45
|
"status": "pending",
|
47
|
-
"
|
46
|
+
"responded_reason": "none",
|
48
47
|
"details": "Hi! Mr. John Doe, would you like to sign up?",
|
49
48
|
"hidden_details": "Hidden details about the sign up",
|
50
49
|
"type": "sms",
|
@@ -126,9 +125,8 @@ describe 'Challenge' do
|
|
126
125
|
"date_updated": "2015-07-30T20:00:00Z",
|
127
126
|
"date_responded": "2015-07-30T20:00:00Z",
|
128
127
|
"expiration_date": "2015-07-30T20:00:00Z",
|
129
|
-
"verification_sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
130
128
|
"status": "pending",
|
131
|
-
"
|
129
|
+
"responded_reason": "none",
|
132
130
|
"details": "details",
|
133
131
|
"hidden_details": "hidden_details",
|
134
132
|
"type": "sms",
|
@@ -160,9 +158,8 @@ describe 'Challenge' do
|
|
160
158
|
"date_updated": "2015-07-30T20:00:00Z",
|
161
159
|
"date_responded": "2015-07-30T20:00:00Z",
|
162
160
|
"expiration_date": "2015-07-30T20:00:00Z",
|
163
|
-
"verification_sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
164
161
|
"status": "pending",
|
165
|
-
"
|
162
|
+
"responded_reason": "none",
|
166
163
|
"details": "details",
|
167
164
|
"hidden_details": "hidden_details",
|
168
165
|
"type": "sms",
|
@@ -212,9 +209,8 @@ describe 'Challenge' do
|
|
212
209
|
"date_updated": "2015-07-30T20:00:00Z",
|
213
210
|
"date_responded": "2015-07-30T20:00:00Z",
|
214
211
|
"expiration_date": "2015-07-30T20:00:00Z",
|
215
|
-
"verification_sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
216
212
|
"status": "approved",
|
217
|
-
"
|
213
|
+
"responded_reason": "none",
|
218
214
|
"details": "Hi! Mr. John Doe, would you like to sign up?",
|
219
215
|
"hidden_details": "Hidden details about the sign up",
|
220
216
|
"type": "sms",
|
@@ -246,9 +242,8 @@ describe 'Challenge' do
|
|
246
242
|
"date_updated": "2015-07-30T20:00:00Z",
|
247
243
|
"date_responded": "2015-07-30T20:00:00Z",
|
248
244
|
"expiration_date": "2015-07-30T20:00:00Z",
|
249
|
-
"verification_sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
250
245
|
"status": "approved",
|
251
|
-
"
|
246
|
+
"responded_reason": "none",
|
252
247
|
"details": "Hi! Mr. John Doe, would you like to sign up?",
|
253
248
|
"hidden_details": "Hidden details about the sign up",
|
254
249
|
"type": "sms",
|
@@ -15,10 +15,10 @@ describe 'Factor' do
|
|
15
15
|
expect {
|
16
16
|
@client.authy.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
17
|
.entities('identity') \
|
18
|
-
.factors.create(binding: 'binding',
|
18
|
+
.factors.create(binding: 'binding', friendly_name: 'friendly_name', type: 'app-push')
|
19
19
|
}.to raise_exception(Twilio::REST::TwilioError)
|
20
20
|
|
21
|
-
values = {'Binding' => 'binding', '
|
21
|
+
values = {'Binding' => 'binding', 'FriendlyName' => 'friendly_name', 'Type' => 'app-push', }
|
22
22
|
expect(
|
23
23
|
@holodeck.has_request?(Holodeck::Request.new(
|
24
24
|
method: 'post',
|
@@ -52,7 +52,7 @@ describe 'Factor' do
|
|
52
52
|
|
53
53
|
actual = @client.authy.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
54
54
|
.entities('identity') \
|
55
|
-
.factors.create(binding: 'binding',
|
55
|
+
.factors.create(binding: 'binding', friendly_name: 'friendly_name', type: 'app-push')
|
56
56
|
|
57
57
|
expect(actual).to_not eq(nil)
|
58
58
|
end
|