plivo 4.63.2 → 4.63.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53d2a335b1789eb8331f8aab78e2d84b40e0efe6d03d73f8588a36feae7ff90c
4
- data.tar.gz: 59322ce534f480fd48ae3d3056f1c1349982a27c101818f26ace681961f32564
3
+ metadata.gz: d727f995df68531e016dbc2975e399e80f5bf9eb839fffa15d91990f022856ea
4
+ data.tar.gz: 54ade4f376628a27d9e4f9dc684d70c72f3f02811dbbf26ca909723baf9dcdce
5
5
  SHA512:
6
- metadata.gz: 16d1cd343dbb9c7dc3009a41ac5d1068129b6178deb77174e2a18bf34d8a8683330c9f8b4f92d7260a5b12d90d6c7e2edca9e2bbba5e986fa9480678cce524f7
7
- data.tar.gz: '09295b7f0a2b821f1d72afd2e36421da7e4da19a68931c768ac20f662892b5a00f47bb278baab42942cd7db709f9d004625128346cec94426800a2541a9e8403'
6
+ metadata.gz: f934465d8bd59a005ac9e8abb3e4845cb06c9970515fed9cdbee488745d1e9ee47145eb6e809857b5e8968371093cb649a5701e578ae552fed9780a1389051d3
7
+ data.tar.gz: 7c3c38c7e67555db08fc1369590df23ab9197b6d2122956636d9f98a00143e39e37409eb55c97e26a4e53f7cfe51c6cf1c2095416b20017be41a487f2e482258
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## [4.63.4](https://github.com/plivo/plivo-ruby/tree/v4.63.4) (2026-07-28)
4
+ **Feature - Toll-free verification terms, privacy, opt-in and help fields**
5
+ - Added optional `terms_and_conditions_link`, `privacy_policy_link`, `optin_message` and `help_message` parameters to the toll-free verification create and update methods
6
+
7
+ ## [4.63.3](https://github.com/plivo/plivo-ruby/tree/v4.63.3) (2026-06-11)
8
+ **Feature - Compliance application support at number purchase**
9
+ - Added `compliance_application_id` optional parameter to PhoneNumber `buy` method, sent as the `compliance_application_id` API parameter for purchasing regulated numbers that require a linked regulatory compliance application at purchase time
10
+
3
11
  ## [4.63.2](https://github.com/plivo/plivo-ruby/tree/v4.63.2) (2026-05-26)
4
12
  **Feature - Profile API DBA field support**
5
13
  - Added Doing Business As (DBA) field support to Profile API
@@ -9,12 +9,13 @@ module Plivo
9
9
  super
10
10
  end
11
11
 
12
- def buy(app_id = nil, verification_info = nil, cnam_lookup = nil, ha_enable = nil)
12
+ def buy(app_id = nil, verification_info = nil, cnam_lookup = nil, ha_enable = nil, compliance_application_id = nil)
13
13
  params = {}
14
14
  params[:app_id] = app_id unless app_id.nil?
15
15
  params[:verification_info] = verification_info unless verification_info.nil?
16
16
  params[:cnam_lookup] = cnam_lookup unless cnam_lookup.nil?
17
17
  params[:ha_enable] = ha_enable unless ha_enable.nil?
18
+ params[:compliance_application_id] = compliance_application_id unless compliance_application_id.nil?
18
19
  perform_action(nil, 'POST', params, true)
19
20
  end
20
21
 
@@ -123,10 +124,10 @@ module Plivo
123
124
  end
124
125
  end
125
126
 
126
- def buy(number, app_id = nil, verification_info = nil, cnam_lookup = nil, ha_enable = nil)
127
+ def buy(number, app_id = nil, verification_info = nil, cnam_lookup = nil, ha_enable = nil, compliance_application_id = nil)
127
128
  valid_param?(:number, number, [Integer, String, Symbol], true)
128
129
  PhoneNumber.new(@_client,
129
- resource_id: number).buy(app_id, verification_info, cnam_lookup, ha_enable)
130
+ resource_id: number).buy(app_id, verification_info, cnam_lookup, ha_enable, compliance_application_id)
130
131
  end
