Skip to content

Commit

Permalink
Merge pull request #243 from plivo/SMS-6930
Browse files Browse the repository at this point in the history
Added locale param for verify
  • Loading branch information
rachana-plivo authored Jul 11, 2024
2 parents 540da23 + fe2781e commit ae7e38f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## [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
- Added support for `locale` param in get and list Session response

## [4.59.1](https://github.com/plivo/plivo-ruby/tree/v4.59.1) (2023-05-31)
**Feature - Adding filtering support for List Application API**
- Added new filter param `app_name` in list application api
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.59.1'
gem 'plivo', '>= 4.60.0'
```

And then execute:
Expand Down
7 changes: 5 additions & 2 deletions lib/plivo/resources/verify_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def to_s
alias: @alias,
recipient: @recipient,
channel: @channel,
locale: @locale,
status: @status,
count: @count,
requestor_ip: @requestor_ip,
Expand All @@ -41,19 +42,21 @@ def get(session_uuid)
perform_get(session_uuid)
end

def create(app_uuid = nil, recipient = nil,channel = nil,url = nil, method = nil)
def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = nil, locale=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)

params = {
app_uuid: app_uuid,
recipient: recipient,
channel: channel,
url: url,
method: method
method: method,
locale: locale
}
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.59.1".freeze
VERSION = "4.60.0".freeze
end

0 comments on commit ae7e38f

Please sign in to comment.