Skip to content

Commit

Permalink
[Librarian] Regenerated @ fffff4e2a9903902262deb482f4cefeb44c2d081
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed May 18, 2023
1 parent 16b2e17 commit 9bdf18c
Show file tree
Hide file tree
Showing 34 changed files with 808 additions and 284 deletions.
17 changes: 17 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
twilio-csharp Changelog
=======================

[2023-05-18] Version 6.6.1
--------------------------
**Conversations**
- Added `AddressCountry` parameter to Address Configuration endpoint, to support regional short code addresses
- Added query parameters `start_date`, `end_date` and `state` in list Conversations resource for filtering

**Insights**
- Added annotations parameters to list summary api

**Messaging**
- Add GET domainByMessagingService endpoint to linkShortening service
- Add `disable_https` to link shortening domain_config properties

**Numbers**
- Add bulk_eligibility api under version `/v1`.


[2023-05-04] Version 6.6.0
--------------------------
**Conversations**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ public class CreateAddressConfigurationOptions : IOptions<AddressConfigurationRe
///<summary> For type `studio`, number of times to retry the webhook request </summary>
public int? AutoCreationStudioRetryCount { get; set; }

///<summary> An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses. </summary>
public string AddressCountry { get; set; }


/// <summary> Construct a new CreateConfigurationAddressOptions </summary>
/// <param name="type"> </param>
Expand Down Expand Up @@ -122,6 +125,10 @@ public List<KeyValuePair<string, string>> GetParams()
{
p.Add(new KeyValuePair<string, string>("AutoCreation.StudioRetryCount", AutoCreationStudioRetryCount.ToString()));
}
if (AddressCountry != null)
{
p.Add(new KeyValuePair<string, string>("AddressCountry", AddressCountry));
}
return p;
}

