plivo 4.46.0 → 4.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/Makefile +4 -0
- data/README.md +1 -1
- data/lib/plivo/resources/messages.rb +40 -1
- 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: 7b091e4f65311a633a4393b5e027e18ddbb274f3
|
4
|
+
data.tar.gz: 16db543b3825769f7c0abf35e52bd0f1ea9f5bb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41476161f9eb8140be760123b72eb41ed1e95a8882b0ad74d5fea45b238ab41e2eefcb9d6c877aa0e14355a47e22330bf90fe4807d3497ee98868b48885a5758
|
7
|
+
data.tar.gz: d5046d8dec3a31c078d813d4e5ac6b33324560f7c270a692281e664bef7da85caf42f9a865a7d2e6889ee5f53456bbc59f12e9299d1edacd58c8bcb2ef51e52c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# Change Log
|
2
|
+
## [4.48.0](https://github.com/plivo/plivo-ruby/tree/v4.48.0) (2023-08-25)
|
3
|
+
**Feature - Added New Param 'carrier_fees', 'carrier_fees_rate', 'destination_network' in Get Message and List Message APIs**
|
4
|
+
- Added new params on message get and list response
|
2
5
|
|
3
|
-
## [4.
|
6
|
+
## [4.47.0](https://github.com/plivo/plivo-ruby/tree/v4.47.0) (2023-08-03)
|
7
|
+
**Feature - DLT parameters**
|
8
|
+
- Added new params `DLTEntityID`, `DLTTemplateID`, `DLTTemplateCategory` to the [send message API](https://www.plivo.com/docs/sms/api/message/send-a-message/)
|
9
|
+
- Added new params `DLTEntityID`, `DLTTemplateID`, `DLTTemplateCategory` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message)
|
10
|
+
|
11
|
+
## [4.46.0](https://github.com/plivo/plivo-ruby/tree/v4.46.0) (2023-06-28)
|
4
12
|
**Feature - Audio Streaming**
|
5
13
|
- Added functionality to start, stop and fetch audio streams
|
6
14
|
- Added functionality to create stream XML
|
data/Makefile
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
build:
|
4
4
|
docker-compose up --build --remove-orphans
|
5
5
|
|
6
|
+
start:
|
7
|
+
docker-compose up --build --remove-orphans --detach
|
8
|
+
docker attach $(shell docker-compose ps -q rubySDK)
|
9
|
+
|
6
10
|
test:
|
7
11
|
@[ "${CONTAINER}" ] && \
|
8
12
|
docker exec -it $$CONTAINER /bin/bash -c "bundle exec rake" || \
|
data/README.md
CHANGED
@@ -36,7 +36,13 @@ module Plivo
|
|
36
36
|
tendlc_registration_status: @tendlc_registration_status,
|
37
37
|
requester_ip: @requester_ip,
|
38
38
|
is_domestic: @is_domestic,
|
39
|
-
replaced_sender: @replaced_sender
|
39
|
+
replaced_sender: @replaced_sender,
|
40
|
+
dlt_entity_id: @dlt_entity_id,
|
41
|
+
dlt_template_id: @dlt_template_id,
|
42
|
+
dlt_template_category: @dlt_template_category,
|
43
|
+
destination_network: @destination_network,
|
44
|
+
carrier_fees_rate: @carrier_fees_rate,
|
45
|
+
carrier_fees: @carrier_fees
|
40
46
|
}.to_s
|
41
47
|
end
|
42
48
|
end
|
@@ -78,6 +84,9 @@ module Plivo
|
|
78
84
|
# @option options[Int]: message_expiry, int value
|
79
85
|
# @option options[List]: media_urls Minimum one media url should be present in Media urls list to send mms. Maximum allowd 10 media urls inside the list (e.g, media_urls : ['https//example.com/test.jpg', 'https://example.com/abcd.gif'])
|
80
86
|
# @option options[List]: media_ids Minimum one media ids should be present in Media ids list to send mms. Maximum allowd 10 media ids inside the list (e.g, media_ids : ['1fs211ba-355b-11ea-bbc9-02121c1190q7'])
|
87
|
+
# @option options [String] :dlt_entity_id This is the DLT entity id passed in the message request.
|
88
|
+
# @option options [String] :dlt_template_id This is the DLT template id passed in the message request.
|
89
|
+
# @option options [String] :dlt_template_category This is the DLT template category passed in the message request.
|
81
90
|
|
82
91
|
def create(src = nil, dst = nil, text = nil, options = nil, powerpack_uuid = nil)
|
83
92
|
#All params in One HASH
|
@@ -158,6 +167,21 @@ module Plivo
|
|
158
167
|
params[:media_ids] = value[:media_ids]
|
159
168
|
end
|
160
169
|
|
170
|
+
if value.key?(:dlt_entity_id) &&
|
171
|
+
valid_param?(:dlt_entity_id, value[:dlt_entity_id], String, true)
|
172
|
+
params[:dlt_entity_id] = value[:dlt_entity_id]
|
173
|
+
end
|
174
|
+
|
175
|
+
if value.key?(:dlt_template_id) &&
|
176
|
+
valid_param?(:dlt_template_id, value[:dlt_template_id], String, true)
|
177
|
+
params[:dlt_template_id] = value[:dlt_template_id]
|
178
|
+
end
|
179
|
+
|
180
|
+
if value.key?(:dlt_template_category) &&
|
181
|
+
valid_param?(:dlt_template_category, value[:dlt_template_category], String, true)
|
182
|
+
params[:dlt_template_category] = value[:dlt_template_category]
|
183
|
+
end
|
184
|
+
|
161
185
|
#legacy code compatibility
|
162
186
|
else
|
163
187
|
valid_param?(:src, src, [Integer, String, Symbol], false)
|
@@ -247,6 +271,21 @@ module Plivo
|
|
247
271
|
valid_param?(:trackable, options[:trackable], [TrueClass, FalseClass], true)
|
248
272
|
params[:trackable] = options[:trackable]
|
249
273
|
end
|
274
|
+
|
275
|
+
if options.key?(:dlt_entity_id) &&
|
276
|
+
valid_param?(:dlt_entity_id, options[:dlt_entity_id], String, true)
|
277
|
+
params[:dlt_entity_id] = options[:dlt_entity_id]
|
278
|
+
end
|
279
|
+
|
280
|
+
if options.key?(:dlt_template_id) &&
|
281
|
+
valid_param?(:dlt_template_id, options[:dlt_template_id], String, true)
|
282
|
+
params[:dlt_template_id] = options[:dlt_template_id]
|
283
|
+
end
|
284
|
+
|
285
|
+
if options.key?(:dlt_template_category) &&
|
286
|
+
valid_param?(:dlt_template_category, options[:dlt_template_category], String, true)
|
287
|
+
params[:dlt_template_category] = options[:dlt_template_category]
|
288
|
+
end
|
250
289
|
end
|
251
290
|
perform_create(params)
|
252
291
|
end
|
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.48.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: 2023-
|
11
|
+
date: 2023-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|