Skip to content

Commit

Permalink
Added changes for single party session
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaBharat-plivo committed Sep 16, 2024
1 parent cbb70a3 commit 70162fd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Change Log
## [4.61.0](https://github.com/plivo/plivo-ruby/tree/v4.61.0) (2024-09-10)
**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

## [4.60.3](https://github.com/plivo/plivo-ruby/tree/v4.60.3) (2024-09-06)
**Feature - Adding more attribute on mdr object**
- Added `message_sent_time`, `message_updated_time` and `error-message` on get and list Message API
Expand Down
11 changes: 8 additions & 3 deletions lib/plivo/resources/maskingsession.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def update(options = nil)
valid_param?(:options, options, Hash, true)

params = {}
params_expected = %i[session_expiry call_time_limit record record_file_format recording_callback_url
params_expected = %i[first_party second_party session_expiry call_time_limit record record_file_format recording_callback_url
callback_url callback_method ring_timeout first_party_play_url second_party_play_url recording_callback_method
subaccount geomatch]
params_expected.each do |param|
Expand Down Expand Up @@ -90,7 +90,10 @@ def to_s
pin_retry: @pin_retry,
pin_retry_wait: @pin_retry_wait,
incorrect_pin_play: @incorrect_pin_play,
unknown_caller_play: @unknown_caller_play
unknown_caller_play: @unknown_caller_play,
force_pin_authentication: @force_pin_authentication,
virtual_number_cooloff_period: @virtual_number_cooloff_period,
create_session_with_single_party: @create_session_with_single_party
}.to_s
end
end
Expand Down Expand Up @@ -145,7 +148,9 @@ def create(first_party:, second_party:, session_expiry: nil, call_time_limit: ni
params[:unknown_caller_play] = unknown_caller_play unless unknown_caller_play.nil?
params[:subaccount] = subaccount unless subaccount.nil?
params[:geomatch] = geomatch unless geomatch.nil?

params[:force_pin_authentication] = force_pin_authentication unless force_pin_authentication.nil?
params[:virtual_number_cooloff_period] = virtual_number_cooloff_period unless virtual_number_cooloff_period.nil?
params[:create_session_with_single_party] = create_session_with_single_party unless create_session_with_single_party.nil?
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.60.3".freeze
VERSION = "4.61.0".freeze
end

0 comments on commit 70162fd

Please sign in to comment.