diff --git a/CHANGELOG.md b/CHANGELOG.md index acf73596..0a54de4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [v4.68.0](https://github.com/plivo/plivo-node/tree/v4.68.0) (2024-06-22) +**Feature - Locale param supported for Create Verify Session API's** +- Added new param 'locale' to Create Session API + ## [v4.67.0](https://github.com/plivo/plivo-node/tree/v4.67.0) (2024-05-22) **Feature - Adding support for participant level recording** - Added new param `recordParticipantTrack` to [add participant API](https://www.plivo.com/docs/voice/api/multiparty-call/participants#add-a-participant) to support `participant` level recording diff --git a/lib/resources/verify.js b/lib/resources/verify.js index de04d586..6ae57682 100644 --- a/lib/resources/verify.js +++ b/lib/resources/verify.js @@ -138,7 +138,7 @@ export class SessionInterface extends PlivoResourceInterface { create(sessionReq){ var isObject = arguments.length; - var app_uuid, recipient, url, method, channel + var app_uuid, recipient, url, method, channel, locale if (isObject === 1) { app_uuid = sessionReq.app_uuid @@ -146,6 +146,7 @@ export class SessionInterface extends PlivoResourceInterface { url = sessionReq.url method = sessionReq.method channel = sessionReq.channel + locale = sessionReq.locale } let errors = validate([{ @@ -170,6 +171,9 @@ export class SessionInterface extends PlivoResourceInterface { if(channel) { params.channel = channel } + if(locale) { + params.locale = locale + } if(url) { params.url = url } diff --git a/package.json b/package.json index f050065a..541921e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.67.0", + "version": "4.68.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": [