twilio-ruby 5.44.0 → 5.45.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 +4 -4
- data/CHANGES.md +10 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +6 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +6 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +6 -1
- data/lib/twilio-ruby/rest/preview.rb +0 -21
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -30
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +6 -6
- data/lib/twilio-ruby/twiml/voice_response.rb +3 -2
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -17
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +0 -243
- data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +0 -213
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +0 -108
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +0 -260
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +0 -342
- data/spec/integration/preview/trusted_comms/branded_call_spec.rb +0 -59
- data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -56
- data/spec/integration/preview/trusted_comms/business/insights_spec.rb +0 -12
- data/spec/integration/preview/trusted_comms/business_spec.rb +0 -45
- data/spec/integration/preview/trusted_comms/phone_call_spec.rb +0 -59
@@ -1,45 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# \ / _ _ _| _ _
|
4
|
-
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
6
|
-
#
|
7
|
-
# frozen_string_literal: true
|
8
|
-
|
9
|
-
require 'spec_helper.rb'
|
10
|
-
|
11
|
-
describe 'Business' do
|
12
|
-
it "can fetch" do
|
13
|
-
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
-
|
15
|
-
expect {
|
16
|
-
@client.preview.trusted_comms.businesses('BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
17
|
-
}.to raise_exception(Twilio::REST::TwilioError)
|
18
|
-
|
19
|
-
expect(
|
20
|
-
@holodeck.has_request?(Holodeck::Request.new(
|
21
|
-
method: 'get',
|
22
|
-
url: 'https://preview.twilio.com/TrustedComms/Businesses/BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
23
|
-
))).to eq(true)
|
24
|
-
end
|
25
|
-
|
26
|
-
it "receives fetch responses" do
|
27
|
-
@holodeck.mock(Twilio::Response.new(
|
28
|
-
200,
|
29
|
-
%q[
|
30
|
-
{
|
31
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
32
|
-
"sid": "BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
33
|
-
"url": "https://preview.twilio.com/TrustedComms/Businesses/BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
34
|
-
"links": {
|
35
|
-
"insights": "https://preview.twilio.com/TrustedComms/Businesses/BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Insights"
|
36
|
-
}
|
37
|
-
}
|
38
|
-
]
|
39
|
-
))
|
40
|
-
|
41
|
-
actual = @client.preview.trusted_comms.businesses('BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
42
|
-
|
43
|
-
expect(actual).to_not eq(nil)
|
44
|
-
end
|
45
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# \ / _ _ _| _ _
|
4
|
-
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
6
|
-
#
|
7
|
-
# frozen_string_literal: true
|
8
|
-
|
9
|
-
require 'spec_helper.rb'
|
10
|
-
|
11
|
-
describe 'PhoneCall' do
|
12
|
-
it "can create" do
|
13
|
-
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
-
|
15
|
-
expect {
|
16
|
-
@client.preview.trusted_comms.phone_calls.create(from: 'from', to: 'to')
|
17
|
-
}.to raise_exception(Twilio::REST::TwilioError)
|
18
|
-
|
19
|
-
values = {'From' => 'from', 'To' => 'to', }
|
20
|
-
expect(
|
21
|
-
@holodeck.has_request?(Holodeck::Request.new(
|
22
|
-
method: 'post',
|
23
|
-
url: 'https://preview.twilio.com/TrustedComms/Business/PhoneCalls',
|
24
|
-
data: values,
|
25
|
-
))).to eq(true)
|
26
|
-
end
|
27
|
-
|
28
|
-
it "receives create responses" do
|
29
|
-
@holodeck.mock(Twilio::Response.new(
|
30
|
-
201,
|
31
|
-
%q[
|
32
|
-
{
|
33
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
34
|
-
"bg_color": "#fff",
|
35
|
-
"brand_sid": "BZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
36
|
-
"branded_channel_sid": "BWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
37
|
-
"business_sid": "BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
38
|
-
"call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
39
|
-
"caller": "Owl Bank",
|
40
|
-
"created_at": "2019-05-01T20:00:00Z",
|
41
|
-
"font_color": "#000",
|
42
|
-
"from": "+15000000000",
|
43
|
-
"logo": "https://www.twilio.com/marketing/bundles/company/img/logos/red/twilio-logo-red.png",
|
44
|
-
"phone_number_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
45
|
-
"reason": "Hello Jhon, your appointment has been confirmed.",
|
46
|
-
"sid": "CQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
47
|
-
"status": "unknown",
|
48
|
-
"to": "+573000000000",
|
49
|
-
"url": "https://preview.twilio.com/TrustedComms/Business/PhoneCalls",
|
50
|
-
"use_case": "conversational"
|
51
|
-
}
|
52
|
-
]
|
53
|
-
))
|
54
|
-
|
55
|
-
actual = @client.preview.trusted_comms.phone_calls.create(from: 'from', to: 'to')
|
56
|
-
|
57
|
-
expect(actual).to_not eq(nil)
|
58
|
-
end
|
59
|
-
end
|