twilio-ruby 7.0.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a4a38fd0b06c066f1abfd88ed48d87b6851d097
4
- data.tar.gz: 31af551dd25aef5f129dc1c8d27046bb4431ca7b
3
+ metadata.gz: 87282b59934c59ef97afb9ec219bf3e4b84834b1
4
+ data.tar.gz: daab71d45a3dd7d2cf1a92b54303506c1f474de6
5
5
  SHA512:
6
- metadata.gz: 7bbd9b7c5ad4e884713d782cf99b7fca4db1e0dbcd70f6031e47b4f46eddbe9d5ccbf6a6133c2ba1158de4a395195d8b7d9510008afb6b9f73db5809fe921c27
7
- data.tar.gz: 4972f0169ad698d82348b659a6c50b5e59374e7537f40b99c48f0993a0b24d44ed022928a3379ada39c95c7e347e4d9cb953755cfe281ca8e5660c448b2e4ea0
6
+ metadata.gz: 675d66180d805096fc40152ec2de327a00a28e2bcd96784c454b3859a2aa51da4c70651822f9a99a581d8984f91940017b388d096b464db35f5917b204f6da21
7
+ data.tar.gz: 53c10c95ff94ee894cac40055152f0f439cd7c32dc51276839231673b5abf9fb82d88b11883730e5ef01ced4b50cd2fc7264baa68333efb799d82c657cdbb586
data/CHANGES.md CHANGED
@@ -1,6 +1,31 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2024-04-04] Version 7.0.1
5
+ --------------------------
6
+ **Api**
7
+ - Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.
8
+
9
+ **Flex**
10
+ - Remove optional parameter from `plugins` and it to `plugin_versions`
11
+
12
+ **Lookups**
13
+ - Add new `pre_fill` package to the lookup response
14
+
15
+ **Messaging**
16
+ - Cleanup api.messaging.next-gen from Messaging Services endpoints
17
+ - Readd Sending-Window after fixing test failure
18
+
19
+ **Verify**
20
+ - Add `whatsapp.msg_service_sid` and `whatsapp.from` parameters to create, update, get and list of services endpoints
21
+
22
+ **Voice**
23
+ - Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.
24
+
25
+ **Twiml**
26
+ - Add new `token_type` value `payment-method` for `Pay` verb
27
+
28
+
4
29
  [2024-04-01] Version 7.0.0
5
30
  --------------------------
6
31
  **Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md#2024-01-19-6xx-to-7xx) for detailed migration notes.
data/README.md CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
39
39
  To install using [Bundler][bundler] grab the latest stable version:
40
40
 
41
41
  ```ruby
42
- gem 'twilio-ruby', '~> 7.0.0'
42
+ gem 'twilio-ruby', '~> 7.0.1'
43
43
  ```
44
44
 
45
45
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
46
46
 
