Skip to content

Commit 1e2add8

Browse files
committed
[Librarian] Regenerated @ 2264f28906b87ae1f1aedbf72f8dc0e4b57a545a
1 parent c84cb9b commit 1e2add8

File tree

16 files changed

+2838
-10
lines changed

16 files changed

+2838
-10
lines changed

CHANGES.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
twilio-ruby changelog
22
=====================
33

4+
[2024-03-12] Version 6.12.1
5+
---------------------------
6+
**Api**
7+
- Correct precedence documentation for application_sid vs status_callback in message creation
8+
- Mark MaxPrice as deprecated
9+
10+
**Flex**
11+
- Making `plugins` visibility to public
12+
13+
**Messaging**
14+
- Add new `errors` attribute to the Brand Registration resource.
15+
- Mark `brand_feedback` attribute as deprecated.
16+
- Mark `failure_reason` attribute as deprecated.
17+
- The new `errors` attribute is expected to provide additional information about Brand registration failures and feedback (if any has been provided by The Campaign Registry). Consumers should use this attribute instead of `brand_feedback` and `failure_reason`.
18+
19+
**Numbers**
20+
- Correcting mount_name for porting port in fetch API
21+
22+
**Trusthub**
23+
- Add new field in statusCallbackUrl in compliance_registration.
24+
- Add new field in isvRegisteringForSelfOrTenant in compliance_registration.
25+
26+
**Twiml**
27+
- Expanded description of Action parameter for Message verb
28+
29+
430
[2024-02-27] Version 6.12.0
531
---------------------------
632
**Library - Chore**

lib/twilio-ruby/rest/api/v2010/account/message.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def initialize(version, account_sid: nil)
3636
# Create the MessageInstance
3737
# @param [String] to The recipient's phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (for SMS/MMS) or [channel address](https://www.twilio.com/docs/messaging/channels), e.g. `whatsapp:+15552229999`.
3838
# @param [String] status_callback The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource).
39-
# @param [String] application_sid The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). If this parameter is provided, the `status_callback` parameter of this request is ignored; [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL.
40-
# @param [Float] max_price The maximum price in US dollars that you are willing to pay for this Message's delivery. The value can have up to four decimal places. When the `max_price` parameter is provided, the cost of a message is checked before it is sent. If the cost exceeds `max_price`, the message is not sent and the Message `status` is `failed`.
39+
# @param [String] application_sid The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. Note that the `status_callback` parameter of a request takes priority over the `application_sid` parameter; if both are included `application_sid` is ignored.
40+
# @param [Float] max_price [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03.
4141
# @param [Boolean] provide_feedback Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`.
4242
# @param [String] attempt Total number of attempts made (including this request) to send the message regardless of the provider used
4343
# @param [String] validity_period The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `14400`. Default value is `14400`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html)

