Skip to content

Commit

Permalink
[Librarian] Regenerated @ 5627c63bd23f159fdbe112bf727f87b79c3d4f74
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Jul 13, 2023
1 parent e8c894e commit d88f480
Show file tree
Hide file tree
Showing 17 changed files with 1,705 additions and 23 deletions.
22 changes: 22 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
twilio-csharp Changelog
=======================

[2023-07-13] Version 6.10.0
---------------------------
**Flex**
- Adding `interaction_context_sid` as optional parameter in Interactions API

**Messaging**
- Making visiblity public for tollfree_verification API

**Numbers**
- Remove Sms capability property from HNO creation under version `/v2` of HNO API. **(breaking change)**
- Update required properties in LOA creation under version `/v2` of Authorization document API. **(breaking change)**

**Taskrouter**
- Add api to fetch task queue statistics for multiple TaskQueues

**Verify**
- Add `RiskCheck` optional parameter on Verification creation.

**Twiml**
- Add Google Voices and languages


[2023-06-28] Version 6.9.0
--------------------------
**Lookups**
Expand Down
7 changes: 7 additions & 0 deletions src/Twilio/Rest/FlexApi/V1/InteractionOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public class CreateInteractionOptions : IOptions<InteractionResource>
///<summary> The Interaction's routing logic. </summary>
public object Routing { get; }

///<summary> The Interaction context sid is used for adding a context lookup sid </summary>
public string InteractionContextSid { get; set; }


/// <summary> Construct a new CreateInteractionOptions </summary>
/// <param name="channel"> The Interaction's channel. </param>
Expand All @@ -58,6 +61,10 @@ public CreateInteractionOptions(object channel, object routing)
{
p.Add(new KeyValuePair<string, string>("Routing", Serializers.JsonObject(Routing)));
}
if (InteractionContextSid != null)
{
p.Add(new KeyValuePair<string, string>("InteractionContextSid", InteractionContextSid));
}
return p;
}

Expand Down
12 changes: 10 additions & 2 deletions src/Twilio/Rest/FlexApi/V1/InteractionResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,29 +74,33 @@ public static InteractionResource Create(CreateInteractionOptions options, ITwil
/// <summary> Create a new Interaction. </summary>
/// <param name="channel"> The Interaction's channel. </param>
/// <param name="routing"> The Interaction's routing logic. </param>
/// <param name="interactionContextSid"> The Interaction context sid is used for adding a context lookup sid </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Interaction </returns>
public static InteractionResource Create(
object channel,
object routing,
string interactionContextSid = null,
ITwilioRestClient client = null)
{
var options = new CreateInteractionOptions(channel, routing){ };
var options = new CreateInteractionOptions(channel, routing){ InteractionContextSid = interactionContextSid };
return Create(options, client);
}

#if !NET35
/// <summary> Create a new Interaction. </summary>
/// <param name="channel"> The Interaction's channel. </param>
/// <param name="routing"> The Interaction's routing logic. </param>
/// <param name="interactionContextSid"> The Interaction context sid is used for adding a context lookup sid </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Interaction </returns>
public static async System.Threading.Tasks.Task<InteractionResource> CreateAsync(
object channel,
object routing,
string interactionContextSid = null,
ITwilioRestClient client = null)
{
var options = new CreateInteractionOptions(channel, routing){ };
var options = new CreateInteractionOptions(channel, routing){ InteractionContextSid = interactionContextSid };
return await CreateAsync(options, client);
}
#endif
Expand Down Expand Up @@ -204,6 +208,10 @@ public static InteractionResource FromJson(string json)
[JsonProperty("links")]
public Dictionary<string, string> Links { get; private set; }

///<summary> The interaction_context_sid </summary>
[JsonProperty("interaction_context_sid")]
public string InteractionContextSid { get; private set; }



private InteractionResource() {
Expand Down

0 comments on commit d88f480

Please sign in to comment.