Skip to content

Commit

Permalink
[Librarian] Regenerated @ 24dcf52b3ba6769ea21d08329aa544a79742b6c2
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Nov 17, 2023
1 parent ff04478 commit 4f35e50
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 110 deletions.
23 changes: 23 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
twilio-ruby changelog
=====================

[2023-11-17] Version 6.8.2
--------------------------
**Library - Chore**
- [PR #687](https://github.com/twilio/twilio-ruby/pull/687): remove more oauth refrences. Thanks to [@KobeBrooks](https://github.com/KobeBrooks)!

**Api**
- Update documentation to reflect RiskCheck GA

**Messaging**
- Add tollfree edit_allowed and edit_reason fields
- Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation

**Taskrouter**
- Add container attribute to task_queue_bulk_real_time_statistics endpoint

**Trusthub**
- Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json
- Add new optional field notification_email to compliance_tollfree_inquiry.json

**Verify**
- Add `Tags` optional parameter on Verification creation.


[2023-11-06] Version 6.8.1
--------------------------
**Flex**
Expand Down
1 change: 1 addition & 0 deletions lib/twilio-ruby/rest/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def notify
def numbers
@numbers ||= Numbers.new self
end
##
# Access the Preview Twilio Domain
def preview
@preview ||= Preview.new self
Expand Down
2 changes: 1 addition & 1 deletion lib/twilio-ruby/rest/insights/v1/call/annotation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def incident
end

##
# @return [String] The URL of this resource.
# @return [String]
def url
@properties['url']
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def date_updated
end

##
# @return [String]
# @return [String] The absolute URL of the ChannelSender resource.
def url
@properties['url']
end
Expand Down
17 changes: 15 additions & 2 deletions lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ def fetch
# @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] 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(
business_name: :unset,
Expand All @@ -301,7 +302,8 @@ def update(
business_contact_first_name: :unset,
business_contact_last_name: :unset,
business_contact_email: :unset,
business_contact_phone: :unset
business_contact_phone: :unset,
edit_reason: :unset
)

data = Twilio::Values.of({
Expand All @@ -325,6 +327,7 @@ def update(
'BusinessContactLastName' => business_contact_last_name,
'BusinessContactEmail' => business_contact_email,
'BusinessContactPhone' => business_contact_phone,
'EditReason' => edit_reason,
})

payload = @version.update('POST', @uri, data: data)
Expand Down Expand Up @@ -427,6 +430,7 @@ def initialize(version, payload , sid: nil)
'rejection_reason' => payload['rejection_reason'],
'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'],
'resource_links' => payload['resource_links'],
'external_reference_id' => payload['external_reference_id'],
}
Expand Down Expand Up @@ -645,6 +649,12 @@ def edit_expiration
@properties['edit_expiration']
end

##
# @return [Boolean] If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.
def edit_allowed
@properties['edit_allowed']
end

##
# @return [Hash] The URLs of the documents associated with the Tollfree Verification resource.
def resource_links
Expand Down Expand Up @@ -695,6 +705,7 @@ def fetch
# @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] 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(
business_name: :unset,
Expand All @@ -716,7 +727,8 @@ def update(
business_contact_first_name: :unset,
business_contact_last_name: :unset,
business_contact_email: :unset,
business_contact_phone: :unset
business_contact_phone: :unset,
edit_reason: :unset
)

context.update(
Expand All @@ -740,6 +752,7 @@ def update(
business_contact_last_name: business_contact_last_name,
business_contact_email: business_contact_email,
business_contact_phone: business_contact_phone,
edit_reason: edit_reason,
)
end

Expand Down
8 changes: 4 additions & 4 deletions lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def create(
# @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
# @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
# @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
# @param [Boolean] has_addons Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons.
# @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
# @param [Integer] limit Upper limit for the number of records to return. stream()
# guarantees to never return more than limit. Default is no limit
# @param [Integer] page_size Number of records to fetch per request, when
Expand Down Expand Up @@ -115,7 +115,7 @@ def list(priority: :unset, assignment_status: :unset, workflow_sid: :unset, work
# @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
# @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
# @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
# @param [Boolean] has_addons Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons.
# @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
# @param [Integer] limit Upper limit for the number of records to return. stream()
# guarantees to never return more than limit. Default is no limit
# @param [Integer] page_size Number of records to fetch per request, when
Expand Down Expand Up @@ -166,7 +166,7 @@ def each
# @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
# @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
# @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
# @param [Boolean] has_addons Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons.
# @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
# @param [String] page_token PageToken provided by the API
# @param [Integer] page_number Page Number, this value is simply for client state
# @param [Integer] page_size Number of records to return, defaults to 50
Expand Down Expand Up @@ -440,7 +440,7 @@ def attributes
end

##
# @return [String] An object that contains the [addon](https://www.twilio.com/docs/taskrouter/marketplace) data for all installed addons.
# @return [String] An object that contains the [Add-on](https://www.twilio.com/docs/add-ons) data for all installed Add-ons.
def addons
@properties['addons']
end
Expand Down
8 changes: 8 additions & 0 deletions lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def initialize(version, workspace_sid: nil)
@uri = "/Workspaces/#{@solution[:workspace_sid]}/TaskQueues"
# Components
@statistics = nil
@bulk_real_time_statistics = nil
end
##
# Create the TaskQueueInstance
Expand Down Expand Up @@ -184,6 +185,13 @@ def get_page(target_url)
def statistics
@statistics ||= TaskQueuesStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
end
##
# Access the bulk_real_time_statistics
# @return [TaskQueueBulkRealTimeStatisticsList]
# @return [TaskQueueBulkRealTimeStatisticsContext]
def bulk_real_time_statistics
@bulk_real_time_statistics ||= TaskQueueBulkRealTimeStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
end

# Provide a user friendly representation
def to_s
Expand Down
13 changes: 2 additions & 11 deletions lib/twilio-ruby/rest/trusthub/v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,9 @@ def compliance_inquiries(customer_id=:unset)
end
end
##
# @param [String] tollfree_id The unique TolfreeId matching the Compliance Tollfree Verification Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Tollfree Verification Inquiry creation call.
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesContext] if tollfreeId was passed.
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList]
def compliance_tollfree_inquiries(tollfree_id=:unset)
if tollfree_id.nil?
raise ArgumentError, 'tollfree_id cannot be nil'
end
if tollfree_id == :unset
@compliance_tollfree_inquiries ||= ComplianceTollfreeInquiriesList.new self
else
ComplianceTollfreeInquiriesContext.new(self, tollfree_id)
end
def compliance_tollfree_inquiries
@compliance_tollfree_inquiries ||= ComplianceTollfreeInquiriesList.new self
end
##
# @param [String] sid The unique string that we created to identify the Customer-Profile resource.
Expand Down
Loading

0 comments on commit 4f35e50

Please sign in to comment.