From c96ec72299cdd74f4d29b7ad5815e3fa8880734a Mon Sep 17 00:00:00 2001 From: Saurabh Newatiya Plivo <107537111+saurabhnewatiya-plivo@users.noreply.github.com> Date: Fri, 21 Jun 2024 15:22:25 +0530 Subject: [PATCH] Improving outbound templated message capabilities (#208) * Improving outbound templated message capabilities --- CHANGELOG.md | 4 ++++ baseclient.go | 2 +- messages.go | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03326cd..bc39432 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Change Log + +## [7.50.0](https://github.com/plivo/plivo-go/tree/v7.50.0) (2024-06-20) +- Improving outbound templated message capabilities + ## [7.49.2](https://github.com/plivo/plivo-go/tree/v7.49.2) (2024-06-07) **Bug Fix - List and Get Media object url fix** - Fixed the media_url response value diff --git a/baseclient.go b/baseclient.go index fb5464b..0cc87ef 100644 --- a/baseclient.go +++ b/baseclient.go @@ -13,7 +13,7 @@ import ( "github.com/google/go-querystring/query" ) -const sdkVersion = "7.49.2" +const sdkVersion = "7.50.0" const lookupBaseUrl = "lookup.plivo.com" diff --git a/messages.go b/messages.go index 94a85b9..ea779bf 100644 --- a/messages.go +++ b/messages.go @@ -132,6 +132,12 @@ type Component struct { SubType string `mapstructure:"sub_type" json:"sub_type,omitempty"` Index string `mapstructure:"index" json:"index,omitempty"` Parameters []Parameter `mapstructure:"parameters" json:"parameters"` + Cards []Card `mapstructure:"cards" json:"cards,omitempty"` +} + +type Card struct { + CardIndex int `mapstructure:"card_index" json:"card_index,omitempty"` + Components []Component `mapstructure:"components" json:"components,omitempty"` } type Parameter struct {