Skip to content

Commit aa51fbf

Browse files
committed
[Librarian] Regenerated @ 09a1ab1da70c180f61d4cf900865abf7d89eaa32
1 parent 5ae0fd5 commit aa51fbf

File tree

12 files changed

+50
-57
lines changed

12 files changed

+50
-57
lines changed

CHANGES.md

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

4+
[2023-04-19] Version 6.5.0
5+
--------------------------
6+
**Library - Docs**
7+
- [PR #679](https://github.com/twilio/twilio-csharp/pull/679): consolidate. Thanks to [@stern-shawn](https://github.com/stern-shawn)!
8+
9+
**Messaging**
10+
- Remove `messaging_service_sids` and `messaging_service_sid_action` from domain config endpoint **(breaking change)**
11+
- Add error_code and rejection_reason properties to tollfree verification API response
12+
13+
**Numbers**
14+
- Added the new Eligibility API under version `/v1`.
15+
16+
417
[2023-04-05] Version 6.4.0
518
--------------------------
619
**Library - Chore**

src/Twilio/Rest/Conversations/V1/ConversationOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ public List<KeyValuePair<string, string>> GetParams()
192192
public class ReadConversationOptions : ReadOptions<ConversationResource>
193193
{
194194

195-
///<summary> Start date in ISO8601 format for sorting and filtering list of Conversations. </summary>
195+
///<summary> 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. </summary>
196196
public string StartDate { get; set; }
197197

198-
///<summary> End date in ISO8601 format for sorting and filtering list of Conversations. </summary>
198+
///<summary> 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. </summary>
199199
public string EndDate { get; set; }
200200

201201
///<summary> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </summary>

src/Twilio/Rest/Conversations/V1/ConversationResource.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource
336336
}
337337
#endif
338338
/// <summary> Retrieve a list of conversations in your account's default service </summary>
339-
/// <param name="startDate"> Start date in ISO8601 format for sorting and filtering list of Conversations. </param>
340-
/// <param name="endDate"> End date in ISO8601 format for sorting and filtering list of Conversations. </param>
339+
/// <param name="startDate"> 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>
340+
/// <param name="endDate"> 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>
341341
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
342342
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
343343
/// <param name="limit"> Record limit </param>
@@ -357,8 +357,8 @@ public static ResourceSet<ConversationResource> Read(
357357

358358
#if !NET35
359359
/// <summary> Retrieve a list of conversations in your account's default service </summary>
360-
/// <param name="startDate"> Start date in ISO8601 format for sorting and filtering list of Conversations. </param>
361-
/// <param name="endDate"> End date in ISO8601 format for sorting and filtering list of Conversations. </param>
360+
/// <param name="startDate"> 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>
361+
/// <param name="endDate"> 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>
362362
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
363363
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
364364
/// <param name="limit"> Record limit </param>

src/Twilio/Rest/Conversations/V1/Service/ConversationOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ public class ReadConversationOptions : ReadOptions<ConversationResource>
214214
///<summary> The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. </summary>
215215
public string PathChatServiceSid { get; }
216216

217-
///<summary> Start date in ISO8601 format for sorting and filtering list of Conversations. </summary>
217+
///<summary> 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. </summary>
218218
public string StartDate { get; set; }
219219

220-
///<summary> End date in ISO8601 format for sorting and filtering list of Conversations. </summary>
220+
///<summary> 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. </summary>
221221
public string EndDate { get; set; }
222222

223223
///<summary> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </summary>

src/Twilio/Rest/Conversations/V1/Service/ConversationResource.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource
354354
#endif
355355
/// <summary> Retrieve a list of conversations in your service </summary>
356356
/// <param name="pathChatServiceSid"> The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. </param>
357-
/// <param name="startDate"> Start date in ISO8601 format for sorting and filtering list of Conversations. </param>
358-
/// <param name="endDate"> End date in ISO8601 format for sorting and filtering list of Conversations. </param>
357+
/// <param name="startDate"> 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>
358+
/// <param name="endDate"> 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>
359359
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
360360
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
361361
/// <param name="limit"> Record limit </param>
@@ -377,8 +377,8 @@ public static ResourceSet<ConversationResource> Read(
377377
#if !NET35
378378
/// <summary> Retrieve a list of conversations in your service </summary>
379379
/// <param name="pathChatServiceSid"> The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. </param>
380-
/// <param name="startDate"> Start date in ISO8601 format for sorting and filtering list of Conversations. </param>
381-
/// <param name="endDate"> End date in ISO8601 format for sorting and filtering list of Conversations. </param>
380+
/// <param name="startDate"> 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>
381+
/// <param name="endDate"> 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>
382382
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
383383
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
384384
/// <param name="limit"> Record limit </param>

src/Twilio/Rest/Messaging/V1/DomainConfigOptions.cs

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using System.Collections.Generic;
1818
using Twilio.Base;
1919
using Twilio.Converters;
20-
using System.Linq;
20+
2121

2222

2323

@@ -59,27 +59,19 @@ public class UpdateDomainConfigOptions : IOptions<DomainConfigResource>
5959
///<summary> Unique string used to identify the domain that this config should be associated with. </summary>
6060
public string PathDomainSid { get; }
6161

62-
///<summary> A list of messagingServiceSids (with prefix MG) </summary>
63-
public List<string> MessagingServiceSids { get; }
64-
6562
///<summary> Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping. </summary>
6663
public Uri FallbackUrl { get; set; }
6764

6865
///<summary> URL to receive click events to your webhook whenever the recipients click on the shortened links </summary>
6966
public Uri CallbackUrl { get; set; }
7067

71-
///<summary> An action type for messaging_service_sids operation (ADD, DELETE, REPLACE) </summary>
72-
public string MessagingServiceSidsAction { get; set; }
73-
7468

7569

7670
/// <summary> Construct a new UpdateDomainConfigOptions </summary>
7771
/// <param name="pathDomainSid"> Unique string used to identify the domain that this config should be associated with. </param>
78-
/// <param name="messagingServiceSids"> A list of messagingServiceSids (with prefix MG) </param>
79-
public UpdateDomainConfigOptions(string pathDomainSid, List<string> messagingServiceSids)
72+
public UpdateDomainConfigOptions(string pathDomainSid)
8073
{
8174
PathDomainSid = pathDomainSid;
82-
MessagingServiceSids = messagingServiceSids;
8375
}
8476

8577

@@ -88,10 +80,6 @@ public List<KeyValuePair<string, string>> GetParams()
8880
{
8981
var p = new List<KeyValuePair<string, string>>();
9082

91-
if (MessagingServiceSids != null)
92-
{
93-
p.AddRange(MessagingServiceSids.Select(MessagingServiceSids => new KeyValuePair<string, string>("MessagingServiceSids", MessagingServiceSids)));
94-
}
9583
if (FallbackUrl != null)
9684
{
9785
p.Add(new KeyValuePair<string, string>("FallbackUrl", Serializers.Url(FallbackUrl)));
@@ -100,10 +88,6 @@ public List<KeyValuePair<string, string>> GetParams()
10088
{
10189
p.Add(new KeyValuePair<string, string>("CallbackUrl", Serializers.Url(CallbackUrl)));
10290
}
103-
if (MessagingServiceSidsAction != null)
104-
{
105-
p.Add(new KeyValuePair<string, string>("MessagingServiceSidsAction", MessagingServiceSidsAction));
106-
}
10791
return p;
10892
}
10993

src/Twilio/Rest/Messaging/V1/DomainConfigResource.cs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -140,42 +140,34 @@ public static async System.Threading.Tasks.Task<DomainConfigResource> UpdateAsyn
140140

141141
/// <summary> update </summary>
142142
/// <param name="pathDomainSid"> Unique string used to identify the domain that this config should be associated with. </param>
143-
/// <param name="messagingServiceSids"> A list of messagingServiceSids (with prefix MG) </param>
144143
/// <param name="fallbackUrl"> Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping. </param>
145144
/// <param name="callbackUrl"> URL to receive click events to your webhook whenever the recipients click on the shortened links </param>
146-
/// <param name="messagingServiceSidsAction"> An action type for messaging_service_sids operation (ADD, DELETE, REPLACE) </param>
147145
/// <param name="client"> Client to make requests to Twilio </param>
148146
/// <returns> A single instance of DomainConfig </returns>
149147
public static DomainConfigResource Update(
150148
string pathDomainSid,
151-
List<string> messagingServiceSids,
152149
Uri fallbackUrl = null,
153150
Uri callbackUrl = null,
154-
string messagingServiceSidsAction = null,
155151
ITwilioRestClient client = null)
156152
{
157-
var options = new UpdateDomainConfigOptions(pathDomainSid, messagingServiceSids){ FallbackUrl = fallbackUrl, CallbackUrl = callbackUrl, MessagingServiceSidsAction = messagingServiceSidsAction };
153+
var options = new UpdateDomainConfigOptions(pathDomainSid){ FallbackUrl = fallbackUrl, CallbackUrl = callbackUrl };
158154
return Update(options, client);
159155
}
160156

161157
#if !NET35
162158
/// <summary> update </summary>
163159
/// <param name="pathDomainSid"> Unique string used to identify the domain that this config should be associated with. </param>
164-
/// <param name="messagingServiceSids"> A list of messagingServiceSids (with prefix MG) </param>
165160
/// <param name="fallbackUrl"> Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping. </param>
166161
/// <param name="callbackUrl"> URL to receive click events to your webhook whenever the recipients click on the shortened links </param>
167-
/// <param name="messagingServiceSidsAction"> An action type for messaging_service_sids operation (ADD, DELETE, REPLACE) </param>
168162
/// <param name="client"> Client to make requests to Twilio </param>
169163
/// <returns> Task that resolves to A single instance of DomainConfig </returns>
170164
public static async System.Threading.Tasks.Task<DomainConfigResource> UpdateAsync(
171165
string pathDomainSid,
172-
List<string> messagingServiceSids,
173166
Uri fallbackUrl = null,
174167
Uri callbackUrl = null,
175-
string messagingServiceSidsAction = null,
176168
ITwilioRestClient client = null)
177169
{
178-
var options = new UpdateDomainConfigOptions(pathDomainSid, messagingServiceSids){ FallbackUrl = fallbackUrl, CallbackUrl = callbackUrl, MessagingServiceSidsAction = messagingServiceSidsAction };
170+
var options = new UpdateDomainConfigOptions(pathDomainSid){ FallbackUrl = fallbackUrl, CallbackUrl = callbackUrl };
179171
return await UpdateAsync(options, client);
180172
}
181173
#endif
@@ -206,10 +198,6 @@ public static DomainConfigResource FromJson(string json)
206198
[JsonProperty("config_sid")]
207199
public string ConfigSid { get; private set; }
208200

209-
///<summary> A list of messagingServiceSids (with prefix MG). </summary>
210-
[JsonProperty("messaging_service_sids")]
211-
public List<string> MessagingServiceSids { get; private set; }
212-
213201
///<summary> Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping. </summary>
214202
[JsonProperty("fallback_url")]
215203
public Uri FallbackUrl { get; private set; }

src/Twilio/Rest/Messaging/V1/TollfreeVerificationResource.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,14 @@ public static TollfreeVerificationResource FromJson(string json)
696696
[JsonProperty("url")]
697697
public Uri Url { get; private set; }
698698

699+
///<summary> The rejection reason given when a Tollfree Verification has been rejected. </summary>
700+
[JsonProperty("rejection_reason")]
701+
public string RejectionReason { get; private set; }
702+
703+
///<summary> The error code given when a Tollfree Verification has been rejected. </summary>
704+
[JsonProperty("error_code")]
705+
public int? ErrorCode { get; private set; }
706+
699707
///<summary> The URLs of the documents associated with the Tollfree Verification resource. </summary>
700708
[JsonProperty("resource_links")]
701709
public object ResourceLinks { get; private set; }

src/Twilio/Rest/Verify/V2/ServiceOptions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Twilio.Rest.Verify.V2
2828
public class CreateServiceOptions : IOptions<ServiceResource>
2929
{
3030

31-
///<summary> A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** </summary>
31+
///<summary> A descriptive string that you create to describe the verification service. It can be up to 32 characters long. **This value should not contain PII.** </summary>
3232
public string FriendlyName { get; }
3333

3434
///<summary> The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. </summary>
@@ -81,7 +81,7 @@ public class CreateServiceOptions : IOptions<ServiceResource>
8181

8282

8383
/// <summary> Construct a new CreateServiceOptions </summary>
84-
/// <param name="friendlyName"> A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** </param>
84+
/// <param name="friendlyName"> A descriptive string that you create to describe the verification service. It can be up to 32 characters long. **This value should not contain PII.** </param>
8585
public CreateServiceOptions(string friendlyName)
8686
{
8787
FriendlyName = friendlyName;
@@ -254,7 +254,7 @@ public class UpdateServiceOptions : IOptions<ServiceResource>
254254
///<summary> The Twilio-provided string that uniquely identifies the Service resource to update. </summary>
255255
public string PathSid { get; }
256256

257-
///<summary> A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** </summary>
257+
///<summary> A descriptive string that you create to describe the verification service. It can be up to 32 characters long. **This value should not contain PII.** </summary>
258258
public string FriendlyName { get; set; }
259259

260260
///<summary> The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. </summary>

0 commit comments

Comments
 (0)