131
132
  end
132
133
 
@@ -15,7 +15,7 @@ module Plivo
15
15
  valid_param?(:options, options, Hash, true)
16
16
 
17
17
  params = {}
18
- params_expected = %i[ usecase usecase_summary profile_uuid optin_type optin_image_url volume message_sample callback_method callback_url extra_data additional_information ]
18
+ params_expected = %i[ usecase usecase_summary profile_uuid optin_type optin_image_url volume message_sample callback_method callback_url extra_data additional_information terms_and_conditions_link privacy_policy_link optin_message help_message ]
19
19
  params_expected.each do |param|
20
20
  if options.key?(param) &&
21
21
  valid_param?(param, options[param], [String, Symbol], false)
@@ -41,6 +41,10 @@ module Plivo
41
41
  callback_url: @callback_url,
42
42
  extra_data: @extra_data,
43
43
  additional_information: @additional_information,
44
+ terms_and_conditions_link: @terms_and_conditions_link,
45
+ privacy_policy_link: @privacy_policy_link,
46
+ optin_message: @optin_message,
47
+ help_message: @help_message,
44
48
  message_sample: @message_sample,
45
49
  optin_image_url: @optin_image_url,
46
50
  optin_type: @optin_type,
@@ -121,8 +125,12 @@ module Plivo
121
125
  # @param [String] callback_method
122
126
  # @param [String] extra_data
123
127
  # @param [String] additional_information
128
+ # @param [String] terms_and_conditions_link
129
+ # @param [String] privacy_policy_link
130
+ # @param [String] optin_message
131
+ # @param [String] help_message
124
132
  # return [TollfreeVerification] TollfreeVerification
125
- def create(number, usecase, usecase_summary, profile_uuid, optin_type, optin_image_url, volume, message_sample, callback_url = nil, callback_method = nil, extra_data = nil, additional_information = nil)
133
+ def create(number, usecase, usecase_summary, profile_uuid, optin_type, optin_image_url, volume, message_sample, callback_url = nil, callback_method = nil, extra_data = nil, additional_information = nil, terms_and_conditions_link = nil, privacy_policy_link = nil, optin_message = nil, help_message = nil)
126
134
  valid_param?(:number, number, [String, Symbol], true)
127
135
  valid_param?(:usecase, usecase, [String, Symbol], true)
128
136
  valid_param?(:usecase_summary, usecase_summary, [String, Symbol], true)
@@ -135,6 +143,10 @@ module Plivo
135
143
  valid_param?(:callback_method, callback_method, [String, Symbol], false)
136
144
  valid_param?(:extra_data, extra_data, [String, Symbol], false)
137
145
  valid_param?(:additional_information, additional_information, [String, Symbol], false)
146
+ valid_param?(:terms_and_conditions_link, terms_and_conditions_link, [String, Symbol], false)
147
+ valid_param?(:privacy_policy_link, privacy_policy_link, [String, Symbol], false)
148
+ valid_param?(:optin_message, optin_message, [String, Symbol], false)
149
+ valid_param?(:help_message, help_message, [String, Symbol], false)
138
150
 
139
151
  params = {
140
152
  number: number,
@@ -148,7 +160,11 @@ module Plivo
148
160
  callback_url: callback_url,
149
161
  callback_method: callback_method,
150
162
  extra_data: extra_data,
151
- additional_information: additional_information
163
+ additional_information: additional_information,
164
+ terms_and_conditions_link: terms_and_conditions_link,
165
+ privacy_policy_link: privacy_policy_link,
166
+ optin_message: optin_message,
167
+ help_message: help_message
152
168
  }.delete_if { |key, value| value.nil? }
153
169
 
154
170
  return perform_create(params)
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.63.2".freeze
2
+ VERSION = "4.63.4".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.63.2
4
+ version: 4.63.4
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: 2026-05-26 00:00:00.000000000 Z
11
+ date: 2026-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday