plivo 4.30.2 → 4.31.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: cadbccf5ea0d9633436b708272ea94f9b1172af4
4
- data.tar.gz: a5945cc8d2753848fd7fccfde863d781e34a4427
3
+ metadata.gz: 07b7ef59fbe4a5f72cacee5122fd520029f138f8
4
+ data.tar.gz: f58b32cf0e4934c03a4dcdb4e19cc1d967c3a07f
5
5
  SHA512:
6
- metadata.gz: d5369dbbc7bca78eb67c4e59368c845a1161e5906752bf0c7dbca1feec45cdbc8dd91123f194c5920e1045c10427d242afdb64d69ed65b381594245cfb61f0c4
7
- data.tar.gz: 9775793ae2d34675569fa9bf7ef38378e3d63776a8a4ca1db967768a4a41e7328a8dae1fa7d081884d57f0c792e53166ef7980d7279334576a8bb5134d318f1e
6
+ metadata.gz: 8a496f01830a35eb7c96e90e96aecd2373b46beab4ba248c664c95dc69bc8b1aa3b336f48ec656426b5096fa4c707f499db27e1858ac5438d4797872b0eb4e3b
7
+ data.tar.gz: 76531fac18162b2b38ef2d0070b29871037518406a5ee69c17abf7c97e354dfd6c8d4496a82c410bce8495446cf0e56c7d66d875ac648a553d7d81b8f81e7a5e
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
  # Change Log
2
+ ## [4.31.0](https://github.com/plivo/plivo-ruby/tree/v4.31.0) (2022-10-14)
3
+ **Adding new attributes to Account PhoneNumber object**
4
+ -Added 3 new keys to AccountPhoneNumber object:`tendlc_registration_status`, `tendlc_campaign_id` and `toll_free_sms_verification` (https://www.plivo.com/docs/numbers/api/account-phone-number#the-accountphonenumber-object)
5
+ -Added 3 new filters to AccountPhoneNumber - list all my numbers API:`tendlc_registration_status`, `tendlc_campaign_id` and `toll_free_sms_verification` (https://www.plivo.com/docs/numbers/api/account-phone-number#list-all-my-numbers)
6
+
2
7
 
3
8
  ## [4.30.2](https://github.com/plivo/plivo-ruby/tree/v4.30.2) (2022-09-28)
4
9
  **10DLC: Campaign request**
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.30.2'
12
+ gem 'plivo', '>= 4.31.0'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -33,7 +33,10 @@ module Plivo
33
33
  sms_enabled: @sms_enabled,
34
34
  sms_rate: @sms_rate,
35
35
  voice_enabled: @voice_enabled,
36
- voice_rate: @voice_rate
36
+ voice_rate: @voice_rate,
37
+ tendlc_campaign_id: @tendlc_campaign_id,
38
+ tendlc_registration_status: @tendlc_registration_status,
39
+ toll_free_sms_verification: @toll_free_sms_verification
37
40
  }.to_s
38
41
  end
39
42
  end
@@ -176,7 +179,10 @@ module Plivo
176
179
  sms_rate: @sms_rate,
177
180
  sub_account: @sub_account,
178
181
  voice_enabled: @voice_enabled,
179
- voice_rate: @voice_rate
182
+ voice_rate: @voice_rate,
183
+ tendlc_campaign_id: @tendlc_campaign_id,
184
+ tendlc_registration_status: @tendlc_registration_status,
185
+ toll_free_sms_verification: @toll_free_sms_verification
180
186
  }.to_s
181
187
  end
182
188
  end
@@ -205,6 +211,15 @@ module Plivo
205
211
  # - sms - Returns a list of numbers that provide only 'sms' services.
206
212
  # @option options [Int] :limit Used to display the number of results per page. The maximum number of results that can be fetched is 20.
207
213
  # @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.
214
+ # @option options [String] :tendlc_campaign_id The 10DLC campaign that the number is currently linked with. You can filter US/CA local numbers linked to a specific campaign.
215
+ # @option options [String] :tendlc_registration_status Indicates the 10DLC registration status of a US/CA local number. The following values are valid:
216
+ # - unregistered - Returns a list of numbers that are not linked to any campaign
217
+ # - processing - Returns a list of numbers that are currently in the process of being linked to respective campaigns.
218
+ # - completed - Returns a list of numbers that are successfully linked to respective campaigns.
219
+ # @option options [String] :toll_free_sms_verification Indicates the toll-free SMS verification status of SMS-enabled US/CA toll-free number. The following values are valid:
220
+ # - unverified - Returns a list of SMS-enabled US/CA toll-free numbers that are not verified.
221
+ # - pending_verification - Returns a list of SMS-enabled US/CA toll-free numbers that are pending verification
222
+ # - verified - Returns a list of SMS-enabled US/CA toll-free numbers that are verified for enhanced outbound SMS limits.
208
223
  def list(options = nil)
209
224
  return perform_list if options.nil?
210
225
 
@@ -212,7 +227,7 @@ module Plivo
212
227
 
213
228
  params = {}
214
229
 
215
- %i[number_startswith subaccount alias].each do |param|
230
+ %i[number_startswith subaccount alias tendlc_campaign_id tendlc_registration_status toll_free_sms_verification].each do |param|
216
231
  if options.key?(param) &&
217
232
  valid_param?(param, options[param], [String, Symbol], true)
218
233
  params[param] = options[param]
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.30.2".freeze
2
+ VERSION = "4.31.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.30.2
4
+ version: 4.31.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: 2022-09-28 00:00:00.000000000 Z
11
+ date: 2022-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday