Skip to content

Commit

Permalink
Merge pull request #250 from plivo/verify-dtmf
Browse files Browse the repository at this point in the history
dtmf param support for verify request
  • Loading branch information
narayana-plivo authored Oct 10, 2024
2 parents 7f8a800 + d4f935f commit 54dcbc2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Change Log
## [4.61.1](https://github.com/plivo/plivo-ruby/tree/v4.61.1) (2024-10-10)
**Feature - Dtmf param in Create, Get and List Session**
- Support for the `dtmf` parameter in voice verify session request
- Added support for `dtmf` in GET and LIST verify session

## [4.61.0](https://github.com/plivo/plivo-ruby/tree/v4.61.0) (2024-09-30)
**Feature - Adding new param support for Number Masking session with single party **
- Added `create_session_with_single_party`, `virtual_number_cooloff_period` and `force_pin_authentication` attributes in Masking Session
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.61.0'
gem 'plivo', '>= 4.61.1'
```

And then execute:
Expand Down
6 changes: 4 additions & 2 deletions lib/plivo/resources/verify_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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, code_length=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, dtmf=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)
Expand All @@ -52,6 +52,7 @@ def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = ni
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)
valid_param?(:dtmf, dtmf,[Integer,Symbol], false)

params = {
app_uuid: app_uuid,
Expand All @@ -62,7 +63,8 @@ def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = ni
locale: locale,
brand_name: brand_name,
app_hash: app_hash,
code_length: code_length
code_length: code_length,
dtmf:dtmf
}
perform_create(params)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/plivo/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Plivo
VERSION = "4.61.0".freeze
VERSION = "4.61.1".freeze
end

0 comments on commit 54dcbc2

Please sign in to comment.