From 4d8cc79508c0ab5f1b911761a54583550aaaf082 Mon Sep 17 00:00:00 2001 From: Rajneesh Katkam Date: Thu, 20 Jun 2024 20:19:13 +0530 Subject: [PATCH 1/3] Added locale param for verify --- CHANGELOG.md | 4 ++++ lib/plivo/resources/verify_session.rb | 6 ++++-- lib/plivo/version.rb | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fccb3d8c..4fdab61e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [4.55.0](https://github.com/plivo/plivo-ruby/tree/v4.55.0) (2024-06-22) +**Feature - Adding support for Locale param in Create Session** +- Added new request param `locale` in create Session API + ## [4.54.0](https://github.com/plivo/plivo-ruby/tree/v4.54.0) (2023-11-17) **Feature - Verify Caller Id API support** - API support for verifying, updating, getting and deleting caller IDs. diff --git a/lib/plivo/resources/verify_session.rb b/lib/plivo/resources/verify_session.rb index f55100bb..4878b52a 100644 --- a/lib/plivo/resources/verify_session.rb +++ b/lib/plivo/resources/verify_session.rb @@ -41,19 +41,21 @@ def get(session_uuid) perform_get(session_uuid) end - def create(app_uuid = nil, recipient = nil,channel = nil,url = nil, method = nil) + def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = nil, locale=nil) valid_param?(:app_uuid, app_uuid, [String, Symbol], false) valid_param?(:recipient, recipient, [Integer, String, Symbol], true) valid_param?(:channel, channel, [String, Symbol], false) valid_param?(:url, url, [String], false) valid_param?(:method, method, String, false, %w[POST GET]) + valid_param?(:locale, locale, [String, Symbol], false) params = { app_uuid: app_uuid, recipient: recipient, channel: channel, url: url, - method: method + method: method, + locale: locale } perform_create(params) end diff --git a/lib/plivo/version.rb b/lib/plivo/version.rb index 55db9078..e5f2dc7a 100644 --- a/lib/plivo/version.rb +++ b/lib/plivo/version.rb @@ -1,3 +1,3 @@ module Plivo - VERSION = "4.54.0".freeze + VERSION = "4.55.0".freeze end From d135d77e3c09b0ef4fae0a13857ccdb2293669d6 Mon Sep 17 00:00:00 2001 From: Rajneesh Katkam Date: Tue, 9 Jul 2024 12:05:17 +0530 Subject: [PATCH 2/3] Locale support added for get and list session --- CHANGELOG.md | 4 ++-- lib/plivo/resources/verify_session.rb | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fdab61e..60b72f59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Change Log ## [4.55.0](https://github.com/plivo/plivo-ruby/tree/v4.55.0) (2024-06-22) -**Feature - Adding support for Locale param in Create Session** -- Added new request param `locale` in create Session API +**Feature - Adding support for Locale param in Create, Get and List Session** +- Added new request param `locale` in create, get and list Session API ## [4.54.0](https://github.com/plivo/plivo-ruby/tree/v4.54.0) (2023-11-17) **Feature - Verify Caller Id API support** diff --git a/lib/plivo/resources/verify_session.rb b/lib/plivo/resources/verify_session.rb index 4878b52a..059a0e46 100644 --- a/lib/plivo/resources/verify_session.rb +++ b/lib/plivo/resources/verify_session.rb @@ -15,6 +15,7 @@ def to_s alias: @alias, recipient: @recipient, channel: @channel, + locale: @locale, status: @status, count: @count, requestor_ip: @requestor_ip, From 674e41b49021424dab7ec6a562af71e1e8b78be6 Mon Sep 17 00:00:00 2001 From: Rajneesh Katkam Date: Tue, 9 Jul 2024 12:39:10 +0530 Subject: [PATCH 3/3] Updated changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60b72f59..373e0f66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## [4.55.0](https://github.com/plivo/plivo-ruby/tree/v4.55.0) (2024-06-22) **Feature - Adding support for Locale param in Create, Get and List Session** -- Added new request param `locale` in create, get and list Session API +- Added new request param `locale` in create Session API +- Added support for `locale` param in get and list Session response ## [4.54.0](https://github.com/plivo/plivo-ruby/tree/v4.54.0) (2023-11-17) **Feature - Verify Caller Id API support**