lib/twilio-ruby/rest/flex_api/v1.rb

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ def initialize(domain)
3636
@insights_settings_comment = nil
3737
@insights_user_roles = nil
3838
@interaction = nil
39+
@plugins = nil
40+
@plugin_archive = nil
41+
@plugin_configurations = nil
42+
@plugin_configuration_archive = nil
43+
@plugin_releases = nil
44+
@plugin_version_archive = nil
3945
@provisioning_status = nil
4046
@web_channel = nil
4147
end
@@ -179,6 +185,112 @@ def interaction(sid=:unset)
179185
end
180186
end
181187
##
188+
# @param [String] sid The SID of the Flex Plugin resource to fetch.
189+
# @return [Twilio::REST::FlexApi::V1::PluginContext] if sid was passed.
190+
# @return [Twilio::REST::FlexApi::V1::PluginList]
191+
def plugins(sid=:unset)
192+
if sid.nil?
193+
raise ArgumentError, 'sid cannot be nil'
194+
end
195+
if sid == :unset
196+
@plugins ||= PluginList.new self
197+
else
198+
PluginContext.new(self, sid)
199+
end
200+
end
201+
##
202+
# @param [String] sid The SID of the Flex Plugin resource to archive.
203+
# @return [Twilio::REST::FlexApi::V1::PluginArchiveContext] if sid was passed.
204+
# @return [Twilio::REST::FlexApi::V1::PluginArchiveList]
205+
def plugin_archive(sid=:unset)
206+
if sid.nil?
207+
raise ArgumentError, 'sid cannot be nil'
208+
end
209+
if sid == :unset
210+
@plugin_archive ||= PluginArchiveList.new self
211+
else
212+
PluginArchiveContext.new(self, sid)
213+
end
214+
end
215+
##
216+
# @param [String] sid The SID of the Flex Plugin Configuration resource to fetch.
217+
# @return [Twilio::REST::FlexApi::V1::PluginConfigurationContext] if sid was passed.
218+
# @return [Twilio::REST::FlexApi::V1::PluginConfigurationList]
219+
def plugin_configurations(sid=:unset)
220+
if sid.nil?
221+
raise ArgumentError, 'sid cannot be nil'
222+
end
223+
if sid == :unset
224+
@plugin_configurations ||= PluginConfigurationList.new self
225+
else
226+
PluginConfigurationContext.new(self, sid)
227+
end
228+
end
229+
##
230+
# @param [String] sid The SID of the Flex Plugin Configuration resource to archive.
231+
# @return [Twilio::REST::FlexApi::V1::PluginConfigurationArchiveContext] if sid was passed.
232+
# @return [Twilio::REST::FlexApi::V1::PluginConfigurationArchiveList]
233+
def plugin_configuration_archive(sid=:unset)
234+
if sid.nil?
235+
raise ArgumentError, 'sid cannot be nil'
236+
end
237+
if sid == :unset
238+
@plugin_configuration_archive ||= PluginConfigurationArchiveList.new self
239+
else
240+
PluginConfigurationArchiveContext.new(self, sid)
241+
end
242+
end
243+
##
244+
# @param [String] sid The SID of the Flex Plugin Release resource to fetch.
245+
# @return [Twilio::REST::FlexApi::V1::PluginReleaseContext] if sid was passed.
246+
# @return [Twilio::REST::FlexApi::V1::PluginReleaseList]
247+
def plugin_releases(sid=:unset)
248+
if sid.nil?
249+
raise ArgumentError, 'sid cannot be nil'
250+
end
251+
if sid == :unset
252+
@plugin_releases ||= PluginReleaseList.new self
253+
else
254+
PluginReleaseContext.new(self, sid)
255+
end
256+
end
257+
##
258+
# @param [String] plugin_sid The SID of the Flex Plugin the resource to belongs to.
259+
# @param [String] sid The SID of the Flex Plugin Version resource to archive.
260+
# @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveContext] if pluginSid was passed.
261+
# @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveList]
262+
def plugin_version_archive(plugin_sid=:unset, sid=:unset)
263+
if plugin_sid.nil?
264+
raise ArgumentError, 'plugin_sid cannot be nil'
265+
end
266+
if sid.nil?
267+
raise ArgumentError, 'sid cannot be nil'
268+
end
269+
if plugin_sid == :unset && sid == :unset
270+
@plugin_version_archive ||= PluginVersionArchiveList.new self
271+
else
272+
PluginVersionArchiveContext.new(self, plugin_sid, sid)
273+
end
274+
end
275+
##
276+
# @param [String] plugin_sid The SID of the Flex Plugin the resource to belongs to.
277+
# @param [String] sid The SID of the Flex Plugin Version resource to archive.
278+
# @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveContext] if sid was passed.
279+
# @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveList]
280+
def plugin_version_archive(plugin_sid=:unset, sid=:unset)
281+
if plugin_sid.nil?
282+
raise ArgumentError, 'plugin_sid cannot be nil'
283+
end
284+
if sid.nil?
285+
raise ArgumentError, 'sid cannot be nil'
286+
end
287+
if plugin_sid == :unset && sid == :unset
288+
@plugin_version_archive ||= PluginVersionArchiveList.new self
289+
else
290+
PluginVersionArchiveContext.new(self, plugin_sid, sid)
291+
end
292+
end
293+
##
182294
# @return [Twilio::REST::FlexApi::V1::provisioningStatusContext]
183295
def provisioning_status
184296
@provisioning_status ||= ProvisioningStatusContext.new self

0 commit comments

Comments
 (0)