8000 [Librarian] Regenerated @ 78bf2bbef74e4846ca8353fbdee038a6b8080c59 22… · twilio/twilio-csharp@5f44586 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 5f44586

Browse files
committed
[Librarian] Regenerated @ 78bf2bbef74e4846ca8353fbdee038a6b8080c59 2250ef3ba08540233f688bf6aaa55e9c94febf3b
1 parent c594480 commit 5f44586

File tree

11 files changed

+1210
-5
lines changed

11 files changed

+1210
-5
lines changed

CHANGES.md

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

4+
[2024-09-05] Version 7.3.0
5+
--------------------------
6+
**Iam**
7+
- updated library_visibility public for new public apikeys
8+
9+
**Numbers**
10+
- Add new field in Error Codes for Regulatory Compliance.
11+
- Change typing of Port In Request date_created field to date_time instead of date **(breaking change)**
12+
13+
414
[2024-08-26] Version 7.2.3
515
--------------------------
616
**Library - Fix**

src/Twilio/Rest/Content/V1/ContentResource.cs

Lines changed: 201 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ public class CallToActionAction
200200
private string Url {get; set;}
201201
[JsonProperty("phone")]
202202
private string Phone {get; set;}
203-
[JsonProperty("id")]
204-
private string Id {get; set;}
203+
[JsonProperty("code")]
204+
private string Code {get; set;}
205205
public CallToActionAction() { }
206206
public class Builder
207207
{
@@ -229,9 +229,9 @@ public Builder WithPhone(string phone)
229229
_callToActionAction.Phone= phone;
230230
return this;
231231
}
232-
public Builder WithId(string id)
232+
public Builder WithCode(string code)
233233
{
234-
_callToActionAction.Id= id;
234+
_callToActionAction.Code= code;
235235
return this;
236236
}
237237
public CallToActionAction Build()
@@ -348,6 +348,8 @@ public class CardAction
348348
private string Phone {get; set;}
349349
[JsonProperty("id")]
350350
private string Id {get; set;}
351+
[JsonProperty("code")]
352+
private string Code {get; set;}
351353
public CardAction() { }
352354
public class Builder
353355
{
@@ -380,6 +382,11 @@ public Builder WithId(string id)
380382
_cardAction.Id= id;
381383
return this;
382384
}
385+
public Builder WithCode(string code)
386+
{
387+
_cardAction.Code= code;
388+
return this;
389+
}
383390
public CardAction Build()
384391
{
385392
return _cardAction;
@@ -666,6 +673,185 @@ public TwilioCarousel Build()
666673
}
667674
}
668675
}
676+
public class FlowsPageComponentSelectItem
677+
{
678+
[JsonProperty("id")]
679+
private string Id {get; set;}
680+
[JsonProperty("title")]
681+
private string Title {get; set;}
682+
public FlowsPageComponentSelectItem() { }
683+
public class Builder
684+
{
685+
private FlowsPageComponentSelectItem _flowsPageComponentSelectItem = new FlowsPageComponentSelectItem();
686+
public Builder()
687+
{
688+
}
689+
public Builder WithId(string id)
690+
{
691+
_flowsPageComponentSelectItem.Id= id;
692+
return this;
693+
}
694+
public Builder WithTitle(string title)
695+
{
696+
_flowsPageComponentSelectItem.Title= title;
697+
return this;
698+
}
699+
public FlowsPageComponentSelectItem Build()
700+
{
701+
return _flowsPageComponentSelectItem;
702+
}
703+
}
704+
}
705+
public class FlowsPageComponent
706+
{
707+
[JsonProperty("label")]
708+
private string Label {get; set;}
709+
[JsonProperty("type")]
710+
private string Type {get; set;}
711+
[JsonProperty("text")]
712+
private string Text {get; set;}
713+
[JsonProperty("options")]
714+
private List<FlowsPageComponentSelectItem> Options {get; set;}
715+
public FlowsPageComponent() { }
716+
public class Builder
717+
{
718+
private FlowsPageComponent _flowsPageComponent = new FlowsPageComponent();
719+
public Builder()
720+
{
721+
}
722+
public Builder WithLabel(string label)
723+
{
724+
_flowsPageComponent.Label= label;
725+
return this;
726+
}
727+
public Builder WithType(string type)
728+
{
729+
_flowsPageComponent.Type= type;
730+
return this;
731+
}
732+
public Builder WithText(string text)
733+
{
734+
_flowsPageComponent.Text= text;
735+
return this;
736+
}
737+
public Builder WithOptions(List<FlowsPageComponentSelectItem> options)
738+
{
739+
_flowsPageComponent.Options= options;
740+
return this;
741+
}
742+
public FlowsPageComponent Build()
743+
{
744+
return _flowsPageComponent;
745+
}
746+
}
747+
}
748+
public class FlowsPage
749+
{
750+
[JsonProperty("id")]
751+
private string Id {get; set;}
752+
[JsonProperty("next_page_id")]
753+
private string NextPageId {get; set;}
754+
[JsonProperty("title")]
755+
private string Title {get; set;}
756+
[JsonProperty("subtitle")]
757+
private string Subtitle {get; set;}
758+
[JsonProperty("layout")]
759+
private List<FlowsPageComponent> Layout {get; set;}
760+
public FlowsPage() { }
761+
public class Builder
762+
{
763+
private FlowsPage _flowsPage = new FlowsPage();
764+
public Builder()
765+
{
766+
}
767+
public Builder WithId(string id)
768+
{
769+
_flowsPage.Id= id;
770+
return this;
771+
}
772+
public Builder WithNextPageId(string nextPageId)
773+
{
774+
_flowsPage.NextPageId= nextPageId;
775+
return this;
776+
}
777+
public Builder WithTitle(string title)
778+
{
779+
_flowsPage.Title= title;
780+
return this;
781+
}
782+
public Builder WithSubtitle(string subtitle)
783+
{
784+
_flowsPage.Subtitle= subtitle;
785+
return this;
786+
}
787+
public Builder WithLayout(List<FlowsPageComponent> layout)
788+
{
789+
_flowsPage.Layout= layout;
790+
return this;
791+
}
792+
public FlowsPage Build()
793+
{
794+
return _flowsPage;
795+
}
796+
}
797+
}
798+
public class TwilioFlows
799+
{
800+
[JsonProperty("body")]
801+
private string Body {get; set;}
802+
[JsonProperty("button_text")]
803+
private string ButtonText {get; set;}
804+
[JsonProperty("subtitle")]
805+
private string Subtitle {get; set;}
806+
[JsonProperty("media_url")]
807+
private string MediaUrl {get; set;}
808+
[JsonProperty("pages")]
809+
private List<FlowsPage> Pages {get; set;}
810+
[JsonProperty("type")]
811+
private string Type {get; set;}
812+
public TwilioFlows() { }
813+
public class Builder
814+
{
815+
private TwilioFlows _twilioFlows = new TwilioFlows();
816+
public Builder()
817+
{
818+
}
819+
public Builder WithBody(string body)
820+
{
821+
_twilioFlows.Body= body;
822+
return this;
823+
}
824+
public Builder WithButtonText(string buttonText)
825+
{
826+
_twilioFlows.ButtonText= buttonText;
827+
return this;
828+
}
829+
public Builder WithSubtitle(string subtitle)
830+
{
831+
_twilioFlows.Subtitle= subtitle;
832+
return this;
833+
}
834+
public Builder WithMediaUrl(string mediaUrl)
835+
{
836+
_twilioFlows.MediaUrl= mediaUrl;
837+
return this;
838+
}
839+
public Builder WithPages(List<FlowsPage> pages)
840+
{
841+
_twilioFlows.Pages= pages;
842+
return this;
843+
}
844+
public Builder WithType(string type)
845+
{
846+
_twilioFlows.Type= type;
847+
return this;
848+
}
849+
public TwilioFlows Build()
850+
{
851+
return _twilioFlows;
852+
}
853+
}
854+
}
669855
public class WhatsappCard
670856
{
671857
[JsonProperty("body")]
@@ -802,6 +988,8 @@ public class Types
802988
private TwilioCatalog TwilioCatalog {get; set;}
803989
[JsonProperty("twilio/carousel")]
804990
private TwilioCarousel TwilioCarousel {get; set;}
991+
[JsonProperty("twilio/flows")]
992+
private TwilioFlows TwilioFlows {get; set;}
805993
[JsonProperty("whatsapp/card")]
806994
private WhatsappCard WhatsappCard {get; set;}
807995
[JsonProperty("whatsapp/authentication")]
@@ -858,6 +1046,11 @@ public Builder WithTwilioCarousel(TwilioCarousel twilioCarousel)
8581046
_types.TwilioCarousel= twilioCarousel;
8591047
return this;
8601048
}
1049+
public Builder WithTwilioFlows(TwilioFlows twilioFlows)
1050+
{
1051+
_types.TwilioFlows= twilioFlows;
1052+
return this;
1053+
}
8611054
public Builder WithWhatsappCard(WhatsappCard whatsappCard)
8621055
{
8631056
_types.WhatsappCard= whatsappCard;
@@ -957,6 +1150,8 @@ public static implicit operator CardActionType(string value)
9571150
public static readonly CardActionType Url = new CardActionType("URL");
9581151
public static readonly CardActionType PhoneNumber = new CardActionType("PHONE_NUMBER");
9591152
public static readonly CardActionType QuickReply = new CardActionType("QUICK_REPLY");
1153+
public static readonly CardActionType CopyCode = new CardActionType("COPY_CODE");
1154+
public static readonly CardActionType VoiceCall = new CardActionType("VOICE_CALL");
9601155

9611156
}
9621157
[JsonConverter(typeof(StringEnumConverter))]
@@ -982,6 +1177,8 @@ public static implicit operator CallToActionActionType(string value)
9821177
}
9831178
public static readonly CallToActionActionType Url = new CallToActionActionType("URL");
9841179
public static readonly CallToActionActionType PhoneNumber = new CallToActionActionType("PHONE_NUMBER");
1180+
public static readonly CallToActionActionType CopyCode = new CallToActionActionType("COPY_CODE");
1181+
public static readonly CallToActionActionType VoiceCall = new CallToActionActionType("VOICE_CALL");
9851182

9861183
}
9871184

src/Twilio/Rest/Domain.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public static implicit operator Domain(string value)
3131
public static readonly Domain Events = new Domain("events");
3232
public static readonly Domain FlexApi = new Domain("flex-api");
3333
public static readonly Domain FrontlineApi = new Domain("frontline-api");
34+
public static readonly Domain Iam = new Domain("iam");
3435
public static readonly Domain Insights = new Domain("insights");
3536
public static readonly Domain Intelligence = new Domain("intelligence");
3637
public static readonly Domain IpMessaging = new Domain("ip-messaging");

0 commit comments

Comments
 (0)
0