From 2010623c259096b8176e2a7d638569f24ac199e8 Mon Sep 17 00:00:00 2001 From: ashutoshkumar-plivo Date: Mon, 12 Aug 2024 12:26:56 +0530 Subject: [PATCH 1/3] SMS-6997: add brand_name and app_hash in create and list api --- CHANGELOG.md | 5 +++++ README.md | 2 +- lib/plivo/resources/verify_session.rb | 10 +++++++--- lib/plivo/version.rb | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b639d1..a9530a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## [4.60.1](https://github.com/plivo/plivo-ruby/tree/v4.60.1) (2024-08-12) +**Feature - Adding support for brand_name and app_hash in Create,Get and List Session** +- Added new request param `brand_name` and `app_hash` in create Session API +- Added support for `brand_name` and `app_hash` param in get and list Session response + ## [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 6760631..da2fe62 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.0' +gem 'plivo', '>= 4.60.1' ``` And then execute: diff --git a/lib/plivo/resources/verify_session.rb b/lib/plivo/resources/verify_session.rb index 059a0e4..e677fea 100644 --- a/lib/plivo/resources/verify_session.rb +++ b/lib/plivo/resources/verify_session.rb @@ -42,13 +42,15 @@ 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) 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) params = { app_uuid: app_uuid, @@ -56,7 +58,9 @@ 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 } perform_create(params) end @@ -67,7 +71,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 0d8cdc5..f1736dd 100644 --- a/lib/plivo/version.rb +++ b/lib/plivo/version.rb @@ -1,3 +1,3 @@ module Plivo - VERSION = "4.60.0".freeze + VERSION = "4.60.1".freeze end From bb971d24a0883a3508eb7fda081217b7d980db41 Mon Sep 17 00:00:00 2001 From: narayana-plivo Date: Tue, 13 Aug 2024 19:38:39 +0530 Subject: [PATCH 2/3] adding code length param --- lib/plivo/resources/verify_session.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/plivo/resources/verify_session.rb b/lib/plivo/resources/verify_session.rb index e677fea..f2a90a5 100644 --- a/lib/plivo/resources/verify_session.rb +++ b/lib/plivo/resources/verify_session.rb @@ -42,7 +42,7 @@ def get(session_uuid) perform_get(session_uuid) end - def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = nil, locale=nil, brand_name=nil, app_hash=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) @@ -51,6 +51,7 @@ def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = ni 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, @@ -60,7 +61,8 @@ def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = ni method: method, locale: locale, brand_name: brand_name, - app_hash: app_hash + app_hash: app_hash, + code_length: code_length } perform_create(params) end From 963dc5e44c6b9ba6f904a031a2de6cd4b2e95041 Mon Sep 17 00:00:00 2001 From: narayana-plivo Date: Fri, 6 Sep 2024 14:46:10 +0530 Subject: [PATCH 3/3] version update --- CHANGELOG.md | 6 +++--- README.md | 2 +- lib/plivo/version.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9530a4..88b06ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,9 @@ # Change Log -## [4.60.1](https://github.com/plivo/plivo-ruby/tree/v4.60.1) (2024-08-12) +## [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` and `app_hash` in create Session API -- Added support for `brand_name` and `app_hash` param in get and list Session response +- 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.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** 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/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