Skip to content

Commit

Permalink
[Librarian] Regenerated @ b894abe9525247ea4345d78891244817d397f6de f8…
Browse files Browse the repository at this point in the history
…0058eb415516baff0287784518c3a22be1b1b6
  • Loading branch information
twilio-dx committed Apr 4, 2024
1 parent 81beeff commit 685ed18
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 38 deletions.
25 changes: 25 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
twilio-ruby changelog
=====================

[2024-04-04] Version 7.0.1
--------------------------
**Api**
- Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.

**Flex**
- Remove optional parameter from `plugins` and it to `plugin_versions`

**Lookups**
- Add new `pre_fill` package to the lookup response

**Messaging**
- Cleanup api.messaging.next-gen from Messaging Services endpoints
- Readd Sending-Window after fixing test failure

**Verify**
- Add `whatsapp.msg_service_sid` and `whatsapp.from` parameters to create, update, get and list of services endpoints

**Voice**
- Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.

**Twiml**
- Add new `token_type` value `payment-method` for `Pay` verb


[2024-04-01] Version 7.0.0
--------------------------
**Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md#2024-01-19-6xx-to-7xx) for detailed migration notes.
Expand Down
44 changes: 22 additions & 22 deletions lib/twilio-ruby/rest/api/v2010/account/conference.rb

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions lib/twilio-ruby/rest/conversations/v1/conversation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def create(
# Lists ConversationInstance records from the API as a list.
# Unlike stream(), this operation is eager and will load `limit` records into
# memory before returning.
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
# @param [String] start_date Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
# @param [String] end_date Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
# @param [Integer] limit Upper limit for the number of records to return. stream()
# guarantees to never return more than limit. Default is no limit
Expand All @@ -112,8 +112,8 @@ def list(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_s
# Streams Instance records from the API as an Enumerable.
# This operation lazily loads records as efficiently as possible until the limit
# is reached.
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
# @param [String] start_date Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
# @param [String] end_date Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
# @param [Integer] limit Upper limit for the number of records to return. stream()
# guarantees to never return more than limit. Default is no limit
Expand Down Expand Up @@ -151,8 +151,8 @@ def each
##
# Retrieve a single page of ConversationInstance records from the API.
# Request is executed immediately.
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
# @param [String] start_date Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
# @param [String] end_date Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
# @param [String] page_token PageToken provided by the API
# @param [Integer] page_number Page Number, this value is simply for client state
Expand Down
6 changes: 0 additions & 6 deletions lib/twilio-ruby/rest/flex_api/v1/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,19 @@ def initialize(version)
# @param [String] unique_name The Flex Plugin's unique name.
# @param [String] friendly_name The Flex Plugin's friendly name.
# @param [String] description A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long
# @param [String] cli_version The version of Flex Plugins CLI used to create this plugin
# @param [String] validate_status The validation status of the plugin, indicating whether it has been validated
# @param [String] flex_metadata The Flex-Metadata HTTP request header
# @return [PluginInstance] Created PluginInstance
def create(
unique_name: nil,
friendly_name: :unset,
description: :unset,
cli_version: :unset,
validate_status: :unset,
flex_metadata: :unset
)

data = Twilio::Values.of({
'UniqueName' => unique_name,
'FriendlyName' => friendly_name,
'Description' => description,
'CliVersion' => cli_version,
'ValidateStatus' => validate_status,
})


Expand Down
6 changes: 6 additions & 0 deletions lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@ def initialize(version, plugin_sid: nil)
# @param [String] plugin_url The URL of the Flex Plugin Version bundle
# @param [String] changelog The changelog of the Flex Plugin Version.
# @param [Boolean] private Whether this Flex Plugin Version requires authorization.
# @param [String] cli_version The version of Flex Plugins CLI used to create this plugin
# @param [String] validate_status The validation status of the plugin, indicating whether it has been validated
# @param [String] flex_metadata The Flex-Metadata HTTP request header
# @return [PluginVersionsInstance] Created PluginVersionsInstance
def create(
version: nil,
plugin_url: nil,
changelog: :unset,
private: :unset,
cli_version: :unset,
validate_status: :unset,
flex_metadata: :unset
)

Expand All @@ -53,6 +57,8 @@ def create(
'PluginUrl' => plugin_url,
'Changelog' => changelog,
'Private' => private,
'CliVersion' => cli_version,
'ValidateStatus' => validate_status,
})


Expand Down
21 changes: 17 additions & 4 deletions lib/twilio-ruby/rest/lookups/v2/phone_number.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def initialize(version, phone_number)
end
##
# Fetch the PhoneNumberInstance
# @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] 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, pre_fill.
# @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.
Expand All @@ -70,6 +70,7 @@ def initialize(version, phone_number)
# @param [String] national_id User’s national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests.
# @param [String] date_of_birth User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
# @param [String] last_verified_date The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests.
# @param [String] verification_sid The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests.
# @return [PhoneNumberInstance] Fetched PhoneNumberInstance
def fetch(
fields: :unset,
Expand All @@ -84,7 +85,8 @@ def fetch(
address_country_code: :unset,
national_id: :unset,
date_of_birth: :unset,
last_verified_date: :unset
last_verified_date: :unset,
verification_sid: :unset
)

params = Twilio::Values.of({
Expand All @@ -101,6 +103,7 @@ def fetch(
'NationalId' => national_id,
'DateOfBirth' => date_of_birth,
'LastVerifiedDate' => last_verified_date,
'VerificationSid' => verification_sid,
})

payload = @version.fetch('GET', @uri, params: params)
Expand Down Expand Up @@ -185,6 +188,7 @@ def initialize(version, payload , phone_number: nil)
'reassigned_number' => payload['reassigned_number'],
'sms_pumping_risk' => payload['sms_pumping_risk'],
'phone_number_quality_score' => payload['phone_number_quality_score'],
'pre_fill' => payload['pre_fill'],
'url' => payload['url'],
}

Expand Down Expand Up @@ -294,6 +298,12 @@ def phone_number_quality_score
@properties['phone_number_quality_score']
end

##
# @return [Hash] An object that contains pre fill information. pre_fill will return PII information associated with the phone number like first name, last name, address line, country code, state and postal code.
def pre_fill
@properties['pre_fill']
end

##
# @return [String] The absolute URL of the resource.
def url
Expand All @@ -302,7 +312,7 @@ def url

##
# Fetch the PhoneNumberInstance
# @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] 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, pre_fill.
# @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.
Expand All @@ -315,6 +325,7 @@ def url
# @param [String] national_id User’s national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests.
# @param [String] date_of_birth User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
# @param [String] last_verified_date The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests.
# @param [String] verification_sid The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests.
# @return [PhoneNumberInstance] Fetched PhoneNumberInstance
def fetch(
fields: :unset,
Expand All @@ -329,7 +340,8 @@ def fetch(
address_country_code: :unset,
national_id: :unset,
date_of_birth: :unset,
last_verified_date: :unset
last_verified_date: :unset,
verification_sid: :unset
)

context.fetch(
Expand All @@ -346,6 +358,7 @@ def fetch(
national_id: national_id,
date_of_birth: date_of_birth,
last_verified_date: last_verified_date,
verification_sid: verification_sid,
)
end

Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/messaging/v1/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ def initialize(version, payload , sid: nil)
'usecase' => payload['usecase'],
'us_app_to_person_registered' => payload['us_app_to_person_registered'],
'use_inbound_webhook_on_number' => payload['use_inbound_webhook_on_number'],
'sending_windows' => payload['sending_windows'],
}

# Context
Expand Down Expand Up @@ -643,6 +644,12 @@ def use_inbound_webhook_on_number
@properties['use_inbound_webhook_on_number']
end

##
# @return [Hash] A list of Sending Windows, which indicate defined time ranges in which a message can be sent, in the UTC time zone. Each window is defined by two strings, labeled \"start_time\" and \"end_time\".
def sending_windows
@properties['sending_windows']
end

##
# Delete the ServiceInstance
# @return [Boolean] True if delete succeeds, false otherwise
Expand Down
Loading

0 comments on commit 685ed18

Please sign in to comment.