@@ -200,8 +200,8 @@ public class CallToActionAction
200
200
private string Url { get ; set ; }
201
201
[ JsonProperty ( "phone" ) ]
202
202
private string Phone { get ; set ; }
203
- [ JsonProperty ( "id " ) ]
204
- private string Id { get ; set ; }
203
+ [ JsonProperty ( "code " ) ]
204
+ private string Code { get ; set ; }
205
205
public CallToActionAction ( ) { }
206
206
public class Builder
207
207
{
@@ -229,9 +229,9 @@ public Builder WithPhone(string phone)
229
229
_callToActionAction . Phone = phone ;
230
230
return this ;
231
231
}
232
- public Builder WithId ( string id )
232
+ public Builder WithCode ( string code )
233
233
{
234
- _callToActionAction . Id = id ;
234
+ _callToActionAction . Code = code ;
235
235
return this ;
236
236
}
237
237
public CallToActionAction Build ( )
@@ -348,6 +348,8 @@ public class CardAction
348
348
private string Phone { get ; set ; }
349
349
[ JsonProperty ( "id" ) ]
350
350
private string Id { get ; set ; }
351
+ [ JsonProperty ( "code" ) ]
352
+ private string Code { get ; set ; }
351
353
public CardAction ( ) { }
352
354
public class Builder
353
355
{
@@ -380,6 +382,11 @@ public Builder WithId(string id)
380
382
_cardAction . Id = id ;
381
383
return this ;
382
384
}
385
+ public Builder WithCode ( string code )
386
+ {
387
+ _cardAction . Code = code ;
388
+ return this ;
389
+ }
383
390
public CardAction Build ( )
384
391
{
385
392
return _cardAction ;
@@ -666,6 +673,185 @@ public TwilioCarousel Build()
666
673
}
667
674
}
668
675
}
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
+ }
669
855
public class WhatsappCard
670
856
{
671
857
[ JsonProperty ( "body" ) ]
@@ -802,6 +988,8 @@ public class Types
802
988
private TwilioCatalog TwilioCatalog { get ; set ; }
803
989
[ JsonProperty ( "twilio/carousel" ) ]
804
990
private TwilioCarousel TwilioCarousel { get ; set ; }
991
+ [ JsonProperty ( "twilio/flows" ) ]
992
+ private TwilioFlows TwilioFlows { get ; set ; }
805
993
[ JsonProperty ( "whatsapp/card" ) ]
806
994
private WhatsappCard WhatsappCard { get ; set ; }
807
995
[ JsonProperty ( "whatsapp/authentication" ) ]
@@ -858,6 +1046,11 @@ public Builder WithTwilioCarousel(TwilioCarousel twilioCarousel)
858
1046
_types . TwilioCarousel = twilioCarousel ;
859
1047
return this ;
860
1048
}
1049
+ public Builder WithTwilioFlows ( TwilioFlows twilioFlows )
1050
+ {
1051
+ _types . TwilioFlows = twilioFlows ;
1052
+ return this ;
1053
+ }
861
1054
public Builder WithWhatsappCard ( WhatsappCard whatsappCard )
862
1055
{
863
1056
_types . WhatsappCard = whatsappCard ;
@@ -957,6 +1150,8 @@ public static implicit operator CardActionType(string value)
957
1150
public static readonly CardActionType Url = new CardActionType ( "URL" ) ;
958
1151
public static readonly CardActionType PhoneNumber = new CardActionType ( "PHONE_NUMBER" ) ;
959
1152
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" ) ;
960
1155
961
1156
}
962
1157
[ JsonConverter ( typeof ( StringEnumConverter ) ) ]
@@ -982,6 +1177,8 @@ public static implicit operator CallToActionActionType(string value)
982
1177
}
983
1178
public static readonly CallToActionActionType Url = new CallToActionActionType ( "URL" ) ;
984
1179
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" ) ;
985
1182
986
1183
}
987
1184
0 commit comments