diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f9bad9..eaba1b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ # Change Log +## [4.60.2](https://github.com/plivo/plivo-ruby/tree/v4.60.2) (2024-09-06) +**Feature - Adding support for brand_name and app_hash in Create,Get and List Session** +- Added new request param `brand_name`, `code_length` and `app_hash` in create Session API +- Added support for `brand_name`, `code_length` and `app_hash` param in get and list Session response + ## [4.60.1](https://github.com/plivo/plivo-ruby/tree/v4.60.1) (2024-09-03) **Feature - Adding new element for Audio Stream XML ** - Added `keepCallAlive` element in Audio Stream XML + ## [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 diff --git a/README.md b/README.md index da2fe62..e37ded4 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.60.1' +gem 'plivo', '>= 4.60.2' ``` And then execute: diff --git a/lib/plivo/resources/verify_session.rb b/lib/plivo/resources/verify_session.rb index 059a0e4..f2a90a5 100644 --- a/lib/plivo/resources/verify_session.rb +++ b/lib/plivo/resources/verify_session.rb @@ -42,13 +42,16 @@ def get(session_uuid) perform_get(session_uuid) end - def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = nil, locale=nil) + def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = nil, locale=nil, brand_name=nil, app_hash=nil, code_length=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) + valid_param?(:brand_name, brand_name, [String, Symbol], false) + valid_param?(:app_hash, app_hash, [String, Symbol], false) + valid_param?(:code_length, code_length,[Integer,Symbol], false) params = { app_uuid: app_uuid, @@ -56,7 +59,10 @@ def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = ni channel: channel, url: url, method: method, - locale: locale + locale: locale, + brand_name: brand_name, + app_hash: app_hash, + code_length: code_length } perform_create(params) end @@ -67,7 +73,7 @@ def list(options = nil) params = {} params_expected = %i[ subaccount status session_time__gt session_time__gte - session_time__lt session_time__lte session_time country alias app_uuid recipient + session_time__lt session_time__lte session_time country alias app_uuid recipient brand_name app_hash ] params_expected.each do |param| diff --git a/lib/plivo/version.rb b/lib/plivo/version.rb index f1736dd..b759f0c 100644 --- a/lib/plivo/version.rb +++ b/lib/plivo/version.rb @@ -1,3 +1,3 @@ module Plivo - VERSION = "4.60.1".freeze + VERSION = "4.60.2".freeze end