Skip to content

Commit

Permalink
Adding payload parameter in whatsapp templates (#330)
Browse files Browse the repository at this point in the history
* Adding payload parameter in whatsapp templates
  • Loading branch information
saurabhnewatiya-plivo authored Apr 18, 2024
1 parent 61ea55e commit cab5d09
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [v4.62.0](https://github.com/plivo/plivo-node/tree/v4.62.0) (2024-04-18)
**Feature - Support for dynamic button components when sending a templated WhatsApp message**
- Added new param `payload` in templates to support dynamic payload in templates

## [v4.61.0](https://github.com/plivo/plivo-node/tree/v4.61.0) (2024-03-13)
**Feature - Import Campaign API**
- Import Campaign API endpoint added
Expand Down
1 change: 1 addition & 0 deletions lib/utils/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const parameterSchema = Joi.object({
type: Joi.string().required(),
text: Joi.string().optional(),
media: Joi.string().optional(),
payload: Joi.string().optional(),
currency: currencySchema.optional(),
date_time: dateTimeSchema.optional(),
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plivo",
"version": "4.61.0",
"version": "4.62.0",
"description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML",
"homepage": "https://github.com/plivo/plivo-node",
"files": [
Expand Down

0 comments on commit cab5d09

Please sign in to comment.