plivo 4.42.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: 7e80e8ca16eb8c91e39dcf495ffaeaaa57d2b7de
4
- data.tar.gz: 9bc7a4286410725263d6bd12cf3ff919b36590e8
3
+ metadata.gz: cd620cb568e9aa01c45cbd076312392590407957
4
+ data.tar.gz: 522faeb8afa9ee5a898258055cae038c6eb01dcd
5
5
  SHA512:
6
- metadata.gz: a2587df8a9d194c111c7586a8b030aa02f8e4a6cb33d2ebf0404b5a9245bb673a794e90f81c1acc31db4198dcd19abd3b3b517f3c69586308c466e614236fa07
7
- data.tar.gz: 0dce892a4df04db97ed1956063060071b7084ebfac5254035392cb14a31bfa23d199b275538613ab065034c9aaa2bff70602c706f6ec00fc28d37377ad3df0b9
6
+ metadata.gz: 8425ccce22185e160996a10571905c5ce6f9cd1a483b6db72c4ddd2054e7d0de60e10a4bd6ac270deace0baf480054001b084b74b06b1a6ba471e8da6d4cd90b
7
+ data.tar.gz: 37cc88e459b987be4b26aa2131f62671c76d74c4c3073f47c7ed4a231dd5e00d82b72bf5c1ec2806810645d39419002983183a1a3d160a52e08472bd9d2bce22
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
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
+
3
8
  ## [4.42.0](https://github.com/plivo/plivo-ruby/tree/v4.42.0) (2023-05-04)
4
9
  **Adding new attribute - 'renewalDate' in Get Number and List Number APIs**
5
10
  - Add New Param `renewalDate` to the response of the [list all numbers API], [list single number API]
@@ -32,13 +37,10 @@
32
37
  **Feature - Enhance MDR filtering capabilities **
33
38
  - Added new fields on MDR object response
34
39
 
35
-
36
-
37
40
  ## [4.37.0](https://github.com/plivo/plivo-ruby/tree/v4.37.0) (2023-02-06)
38
41
  **Feature - Added New Param 'source_ip' in GetCall and ListCalls**
39
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)
40
43
 
41
-
42
44
  ## [4.36.0](https://github.com/plivo/plivo-ruby/tree/v4.36.0) (2022-01-25)
43
45
  **Adding new attribute - 'requester_ip' in Get Message and List Mssage APIs**
44
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.42.0'
12
+ gem 'plivo', '>= 4.43.0'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -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.42.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.42.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-04 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