diff --git a/CHANGELOG.md b/CHANGELOG.md index 51521e5..9b639d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## [4.60.0](https://github.com/plivo/plivo-ruby/tree/v4.60.0) (2024-07-11) +**Feature - Adding support for Locale param in Create, Get and List Session** +- Added new request param `locale` in create Session API +- Added support for `locale` param in get and list Session response + ## [4.59.1](https://github.com/plivo/plivo-ruby/tree/v4.59.1) (2023-05-31) **Feature - Adding filtering support for List Application API** - Added new filter param `app_name` in list application api diff --git a/README.md b/README.md index 00b96e1..6760631 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a Add this line to your application's Gemfile: ```ruby -gem 'plivo', '>= 4.59.1' +gem 'plivo', '>= 4.60.0' ``` And then execute: diff --git a/lib/plivo/resources/verify_session.rb b/lib/plivo/resources/verify_session.rb index f55100b..059a0e4 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, @@ -41,19 +42,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 6c91959..0d8cdc5 100644 --- a/lib/plivo/version.rb +++ b/lib/plivo/version.rb @@ -1,3 +1,3 @@ module Plivo - VERSION = "4.59.1".freeze + VERSION = "4.60.0".freeze end