Expand Down
12 changes: 10 additions & 2 deletions src/Twilio/Rest/Conversations/V1/AddressConfigurationResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public static async System.Threading.Tasks.Task<AddressConfigurationResource> Cr
/// <param name="autoCreationWebhookFilters"> The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated` </param>
/// <param name="autoCreationStudioFlowSid"> For type `studio`, the studio flow SID where the webhook should be sent to. </param>
/// <param name="autoCreationStudioRetryCount"> For type `studio`, number of times to retry the webhook request </param>
/// <param name="addressCountry"> An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses. </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of AddressConfiguration </returns>
public static AddressConfigurationResource Create(
Expand All @@ -136,9 +137,10 @@ public static AddressConfigurationResource Create(
List<string> autoCreationWebhookFilters = null,
string autoCreationStudioFlowSid = null,
int? autoCreationStudioRetryCount = null,
string addressCountry = null,
ITwilioRestClient client = null)
{
var options = new CreateAddressConfigurationOptions(type, address){ FriendlyName = friendlyName, AutoCreationEnabled = autoCreationEnabled, AutoCreationType = autoCreationType, AutoCreationConversationServiceSid = autoCreationConversationServiceSid, AutoCreationWebhookUrl = autoCreationWebhookUrl, AutoCreationWebhookMethod = autoCreationWebhookMethod, AutoCreationWebhookFilters = autoCreationWebhookFilters, AutoCreationStudioFlowSid = autoCreationStudioFlowSid, AutoCreationStudioRetryCount = autoCreationStudioRetryCount };
var options = new CreateAddressConfigurationOptions(type, address){ FriendlyName = friendlyName, AutoCreationEnabled = autoCreationEnabled, AutoCreationType = autoCreationType, AutoCreationConversationServiceSid = autoCreationConversationServiceSid, AutoCreationWebhookUrl = autoCreationWebhookUrl, AutoCreationWebhookMethod = autoCreationWebhookMethod, AutoCreationWebhookFilters = autoCreationWebhookFilters, AutoCreationStudioFlowSid = autoCreationStudioFlowSid, AutoCreationStudioRetryCount = autoCreationStudioRetryCount, AddressCountry = addressCountry };
return Create(options, client);
}

Expand All @@ -155,6 +157,7 @@ public static AddressConfigurationResource Create(
/// <param name="autoCreationWebhookFilters"> The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated` </param>
/// <param name="autoCreationStudioFlowSid"> For type `studio`, the studio flow SID where the webhook should be sent to. </param>
/// <param name="autoCreationStudioRetryCount"> For type `studio`, number of times to retry the webhook request </param>
/// <param name="addressCountry"> An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses. </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of AddressConfiguration </returns>
public static async System.Threading.Tasks.Task<AddressConfigurationResource> CreateAsync(
Expand All @@ -169,9 +172,10 @@ public static async System.Threading.Tasks.Task<AddressConfigurationResource> Cr
List<string> autoCreationWebhookFilters = null,
string autoCreationStudioFlowSid = null,
int? autoCreationStudioRetryCount = null,
string addressCountry = null,
ITwilioRestClient client = null)
{
var options = new CreateAddressConfigurationOptions(type, address){ FriendlyName = friendlyName, AutoCreationEnabled = autoCreationEnabled, AutoCreationType = autoCreationType, AutoCreationConversationServiceSid = autoCreationConversationServiceSid, AutoCreationWebhookUrl = autoCreationWebhookUrl, AutoCreationWebhookMethod = autoCreationWebhookMethod, AutoCreationWebhookFilters = autoCreationWebhookFilters, AutoCreationStudioFlowSid = autoCreationStudioFlowSid, AutoCreationStudioRetryCount = autoCreationStudioRetryCount };
var options = new CreateAddressConfigurationOptions(type, address){ FriendlyName = friendlyName, AutoCreationEnabled = autoCreationEnabled, AutoCreationType = autoCreationType, AutoCreationConversationServiceSid = autoCreationConversationServiceSid, AutoCreationWebhookUrl = autoCreationWebhookUrl, AutoCreationWebhookMethod = autoCreationWebhookMethod, AutoCreationWebhookFilters = autoCreationWebhookFilters, AutoCreationStudioFlowSid = autoCreationStudioFlowSid, AutoCreationStudioRetryCount = autoCreationStudioRetryCount, AddressCountry = addressCountry };
return await CreateAsync(options, client);
}
#endif
Expand Down Expand Up @@ -591,6 +595,10 @@ public static AddressConfigurationResource FromJson(string json)
[JsonProperty("url")]
public Uri Url { get; private set; }

///<summary> An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses. </summary>
[JsonProperty("address_country")]
public string AddressCountry { get; private set; }



private AddressConfigurationResource() {
Expand Down
21 changes: 21 additions & 0 deletions src/Twilio/Rest/Conversations/V1/ConversationOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,15 @@ public List<KeyValuePair<string, string>> GetParams()
public class ReadConversationOptions : ReadOptions<ConversationResource>
{

///<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>
public string StartDate { get; set; }

///<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>
public string EndDate { get; set; }

///<summary> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </summary>
public ConversationResource.StateEnum State { get; set; }




Expand All @@ -201,6 +210,18 @@ public override List<KeyValuePair<string, string>> GetParams()
{
var p = new List<KeyValuePair<string, string>>();

if (StartDate != null)
{
p.Add(new KeyValuePair<string, string>("StartDate", StartDate));
}
if (EndDate != null)
{
p.Add(new KeyValuePair<string, string>("EndDate", EndDate));
}
if (State != null)
{
p.Add(new KeyValuePair<string, string>("State", State.ToString()));
}
if (PageSize != null)
{
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));
Expand Down
16 changes: 14 additions & 2 deletions src/Twilio/Rest/Conversations/V1/ConversationResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,31 +336,43 @@ public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource
}
#endif
/// <summary> Retrieve a list of conversations in your account's default service </summary>
/// <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>
/// <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>
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
/// <param name="limit"> Record limit </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Conversation </returns>
public static ResourceSet<ConversationResource> Read(
string startDate = null,
string endDate = null,
ConversationResource.StateEnum state = null,
int? pageSize = null,
long? limit = null,
ITwilioRestClient client = null)
{
var options = new ReadConversationOptions(){ PageSize = pageSize, Limit = limit};
var options = new ReadConversationOptions(){ StartDate = startDate, EndDate = endDate, State = state, PageSize = pageSize, Limit = limit};
return Read(options, client);
}

#if !NET35
/// <summary> Retrieve a list of conversations in your account's default service </summary>
/// <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>
/// <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>
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
/// <param name="limit"> Record limit </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Conversation </returns>
public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource>> ReadAsync(
string startDate = null,
string endDate = null,
ConversationResource.StateEnum state = null,
int? pageSize = null,
long? limit = null,
ITwilioRestClient client = null)
{
var options = new ReadConversationOptions(){ PageSize = pageSize, Limit = limit};
var options = new ReadConversationOptions(){ StartDate = startDate, EndDate = endDate, State = state, PageSize = pageSize, Limit = limit};
return await ReadAsync(options, client);
}
#endif
Expand Down
21 changes: 21 additions & 0 deletions src/Twilio/Rest/Conversations/V1/Service/ConversationOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,15 @@ public class ReadConversationOptions : ReadOptions<ConversationResource>
///<summary> The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. </summary>
public string PathChatServiceSid { get; }

///<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>
public string StartDate { get; set; }

///<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>
public string EndDate { get; set; }

///<summary> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </summary>
public ConversationResource.StateEnum State { get; set; }



/// <summary> Construct a new ListServiceConversationOptions </summary>
Expand All @@ -229,6 +238,18 @@ public override List<KeyValuePair<string, string>> GetParams()
{
var p = new List<KeyValuePair<string, string>>();

if (StartDate != null)
{
p.Add(new KeyValuePair<string, string>("StartDate", StartDate));
}
if (EndDate != null)
{
p.Add(new KeyValuePair<string, string>("EndDate", EndDate));
}
if (State != null)
{
p.Add(new KeyValuePair<string, string>("State", State.ToString()));
}
if (PageSize != null)
{
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));
Expand Down
Loading

0 comments on commit 9bdf18c

Please sign in to comment.