plivo 4.30.1 → 4.31.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -4
- data/README.md +1 -1
- data/lib/plivo/resources/campaign.rb +9 -0
- data/lib/plivo/resources/numbers.rb +18 -3
- data/lib/plivo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07b7ef59fbe4a5f72cacee5122fd520029f138f8
|
4
|
+
data.tar.gz: f58b32cf0e4934c03a4dcdb4e19cc1d967c3a07f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a496f01830a35eb7c96e90e96aecd2373b46beab4ba248c664c95dc69bc8b1aa3b336f48ec656426b5096fa4c707f499db27e1858ac5438d4797872b0eb4e3b
|
7
|
+
data.tar.gz: 76531fac18162b2b38ef2d0070b29871037518406a5ee69c17abf7c97e354dfd6c8d4496a82c410bce8495446cf0e56c7d66d875ac648a553d7d81b8f81e7a5e
|
data/CHANGELOG.md
CHANGED
@@ -1,18 +1,28 @@
|
|
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)
|
2
6
|
|
3
|
-
|
7
|
+
|
8
|
+
## [4.30.2](https://github.com/plivo/plivo-ruby/tree/v4.30.2) (2022-09-28)
|
9
|
+
**10DLC: Campaign request**
|
10
|
+
- Added more attributes to create campaign request
|
11
|
+
|
12
|
+
## [4.30.1](https://github.com/plivo/plivo-ruby/tree/v4.30.1) (2022-09-20)
|
4
13
|
**stability - faraday upgrade**
|
5
14
|
- faraday version upgrade
|
6
15
|
|
7
|
-
|
16
|
+
|
17
|
+
## [4.30.0](https://github.com/plivo/plivo-ruby/tree/v4.30.0) (2022-08-26)
|
8
18
|
**Feature - 10DLC APIs**
|
9
19
|
- Added new 10DLC APIs
|
10
20
|
|
11
|
-
## [4.29.0](https://github.com/plivo/plivo-
|
21
|
+
## [4.29.0](https://github.com/plivo/plivo-ruby/tree/v4.29.0) (2022-08-01)
|
12
22
|
**Feature - Token Creation**
|
13
23
|
- `JWT Token Creation API` added functionality to create a new JWT token.
|
14
24
|
|
15
|
-
## [4.28.0](https://github.com/plivo/plivo-
|
25
|
+
## [4.28.0](https://github.com/plivo/plivo-ruby/tree/v4.28.0) (2022-07-11)
|
16
26
|
**Feature - STIR Attestation**
|
17
27
|
- Add stir attestation param as part of Get CDR and Get live call APIs Response
|
18
28
|
|
data/README.md
CHANGED
@@ -74,6 +74,15 @@ module Plivo
|
|
74
74
|
if not options[:usecase]
|
75
75
|
raise_invalid_request("usecase must be provided")
|
76
76
|
end
|
77
|
+
if not options[:message_flow]
|
78
|
+
raise_invalid_request("message_flow must be provided")
|
79
|
+
end
|
80
|
+
if not options[:help_message]
|
81
|
+
raise_invalid_request("help_message must be provided")
|
82
|
+
end
|
83
|
+
if not options[:optout_message]
|
84
|
+
raise_invalid_request("optout_message must be provided")
|
85
|
+
end
|
77
86
|
perform_create(options)
|
78
87
|
end
|
79
88
|
##
|
@@ -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
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.
|
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-
|
11
|
+
date: 2022-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|