plivo 4.60.3 → 4.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/plivo/resources/maskingsession.rb +14 -9
- data/lib/plivo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dad0624d86cfb72024e70b16d27c133c64fc2b60
|
|
4
|
+
data.tar.gz: e254b099152b86cee6aacfd702b9abd899e5a18b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96b812d2c9f73e740b410294b417040d7e948c0347cc42d00228bd893189dcbe6ea1d5a701891cd36c85baf33b11488f07931d60a6a8d8052c2c519ac4b350d8
|
|
7
|
+
data.tar.gz: 1a08ab72fae1ccbf1ae35ef450790264402023392e718b04314fef4174621b56a068cf12fb8685055f94a75cba87b3335da9f96b896585a681f24d55808e0959
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# Change Log
|
|
2
|
+
## [4.61.0](https://github.com/plivo/plivo-ruby/tree/v4.61.0) (2024-09-30)
|
|
3
|
+
**Feature - Adding new param support for Number Masking session with single party **
|
|
4
|
+
- Added `create_session_with_single_party`, `virtual_number_cooloff_period` and `force_pin_authentication` attributes in Masking Session
|
|
5
|
+
|
|
2
6
|
## [4.60.3](https://github.com/plivo/plivo-ruby/tree/v4.60.3) (2024-09-06)
|
|
3
7
|
**Feature - Adding more attribute on mdr object**
|
|
4
8
|
- Added `message_sent_time`, `message_updated_time` and `error-message` on get and list Message API
|
data/README.md
CHANGED
|
@@ -14,7 +14,7 @@ module Plivo
|
|
|
14
14
|
valid_param?(:options, options, Hash, true)
|
|
15
15
|
|
|
16
16
|
params = {}
|
|
17
|
-
params_expected = %i[session_expiry call_time_limit record record_file_format recording_callback_url
|
|
17
|
+
params_expected = %i[first_party second_party session_expiry call_time_limit record record_file_format recording_callback_url
|
|
18
18
|
callback_url callback_method ring_timeout first_party_play_url second_party_play_url recording_callback_method
|
|
19
19
|
subaccount geomatch]
|
|
20
20
|
params_expected.each do |param|
|
|
@@ -90,7 +90,10 @@ module Plivo
|
|
|
90
90
|
pin_retry: @pin_retry,
|
|
91
91
|
pin_retry_wait: @pin_retry_wait,
|
|
92
92
|
incorrect_pin_play: @incorrect_pin_play,
|
|
93
|
-
unknown_caller_play: @unknown_caller_play
|
|
93
|
+
unknown_caller_play: @unknown_caller_play,
|
|
94
|
+
force_pin_authentication: @force_pin_authentication,
|
|
95
|
+
virtual_number_cooloff_period: @virtual_number_cooloff_period,
|
|
96
|
+
create_session_with_single_party: @create_session_with_single_party
|
|
94
97
|
}.to_s
|
|
95
98
|
end
|
|
96
99
|
end
|
|
@@ -109,18 +112,18 @@ module Plivo
|
|
|
109
112
|
perform_get_with_response(session_uuid)
|
|
110
113
|
end
|
|
111
114
|
|
|
112
|
-
def create(first_party
|
|
115
|
+
def create(first_party: nil, second_party: nil, session_expiry: nil, call_time_limit: nil, record: nil, record_file_format: nil,
|
|
113
116
|
recording_callback_url: nil, initiate_call_to_first_party: nil, callback_url: nil, callback_method: nil, ring_timeout: nil,
|
|
114
117
|
first_party_play_url: nil, second_party_play_url: nil, recording_callback_method: nil, is_pin_authentication_required: nil,
|
|
115
118
|
generate_pin: nil, generate_pin_length: nil, first_party_pin: nil, second_party_pin: nil, pin_prompt_play: nil, pin_retry: nil,
|
|
116
|
-
pin_retry_wait: nil, incorrect_pin_play: nil, unknown_caller_play: nil, subaccount: nil, geomatch: nil)
|
|
119
|
+
pin_retry_wait: nil, incorrect_pin_play: nil, unknown_caller_play: nil, subaccount: nil, geomatch: nil, force_pin_authentication: nil, virtual_number_cooloff_period: nil, create_session_with_single_party: nil)
|
|
117
120
|
|
|
118
|
-
valid_param?(:first_party, first_party, [String, Symbol],
|
|
119
|
-
valid_param?(:second_party, second_party, [String, Symbol],
|
|
121
|
+
valid_param?(:first_party, first_party, [String, Symbol], false)
|
|
122
|
+
valid_param?(:second_party, second_party, [String, Symbol], false)
|
|
120
123
|
|
|
121
124
|
params = {}
|
|
122
|
-
params[:first_party] = first_party
|
|
123
|
-
params[:second_party] = second_party
|
|
125
|
+
params[:first_party] = first_party unless first_party.nil?
|
|
126
|
+
params[:second_party] = second_party unless second_party.nil?
|
|
124
127
|
params[:session_expiry] = session_expiry unless session_expiry.nil?
|
|
125
128
|
params[:call_time_limit] = call_time_limit unless call_time_limit.nil?
|
|
126
129
|
params[:record] = record unless record.nil?
|
|
@@ -145,7 +148,9 @@ module Plivo
|
|
|
145
148
|
params[:unknown_caller_play] = unknown_caller_play unless unknown_caller_play.nil?
|
|
146
149
|
params[:subaccount] = subaccount unless subaccount.nil?
|
|
147
150
|
params[:geomatch] = geomatch unless geomatch.nil?
|
|
148
|
-
|
|
151
|
+
params[:force_pin_authentication] = force_pin_authentication unless force_pin_authentication.nil?
|
|
152
|
+
params[:virtual_number_cooloff_period] = virtual_number_cooloff_period unless virtual_number_cooloff_period.nil?
|
|
153
|
+
params[:create_session_with_single_party] = create_session_with_single_party unless create_session_with_single_party.nil?
|
|
149
154
|
perform_create(params)
|
|
150
155
|
end
|
|
151
156
|
|
data/lib/plivo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: plivo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.61.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Plivo SDKs Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-09-
|
|
11
|
+
date: 2024-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|