plivo 4.46.0 → 4.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a1adf70a4fde50a292d378f057a7f65bfa9ed7b
4
- data.tar.gz: 5d89de13e75759f0cfbb7ca9661b43fa743ef8de
3
+ metadata.gz: cf67752d6471e1885a20a7a0c8aef55ca805320b
4
+ data.tar.gz: 801e00b7b478b937765f5e94ba96b4d61e00c006
5
5
  SHA512:
6
- metadata.gz: 32ff933158008f134dbc6159cfd9f9bf512f1be42c73aa891afd805a354500065459b0e8d5a6fcac33957f9e3c49445ac903b4b28ca9aeeaf4a4b5213128263f
7
- data.tar.gz: fad484cd5da48a0843ec94b182d3d3adb199505b7552cff1dcc017636eb34d917b1d2649ff0fac2519e21933b363807798c6fa89fcc5c05b1d662a5b7084df32
6
+ metadata.gz: ba7ca1524870ee29ee121ce601ac1bf1884c41ceb78378e634a6fea6aff11540112b5c70f2e4bbd49881038858faddb3b1d0217a891481cbbedada127fd983e3
7
+ data.tar.gz: 7ea47c993a2c9c2958732f2a94bdff50e1e146daa6f4e608c0a44e4db3fa54cc65c825532150405b9efc2047f938bf03987c0e339ab5a90088e4305319c051c0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log
2
2
 
3
- ## [4.46.0](https://github.com/plivo/plivo-go/tree/v4.46.0) (2023-06-28)
3
+ ## [4.47.0](https://github.com/plivo/plivo-ruby/tree/v4.47.0) (2023-08-03)
4
+ **Feature - DLT parameters**
5
+ - Added new params `DLTEntityID`, `DLTTemplateID`, `DLTTemplateCategory` to the [send message API](https://www.plivo.com/docs/sms/api/message/send-a-message/)
6
+ - 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)
7
+
8
+ ## [4.46.0](https://github.com/plivo/plivo-ruby/tree/v4.46.0) (2023-06-28)
4
9
  **Feature - Audio Streaming**
5
10
  - Added functionality to start, stop and fetch audio streams
6
11
  - 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
@@ -9,7 +9,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'plivo', '>= 4.46.0'
12
+ gem 'plivo', '>= 4.47.0'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -36,7 +36,10 @@ 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
40
43
  }.to_s
41
44
  end
42
45
  end
@@ -78,6 +81,9 @@ module Plivo
78
81
  # @option options[Int]: message_expiry, int value
79
82
  # @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
83
  # @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'])
84
+ # @option options [String] :dlt_entity_id This is the DLT entity id passed in the message request.
85
+ # @option options [String] :dlt_template_id This is the DLT template id passed in the message request.
86
+ # @option options [String] :dlt_template_category This is the DLT template category passed in the message request.
81
87
 
82
88
  def create(src = nil, dst = nil, text = nil, options = nil, powerpack_uuid = nil)
83
89
  #All params in One HASH
@@ -158,6 +164,21 @@ module Plivo
158
164
  params[:media_ids] = value[:media_ids]
159
165
  end
160
166
 
167
+ if value.key?(:dlt_entity_id) &&
168
+ valid_param?(:dlt_entity_id, value[:dlt_entity_id], String, true)
169
+ params[:dlt_entity_id] = value[:dlt_entity_id]
170
+ end
171
+
172
+ if value.key?(:dlt_template_id) &&
173
+ valid_param?(:dlt_template_id, value[:dlt_template_id], String, true)
174
+ params[:dlt_template_id] = value[:dlt_template_id]
175
+ end
176
+
177
+ if value.key?(:dlt_template_category) &&
178
+ valid_param?(:dlt_template_category, value[:dlt_template_category], String, true)
179
+ params[:dlt_template_category] = value[:dlt_template_category]
180
+ end
181
+
161
182
  #legacy code compatibility
162
183
  else
163
184
  valid_param?(:src, src, [Integer, String, Symbol], false)
@@ -247,6 +268,21 @@ module Plivo
247
268
  valid_param?(:trackable, options[:trackable], [TrueClass, FalseClass], true)
248
269
  params[:trackable] = options[:trackable]
249
270
  end
271
+
272
+ if options.key?(:dlt_entity_id) &&
273
+ valid_param?(:dlt_entity_id, options[:dlt_entity_id], String, true)
274
+ params[:dlt_entity_id] = options[:dlt_entity_id]
275
+ end
276
+
277
+ if options.key?(:dlt_template_id) &&
278
+ valid_param?(:dlt_template_id, options[:dlt_template_id], String, true)
279
+ params[:dlt_template_id] = options[:dlt_template_id]
280
+ end
281
+
282
+ if options.key?(:dlt_template_category) &&
283
+ valid_param?(:dlt_template_category, options[:dlt_template_category], String, true)
284
+ params[:dlt_template_category] = options[:dlt_template_category]
285
+ end
250
286
  end
251
287
  perform_create(params)
252
288
  end
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.46.0".freeze
2
+ VERSION = "4.47.0".freeze
3
3
  end
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.46.0
4
+ version: 4.47.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-06-30 00:00:00.000000000 Z
11
+ date: 2023-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday