Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dtmf param support for verify request #250

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading