Skip to content

Commit 4e42d09

Browse files
committed
[Librarian] Regenerated @ 2264f28906b87ae1f1aedbf72f8dc0e4b57a545a
1 parent 31dc0e3 commit 4e42d09

26 files changed

+3672
-18
lines changed

CHANGES.md

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

4+
[2024-03-12] Version 7.0.1
5+
--------------------------
6+
**Library - Fix**
7+
- [PR #738](https://github.com/twilio/twilio-csharp/pull/738): adding support for net35 net462 and netstandard2.1. Thanks to [@sbansla](https://github.com/sbansla)!
8+
9+
**Library - Chore**
10+
- [PR #735](https://github.com/twilio/twilio-csharp/pull/735): skipping duplicate nuget push. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
11+
12+
**Api**
13+
- Correct precedence documentation for application_sid vs status_callback in message creation
14+
- Mark MaxPrice as deprecated
15+
16+
**Flex**
17+
- Making `plugins` visibility to public
18+
19+
**Messaging**
20+
- Add new `errors` attribute to the Brand Registration resource.
21+
- Mark `brand_feedback` attribute as deprecated.
22+
- Mark `failure_reason` attribute as deprecated.
23+
- 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`.
24+
25+
**Numbers**
26+
- Correcting mount_name for porting port in fetch API
27+
28+
**Trusthub**
29+
- Add new field in statusCallbackUrl in compliance_registration.
30+
- Add new field in isvRegisteringForSelfOrTenant in compliance_registration.
31+
32+
**Twiml**
33+
- Expanded description of Action parameter for Message verb
34+
35+
436
[2024-02-27] Version 7.0.0
537
--------------------------
638
**Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md#2024-02-XX-6xx-to-7xx) for detailed migration notes.

src/Twilio/Rest/Api/V2010/Account/MessageOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public class CreateMessageOptions : IOptions<MessageResource>
3737
///<summary> 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). </summary>
3838
public Uri StatusCallback { get; set; }
3939

40-
///<summary> 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. </summary>
40+
///<summary> 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. </summary>
4141
public string ApplicationSid { get; set; }
4242

43-
///<summary> 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`. </summary>
43+
///<summary> [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03. </summary>
4444
public decimal? MaxPrice { get; set; }
4545

4646
///<summary> 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`. </summary>

src/Twilio/Rest/Api/V2010/Account/MessageResource.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ public static async System.Threading.Tasks.Task<MessageResource> CreateAsync(Cre
182182
/// <param name="mediaUrl"> The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. </param>
183183
/// <param name="contentSid"> For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources). </param>
184184
/// <param name="statusCallback"> 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). </param>
185-
/// <param name="applicationSid"> 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. </param>
186-
/// <param name="maxPrice"> 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`. </param>
185+
/// <param name="applicationSid"> 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. </param>
186+
/// <param name="maxPrice"> [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03. </param>
187187
/// <param name="provideFeedback"> 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`. </param>
188188
/// <param name="attempt"> Total number of attempts made (including this request) to send the message regardless of the provider used </param>
189189
/// <param name="validityPeriod"> 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) </param>
@@ -241,8 +241,8 @@ public static MessageResource Create(
241241
/// <param name="mediaUrl"> The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. </param>
242242
/// <param name="contentSid"> For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources). </param>
243243
/// <param name="statusCallback"> 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). </param>
244-
/// <param name="applicationSid"> 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. </param>
245-
/// <param name="maxPrice"> 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`. </param>
244+
/// <param name="applicationSid"> 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. </param>
245+
/// <param name="maxPrice"> [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03. </param>
246246
/// <param name="provideFeedback"> 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`. </param>
247247
/// <param name="attempt"> Total number of attempts made (including this request) to send the message regardless of the provider used </param>
248248
/// <param name="validityPeriod"> 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) </param>
Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Flex
8+
* This is the public Twilio REST API.
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator.
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
using System;
17+
using System.Collections.Generic;
18+
using Twilio.Base;
19+
using Twilio.Converters;
20+
21+
22+
23+
24+
namespace Twilio.Rest.FlexApi.V1.Plugin
25+
{
26+
27+
/// <summary> create </summary>
28+
public class CreatePluginVersionsOptions : IOptions<PluginVersionsResource>
29+
{
30+
31+
///<summary> The SID of the Flex Plugin the resource to belongs to. </summary>
32+
public string PathPluginSid { get; }
33+
34+
///<summary> The Flex Plugin Version's version. </summary>
35+
public string Version { get; }
36+
37+
///<summary> The URL of the Flex Plugin Version bundle </summary>
38+
public Uri PluginUrl { get; }
39+
40+
///<summary> The Flex-Metadata HTTP request header </summary>
41+
public string FlexMetadata { get; set; }
42+
43+
///<summary> The changelog of the Flex Plugin Version. </summary>
44+
public string Changelog { get; set; }
45+
46+
///<summary> Whether this Flex Plugin Version requires authorization. </summary>
47+
public bool? Private { get; set; }
48+
49+
50+
/// <summary> Construct a new CreatePluginVersionOptions </summary>
51+
/// <param name="pathPluginSid"> The SID of the Flex Plugin the resource to belongs to. </param>
52+
/// <param name="version"> The Flex Plugin Version's version. </param>
53+
/// <param name="pluginUrl"> The URL of the Flex Plugin Version bundle </param>
54+
public CreatePluginVersionsOptions(string pathPluginSid, string version, Uri pluginUrl)
55+
{
56+
PathPluginSid = pathPluginSid;
57+
Version = version;
58+
PluginUrl = pluginUrl;
59+
}
60+
61+
62+
/// <summary> Generate the necessary parameters </summary>
63+
public List<KeyValuePair<string, string>> GetParams()
64+
{
65+
var p = new List<KeyValuePair<string, string>>();
66+
67+
if (Version != null)
68+
{
69+
p.Add(new KeyValuePair<string, string>("Version", Version));
70+
}
71+
if (PluginUrl != null)
72+
{
73+
p.Add(new KeyValuePair<string, string>("PluginUrl", Serializers.Url(PluginUrl)));
74+
}
75+
if (Changelog != null)
76+
{
77+
p.Add(new KeyValuePair<string, string>("Changelog", Changelog));
78+
}
79+
if (Private != null)
80+
{
81+
p.Add(new KeyValuePair<string, string>("Private", Private.Value.ToString().ToLower()));
82+
}
83+
return p;
84+
}
85+
86+
87+
/// <summary> Generate the necessary header parameters </summary>
88+
public List<KeyValuePair<string, string>> GetHeaderParams()
89+
{
90+
var p = new List<KeyValuePair<string, string>>();
91+
if (FlexMetadata != null)
92+
{
93+
p.Add(new KeyValuePair<string, string>("Flex-Metadata", FlexMetadata));
94+
}
95+
return p;
96+
}
97+
98+
}
99+
/// <summary> fetch </summary>
100+
public class FetchPluginVersionsOptions : IOptions<PluginVersionsResource>
101+
{
102+
103+
///<summary> The SID of the Flex Plugin the resource to belongs to. </summary>
104+
public string PathPluginSid { get; }
105+
106+
///<summary> The SID of the Flex Plugin Version resource to fetch. </summary>
107+
public string PathSid { get; }
108+
109+
///<summary> The Flex-Metadata HTTP request header </summary>
110+
public string FlexMetadata { get; set; }
111+
112+
113+
114+
/// <summary> Construct a new FetchPluginVersionOptions </summary>
115+
/// <param name="pathPluginSid"> The SID of the Flex Plugin the resource to belongs to. </param>
116+
/// <param name="pathSid"> The SID of the Flex Plugin Version resource to fetch. </param>
117+
public FetchPluginVersionsOptions(string pathPluginSid, string pathSid)
118+
{
119+
PathPluginSid = pathPluginSid;
120+
PathSid = pathSid;
121+
}
122+
123+
124+
/// <summary> Generate the necessary parameters </summary>
125+
public List<KeyValuePair<string, string>> GetParams()
126+
{
127+
var p = new List<KeyValuePair<string, string>>();
128+
129+
return p;
130+
}
131+
132+
133+
/// <summary> Generate the necessary header parameters </summary>
134+
public List<KeyValuePair<string, string>> GetHeaderParams()
135+
{
136+
var p = new List<KeyValuePair<string, string>>();
137+
if (FlexMetadata != null)
138+
{
139+
p.Add(new KeyValuePair<string, string>("Flex-Metadata", FlexMetadata));
140+
}
141+
return p;
142+
}
143+
144+
}
145+
146+
147+
/// <summary> read </summary>
148+
public class ReadPluginVersionsOptions : ReadOptions<PluginVersionsResource>
149+
{
150+
151+
///<summary> The SID of the Flex Plugin the resource to belongs to. </summary>
152+
public string PathPluginSid { get; }
153+
154+
///<summary> The Flex-Metadata HTTP request header </summary>
155+
public string FlexMetadata { get; set; }
156+
157+
158+
159+
/// <summary> Construct a new ListPluginVersionOptions </summary>
160+
/// <param name="pathPluginSid"> The SID of the Flex Plugin the resource to belongs to. </param>
161+
public ReadPluginVersionsOptions(string pathPluginSid)
162+
{
163+
PathPluginSid = pathPluginSid;
164+
}
165+
166+
167+
/// <summary> Generate the necessary parameters </summary>
168+
public List<KeyValuePair<string, string>> GetParams()
169+
{
170+
var p = new List<KeyValuePair<string, string>>();
171+
172+
if (PageSize != null)
173+
{
174+
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));
175+
}
176+
return p;
177+
}
178+
179+
180+
/// <summary> Generate the necessary header parameters </summary>
181+
public List<KeyValuePair<string, string>> GetHeaderParams()
182+
{
183+
var p = new List<KeyValuePair<string, string>>();
184+
if (FlexMetadata != null)
185+
{
186+
p.Add(new KeyValuePair<string, string>("Flex-Metadata", FlexMetadata));
187+
}
188+
return p;
189+
}
190+
191+
}
192+
193+
}
194+

0 commit comments

Comments
 (0)