Skip to content

Commit 0b25399

Browse files
fix (#227)
1 parent 26b8dff commit 0b25399

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

Diff for: CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
2-
2+
## [7.57.2](https://github.com/plivo/plivo-go/tree/v7.57.2) (2025-02-24)
3+
**Enhancement - Supporting parameter_name in WhatsApp Template .**
4+
- Supporting parameter_name in WhatsApp Template .
5+
-
36
## [7.57.1](https://github.com/plivo/plivo-go/tree/v7.57.1) (2025-01-27)
47
**New Param - Start Stream Api**
58
- Support for `cx_bot` parameter in Start Stream API.

Diff for: baseclient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/google/go-querystring/query"
1414
)
1515

16-
const sdkVersion = "7.57.1"
16+
const sdkVersion = "7.57.2"
1717

1818
const lookupBaseUrl = "lookup.plivo.com"
1919

Diff for: messages.go

+8-7
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,14 @@ type Card struct {
144144
}
145145

146146
type Parameter struct {
147-
Type string `mapstructure:"type" json:"type" validate:"required"`
148-
Text string `mapstructure:"text" json:"text,omitempty"`
149-
Media string `mapstructure:"media" json:"media,omitempty"`
150-
Payload string `mapstructure:"payload" json:"payload,omitempty"`
151-
Currency *Currency `mapstructure:"currency" json:"currency,omitempty"`
152-
DateTime *DateTime `mapstructure:"date_time" json:"date_time,omitempty"`
153-
Location *Location `mapstructure:"location" json:"location,omitempty"`
147+
Type string `mapstructure:"type" json:"type" validate:"required"`
148+
Text string `mapstructure:"text" json:"text,omitempty"`
149+
Media string `mapstructure:"media" json:"media,omitempty"`
150+
Payload string `mapstructure:"payload" json:"payload,omitempty"`
151+
Currency *Currency `mapstructure:"currency" json:"currency,omitempty"`
152+
DateTime *DateTime `mapstructure:"date_time" json:"date_time,omitempty"`
153+
Location *Location `mapstructure:"location" json:"location,omitempty"`
154+
ParameterName *string `mapstructure:"parameter_name" json:"parameter_name,omitempty"`
154155
}
155156

156157
type Location struct {

0 commit comments

Comments
 (0)