From ba44209d293d05072d1e835b4479c29b65ad531b Mon Sep 17 00:00:00 2001 From: Twilio Date: Tue, 27 Feb 2024 13:59:37 +0000 Subject: [PATCH] [Librarian] Regenerated @ f75e0fb81b57afeb6b457dc85e19644ebb530f9b --- CHANGES.md | 27 ++ .../rest/api/v2010/account/call.rb | 35 +- .../rest/api/v2010/account/call/feedback.rb | 267 -------------- .../v2010/account/call/feedback_summary.rb | 332 ------------------ lib/twilio-ruby/rest/flex_api/v1.rb | 30 -- .../flex_api/v1/insights_conversational_ai.rb | 276 --------------- ...ights_conversational_ai_report_insights.rb | 255 -------------- .../interaction_channel_participant.rb | 12 +- .../rest/lookups/v2/phone_number.rb | 12 +- .../messaging/v1/tollfree_verification.rb | 15 +- .../v1/compliance_registration_inquiries.rb | 22 +- 11 files changed, 76 insertions(+), 1207 deletions(-) delete mode 100644 lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb delete mode 100644 lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb delete mode 100644 lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb delete mode 100644 lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb diff --git a/CHANGES.md b/CHANGES.md index 25f23a269..1f6000911 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,33 @@ twilio-ruby changelog ===================== +[2024-02-27] Version 6.12.0 +--------------------------- +**Library - Chore** +- [PR #712](https://github.com/twilio/twilio-ruby/pull/712): cluster tests enabled. Thanks to [@sbansla](https://github.com/sbansla)! + +**Api** +- remove feedback and feedback summary from call resource + +**Flex** +- Adding `routing_properties` to Interactions Channels Participant + +**Lookups** +- Add new `line_status` package to the lookup response +- Remove `live_activity` package from the lookup response **(breaking change)** + +**Messaging** +- Add tollfree multiple rejection reasons response array + +**Trusthub** +- Add ENUM for businessRegistrationAuthority in compliance_registration. **(breaking change)** +- Add new field in isIsvEmbed in compliance_registration. +- Add additional optional fields in compliance_registration for Individual business type. + +**Twiml** +- Add support for new Amazon Polly and Google voices (Q1 2024) for `Say` verb + + [2024-02-09] Version 6.11.0 --------------------------- **Library - Chore** diff --git a/lib/twilio-ruby/rest/api/v2010/account/call.rb b/lib/twilio-ruby/rest/api/v2010/account/call.rb index 47803b85e..66f703153 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/call.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/call.rb @@ -30,8 +30,7 @@ def initialize(version, account_sid: nil) # Path Solution @solution = { account_sid: account_sid } @uri = "/Accounts/#{@solution[:account_sid]}/Calls.json" - # Components - @feedback_summaries = nil + end ## # Create the CallInstance @@ -302,19 +301,6 @@ def get_page(target_url) end - ## - # Access the feedback_summaries - # @return [FeedbackSummaryList] - # @return [FeedbackSummaryContext] if sid was passed. - def feedback_summaries(sid=:unset) - raise ArgumentError, 'sid cannot be nil' if sid.nil? - - if sid != :unset - return FeedbackSummaryContext.new(@version, @solution[:account_sid],sid ) - end - - @feedback_summaries ||= FeedbackSummaryList.new(@version, account_sid: @solution[:account_sid] ) - end # Provide a user friendly representation def to_s @@ -345,7 +331,6 @@ def initialize(version, account_sid, sid) @payments = nil @recordings = nil @notifications = nil - @feedback = nil @streams = nil end ## @@ -536,17 +521,6 @@ def notifications(sid=:unset) @notifications end ## - # Access the feedback - # @return [FeedbackList] - # @return [FeedbackContext] - def feedback - FeedbackContext.new( - @version, - @solution[:account_sid], - @solution[:sid] - ) - end - ## # Access the streams # @return [StreamList] # @return [StreamContext] if sid was passed. @@ -926,13 +900,6 @@ def notifications context.notifications end - ## - # Access the feedback - # @return [feedback] feedback - def feedback - context.feedback - end - ## # Access the streams # @return [streams] streams diff --git a/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb b/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb deleted file mode 100644 index a4c6f6d76..000000000 --- a/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +++ /dev/null @@ -1,267 +0,0 @@ -## -# This code was generated by -# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ -# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ -# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ -# -# Twilio - Api -# This is the public Twilio REST API. -# -# NOTE: This class is auto generated by OpenAPI Generator. -# https://openapi-generator.tech -# Do not edit the class manually. -# - - -module Twilio - module REST - class Api < ApiBase - class V2010 < Version - class AccountContext < InstanceContext - class CallContext < InstanceContext - - class FeedbackList < ListResource - - ## - # Initialize the FeedbackList - # @param [Version] version Version that contains the resource - # @return [FeedbackList] FeedbackList - def initialize(version, account_sid: nil, call_sid: nil) - super(version) - # Path Solution - @solution = { account_sid: account_sid, call_sid: call_sid } - - - end - - - - # Provide a user friendly representation - def to_s - '#' - end - end - - - class FeedbackContext < InstanceContext - ## - # Initialize the FeedbackContext - # @param [Version] version Version that contains the resource - # @param [String] account_sid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - # @param [String] call_sid The call sid that uniquely identifies the call - # @return [FeedbackContext] FeedbackContext - def initialize(version, account_sid, call_sid) - super(version) - - # Path Solution - @solution = { account_sid: account_sid, call_sid: call_sid, } - @uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:call_sid]}/Feedback.json" - - - end - ## - # Fetch the FeedbackInstance - # @return [FeedbackInstance] Fetched FeedbackInstance - def fetch - - - payload = @version.fetch('GET', @uri) - FeedbackInstance.new( - @version, - payload, - account_sid: @solution[:account_sid], - call_sid: @solution[:call_sid], - ) - end - - ## - # Update the FeedbackInstance - # @param [String] quality_score The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call. - # @param [Array[Issues]] issue One or more issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`. - # @return [FeedbackInstance] Updated FeedbackInstance - def update( - quality_score: :unset, - issue: :unset - ) - - data = Twilio::Values.of({ - 'QualityScore' => quality_score, - 'Issue' => Twilio.serialize_list(issue) { |e| e }, - }) - - - payload = @version.update('POST', @uri, data: data) - FeedbackInstance.new( - @version, - payload, - account_sid: @solution[:account_sid], - call_sid: @solution[:call_sid], - ) - end - - - ## - # Provide a user friendly representation - def to_s - context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') - "#" - end - - ## - # Provide a detailed, user friendly representation - def inspect - context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') - "#" - end - end - - class FeedbackPage < Page - ## - # Initialize the FeedbackPage - # @param [Version] version Version that contains the resource - # @param [Response] response Response from the API - # @param [Hash] solution Path solution for the resource - # @return [FeedbackPage] FeedbackPage - def initialize(version, response, solution) - super(version, response) - - # Path Solution - @solution = solution - end - - ## - # Build an instance of FeedbackInstance - # @param [Hash] payload Payload response from the API - # @return [FeedbackInstance] FeedbackInstance - def get_instance(payload) - FeedbackInstance.new(@version, payload, account_sid: @solution[:account_sid], call_sid: @solution[:call_sid]) - end - - ## - # Provide a user friendly representation - def to_s - '' - end - end - class FeedbackInstance < InstanceResource - ## - # Initialize the FeedbackInstance - # @param [Version] version Version that contains the resource - # @param [Hash] payload payload that contains response from Twilio - # @param [String] account_sid The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Feedback - # resource. - # @param [String] sid The SID of the Call resource to fetch. - # @return [FeedbackInstance] FeedbackInstance - def initialize(version, payload , account_sid: nil, call_sid: nil) - super(version) - - # Marshaled Properties - @properties = { - 'account_sid' => payload['account_sid'], - 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']), - 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']), - 'issues' => payload['issues'], - 'quality_score' => payload['quality_score'] == nil ? payload['quality_score'] : payload['quality_score'].to_i, - 'sid' => payload['sid'], - } - - # Context - @instance_context = nil - @params = { 'account_sid' => account_sid ,'call_sid' => call_sid || @properties['call_sid'] , } - end - - ## - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context - # @return [FeedbackContext] CallContext for this CallInstance - def context - unless @instance_context - @instance_context = FeedbackContext.new(@version , @params['account_sid'], @params['call_sid']) - end - @instance_context - end - - ## - # @return [String] The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - def account_sid - @properties['account_sid'] - end - - ## - # @return [Time] The date that this resource was created, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. - def date_created - @properties['date_created'] - end - - ## - # @return [Time] The date that this resource was last updated, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. - def date_updated - @properties['date_updated'] - end - - ## - # @return [Array] A list of issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`. - def issues - @properties['issues'] - end - - ## - # @return [String] `1` to `5` quality score where `1` represents imperfect experience and `5` represents a perfect call. - def quality_score - @properties['quality_score'] - end - - ## - # @return [String] A 34 character string that uniquely identifies this resource. - def sid - @properties['sid'] - end - - ## - # Fetch the FeedbackInstance - # @return [FeedbackInstance] Fetched FeedbackInstance - def fetch - - context.fetch - end - - ## - # Update the FeedbackInstance - # @param [String] quality_score The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call. - # @param [Array[Issues]] issue One or more issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`. - # @return [FeedbackInstance] Updated FeedbackInstance - def update( - quality_score: :unset, - issue: :unset - ) - - context.update( - quality_score: quality_score, - issue: issue, - ) - end - - ## - # Provide a user friendly representation - def to_s - values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") - "" - end - - ## - # Provide a detailed, user friendly representation - def inspect - values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") - "" - end - end - - end - end - end - end - end -end - - diff --git a/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb b/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb deleted file mode 100644 index 1f5d26a71..000000000 --- a/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +++ /dev/null @@ -1,332 +0,0 @@ -## -# This code was generated by -# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ -# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ -# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ -# -# Twilio - Api -# This is the public Twilio REST API. -# -# NOTE: This class is auto generated by OpenAPI Generator. -# https://openapi-generator.tech -# Do not edit the class manually. -# - - -module Twilio - module REST - class Api < ApiBase - class V2010 < Version - class AccountContext < InstanceContext - class CallList < ListResource - - class FeedbackSummaryList < ListResource - - ## - # Initialize the FeedbackSummaryList - # @param [Version] version Version that contains the resource - # @return [FeedbackSummaryList] FeedbackSummaryList - def initialize(version, account_sid: nil) - super(version) - # Path Solution - @solution = { account_sid: account_sid } - @uri = "/Accounts/#{@solution[:account_sid]}/Calls/FeedbackSummary.json" - - end - ## - # Create the FeedbackSummaryInstance - # @param [Date] start_date Only include feedback given on or after this date. Format is `YYYY-MM-DD` and specified in UTC. - # @param [Date] end_date Only include feedback given on or before this date. Format is `YYYY-MM-DD` and specified in UTC. - # @param [Boolean] include_subaccounts Whether to also include Feedback resources from all subaccounts. `true` includes feedback from all subaccounts and `false`, the default, includes feedback from only the specified account. - # @param [String] status_callback The URL that we will request when the feedback summary is complete. - # @param [String] status_callback_method The HTTP method (`GET` or `POST`) we use to make the request to the `StatusCallback` URL. - # @return [FeedbackSummaryInstance] Created FeedbackSummaryInstance - def create( - start_date: nil, - end_date: nil, - include_subaccounts: :unset, - status_callback: :unset, - status_callback_method: :unset - ) - - data = Twilio::Values.of({ - 'StartDate' => Twilio.serialize_iso8601_date(start_date), - 'EndDate' => Twilio.serialize_iso8601_date(end_date), - 'IncludeSubaccounts' => include_subaccounts, - 'StatusCallback' => status_callback, - 'StatusCallbackMethod' => status_callback_method, - }) - - - payload = @version.create('POST', @uri, data: data) - FeedbackSummaryInstance.new( - @version, - payload, - account_sid: @solution[:account_sid], - ) - end - - - - - # Provide a user friendly representation - def to_s - '#' - end - end - - - class FeedbackSummaryContext < InstanceContext - ## - # Initialize the FeedbackSummaryContext - # @param [Version] version Version that contains the resource - # @param [String] account_sid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - # @param [String] sid A 34 character string that uniquely identifies this resource. - # @return [FeedbackSummaryContext] FeedbackSummaryContext - def initialize(version, account_sid, sid) - super(version) - - # Path Solution - @solution = { account_sid: account_sid, sid: sid, } - @uri = "/Accounts/#{@solution[:account_sid]}/Calls/FeedbackSummary/#{@solution[:sid]}.json" - - - end - ## - # Delete the FeedbackSummaryInstance - # @return [Boolean] True if delete succeeds, false otherwise - def delete - - - @version.delete('DELETE', @uri) - end - - ## - # Fetch the FeedbackSummaryInstance - # @return [FeedbackSummaryInstance] Fetched FeedbackSummaryInstance - def fetch - - - payload = @version.fetch('GET', @uri) - FeedbackSummaryInstance.new( - @version, - payload, - account_sid: @solution[:account_sid], - sid: @solution[:sid], - ) - end - - - ## - # Provide a user friendly representation - def to_s - context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') - "#" - end - - ## - # Provide a detailed, user friendly representation - def inspect - context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') - "#" - end - end - - class FeedbackSummaryPage < Page - ## - # Initialize the FeedbackSummaryPage - # @param [Version] version Version that contains the resource - # @param [Response] response Response from the API - # @param [Hash] solution Path solution for the resource - # @return [FeedbackSummaryPage] FeedbackSummaryPage - def initialize(version, response, solution) - super(version, response) - - # Path Solution - @solution = solution - end - - ## - # Build an instance of FeedbackSummaryInstance - # @param [Hash] payload Payload response from the API - # @return [FeedbackSummaryInstance] FeedbackSummaryInstance - def get_instance(payload) - FeedbackSummaryInstance.new(@version, payload, account_sid: @solution[:account_sid]) - end - - ## - # Provide a user friendly representation - def to_s - '' - end - end - class FeedbackSummaryInstance < InstanceResource - ## - # Initialize the FeedbackSummaryInstance - # @param [Version] version Version that contains the resource - # @param [Hash] payload payload that contains response from Twilio - # @param [String] account_sid The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this FeedbackSummary - # resource. - # @param [String] sid The SID of the Call resource to fetch. - # @return [FeedbackSummaryInstance] FeedbackSummaryInstance - def initialize(version, payload , account_sid: nil, sid: nil) - super(version) - - # Marshaled Properties - @properties = { - 'account_sid' => payload['account_sid'], - 'call_count' => payload['call_count'] == nil ? payload['call_count'] : payload['call_count'].to_i, - 'call_feedback_count' => payload['call_feedback_count'] == nil ? payload['call_feedback_count'] : payload['call_feedback_count'].to_i, - 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']), - 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']), - 'end_date' => Twilio.deserialize_iso8601_date(payload['end_date']), - 'include_subaccounts' => payload['include_subaccounts'], - 'issues' => payload['issues'], - 'quality_score_average' => payload['quality_score_average'], - 'quality_score_median' => payload['quality_score_median'], - 'quality_score_standard_deviation' => payload['quality_score_standard_deviation'], - 'sid' => payload['sid'], - 'start_date' => Twilio.deserialize_iso8601_date(payload['start_date']), - 'status' => payload['status'], - } - - # Context - @instance_context = nil - @params = { 'account_sid' => account_sid ,'sid' => sid || @properties['sid'] , } - end - - ## - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context - # @return [FeedbackSummaryContext] CallContext for this CallInstance - def context - unless @instance_context - @instance_context = FeedbackSummaryContext.new(@version , @params['account_sid'], @params['sid']) - end - @instance_context - end - - ## - # @return [String] The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - def account_sid - @properties['account_sid'] - end - - ## - # @return [String] The total number of calls. - def call_count - @properties['call_count'] - end - - ## - # @return [String] The total number of calls with a feedback entry. - def call_feedback_count - @properties['call_feedback_count'] - end - - ## - # @return [Time] The date that this resource was created, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. - def date_created - @properties['date_created'] - end - - ## - # @return [Time] The date that this resource was last updated, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. - def date_updated - @properties['date_updated'] - end - - ## - # @return [Date] The last date for which feedback entries are included in this Feedback Summary, formatted as `YYYY-MM-DD` and specified in UTC. - def end_date - @properties['end_date'] - end - - ## - # @return [Boolean] Whether the feedback summary includes subaccounts; `true` if it does, otherwise `false`. - def include_subaccounts - @properties['include_subaccounts'] - end - - ## - # @return [Array] A list of issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`. - def issues - @properties['issues'] - end - - ## - # @return [Float] The average QualityScore of the feedback entries. - def quality_score_average - @properties['quality_score_average'] - end - - ## - # @return [Float] The median QualityScore of the feedback entries. - def quality_score_median - @properties['quality_score_median'] - end - - ## - # @return [Float] The standard deviation of the quality scores. - def quality_score_standard_deviation - @properties['quality_score_standard_deviation'] - end - - ## - # @return [String] A 34 character string that uniquely identifies this resource. - def sid - @properties['sid'] - end - - ## - # @return [Date] The first date for which feedback entries are included in this feedback summary, formatted as `YYYY-MM-DD` and specified in UTC. - def start_date - @properties['start_date'] - end - - ## - # @return [Status] - def status - @properties['status'] - end - - ## - # Delete the FeedbackSummaryInstance - # @return [Boolean] True if delete succeeds, false otherwise - def delete - - context.delete - end - - ## - # Fetch the FeedbackSummaryInstance - # @return [FeedbackSummaryInstance] Fetched FeedbackSummaryInstance - def fetch - - context.fetch - end - - ## - # Provide a user friendly representation - def to_s - values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") - "" - end - - ## - # Provide a detailed, user friendly representation - def inspect - values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") - "" - end - end - - end - end - end - end - end -end - - diff --git a/lib/twilio-ruby/rest/flex_api/v1.rb b/lib/twilio-ruby/rest/flex_api/v1.rb index b73113c5c..3fadd4aec 100644 --- a/lib/twilio-ruby/rest/flex_api/v1.rb +++ b/lib/twilio-ruby/rest/flex_api/v1.rb @@ -26,8 +26,6 @@ def initialize(domain) @configuration = nil @flex_flow = nil @insights_assessments_comment = nil - @insights_conversational_ai = nil - @insights_conversational_ai_report_insights = nil @insights_conversations = nil @insights_questionnaires = nil @insights_questionnaires_category = nil @@ -95,34 +93,6 @@ def insights_assessments_comment @insights_assessments_comment ||= InsightsAssessmentsCommentList.new self end ## - # @param [String] instance_sid Sid of Flex Service Instance - # @return [Twilio::REST::FlexApi::V1::InsightsConversationalAiContext] if instanceSid was passed. - # @return [Twilio::REST::FlexApi::V1::InsightsConversationalAiList] - def insights_conversational_ai(instance_sid=:unset) - if instance_sid.nil? - raise ArgumentError, 'instance_sid cannot be nil' - end - if instance_sid == :unset - @insights_conversational_ai ||= InsightsConversationalAiList.new self - else - InsightsConversationalAiContext.new(self, instance_sid) - end - end - ## - # @param [String] instance_sid The Instance SID of the instance for which report insights will be fetched - # @return [Twilio::REST::FlexApi::V1::InsightsConversationalAiReportInsightsContext] if instanceSid was passed. - # @return [Twilio::REST::FlexApi::V1::InsightsConversationalAiReportInsightsList] - def insights_conversational_ai_report_insights(instance_sid=:unset) - if instance_sid.nil? - raise ArgumentError, 'instance_sid cannot be nil' - end - if instance_sid == :unset - @insights_conversational_ai_report_insights ||= InsightsConversationalAiReportInsightsList.new self - else - InsightsConversationalAiReportInsightsContext.new(self, instance_sid) - end - end - ## # @return [Twilio::REST::FlexApi::V1::InsightsConversationsList] def insights_conversations @insights_conversations ||= InsightsConversationsList.new self diff --git a/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb b/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb deleted file mode 100644 index 32e61de26..000000000 --- a/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb +++ /dev/null @@ -1,276 +0,0 @@ -## -# This code was generated by -# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ -# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ -# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ -# -# Twilio - Flex -# This is the public Twilio REST API. -# -# NOTE: This class is auto generated by OpenAPI Generator. -# https://openapi-generator.tech -# Do not edit the class manually. -# - - -module Twilio - module REST - class FlexApi < FlexApiBase - class V1 < Version - class InsightsConversationalAiList < ListResource - - ## - # Initialize the InsightsConversationalAiList - # @param [Version] version Version that contains the resource - # @return [InsightsConversationalAiList] InsightsConversationalAiList - def initialize(version) - super(version) - # Path Solution - @solution = { } - - - end - - - - # Provide a user friendly representation - def to_s - '#' - end - end - - - ## - #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com. - class InsightsConversationalAiContext < InstanceContext - ## - # Initialize the InsightsConversationalAiContext - # @param [Version] version Version that contains the resource - # @param [String] instance_sid Sid of Flex Service Instance - # @return [InsightsConversationalAiContext] InsightsConversationalAiContext - def initialize(version, instance_sid) - super(version) - - # Path Solution - @solution = { instance_sid: instance_sid, } - @uri = "/Insights/Instances/#{@solution[:instance_sid]}/AI/Reports" - - - end - ## - # Fetch the InsightsConversationalAiInstance - # @param [String] max_rows Maximum number of rows to return - # @param [String] report_id The type of report required to fetch.Like gauge,channel-metrics,queue-metrics - # @param [Granularity] granularity The time period for which report is needed - # @param [Time] include_date A reference date that should be included in the returned period - # @return [InsightsConversationalAiInstance] Fetched InsightsConversationalAiInstance - def fetch( - max_rows: :unset, - report_id: :unset, - granularity: :unset, - include_date: :unset - ) - - params = Twilio::Values.of({ - 'MaxRows' => max_rows, - 'ReportId' => report_id, - 'Granularity' => granularity, - 'IncludeDate' => Twilio.serialize_iso8601_datetime(include_date), - }) - - payload = @version.fetch('GET', @uri, params: params) - InsightsConversationalAiInstance.new( - @version, - payload, - instance_sid: @solution[:instance_sid], - ) - end - - - ## - # Provide a user friendly representation - def to_s - context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') - "#" - end - - ## - # Provide a detailed, user friendly representation - def inspect - context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') - "#" - end - end - - class InsightsConversationalAiPage < Page - ## - # Initialize the InsightsConversationalAiPage - # @param [Version] version Version that contains the resource - # @param [Response] response Response from the API - # @param [Hash] solution Path solution for the resource - # @return [InsightsConversationalAiPage] InsightsConversationalAiPage - def initialize(version, response, solution) - super(version, response) - - # Path Solution - @solution = solution - end - - ## - # Build an instance of InsightsConversationalAiInstance - # @param [Hash] payload Payload response from the API - # @return [InsightsConversationalAiInstance] InsightsConversationalAiInstance - def get_instance(payload) - InsightsConversationalAiInstance.new(@version, payload) - end - - ## - # Provide a user friendly representation - def to_s - '' - end - end - class InsightsConversationalAiInstance < InstanceResource - ## - # Initialize the InsightsConversationalAiInstance - # @param [Version] version Version that contains the resource - # @param [Hash] payload payload that contains response from Twilio - # @param [String] account_sid The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this InsightsConversationalAi - # resource. - # @param [String] sid The SID of the Call resource to fetch. - # @return [InsightsConversationalAiInstance] InsightsConversationalAiInstance - def initialize(version, payload , instance_sid: nil) - super(version) - - # Marshaled Properties - @properties = { - 'instance_sid' => payload['instance_sid'], - 'report_id' => payload['report_id'], - 'granularity' => payload['granularity'], - 'period_start' => Twilio.deserialize_iso8601_datetime(payload['period_start']), - 'period_end' => Twilio.deserialize_iso8601_datetime(payload['period_end']), - 'updated' => Twilio.deserialize_iso8601_datetime(payload['updated']), - 'total_pages' => payload['total_pages'] == nil ? payload['total_pages'] : payload['total_pages'].to_i, - 'page' => payload['page'] == nil ? payload['page'] : payload['page'].to_i, - 'rows' => payload['rows'], - 'url' => payload['url'], - } - - # Context - @instance_context = nil - @params = { 'instance_sid' => instance_sid || @properties['instance_sid'] , } - end - - ## - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context - # @return [InsightsConversationalAiContext] CallContext for this CallInstance - def context - unless @instance_context - @instance_context = InsightsConversationalAiContext.new(@version , @params['instance_sid']) - end - @instance_context - end - - ## - # @return [String] Sid of Flex Service Instance - def instance_sid - @properties['instance_sid'] - end - - ## - # @return [String] The type of report required to fetch.Like gauge,channel-metrics,queue-metrics - def report_id - @properties['report_id'] - end - - ## - # @return [Granularity] - def granularity - @properties['granularity'] - end - - ## - # @return [Time] The start date from which report data is included - def period_start - @properties['period_start'] - end - - ## - # @return [Time] The end date till report data is included - def period_end - @properties['period_end'] - end - - ## - # @return [Time] Updated time of the report - def updated - @properties['updated'] - end - - ## - # @return [String] Represents total number of pages fetched report has - def total_pages - @properties['total_pages'] - end - - ## - # @return [String] Page offset required for pagination - def page - @properties['page'] - end - - ## - # @return [Array] List of report breakdown - def rows - @properties['rows'] - end - - ## - # @return [String] The URL of this resource. - def url - @properties['url'] - end - - ## - # Fetch the InsightsConversationalAiInstance - # @param [String] max_rows Maximum number of rows to return - # @param [String] report_id The type of report required to fetch.Like gauge,channel-metrics,queue-metrics - # @param [Granularity] granularity The time period for which report is needed - # @param [Time] include_date A reference date that should be included in the returned period - # @return [InsightsConversationalAiInstance] Fetched InsightsConversationalAiInstance - def fetch( - max_rows: :unset, - report_id: :unset, - granularity: :unset, - include_date: :unset - ) - - context.fetch( - max_rows: max_rows, - report_id: report_id, - granularity: granularity, - include_date: include_date, - ) - end - - ## - # Provide a user friendly representation - def to_s - values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") - "" - end - - ## - # Provide a detailed, user friendly representation - def inspect - values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") - "" - end - end - - end - end - end -end diff --git a/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb b/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb deleted file mode 100644 index ed3459267..000000000 --- a/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb +++ /dev/null @@ -1,255 +0,0 @@ -## -# This code was generated by -# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ -# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ -# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ -# -# Twilio - Flex -# This is the public Twilio REST API. -# -# NOTE: This class is auto generated by OpenAPI Generator. -# https://openapi-generator.tech -# Do not edit the class manually. -# - - -module Twilio - module REST - class FlexApi < FlexApiBase - class V1 < Version - class InsightsConversationalAiReportInsightsList < ListResource - - ## - # Initialize the InsightsConversationalAiReportInsightsList - # @param [Version] version Version that contains the resource - # @return [InsightsConversationalAiReportInsightsList] InsightsConversationalAiReportInsightsList - def initialize(version) - super(version) - # Path Solution - @solution = { } - - - end - - - - # Provide a user friendly representation - def to_s - '#' - end - end - - - ## - #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com. - class InsightsConversationalAiReportInsightsContext < InstanceContext - ## - # Initialize the InsightsConversationalAiReportInsightsContext - # @param [Version] version Version that contains the resource - # @param [String] instance_sid The Instance SID of the instance for which report insights will be fetched - # @return [InsightsConversationalAiReportInsightsContext] InsightsConversationalAiReportInsightsContext - def initialize(version, instance_sid) - super(version) - - # Path Solution - @solution = { instance_sid: instance_sid, } - @uri = "/Insights/Instances/#{@solution[:instance_sid]}/AI/ReportInsights" - - - end - ## - # Fetch the InsightsConversationalAiReportInsightsInstance - # @param [String] max_rows Maximum number of rows to return - # @param [String] report_id The type of report insights required to fetch.Like gauge,channel-metrics,queue-metrics - # @param [String] granularity The time period for which report insights is needed - # @param [Time] include_date A reference date that should be included in the returned period - # @return [InsightsConversationalAiReportInsightsInstance] Fetched InsightsConversationalAiReportInsightsInstance - def fetch( - max_rows: :unset, - report_id: :unset, - granularity: :unset, - include_date: :unset - ) - - params = Twilio::Values.of({ - 'MaxRows' => max_rows, - 'ReportId' => report_id, - 'Granularity' => granularity, - 'IncludeDate' => Twilio.serialize_iso8601_datetime(include_date), - }) - - payload = @version.fetch('GET', @uri, params: params) - InsightsConversationalAiReportInsightsInstance.new( - @version, - payload, - instance_sid: @solution[:instance_sid], - ) - end - - - ## - # Provide a user friendly representation - def to_s - context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') - "#" - end - - ## - # Provide a detailed, user friendly representation - def inspect - context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') - "#" - end - end - - class InsightsConversationalAiReportInsightsPage < Page - ## - # Initialize the InsightsConversationalAiReportInsightsPage - # @param [Version] version Version that contains the resource - # @param [Response] response Response from the API - # @param [Hash] solution Path solution for the resource - # @return [InsightsConversationalAiReportInsightsPage] InsightsConversationalAiReportInsightsPage - def initialize(version, response, solution) - super(version, response) - - # Path Solution - @solution = solution - end - - ## - # Build an instance of InsightsConversationalAiReportInsightsInstance - # @param [Hash] payload Payload response from the API - # @return [InsightsConversationalAiReportInsightsInstance] InsightsConversationalAiReportInsightsInstance - def get_instance(payload) - InsightsConversationalAiReportInsightsInstance.new(@version, payload) - end - - ## - # Provide a user friendly representation - def to_s - '' - end - end - class InsightsConversationalAiReportInsightsInstance < InstanceResource - ## - # Initialize the InsightsConversationalAiReportInsightsInstance - # @param [Version] version Version that contains the resource - # @param [Hash] payload payload that contains response from Twilio - # @param [String] account_sid The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this InsightsConversationalAiReportInsights - # resource. - # @param [String] sid The SID of the Call resource to fetch. - # @return [InsightsConversationalAiReportInsightsInstance] InsightsConversationalAiReportInsightsInstance - def initialize(version, payload , instance_sid: nil) - super(version) - - # Marshaled Properties - @properties = { - 'instance_sid' => payload['instance_sid'], - 'report_id' => payload['report_id'], - 'period_start' => Twilio.deserialize_iso8601_datetime(payload['period_start']), - 'period_end' => Twilio.deserialize_iso8601_datetime(payload['period_end']), - 'updated' => Twilio.deserialize_iso8601_datetime(payload['updated']), - 'insights' => payload['insights'], - 'url' => payload['url'], - } - - # Context - @instance_context = nil - @params = { 'instance_sid' => instance_sid || @properties['instance_sid'] , } - end - - ## - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context - # @return [InsightsConversationalAiReportInsightsContext] CallContext for this CallInstance - def context - unless @instance_context - @instance_context = InsightsConversationalAiReportInsightsContext.new(@version , @params['instance_sid']) - end - @instance_context - end - - ## - # @return [String] The Instance SID of the instance for which report insights is fetched - def instance_sid - @properties['instance_sid'] - end - - ## - # @return [String] The type of report insights required to fetch.Like gauge,channel-metrics,queue-metrics - def report_id - @properties['report_id'] - end - - ## - # @return [Time] The start date from which report insights data is included - def period_start - @properties['period_start'] - end - - ## - # @return [Time] The end date till report insights data is included - def period_end - @properties['period_end'] - end - - ## - # @return [Time] Updated time of the report insights - def updated - @properties['updated'] - end - - ## - # @return [Array] List of report insights breakdown - def insights - @properties['insights'] - end - - ## - # @return [String] The URL of this resource - def url - @properties['url'] - end - - ## - # Fetch the InsightsConversationalAiReportInsightsInstance - # @param [String] max_rows Maximum number of rows to return - # @param [String] report_id The type of report insights required to fetch.Like gauge,channel-metrics,queue-metrics - # @param [String] granularity The time period for which report insights is needed - # @param [Time] include_date A reference date that should be included in the returned period - # @return [InsightsConversationalAiReportInsightsInstance] Fetched InsightsConversationalAiReportInsightsInstance - def fetch( - max_rows: :unset, - report_id: :unset, - granularity: :unset, - include_date: :unset - ) - - context.fetch( - max_rows: max_rows, - report_id: report_id, - granularity: granularity, - include_date: include_date, - ) - end - - ## - # Provide a user friendly representation - def to_s - values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") - "" - end - - ## - # Provide a detailed, user friendly representation - def inspect - values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") - "" - end - end - - end - end - end -end diff --git a/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb b/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb index 5455fad83..c6ffdd116 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb @@ -37,15 +37,18 @@ def initialize(version, interaction_sid: nil, channel_sid: nil) # Create the InteractionChannelParticipantInstance # @param [Type] type # @param [Object] media_properties JSON representing the Media Properties for the new Participant. + # @param [Object] routing_properties Object representing the Routing Properties for the new Participant. # @return [InteractionChannelParticipantInstance] Created InteractionChannelParticipantInstance def create( type: nil, - media_properties: nil + media_properties: nil, + routing_properties: :unset ) data = Twilio::Values.of({ 'Type' => type, 'MediaProperties' => Twilio.serialize_object(media_properties), + 'RoutingProperties' => Twilio.serialize_object(routing_properties), }) @@ -256,6 +259,7 @@ def initialize(version, payload , interaction_sid: nil, channel_sid: nil, sid: n 'interaction_sid' => payload['interaction_sid'], 'channel_sid' => payload['channel_sid'], 'url' => payload['url'], + 'routing_properties' => payload['routing_properties'], } # Context @@ -304,6 +308,12 @@ def url @properties['url'] end + ## + # @return [Hash] The Participant's routing properties. + def routing_properties + @properties['routing_properties'] + end + ## # Update the InteractionChannelParticipantInstance # @param [Status] status diff --git a/lib/twilio-ruby/rest/lookups/v2/phone_number.rb b/lib/twilio-ruby/rest/lookups/v2/phone_number.rb index 5bc0a0d7d..871c370ff 100644 --- a/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +++ b/lib/twilio-ruby/rest/lookups/v2/phone_number.rb @@ -59,7 +59,7 @@ def initialize(version, phone_number) end ## # Fetch the PhoneNumberInstance - # @param [String] fields A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match, reassigned_number. + # @param [String] fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score. # @param [String] country_code The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format. # @param [String] first_name User’s first name. This query parameter is only used (optionally) for identity_match package requests. # @param [String] last_name User’s last name. This query parameter is only used (optionally) for identity_match package requests. @@ -181,7 +181,7 @@ def initialize(version, payload , phone_number: nil) 'caller_name' => payload['caller_name'], 'sim_swap' => payload['sim_swap'], 'call_forwarding' => payload['call_forwarding'], - 'live_activity' => payload['live_activity'], + 'line_status' => payload['line_status'], 'line_type_intelligence' => payload['line_type_intelligence'], 'identity_match' => payload['identity_match'], 'reassigned_number' => payload['reassigned_number'], @@ -261,9 +261,9 @@ def call_forwarding end ## - # @return [Hash] An object that contains live activity information for a mobile phone number. - def live_activity - @properties['live_activity'] + # @return [Hash] An object that contains line status information for a mobile phone number. + def line_status + @properties['line_status'] end ## @@ -304,7 +304,7 @@ def url ## # Fetch the PhoneNumberInstance - # @param [String] fields A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match, reassigned_number. + # @param [String] fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score. # @param [String] country_code The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format. # @param [String] first_name User’s first name. This query parameter is only used (optionally) for identity_match package requests. # @param [String] last_name User’s last name. This query parameter is only used (optionally) for identity_match package requests. diff --git a/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb b/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb index 1dbdc8add..fe86d6611 100644 --- a/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +++ b/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb @@ -53,7 +53,7 @@ def initialize(version) # @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number. # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number. # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number. - # @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number. + # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. # @param [String] external_reference_id An optional external reference ID supplied by customer and echoed back on status retrieval. # @return [TollfreeVerificationInstance] Created TollfreeVerificationInstance def create( @@ -283,7 +283,7 @@ def fetch # @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number. # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number. # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number. - # @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number. + # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. # @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'. # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance def update( @@ -436,6 +436,7 @@ def initialize(version, payload , sid: nil) 'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i, 'edit_expiration' => Twilio.deserialize_iso8601_datetime(payload['edit_expiration']), 'edit_allowed' => payload['edit_allowed'], + 'rejection_reasons' => payload['rejection_reasons'], 'resource_links' => payload['resource_links'], 'external_reference_id' => payload['external_reference_id'], } @@ -565,7 +566,7 @@ def business_contact_email end ## - # @return [String] The phone number of the contact for the business or organization using the Tollfree number. + # @return [String] The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. def business_contact_phone @properties['business_contact_phone'] end @@ -660,6 +661,12 @@ def edit_allowed @properties['edit_allowed'] end + ## + # @return [Array] A list of rejection reasons and codes describing why a Tollfree Verification has been rejected. + def rejection_reasons + @properties['rejection_reasons'] + end + ## # @return [Hash] The URLs of the documents associated with the Tollfree Verification resource. def resource_links @@ -709,7 +716,7 @@ def fetch # @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number. # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number. # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number. - # @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number. + # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. # @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'. # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance def update( diff --git a/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb b/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb index d1a2468be..8950d468d 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb @@ -35,7 +35,7 @@ def initialize(version) # @param [EndUserType] end_user_type # @param [PhoneNumberType] phone_number_type # @param [BusinessIdentityType] business_identity_type - # @param [String] business_registration_authority The authority that registered the business + # @param [BusinessRegistrationAuthority] business_registration_authority # @param [String] business_legal_name he name of the business or organization using the Tollfree number. # @param [String] notification_email he email address to receive the notification about the verification result. # @param [Boolean] accepted_notification_receipt The email address to receive the notification about the verification result. @@ -62,6 +62,12 @@ def initialize(version) # @param [Boolean] use_address_as_emergency_address Use the business address as the emergency address # @param [String] file_name The name of the verification document to upload # @param [String] file The verification document to upload + # @param [String] first_name The first name of the Individual User. + # @param [String] last_name The last name of the Individual User. + # @param [String] date_of_birth The date of birth of the Individual User. + # @param [String] individual_email The email address of the Individual User. + # @param [String] individual_phone The phone number of the Individual User. + # @param [Boolean] is_isv_embed Indicates if the inquiry is being started from an ISV embedded component. # @return [ComplianceRegistrationInquiriesInstance] Created ComplianceRegistrationInquiriesInstance def create( end_user_type: nil, @@ -93,7 +99,13 @@ def create( emergency_address_country_code: :unset, use_address_as_emergency_address: :unset, file_name: :unset, - file: :unset + file: :unset, + first_name: :unset, + last_name: :unset, + date_of_birth: :unset, + individual_email: :unset, + individual_phone: :unset, + is_isv_embed: :unset ) data = Twilio::Values.of({ @@ -127,6 +139,12 @@ def create( 'UseAddressAsEmergencyAddress' => use_address_as_emergency_address, 'FileName' => file_name, 'File' => file, + 'FirstName' => first_name, + 'LastName' => last_name, + 'DateOfBirth' => date_of_birth, + 'IndividualEmail' => individual_email, + 'IndividualPhone' => individual_phone, + 'IsIsvEmbed' => is_isv_embed, })