47
47
  ```bash
48
- gem install twilio-ruby -v 7.0.0
48
+ gem install twilio-ruby -v 7.0.1
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -37,12 +37,12 @@ module Twilio
37
37
  # Lists ConferenceInstance records from the API as a list.
38
38
  # Unlike stream(), this operation is eager and will load `limit` records into
39
39
  # memory before returning.
40
- # @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
41
- # @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
42
- # @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
43
- # @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
44
- # @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
45
- # @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
40
+ # @param [Date] date_created Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
41
+ # @param [Date] date_created_before Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
42
+ # @param [Date] date_created_after Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
43
+ # @param [Date] date_updated Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
44
+ # @param [Date] date_updated_before Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
45
+ # @param [Date] date_updated_after Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
46
46
  # @param [String] friendly_name The string that identifies the Conference resources to read.
47
47
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
48
48
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -71,12 +71,12 @@ module Twilio
71
71
  # Streams Instance records from the API as an Enumerable.
72
72
  # This operation lazily loads records as efficiently as possible until the limit
73
73
  # is reached.
74
- # @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
75
- # @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
76
- # @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
77
- # @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
78
- # @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
79
- # @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
74
+ # @param [Date] date_created Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
75
+ # @param [Date] date_created_before Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
76
+ # @param [Date] date_created_after Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
77
+ # @param [Date] date_updated Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
78
+ # @param [Date] date_updated_before Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
79
+ # @param [Date] date_updated_after Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
80
80
  # @param [String] friendly_name The string that identifies the Conference resources to read.
81
81
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
82
82
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -120,12 +120,12 @@ module Twilio
120
120
  ##
121
121
  # Retrieve a single page of ConferenceInstance records from the API.
122
122
  # Request is executed immediately.
123
- # @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
124
- # @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
125
- # @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
126
- # @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
127
- # @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
128
- # @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
123
+ # @param [Date] date_created Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
124
+ # @param [Date] date_created_before Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
125
+ # @param [Date] date_created_after Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
126
+ # @param [Date] date_updated Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
127
+ # @param [Date] date_updated_before Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
128
+ # @param [Date] date_updated_after Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
129
129
  # @param [String] friendly_name The string that identifies the Conference resources to read.
130
130
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
131
131
  # @param [String] page_token PageToken provided by the API
@@ -369,13 +369,13 @@ module Twilio
369
369
  end
370
370
 
371
371
  ##
372
- # @return [Time] The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
372
+ # @return [Time] The date and time in UTC that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
373
373
  def date_created
374
374
  @properties['date_created']
375
375
  end
376
376
 
377
377
  ##
378
- # @return [Time] The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
378
+ # @return [Time] The date and time in UTC that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
379
379
  def date_updated
380
380
  @properties['date_updated']
381
381
  end
@@ -387,7 +387,7 @@ module Twilio
387
387
  end
388
388
 
389
389
  ##
390
- # @return [String] A string that you assigned to describe this conference room. Maxiumum length is 128 characters.
390
+ # @return [String] A string that you assigned to describe this conference room. Maximum length is 128 characters.
391
391
  def friendly_name
392
392
  @properties['friendly_name']
393
393
  end
@@ -399,7 +399,7 @@ module Twilio
399
399
  end
400
400
 
401
401
  ##
402
- # @return [String] The unique string that that we created to identify this Conference resource.
402
+ # @return [String] The unique, Twilio-provided string used to identify this Conference resource.
403
403
  def sid
404
404
  @properties['sid']
405
405
  end
@@ -88,8 +88,8 @@ module Twilio
88
88
  # Lists ConversationInstance records from the API as a list.
89
89
  # Unlike stream(), this operation is eager and will load `limit` records into
90
90
  # memory before returning.
91
- # @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.
92
- # @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.
91
+ # @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.
92
+ # @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.
93
93
  # @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
94
94
  # @param [Integer] limit Upper limit for the number of records to return. stream()
95
95
  # guarantees to never return more than limit. Default is no limit
@@ -112,8 +112,8 @@ module Twilio
112
112
  # Streams Instance records from the API as an Enumerable.
113
113
  # This operation lazily loads records as efficiently as possible until the limit
114
114
  # is reached.
115
- # @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.
116
- # @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.
115
+ # @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.
116
+ # @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.
117
117
  # @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
118
118
  # @param [Integer] limit Upper limit for the number of records to return. stream()
119
119
  # guarantees to never return more than limit. Default is no limit
@@ -151,8 +151,8 @@ module Twilio
151
151
  ##
152
152
  # Retrieve a single page of ConversationInstance records from the API.
153
153
  # Request is executed immediately.
154
- # @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.
155
- # @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.
154
+ # @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.
155
+ # @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.
156
156
  # @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
157
157
  # @param [String] page_token PageToken provided by the API
158
158
  # @param [Integer] page_number Page Number, this value is simply for client state
@@ -38,6 +38,8 @@ module Twilio
38
38
  # @param [String] plugin_url The URL of the Flex Plugin Version bundle
39
39
  # @param [String] changelog The changelog of the Flex Plugin Version.
40
40
  # @param [Boolean] private Whether this Flex Plugin Version requires authorization.
41
+ # @param [String] cli_version The version of Flex Plugins CLI used to create this plugin
42
+ # @param [String] validate_status The validation status of the plugin, indicating whether it has been validated
41
43
  # @param [String] flex_metadata The Flex-Metadata HTTP request header
42
44
  # @return [PluginVersionsInstance] Created PluginVersionsInstance
43
45
  def create(
@@ -45,6 +47,8 @@ module Twilio
45
47
  plugin_url: nil,
46
48
  changelog: :unset,
47
49
  private: :unset,
50
+ cli_version: :unset,
51
+ validate_status: :unset,
48
52
  flex_metadata: :unset
49
53
  )
50
54
 
@@ -53,6 +57,8 @@ module Twilio
53
57
  'PluginUrl' => plugin_url,
54
58
  'Changelog' => changelog,
55
59
  'Private' => private,
60
+ 'CliVersion' => cli_version,
61
+ 'ValidateStatus' => validate_status,
56
62
  })
57
63
 
58
64
 
@@ -35,16 +35,12 @@ module Twilio
35
35
  # @param [String] unique_name The Flex Plugin's unique name.
36
36
  # @param [String] friendly_name The Flex Plugin's friendly name.
37
37
  # @param [String] description A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long
38
- # @param [String] cli_version The version of Flex Plugins CLI used to create this plugin
39
- # @param [String] validate_status The validation status of the plugin, indicating whether it has been validated
40
38
  # @param [String] flex_metadata The Flex-Metadata HTTP request header
41
39
  # @return [PluginInstance] Created PluginInstance
42
40
  def create(
43
41
  unique_name: nil,
44
42
  friendly_name: :unset,
45
43
  description: :unset,
46
- cli_version: :unset,
47
- validate_status: :unset,
48
44
  flex_metadata: :unset
49
45
  )
50
46
 
@@ -52,8 +48,6 @@ module Twilio
52
48
  'UniqueName' => unique_name,
53
49
  'FriendlyName' => friendly_name,
54
50
  'Description' => description,
55
- 'CliVersion' => cli_version,
56
- 'ValidateStatus' => validate_status,
57
51
  })
58
52
 
59
53
 
@@ -57,7 +57,7 @@ module Twilio
57
57
  end
58
58
  ##
59
59
  # Fetch the PhoneNumberInstance
60
- # @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.
60
+ # @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.
61
61
  # @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.
62
62
  # @param [String] first_name User’s first name. This query parameter is only used (optionally) for identity_match package requests.
63
63
  # @param [String] last_name User’s last name. This query parameter is only used (optionally) for identity_match package requests.
@@ -70,6 +70,7 @@ module Twilio
70
70
  # @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.
71
71
  # @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.
72
72
  # @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.
73
+ # @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.
73
74
  # @return [PhoneNumberInstance] Fetched PhoneNumberInstance
74
75
  def fetch(
75
76
  fields: :unset,
@@ -84,7 +85,8 @@ module Twilio
84
85
  address_country_code: :unset,
85
86
  national_id: :unset,
86
87
  date_of_birth: :unset,
87
- last_verified_date: :unset
88
+ last_verified_date: :unset,
89
+ verification_sid: :unset
88
90
  )
89
91
 
90
92
  params = Twilio::Values.of({
@@ -101,6 +103,7 @@ module Twilio
101
103
  'NationalId' => national_id,
102
104
  'DateOfBirth' => date_of_birth,
103
105
  'LastVerifiedDate' => last_verified_date,
106
+ 'VerificationSid' => verification_sid,
104
107
  })
105
108
 
106
109
  payload = @version.fetch('GET', @uri, params: params)
@@ -185,6 +188,7 @@ module Twilio
185
188
  'reassigned_number' => payload['reassigned_number'],
186
189
  'sms_pumping_risk' => payload['sms_pumping_risk'],
187
190
  'phone_number_quality_score' => payload['phone_number_quality_score'],
191
+ 'pre_fill' => payload['pre_fill'],
188
192
  'url' => payload['url'],
189
193
  }
190
194
 
@@ -294,6 +298,12 @@ module Twilio
294
298
  @properties['phone_number_quality_score']
295
299
  end
296
300
 
301
+ ##
302
+ # @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.
303
+ def pre_fill
304
+ @properties['pre_fill']
305
+ end
306
+
297
307
  ##
298
308
  # @return [String] The absolute URL of the resource.
299
309
  def url
@@ -302,7 +312,7 @@ module Twilio
302
312
 
303
313
  ##
304
314
  # Fetch the PhoneNumberInstance
305
- # @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.
315
+ # @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.
306
316
  # @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.
307
317
  # @param [String] first_name User’s first name. This query parameter is only used (optionally) for identity_match package requests.
308
318
  # @param [String] last_name User’s last name. This query parameter is only used (optionally) for identity_match package requests.
@@ -315,6 +325,7 @@ module Twilio
315
325
  # @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.
316
326
  # @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.
317
327
  # @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.
328
+ # @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.
318
329
  # @return [PhoneNumberInstance] Fetched PhoneNumberInstance
319
330
  def fetch(
320
331
  fields: :unset,
@@ -329,7 +340,8 @@ module Twilio
329
340
  address_country_code: :unset,
330
341
  national_id: :unset,
331
342
  date_of_birth: :unset,
332
- last_verified_date: :unset
343
+ last_verified_date: :unset,
344
+ verification_sid: :unset
333
345
  )
334
346
 
335
347
  context.fetch(
@@ -346,6 +358,7 @@ module Twilio
346
358
  national_id: national_id,
347
359
  date_of_birth: date_of_birth,
348
360
  last_verified_date: last_verified_date,
361
+ verification_sid: verification_sid,
349
362
  )
350
363
  end
351
364
 
@@ -487,6 +487,7 @@ module Twilio
487
487
  'usecase' => payload['usecase'],
488
488
  'us_app_to_person_registered' => payload['us_app_to_person_registered'],
489
489
  'use_inbound_webhook_on_number' => payload['use_inbound_webhook_on_number'],
490
+ 'sending_windows' => payload['sending_windows'],
490
491
  }
491
492
 
492
493
  # Context
@@ -643,6 +644,12 @@ module Twilio
643
644
  @properties['use_inbound_webhook_on_number']
644
645
  end
645
646
 
647
+ ##
648
+ # @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\".
649
+ def sending_windows
650
+ @properties['sending_windows']
651
+ end
652
+
646
653
  ##
647
654
  # Delete the ServiceInstance
648
655
  # @return [Boolean] True if delete succeeds, false otherwise
@@ -49,6 +49,8 @@ module Twilio
49
49
  # @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
50
50
  # @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
51
51
  # @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
52
+ # @param [String] whatsapp_msg_service_sid The SID of the Messaging Service containing WhatsApp Sender(s) that Verify will use to send WhatsApp messages to your users.
53
+ # @param [String] whatsapp_from The number to use as the WhatsApp Sender that Verify will use to send WhatsApp messages to your users.This WhatsApp Sender must be associated with a Messaging Service SID.
52
54
  # @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
53
55
  # @return [ServiceInstance] Created ServiceInstance
54
56
  def create(
@@ -69,6 +71,8 @@ module Twilio
69
71
  totp_code_length: :unset,
70
72
  totp_skew: :unset,
71
73
  default_template_sid: :unset,
74
+ whatsapp_msg_service_sid: :unset,
75
+ whatsapp_from: :unset,
72
76
  verify_event_subscription_enabled: :unset
73
77
  )
74
78
 
@@ -90,6 +94,8 @@ module Twilio
90
94
  'Totp.CodeLength' => totp_code_length,
91
95
  'Totp.Skew' => totp_skew,
92
96
  'DefaultTemplateSid' => default_template_sid,
97
+ 'Whatsapp.MsgServiceSid' => whatsapp_msg_service_sid,
98
+ 'Whatsapp.From' => whatsapp_from,
93
99
  'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
94
100
  })
95
101
 
@@ -259,6 +265,8 @@ module Twilio
259
265
  # @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
260
266
  # @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
261
267
  # @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
268
+ # @param [String] whatsapp_msg_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service.
269
+ # @param [String] whatsapp_from The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service.
262
270
  # @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
263
271
  # @return [ServiceInstance] Updated ServiceInstance
264
272
  def update(
@@ -279,6 +287,8 @@ module Twilio
279
287
  totp_code_length: :unset,
280
288
  totp_skew: :unset,
281
289
  default_template_sid: :unset,
290
+ whatsapp_msg_service_sid: :unset,
291
+ whatsapp_from: :unset,
282
292
  verify_event_subscription_enabled: :unset
283
293
  )
284
294
 
@@ -300,6 +310,8 @@ module Twilio
300
310
  'Totp.CodeLength' => totp_code_length,
301
311
  'Totp.Skew' => totp_skew,
302
312
  'DefaultTemplateSid' => default_template_sid,
313
+ 'Whatsapp.MsgServiceSid' => whatsapp_msg_service_sid,
314
+ 'Whatsapp.From' => whatsapp_from,
303
315
  'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
304
316
  })
305
317
 
@@ -510,6 +522,7 @@ module Twilio
510
522
  'push' => payload['push'],
511
523
  'totp' => payload['totp'],
512
524
  'default_template_sid' => payload['default_template_sid'],
525
+ 'whatsapp' => payload['whatsapp'],
513
526
  'verify_event_subscription_enabled' => payload['verify_event_subscription_enabled'],
514
527
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
515
528
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
@@ -617,6 +630,12 @@ module Twilio
617
630
  @properties['default_template_sid']
618
631
  end
619
632
 
633
+ ##
634
+ # @return [Hash]
635
+ def whatsapp
636
+ @properties['whatsapp']
637
+ end
638
+
620
639
  ##
621
640
  # @return [Boolean] Whether to allow verifications from the service to reach the stream-events sinks if configured
622
641
  def verify_event_subscription_enabled
@@ -682,6 +701,8 @@ module Twilio
682
701
  # @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
683
702
  # @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
684
703
  # @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
704
+ # @param [String] whatsapp_msg_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service.
705
+ # @param [String] whatsapp_from The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service.
685
706
  # @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
686
707
  # @return [ServiceInstance] Updated ServiceInstance
687
708
  def update(
@@ -702,6 +723,8 @@ module Twilio
702
723
  totp_code_length: :unset,
703
724
  totp_skew: :unset,
704
725
  default_template_sid: :unset,
726
+ whatsapp_msg_service_sid: :unset,
727
+ whatsapp_from: :unset,
705
728
  verify_event_subscription_enabled: :unset
706
729
  )
707
730
 
@@ -723,6 +746,8 @@ module Twilio
723
746
  totp_code_length: totp_code_length,
724
747
  totp_skew: totp_skew,
725
748
  default_template_sid: default_template_sid,
749
+ whatsapp_msg_service_sid: whatsapp_msg_service_sid,
750
+ whatsapp_from: whatsapp_from,
726
751
  verify_event_subscription_enabled: verify_event_subscription_enabled,
727
752
  )
728
753
  end
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '7.0.0'
2
+ VERSION = '7.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-01 00:00:00.000000000 Z
11
+ date: 2024-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt