Skip to content

Commit eee0c01

Browse files
committed
[Librarian] Regenerated @ 84df4a97cab4aa96362a9d21aaf3909bbd2dbf5a
1 parent ab7d451 commit eee0c01

19 files changed

+834
-12
lines changed

CHANGES.md

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

4+
[2024-03-14] Version 7.0.2
5+
--------------------------
6+
**Oauth**
7+
- Add new APIs for vendor authorize and token endpoints
8+
9+
410
[2024-03-12] Version 7.0.1
511
--------------------------
612
**Library - Fix**

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,21 @@ public class ReadCallOptions : ReadOptions<CallResource>
388388
///<summary> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </summary>
389389
public DateTime? StartTime { get; set; }
390390

391+
///<summary> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </summary>
392+
public DateTime? StartTimeBefore { get; set; }
393+
394+
///<summary> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </summary>
395+
public DateTime? StartTimeAfter { get; set; }
396+
391397
///<summary> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </summary>
392398
public DateTime? EndTime { get; set; }
393399

400+
///<summary> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </summary>
401+
public DateTime? EndTimeBefore { get; set; }
402+
403+
///<summary> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </summary>
404+
public DateTime? EndTimeAfter { get; set; }
405+
394406

395407

396408

@@ -420,10 +432,32 @@ public List<KeyValuePair<string, string>> GetParams()
420432
{
421433
p.Add(new KeyValuePair<string, string>("StartTime", Serializers.DateTimeIso8601(StartTime)));
422434
}
435+
else
436+
{
437+
if (StartTimeBefore != null)
438+
{
439+
p.Add(new KeyValuePair<string, string>("StartTime<", Serializers.DateTimeIso8601(StartTimeBefore)));
440+
}
441+
if (StartTimeAfter != null)
442+
{
443+
p.Add(new KeyValuePair<string, string>("StartTime>", Serializers.DateTimeIso8601(StartTimeAfter)));
444+
}
445+
}
423446
if (EndTime != null)
424447
{
425448
p.Add(new KeyValuePair<string, string>("EndTime", Serializers.DateTimeIso8601(EndTime)));
426449
}
450+
else
451+
{
452+
if (EndTimeBefore != null)
453+
{
454+
p.Add(new KeyValuePair<string, string>("EndTime<", Serializers.DateTimeIso8601(EndTimeBefore)));
455+
}
456+
if (EndTimeAfter != null)
457+
{
458+
p.Add(new KeyValuePair<string, string>("EndTime>", Serializers.DateTimeIso8601(EndTimeAfter)));
459+
}
460+
}
427461
if (PageSize != null)
428462
{
429463
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,12 @@ public static async System.Threading.Tasks.Task<ResourceSet<CallResource>> ReadA
464464
/// <param name="from"> Only include calls from this phone number, SIP address, Client identifier or SIM SID. </param>
465465
/// <param name="parentCallSid"> Only include calls spawned by calls with this SID. </param>
466466
/// <param name="status"> The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. </param>
467+
/// <param name="startTimeBefore"> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </param>
467468
/// <param name="startTime"> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </param>
469+
/// <param name="startTimeAfter"> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </param>
470+
/// <param name="endTimeBefore"> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </param>
468471
/// <param name="endTime"> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </param>
472+
/// <param name="endTimeAfter"> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </param>
469473
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
470474
/// <param name="limit"> Record limit </param>
471475
/// <param name="client"> Client to make requests to Twilio </param>
@@ -476,13 +480,17 @@ public static ResourceSet<CallResource> Read(
476480
Types.PhoneNumber from = null,
477481
string parentCallSid = null,
478482
CallResource.StatusEnum status = null,
483+
DateTime? startTimeBefore = null,
479484
DateTime? startTime = null,
485+
DateTime? startTimeAfter = null,
486+
DateTime? endTimeBefore = null,
480487
DateTime? endTime = null,
488+
DateTime? endTimeAfter = null,
481489
int? pageSize = null,
482490
long? limit = null,
483491
ITwilioRestClient client = null)
484492
{
485-
var options = new ReadCallOptions(){ PathAccountSid = pathAccountSid, To = to, From = from, ParentCallSid = parentCallSid, Status = status, StartTime = startTime, EndTime = endTime, PageSize = pageSize, Limit = limit};
493+
var options = new ReadCallOptions(){ PathAccountSid = pathAccountSid, To = to, From = from, ParentCallSid = parentCallSid, Status = status, StartTimeBefore = startTimeBefore, StartTime = startTime, StartTimeAfter = startTimeAfter, EndTimeBefore = endTimeBefore, EndTime = endTime, EndTimeAfter = endTimeAfter, PageSize = pageSize, Limit = limit};
486494
return Read(options, client);
487495
}
488496

@@ -493,8 +501,12 @@ public static ResourceSet<CallResource> Read(
493501
/// <param name="from"> Only include calls from this phone number, SIP address, Client identifier or SIM SID. </param>
494502
/// <param name="parentCallSid"> Only include calls spawned by calls with this SID. </param>
495503
/// <param name="status"> The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. </param>
504+
/// <param name="startTimeBefore"> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </param>
496505
/// <param name="startTime"> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </param>
506+
/// <param name="startTimeAfter"> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </param>
507+
/// <param name="endTimeBefore"> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </param>
497508
/// <param name="endTime"> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </param>
509+
/// <param name="endTimeAfter"> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </param>
498510
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
499511
/// <param name="limit"> Record limit </param>
500512
/// <param name="client"> Client to make requests to Twilio </param>
@@ -505,13 +517,17 @@ public static async System.Threading.Tasks.Task<ResourceSet<CallResource>> ReadA
505517
Types.PhoneNumber from = null,
506518
string parentCallSid = null,
507519
CallResource.StatusEnum status = null,
520+
DateTime? startTimeBefore = null,
508521
DateTime? startTime = null,
522+
DateTime? startTimeAfter = null,
523+
DateTime? endTimeBefore = null,
509524
DateTime? endTime = null,
525+
DateTime? endTimeAfter = null,
510526
int? pageSize = null,
511527
long? limit = null,
512528
ITwilioRestClient client = null)
513529
{
514-
var options = new ReadCallOptions(){ PathAccountSid = pathAccountSid, To = to, From = from, ParentCallSid = parentCallSid, Status = status, StartTime = startTime, EndTime = endTime, PageSize = pageSize, Limit = limit};
530+
var options = new ReadCallOptions(){ PathAccountSid = pathAccountSid, To = to, From = from, ParentCallSid = parentCallSid, Status = status, StartTimeBefore = startTimeBefore, StartTime = startTime, StartTimeAfter = startTimeAfter, EndTimeBefore = endTimeBefore, EndTime = endTime, EndTimeAfter = endTimeAfter, PageSize = pageSize, Limit = limit};
515531
return await ReadAsync(options, client);
516532
}
517533
#endif

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,21 @@ public class ReadConferenceOptions : ReadOptions<ConferenceResource>
6666
///<summary> 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`. </summary>
6767
public DateTime? DateCreated { get; set; }
6868

69+
///<summary> 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`. </summary>
70+
public DateTime? DateCreatedBefore { get; set; }
71+
72+
///<summary> 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`. </summary>
73+
public DateTime? DateCreatedAfter { get; set; }
74+
6975
///<summary> 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`. </summary>
7076
public DateTime? DateUpdated { get; set; }
7177

78+
///<summary> 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`. </summary>
79+
public DateTime? DateUpdatedBefore { get; set; }
80+
81+
///<summary> 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`. </summary>
82+
public DateTime? DateUpdatedAfter { get; set; }
83+
7284
///<summary> The string that identifies the Conference resources to read. </summary>
7385
public string FriendlyName { get; set; }
7486

@@ -88,10 +100,32 @@ public List<KeyValuePair<string, string>> GetParams()
88100
{
89101
p.Add(new KeyValuePair<string, string>("DateCreated", DateCreated.Value.ToString("yyyy-MM-dd")));
90102
}
103+
else
104+
{
105+
if (DateCreatedBefore != null)
106+
{
107+
p.Add(new KeyValuePair<string, string>("DateCreated<", DateCreatedBefore.Value.ToString("yyyy-MM-dd")));
108+
}
109+
if (DateCreatedAfter != null)
110+
{
111+
p.Add(new KeyValuePair<string, string>("DateCreated>", DateCreatedAfter.Value.ToString("yyyy-MM-dd")));
112+
}
113+
}
91114
if (DateUpdated != null)
92115
{
93116
p.Add(new KeyValuePair<string, string>("DateUpdated", DateUpdated.Value.ToString("yyyy-MM-dd")));
94117
}
118+
else
119+
{
120+
if (DateUpdatedBefore != null)
121+
{
122+
p.Add(new KeyValuePair<string, string>("DateUpdated<", DateUpdatedBefore.Value.ToString("yyyy-MM-dd")));
123+
}
124+
if (DateUpdatedAfter != null)
125+
{
126+
p.Add(new KeyValuePair<string, string>("DateUpdated>", DateUpdatedAfter.Value.ToString("yyyy-MM-dd")));
127+
}
128+
}
95129
if (FriendlyName != null)
96130
{
97131
p.Add(new KeyValuePair<string, string>("FriendlyName", FriendlyName));

0 commit comments

Comments
 (0)