plivo 4.17.1 → 4.18.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: 7e0cf782f59b0fdc5751760de942c004c486b88e
4
- data.tar.gz: '059f69a1d0dbba6f854a5d36f9dae7b84f18acaf'
3
+ metadata.gz: e6a3db3d74dfd421dc5abd1ff8d789461c2af629
4
+ data.tar.gz: ceb2c8debfa9704d378f59a920f9edbe4f1809e1
5
5
  SHA512:
6
- metadata.gz: 2cf38bfcd9981dba0492dbd15fbb7698140a6ff65a58498887289de19d04cac4885fc5468b84e24f3ad80d1232c62af9b80e07def7b64845d0ed92a0592df5f4
7
- data.tar.gz: abbcd68c9a8b41abd9a7f5dcad3d0bfdf22dc72ab49f87ade0138dd954d71c95bd1a990f829c90e1c14b1d6c728bb2071eb4b9090833bfe12e7c628233b58872
6
+ metadata.gz: 7c579fb2504706df20e2d56dfa5856fffb69f6a024f005eeeb44f2c54b700c4f52f1749675c7fc4554fa4a61dcc9d905114f8e0648ddb5e51a2567d35be820c6
7
+ data.tar.gz: f567d3806d6ba132efed4dcdab2fed7b16290f9bcc2c8b73322bf67908aabbf7658ab424b30ec473720d0f99989f997713631d3489695377fd1ea92f44243615
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## [4.18.0](https://github.com/plivo/plivo-ruby/releases/tag/v4.18.0) (2021-07-13)
4
+ - Power pack ID has been included 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).
5
+ - Support for filtering messages by Power pack ID has been added to the [list all messages API](https://www.plivo.com/docs/sms/api/message#list-all-messages).
6
+
3
7
  ## [4.17.1](https://github.com/plivo/plivo-ruby/releases/tag/v4.17.1) (2021-06-18)
4
8
  - **WARNING**: Remove total_count field from meta data for list MDR response
5
9
 
data/README.md CHANGED
@@ -9,7 +9,7 @@ Add this line to your application's Gemfile:
9
9
 
10
10
  ```ruby
11
11
 
12
- gem 'plivo', '>= 4.17.1'
12
+ gem 'plivo', '>= 4.18.0'
13
13
 
14
14
  ```
15
15
 
@@ -29,6 +29,7 @@ module Plivo
29
29
  to_number: @to_number,
30
30
  total_amount: @total_amount,
31
31
  total_rate: @total_rate,
32
+ powerpack_id: @powerpack_id,
32
33
  units: @units
33
34
  }.to_s
34
35
  end
@@ -152,8 +153,7 @@ module Plivo
152
153
  # @option options [Int] :limit Used to display the number of results per page. The maximum number of results that can be fetched is 20.
153
154
  # @option options [Int] :offset Denotes the number of value items by which the results should be offset. Eg:- If the result contains a 1000 values and limit is set to 10 and offset is set to 705, then values 706 through 715 are displayed in the results. This parameter is also used for pagination of the results.
154
155
  # @option options [String] :error_code Delivery Response code returned by the carrier attempting the delivery. See Supported error codes {https://www.plivo.com/docs/api/message/#standard-plivo-error-codes}.
155
- #@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'])
156
- #@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'])
156
+ # @option options [String] :powerpack_id Filter the results by powerpack id.
157
157
  def list(options = nil)
158
158
  return perform_list if options.nil?
159
159
  valid_param?(:options, options, Hash, true)
@@ -161,7 +161,7 @@ module Plivo
161
161
  params = {}
162
162
  params_expected = %i[
163
163
  subaccount message_time message_time__gt message_time__gte
164
- message_time__lt message_time__lte error_code
164
+ message_time__lt message_time__lte error_code powerpack_id
165
165
  ]
166
166
  params_expected.each do |param|
167
167
  if options.key?(param) &&
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.17.1".freeze
2
+ VERSION = "4.18.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.17.1
4
+ version: 4.18.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: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday