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.
@@ -1,12 +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 'Insights' do
12
- end
@@ -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