Skip to content

Commit

Permalink
[Librarian] Regenerated @ ffacdca4676a6b497016d64a881c854bbb1af883
Browse files Browse the repository at this point in the history
  • Loading branch information
codejudas committed Mar 10, 2018
1 parent 9c477c1 commit e937112
Show file tree
Hide file tree
Showing 12 changed files with 65 additions and 599 deletions.
13 changes: 13 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
twilio-ruby changelog
=====================

[2018-03-09] Version 5.7.1
---------------------------
**Api**
- Add `caller_id` param to Outbound Calls API
- Release `trim` recording Outbound Calls API functionality in helper libraries

**Video**
- [composer] Add `room_sid` to Composition resource.

**Twiml**
- Adds support for passing in multiple input type enums when setting `input` on `Gather`


[2018-03-02] Version 5.7.0
---------------------------
**TwiML**
Expand Down
10 changes: 9 additions & 1 deletion lib/twilio-ruby/rest/api/v2010/account/call.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,20 @@ def initialize(version, account_sid: nil)
# Twilio should wait while machine_detection is performned before timing out.
# @param [String] recording_status_callback_event The
# recording_status_callback_event
# @param [String] trim Set this parameter to control trimming of silence on the
# recording. Possible values are `trim-silence` or `do-not-trim`. Defaults to
# `trim-silence`.
# @param [String] caller_id The phone number, SIP address or Client identifier
# that made this Call. Phone numbers are in E.164 format (e.g. +16175551212). SIP
# addresses are formatted as `[email protected]`.
# @param [String] url The fully qualified URL that should be consulted when the
# call connects. Just like when you set a URL on a phone number for handling
# inbound calls.
# @param [String] application_sid The 34 character sid of the application Twilio
# should use to handle this phone call. If this parameter is present, Twilio will
# ignore all of the voice URLs passed and use the URLs set on the application.
# @return [CallInstance] Newly created CallInstance
def create(to: nil, from: nil, method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_event: :unset, status_callback_method: :unset, send_digits: :unset, if_machine: :unset, timeout: :unset, record: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, machine_detection: :unset, machine_detection_timeout: :unset, recording_status_callback_event: :unset, url: :unset, application_sid: :unset)
def create(to: nil, from: nil, method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_event: :unset, status_callback_method: :unset, send_digits: :unset, if_machine: :unset, timeout: :unset, record: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, machine_detection: :unset, machine_detection_timeout: :unset, recording_status_callback_event: :unset, trim: :unset, caller_id: :unset, url: :unset, application_sid: :unset)
data = Twilio::Values.of({
'To' => to,
'From' => from,
Expand All @@ -109,6 +115,8 @@ def create(to: nil, from: nil, method: :unset, fallback_url: :unset, fallback_me
'MachineDetection' => machine_detection,
'MachineDetectionTimeout' => machine_detection_timeout,
'RecordingStatusCallbackEvent' => Twilio.serialize_list(recording_status_callback_event) { |e| e },
'Trim' => trim,
'CallerId' => caller_id,
})

payload = @version.create(
Expand Down
23 changes: 7 additions & 16 deletions lib/twilio-ruby/rest/studio/v1/flow/engagement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ def initialize(version, flow_sid, sid)

# Dependents
@steps = nil
@engagement_context = nil
end

##
Expand Down Expand Up @@ -218,14 +217,6 @@ def steps(sid=:unset)
@steps
end

##
# Access the engagement_context
# @return [EngagementContextList]
# @return [EngagementContextContext]
def engagement_context
EngagementContextContext.new(@version, @solution[:flow_sid], @solution[:sid], )
end

##
# Provide a user friendly representation
def to_s
Expand Down Expand Up @@ -255,6 +246,7 @@ def initialize(version, payload, flow_sid: nil, sid: nil)
'contact_sid' => payload['contact_sid'],
'contact_channel_address' => payload['contact_channel_address'],
'status' => payload['status'],
'context' => payload['context'],
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
'url' => payload['url'],
Expand Down Expand Up @@ -313,6 +305,12 @@ def status
@properties['status']
end

##
# @return [Hash] The context
def context
@properties['context']
end

##
# @return [Time] The date_created
def date_created
Expand Down Expand Up @@ -351,13 +349,6 @@ def steps
context.steps
end

##
# Access the engagement_context
# @return [engagement_context] engagement_context
def engagement_context
context.engagement_context
end

##
# Provide a user friendly representation
def to_s
Expand Down
215 changes: 0 additions & 215 deletions lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb

This file was deleted.

Loading

0 comments on commit e937112

Please sign in to comment.