plivo 4.41.0 → 4.43.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: 3cf9bd895d56db51752dbe68b26be13aff5698e7
4
- data.tar.gz: c04de3751e88af3dfdd33ecd2d59302df6b0c75f
3
+ metadata.gz: cd620cb568e9aa01c45cbd076312392590407957
4
+ data.tar.gz: 522faeb8afa9ee5a898258055cae038c6eb01dcd
5
5
  SHA512:
6
- metadata.gz: 13533f5616a94d8fd1dd95b838f057afa397f3d7a0cdab031c059e25d61696e66c021cc02149089da0131a0a516e03d175a78ce57b63c751decfe89e4a9721da
7
- data.tar.gz: 4f51b9ab0c06f30fd897a91adce01711ba55e5e04f5443be7035e6273d97dbd4c32093b71cef8929fc5424032d8d48eccf9860b9384cd08509c59f4f983cf86a
6
+ metadata.gz: 8425ccce22185e160996a10571905c5ce6f9cd1a483b6db72c4ddd2054e7d0de60e10a4bd6ac270deace0baf480054001b084b74b06b1a6ba471e8da6d4cd90b
7
+ data.tar.gz: 37cc88e459b987be4b26aa2131f62671c76d74c4c3073f47c7ed4a231dd5e00d82b72bf5c1ec2806810645d39419002983183a1a3d160a52e08472bd9d2bce22
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## [4.43.0](https://github.com/plivo/plivo-ruby/tree/v4.43.0) (2023-05-29)
4
+ **Feature - Recording API changes**
5
+ - Added `monthly_recording_storage_amount`, `recording_storage_rate`, `rounded_recording_duration`, and `recording_storage_duration` parameters to the response for [get single recording API](https://www.plivo.com/docs/voice/api/recording#retrieve-a-recording) and [get all recordings API](https://www.plivo.com/docs/voice/api/recording#list-all-recordings)
6
+ - Added `recording_storage_duration` parameter as a filter option for [get all recordings API](https://www.plivo.com/docs/voice/api/recording#list-all-recordings)
7
+
8
+ ## [4.42.0](https://github.com/plivo/plivo-ruby/tree/v4.42.0) (2023-05-04)
9
+ **Adding new attribute - 'renewalDate' in Get Number and List Number APIs**
10
+ - Add New Param `renewalDate` to the response of the [list all numbers API], [list single number API]
11
+ - Add 3 new filters to AccountPhoneNumber - list all my numbers API:`renewal_date`, `renewal_date__gt`, `renewal_date__gte`,`renewal_date__lt` and `renewal_date__lte` (https://www.plivo.com/docs/numbers/api/account-phone-number#list-all-my-numbers)
12
+
3
13
  ## [4.41.0](https://github.com/plivo/plivo-ruby/tree/v4.41.0) (2023-04-25)
4
14
  **Adding new attribute - 'replaced_sender' in Get Message and List Message APIs**
5
15
  - Add `replaced_sender` 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)
@@ -27,13 +37,10 @@
27
37
  **Feature - Enhance MDR filtering capabilities **
28
38
  - Added new fields on MDR object response
29
39
 
30
-
31
-
32
40
  ## [4.37.0](https://github.com/plivo/plivo-ruby/tree/v4.37.0) (2023-02-06)
33
41
  **Feature - Added New Param 'source_ip' in GetCall and ListCalls**
34
42
  - Add `source_ip` to the response for the [retrieve a call details API](https://www.plivo.com/docs/voice/api/call#retrieve-a-call) and the [retreive all call details API](https://www.plivo.com/docs/voice/api/call#retrieve-all-calls)
35
43
 
36
-
37
44
  ## [4.36.0](https://github.com/plivo/plivo-ruby/tree/v4.36.0) (2022-01-25)
38
45
  **Adding new attribute - 'requester_ip' in Get Message and List Mssage APIs**
39
46
  - Add `requester_ip` 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)
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.41.0'
12
+ gem 'plivo', '>= 4.43.0'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -182,7 +182,8 @@ module Plivo
182
182
  voice_rate: @voice_rate,
183
183
  tendlc_campaign_id: @tendlc_campaign_id,
184
184
  tendlc_registration_status: @tendlc_registration_status,
185
- toll_free_sms_verification: @toll_free_sms_verification
185
+ toll_free_sms_verification: @toll_free_sms_verification,
186
+ renewal_date: @renewal_date
186
187
  }.to_s
187
188
  end
188
189
  end
@@ -220,6 +221,11 @@ module Plivo
220
221
  # - unverified - Returns a list of SMS-enabled US/CA toll-free numbers that are not verified.
221
222
  # - pending_verification - Returns a list of SMS-enabled US/CA toll-free numbers that are pending verification
222
223
  # - verified - Returns a list of SMS-enabled US/CA toll-free numbers that are verified for enhanced outbound SMS limits.
224
+ # @option options [String] :renewal_date Returns phone numbers that will be renewed on the specified date. Format: YYYY-MM-DD
225
+ # @option options [String] :renewal_date__lt Returns phone numbers that will be renewed before the specified date. Format: YYYY-MM-DD
226
+ # @option options [String] :renewal_date__lte Returns phone numbers that will be renewed on or before the specified date. Format: YYYY-MM-DD
227
+ # @option options [String] :renewal_date__gt Returns phone numbers that will be renewed after the specified date. Format: YYYY-MM-DD
228
+ # @option options [String] :renewal_date__gte Returns phone numbers that will be renewed on or after the specified date. Format: YYYY-MM-DD
223
229
  def list(options = nil)
224
230
  return perform_list if options.nil?
225
231
 
@@ -227,7 +233,7 @@ module Plivo
227
233
 
228
234
  params = {}
229
235
 
230
- %i[number_startswith subaccount alias tendlc_campaign_id tendlc_registration_status toll_free_sms_verification].each do |param|
236
+ %i[number_startswith subaccount alias tendlc_campaign_id tendlc_registration_status toll_free_sms_verification renewal_date renewal_date__lt renewal_date__lte renewal_date__gt renewal_date__gte].each do |param|
231
237
  if options.key?(param) &&
232
238
  valid_param?(param, options[param], [String, Symbol], true)
233
239
  params[param] = options[param]
@@ -19,6 +19,8 @@ module Plivo
19
19
  api_id: @api_id,
20
20
  call_uuid: @call_uuid,
21
21
  conference_name: @conference_name,
22
+ monthly_recording_storage_amount: @monthly_recording_storage_amount,
23
+ recording_storage_duration: @recording_storage_duration,
22
24
  recording_duration_ms: @recording_duration_ms,
23
25
  recording_end_ms: @recording_end_ms,
24
26
  recording_format: @recording_format,
@@ -27,6 +29,8 @@ module Plivo
27
29
  recording_type: @recording_type,
28
30
  recording_url: @recording_url,
29
31
  resource_uri: @resource_uri,
32
+ rounded_recording_duration: @rounded_recording_duration,
33
+ recording_storage_rate: @recording_storage_rate,
30
34
  from_number: @from_number,
31
35
  to_number: @to_number,
32
36
  mpc_name: @mpc_name,
@@ -60,6 +64,13 @@ module Plivo
60
64
  # - add_time\__lt: lt stands for lesser than. The format expected is YYYY-MM-DD HH:MM[:ss[.uuuuuu]]. Eg:- To get all recordings that started before 2012-03-21 11:47, use add_time\__lt=2012-03-21 11:47
61
65
  # - add_time\__gte: lte stands for lesser than or equal. The format expected is YYYY-MM-DD HH:MM[:ss[.uuuuuu]]. Eg:- To get all recordings that started before or exactly at 2012-03-21 11:47[:30], use add_time\__lte=2012-03-21 11:47[:30]
62
66
  # - Note: The above filters can be combined to get recordings that started in a particular time range.
67
+ # @option options [Int] :recording_storage_duration - Used to filter out recordings according to the number of days they have been stored in the DB.The recording_storage_duration filter can be used in the following five forms:
68
+ # - recording_storage_duration: Takes an integer input and returns the recordings which are as old as that value.
69
+ # - recording_storage_duration\__gt: gt stands for greater than. The format expected is an integer value. Eg:- To get all recordings that are older than 100 days, use recording_storage_duration\__gt=100
70
+ # - recording_storage_duration\__gte: gte stands for greater than or equal. The format expected is an integer value. Eg:- To get all recordings that are older than or equal to 100 days old, use recording_storage_duration\__gte=100
71
+ # - recording_storage_duration\__lt: lt stands for lesser than. The format expected is an integer value. Eg:- To get all recordings that are newer than 100 days, use recording_storage_duration\__lt=100
72
+ # - recording_storage_duration\__lte: lte stands for lesser than or equal. The format expected is an integer value. Eg:- To get all recordings that are newer than or equal to 100 days old, use recording_storage_duration\__lte=100
73
+ # - Note: The above filters can be combined to get recordings that started in a particular time range.
63
74
  # @option options [Int] :limit Used to display the number of results per page. The maximum number of results that can be fetched is 20.
64
75
  # @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.
65
76
  def list(options = nil)
@@ -72,10 +83,13 @@ module Plivo
72
83
  add_time__lt add_time__lte
73
84
  from_number to_number conference_uuid
74
85
  conference_name mpc_name mpc_uuid
86
+ recording_storage_duration
87
+ recording_storage_duration__gt recording_storage_duration__gte
88
+ recording_storage_duration__lt recording_storage_duration__lte
75
89
  ]
76
90
 
77
91
  params_expected.each do |param|
78
- if options.key?(param) && valid_param?(param, options[param], [String, Symbol], true)
92
+ if options.key?(param) && valid_param?(param, options[param], [String, Symbol, Integer], true)
79
93
  params[param] = options[param]
80
94
  end
81
95
  end
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.41.0".freeze
2
+ VERSION = "4.43.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.41.0
4
+ version: 4.43.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-05-03 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday