Skip to content

Commit e3541de

Browse files
SMS-6997: add brand_name and app_hash in create and list api response (#245)
* SMS-6997: add brand_name and app_hash in create and list api * adding code length param * version update --------- Co-authored-by: narayana-plivo <[email protected]>
1 parent 1c8317c commit e3541de

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# Change Log
22

3+
## [4.60.2](https://github.com/plivo/plivo-ruby/tree/v4.60.2) (2024-09-06)
4+
**Feature - Adding support for brand_name and app_hash in Create,Get and List Session**
5+
- Added new request param `brand_name`, `code_length` and `app_hash` in create Session API
6+
- Added support for `brand_name`, `code_length` and `app_hash` param in get and list Session response
7+
38
## [4.60.1](https://github.com/plivo/plivo-ruby/tree/v4.60.1) (2024-09-03)
49
**Feature - Adding new element for Audio Stream XML **
510
- Added `keepCallAlive` element in Audio Stream XML
611

12+
713
## [4.60.0](https://github.com/plivo/plivo-ruby/tree/v4.60.0) (2024-07-11)
814
**Feature - Adding support for Locale param in Create, Get and List Session**
915
- Added new request param `locale` in create Session API

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a
99
Add this line to your application's Gemfile:
1010

1111
```ruby
12-
gem 'plivo', '>= 4.60.1'
12+
gem 'plivo', '>= 4.60.2'
1313
```
1414

1515
And then execute:

lib/plivo/resources/verify_session.rb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,27 @@ def get(session_uuid)
4242
perform_get(session_uuid)
4343
end
4444

45-
def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = nil, locale=nil)
45+
def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = nil, locale=nil, brand_name=nil, app_hash=nil, code_length=nil)
4646
valid_param?(:app_uuid, app_uuid, [String, Symbol], false)
4747
valid_param?(:recipient, recipient, [Integer, String, Symbol], true)
4848
valid_param?(:channel, channel, [String, Symbol], false)
4949
valid_param?(:url, url, [String], false)
5050
valid_param?(:method, method, String, false, %w[POST GET])
5151
valid_param?(:locale, locale, [String, Symbol], false)
52+
valid_param?(:brand_name, brand_name, [String, Symbol], false)
53+
valid_param?(:app_hash, app_hash, [String, Symbol], false)
54+
valid_param?(:code_length, code_length,[Integer,Symbol], false)
5255

5356
params = {
5457
app_uuid: app_uuid,
5558
recipient: recipient,
5659
channel: channel,
5760
url: url,
5861
method: method,
59-
locale: locale
62+
locale: locale,
63+
brand_name: brand_name,
64+
app_hash: app_hash,
65+
code_length: code_length
6066
}
6167
perform_create(params)
6268
end
@@ -67,7 +73,7 @@ def list(options = nil)
6773
params = {}
6874
params_expected = %i[
6975
subaccount status session_time__gt session_time__gte
70-
session_time__lt session_time__lte session_time country alias app_uuid recipient
76+
session_time__lt session_time__lte session_time country alias app_uuid recipient brand_name app_hash
7177
]
7278

7379
params_expected.each do |param|

lib/plivo/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Plivo
2-
VERSION = "4.60.1".freeze
2+
VERSION = "4.60.2".freeze
33
end

0 commit comments

Comments
 (0)