twilio-ruby 5.24.0 → 5.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +12 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +22 -2
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +7 -9
- data/lib/twilio-ruby/rest/preview/trusted_comms/cps.rb +186 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +4 -14
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +7 -0
- data/lib/twilio-ruby/rest/preview.rb +6 -0
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +395 -0
- data/lib/twilio-ruby/rest/verify/v2/service.rb +26 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +4 -2
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -4
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/message_spec.rb +129 -57
- data/spec/integration/autopilot/v1/assistant_spec.rb +8 -0
- data/spec/integration/preview/trusted_comms/cps_spec.rb +43 -0
- data/spec/integration/preview/trusted_comms/current_call_spec.rb +2 -2
- data/spec/integration/verify/v2/service/messaging_configuration_spec.rb +231 -0
- data/spec/integration/verify/v2/service/verification_check_spec.rb +3 -3
- data/spec/integration/verify/v2/service/verification_spec.rb +10 -10
- data/spec/integration/verify/v2/service_spec.rb +8 -4
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +51 -3
- metadata +8 -2
@@ -37,9 +37,9 @@ describe 'VerificationCheck' do
|
|
37
37
|
"to": "+14159373912",
|
38
38
|
"channel": "sms",
|
39
39
|
"status": "approved",
|
40
|
-
"valid":
|
41
|
-
"amount":
|
42
|
-
"payee":
|
40
|
+
"valid": true,
|
41
|
+
"amount": null,
|
42
|
+
"payee": null,
|
43
43
|
"date_created": "2015-07-30T20:00:00Z",
|
44
44
|
"date_updated": "2015-07-30T20:00:00Z"
|
45
45
|
}
|
@@ -37,7 +37,7 @@ describe 'Verification' do
|
|
37
37
|
"to": "+14159373912",
|
38
38
|
"channel": "sms",
|
39
39
|
"status": "pending",
|
40
|
-
"valid":
|
40
|
+
"valid": false,
|
41
41
|
"date_created": "2015-07-30T20:00:00Z",
|
42
42
|
"date_updated": "2015-07-30T20:00:00Z",
|
43
43
|
"lookup": {
|
@@ -49,8 +49,8 @@ describe 'Verification' do
|
|
49
49
|
"type": "mobile"
|
50
50
|
}
|
51
51
|
},
|
52
|
-
"amount":
|
53
|
-
"payee":
|
52
|
+
"amount": null,
|
53
|
+
"payee": null,
|
54
54
|
"url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications/VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
55
55
|
}
|
56
56
|
]
|
@@ -73,7 +73,7 @@ describe 'Verification' do
|
|
73
73
|
"to": "+14159373912",
|
74
74
|
"channel": "sms",
|
75
75
|
"status": "pending",
|
76
|
-
"valid":
|
76
|
+
"valid": false,
|
77
77
|
"date_created": "2015-07-30T20:00:00Z",
|
78
78
|
"date_updated": "2015-07-30T20:00:00Z",
|
79
79
|
"lookup": {
|
@@ -126,7 +126,7 @@ describe 'Verification' do
|
|
126
126
|
"to": "+14159373912",
|
127
127
|
"channel": "sms",
|
128
128
|
"status": "canceled",
|
129
|
-
"valid":
|
129
|
+
"valid": false,
|
130
130
|
"date_created": "2015-07-30T20:00:00Z",
|
131
131
|
"date_updated": "2015-07-30T20:00:00Z",
|
132
132
|
"lookup": {
|
@@ -138,8 +138,8 @@ describe 'Verification' do
|
|
138
138
|
"type": "mobile"
|
139
139
|
}
|
140
140
|
},
|
141
|
-
"amount":
|
142
|
-
"payee":
|
141
|
+
"amount": null,
|
142
|
+
"payee": null,
|
143
143
|
"url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications/VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
144
144
|
}
|
145
145
|
]
|
@@ -178,7 +178,7 @@ describe 'Verification' do
|
|
178
178
|
"to": "+14159373912",
|
179
179
|
"channel": "sms",
|
180
180
|
"status": "pending",
|
181
|
-
"valid":
|
181
|
+
"valid": false,
|
182
182
|
"date_created": "2015-07-30T20:00:00Z",
|
183
183
|
"date_updated": "2015-07-30T20:00:00Z",
|
184
184
|
"lookup": {
|
@@ -190,8 +190,8 @@ describe 'Verification' do
|
|
190
190
|
"type": "mobile"
|
191
191
|
}
|
192
192
|
},
|
193
|
-
"amount":
|
194
|
-
"payee":
|
193
|
+
"amount": null,
|
194
|
+
"payee": null,
|
195
195
|
"url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications/VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
196
196
|
}
|
197
197
|
]
|
@@ -45,7 +45,8 @@ describe 'Service' do
|
|
45
45
|
"links": {
|
46
46
|
"verification_checks": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/VerificationCheck",
|
47
47
|
"verifications": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications",
|
48
|
-
"rate_limits": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits"
|
48
|
+
"rate_limits": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits",
|
49
|
+
"messaging_configurations": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/MessagingConfigurations"
|
49
50
|
}
|
50
51
|
}
|
51
52
|
]
|
@@ -91,7 +92,8 @@ describe 'Service' do
|
|
91
92
|
"links": {
|
92
93
|
"verification_checks": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/VerificationCheck",
|
93
94
|
"verifications": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications",
|
94
|
-
"rate_limits": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits"
|
95
|
+
"rate_limits": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits",
|
96
|
+
"messaging_configurations": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/MessagingConfigurations"
|
95
97
|
}
|
96
98
|
}
|
97
99
|
]
|
@@ -174,7 +176,8 @@ describe 'Service' do
|
|
174
176
|
"links": {
|
175
177
|
"verification_checks": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/VerificationCheck",
|
176
178
|
"verifications": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications",
|
177
|
-
"rate_limits": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits"
|
179
|
+
"rate_limits": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits",
|
180
|
+
"messaging_configurations": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/MessagingConfigurations"
|
178
181
|
}
|
179
182
|
}
|
180
183
|
]
|
@@ -222,7 +225,8 @@ describe 'Service' do
|
|
222
225
|
"links": {
|
223
226
|
"verification_checks": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/VerificationCheck",
|
224
227
|
"verifications": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications",
|
225
|
-
"rate_limits": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits"
|
228
|
+
"rate_limits": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RateLimits",
|
229
|
+
"messaging_configurations": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/MessagingConfigurations"
|
226
230
|
}
|
227
231
|
}
|
228
232
|
]
|
@@ -33,10 +33,58 @@ describe 'UsageRecord' do
|
|
33
33
|
"usage_records": [
|
34
34
|
{
|
35
35
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
36
|
-
"commands": {
|
37
|
-
|
36
|
+
"commands": {
|
37
|
+
"billing_units": "USD",
|
38
|
+
"billed": 0,
|
39
|
+
"total": 3,
|
40
|
+
"from_sim": 1,
|
41
|
+
"to_sim": 2,
|
42
|
+
"home": {
|
43
|
+
"billing_units": "USD",
|
44
|
+
"billed": 0,
|
45
|
+
"total": 3,
|
46
|
+
"from_sim": 1,
|
47
|
+
"to_sim": 2
|
48
|
+
},
|
49
|
+
"national_roaming": {
|
50
|
+
"billing_units": "USD",
|
51
|
+
"billed": 0,
|
52
|
+
"total": 0,
|
53
|
+
"from_sim": 0,
|
54
|
+
"to_sim": 0
|
55
|
+
},
|
56
|
+
"international_roaming": []
|
57
|
+
},
|
58
|
+
"data": {
|
59
|
+
"billing_units": "USD",
|
60
|
+
"billed": 0.35,
|
61
|
+
"total": 3494609,
|
62
|
+
"upload": 731560,
|
63
|
+
"download": 2763049,
|
64
|
+
"units": "bytes",
|
65
|
+
"home": {
|
66
|
+
"billing_units": "USD",
|
67
|
+
"billed": 0.35,
|
68
|
+
"total": 3494609,
|
69
|
+
"upload": 731560,
|
70
|
+
"download": 2763049,
|
71
|
+
"units": "bytes"
|
72
|
+
},
|
73
|
+
"national_roaming": {
|
74
|
+
"billing_units": "USD",
|
75
|
+
"billed": 0,
|
76
|
+
"total": 0,
|
77
|
+
"upload": 0,
|
78
|
+
"download": 0,
|
79
|
+
"units": "bytes"
|
80
|
+
},
|
81
|
+
"international_roaming": []
|
82
|
+
},
|
38
83
|
"sim_sid": "DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
39
|
-
"period": {
|
84
|
+
"period": {
|
85
|
+
"start": "2015-07-30T20:00:00Z",
|
86
|
+
"end": "2015-07-30T20:00:00Z"
|
87
|
+
}
|
40
88
|
},
|
41
89
|
{
|
42
90
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -383,6 +383,7 @@ files:
|
|
383
383
|
- lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb
|
384
384
|
- lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb
|
385
385
|
- lib/twilio-ruby/rest/preview/trusted_comms.rb
|
386
|
+
- lib/twilio-ruby/rest/preview/trusted_comms/cps.rb
|
386
387
|
- lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb
|
387
388
|
- lib/twilio-ruby/rest/preview/trusted_comms/device.rb
|
388
389
|
- lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb
|
@@ -501,6 +502,7 @@ files:
|
|
501
502
|
- lib/twilio-ruby/rest/verify.rb
|
502
503
|
- lib/twilio-ruby/rest/verify/v2.rb
|
503
504
|
- lib/twilio-ruby/rest/verify/v2/service.rb
|
505
|
+
- lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb
|
504
506
|
- lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb
|
505
507
|
- lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb
|
506
508
|
- lib/twilio-ruby/rest/verify/v2/service/verification.rb
|
@@ -730,6 +732,7 @@ files:
|
|
730
732
|
- spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb
|
731
733
|
- spec/integration/preview/sync/service/sync_map_spec.rb
|
732
734
|
- spec/integration/preview/sync/service_spec.rb
|
735
|
+
- spec/integration/preview/trusted_comms/cps_spec.rb
|
733
736
|
- spec/integration/preview/trusted_comms/current_call_spec.rb
|
734
737
|
- spec/integration/preview/trusted_comms/device_spec.rb
|
735
738
|
- spec/integration/preview/trusted_comms/phone_call_spec.rb
|
@@ -828,6 +831,7 @@ files:
|
|
828
831
|
- spec/integration/trunking/v1/trunk/phone_number_spec.rb
|
829
832
|
- spec/integration/trunking/v1/trunk/terminating_sip_domain_spec.rb
|
830
833
|
- spec/integration/trunking/v1/trunk_spec.rb
|
834
|
+
- spec/integration/verify/v2/service/messaging_configuration_spec.rb
|
831
835
|
- spec/integration/verify/v2/service/rate_limit/bucket_spec.rb
|
832
836
|
- spec/integration/verify/v2/service/rate_limit_spec.rb
|
833
837
|
- spec/integration/verify/v2/service/verification_check_spec.rb
|
@@ -1090,6 +1094,7 @@ test_files:
|
|
1090
1094
|
- spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb
|
1091
1095
|
- spec/integration/preview/sync/service/sync_map_spec.rb
|
1092
1096
|
- spec/integration/preview/sync/service_spec.rb
|
1097
|
+
- spec/integration/preview/trusted_comms/cps_spec.rb
|
1093
1098
|
- spec/integration/preview/trusted_comms/current_call_spec.rb
|
1094
1099
|
- spec/integration/preview/trusted_comms/device_spec.rb
|
1095
1100
|
- spec/integration/preview/trusted_comms/phone_call_spec.rb
|
@@ -1188,6 +1193,7 @@ test_files:
|
|
1188
1193
|
- spec/integration/trunking/v1/trunk/phone_number_spec.rb
|
1189
1194
|
- spec/integration/trunking/v1/trunk/terminating_sip_domain_spec.rb
|
1190
1195
|
- spec/integration/trunking/v1/trunk_spec.rb
|
1196
|
+
- spec/integration/verify/v2/service/messaging_configuration_spec.rb
|
1191
1197
|
- spec/integration/verify/v2/service/rate_limit/bucket_spec.rb
|
1192
1198
|
- spec/integration/verify/v2/service/rate_limit_spec.rb
|
1193
1199
|
- spec/integration/verify/v2/service/verification_check_spec.rb
|