zernio-sdk 0.0.620 → 0.0.621
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 +4 -4
- data/README.md +5 -0
- data/docs/GetWhatsAppCallingConfig200Response.md +5 -1
- data/docs/StartWhatsAppCallerIdVerification200Response.md +22 -0
- data/docs/StartWhatsAppCallerIdVerificationRequest.md +18 -0
- data/docs/VerifyWhatsAppCallerIdRequest.md +18 -0
- data/docs/WhatsAppCallingApi.md +146 -0
- data/lib/zernio-sdk/api/whats_app_calling_api.rb +144 -0
- data/lib/zernio-sdk/models/get_whats_app_calling_config200_response.rb +59 -5
- data/lib/zernio-sdk/models/start_whats_app_caller_id_verification200_response.rb +199 -0
- data/lib/zernio-sdk/models/start_whats_app_caller_id_verification_request.rb +183 -0
- data/lib/zernio-sdk/models/verify_whats_app_caller_id_request.rb +182 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +3 -0
- data/openapi.yaml +79 -0
- data/spec/api/whats_app_calling_api_spec.rb +26 -0
- data/spec/models/get_whats_app_calling_config200_response_spec.rb +16 -0
- data/spec/models/start_whats_app_caller_id_verification200_response_spec.rb +52 -0
- data/spec/models/start_whats_app_caller_id_verification_request_spec.rb +40 -0
- data/spec/models/verify_whats_app_caller_id_request_spec.rb +36 -0
- metadata +13 -1
|
@@ -193,6 +193,19 @@ describe 'WhatsAppCallingApi' do
|
|
|
193
193
|
end
|
|
194
194
|
end
|
|
195
195
|
|
|
196
|
+
# unit tests for start_whats_app_caller_id_verification
|
|
197
|
+
# Start caller-ID verification for a customer-brought number
|
|
198
|
+
# Customer-brought (BYO) WhatsApp numbers cannot present themselves as caller ID on `tel:` call forwards until verified (carrier anti-spoofing); until then forwarded calls show a Zernio number (`callerIdMode: platform` on the calling config). This sends a one-time code to the number by SMS or voice call. Re-POST to resend. Zernio-purchased numbers never need this and get a 400.
|
|
199
|
+
# @param id Phone number record ID (from GET /v1/phone-numbers).
|
|
200
|
+
# @param [Hash] opts the optional parameters
|
|
201
|
+
# @option opts [StartWhatsAppCallerIdVerificationRequest] :start_whats_app_caller_id_verification_request
|
|
202
|
+
# @return [StartWhatsAppCallerIdVerification200Response]
|
|
203
|
+
describe 'start_whats_app_caller_id_verification test' do
|
|
204
|
+
it 'should work' do
|
|
205
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
|
|
196
209
|
# unit tests for update_whats_app_calling
|
|
197
210
|
# Update calling config
|
|
198
211
|
# Update fields on an already-enabled number. Only fields present in the body are written; `undefined` leaves the stored value alone, explicit `null` clears a nullable field. No Meta side effect, this only changes local routing state consumed by the Telnyx webhook handler.
|
|
@@ -219,4 +232,17 @@ describe 'WhatsAppCallingApi' do
|
|
|
219
232
|
end
|
|
220
233
|
end
|
|
221
234
|
|
|
235
|
+
# unit tests for verify_whats_app_caller_id
|
|
236
|
+
# Confirm the caller-ID verification code
|
|
237
|
+
# Submits the one-time code the number received. On success, `tel:` call forwards present the business number itself as caller ID (`callerIdMode: business`).
|
|
238
|
+
# @param id Phone number record ID (from GET /v1/phone-numbers).
|
|
239
|
+
# @param verify_whats_app_caller_id_request
|
|
240
|
+
# @param [Hash] opts the optional parameters
|
|
241
|
+
# @return [VerifySmsRegistrationOtp200Response]
|
|
242
|
+
describe 'verify_whats_app_caller_id test' do
|
|
243
|
+
it 'should work' do
|
|
244
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
222
248
|
end
|
|
@@ -81,4 +81,20 @@ describe Zernio::GetWhatsAppCallingConfig200Response do
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
describe 'test attribute "caller_id_mode"' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["business", "platform"])
|
|
88
|
+
# validator.allowable_values.each do |value|
|
|
89
|
+
# expect { instance.caller_id_mode = value }.not_to raise_error
|
|
90
|
+
# end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
describe 'test attribute "caller_id_verified"' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
84
100
|
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::StartWhatsAppCallerIdVerification200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::StartWhatsAppCallerIdVerification200Response do
|
|
21
|
+
#let(:instance) { Zernio::StartWhatsAppCallerIdVerification200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of StartWhatsAppCallerIdVerification200Response' do
|
|
24
|
+
it 'should create an instance of StartWhatsAppCallerIdVerification200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::StartWhatsAppCallerIdVerification200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "verified"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "code_sent"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "method"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["sms", "call"])
|
|
46
|
+
# validator.allowable_values.each do |value|
|
|
47
|
+
# expect { instance.method = value }.not_to raise_error
|
|
48
|
+
# end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::StartWhatsAppCallerIdVerificationRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::StartWhatsAppCallerIdVerificationRequest do
|
|
21
|
+
#let(:instance) { Zernio::StartWhatsAppCallerIdVerificationRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of StartWhatsAppCallerIdVerificationRequest' do
|
|
24
|
+
it 'should create an instance of StartWhatsAppCallerIdVerificationRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::StartWhatsAppCallerIdVerificationRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "method"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["sms", "call"])
|
|
34
|
+
# validator.allowable_values.each do |value|
|
|
35
|
+
# expect { instance.method = value }.not_to raise_error
|
|
36
|
+
# end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::VerifyWhatsAppCallerIdRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::VerifyWhatsAppCallerIdRequest do
|
|
21
|
+
#let(:instance) { Zernio::VerifyWhatsAppCallerIdRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of VerifyWhatsAppCallerIdRequest' do
|
|
24
|
+
it 'should create an instance of VerifyWhatsAppCallerIdRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::VerifyWhatsAppCallerIdRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "code"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zernio-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.621
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -1315,6 +1315,8 @@ files:
|
|
|
1315
1315
|
- docs/StartSmsRegistrationRequestBrand.md
|
|
1316
1316
|
- docs/StartSmsRegistrationRequestCampaign.md
|
|
1317
1317
|
- docs/StartSmsRegistrationRequestTollFree.md
|
|
1318
|
+
- docs/StartWhatsAppCallerIdVerification200Response.md
|
|
1319
|
+
- docs/StartWhatsAppCallerIdVerificationRequest.md
|
|
1318
1320
|
- docs/SubmitPhoneNumberKyc200Response.md
|
|
1319
1321
|
- docs/SubmitPhoneNumberKyc200ResponseNumbersInner.md
|
|
1320
1322
|
- docs/SubmitPhoneNumberKyc200ResponsePhoneNumber.md
|
|
@@ -1548,6 +1550,7 @@ files:
|
|
|
1548
1550
|
- docs/VerifyApi.md
|
|
1549
1551
|
- docs/VerifySmsRegistrationOtp200Response.md
|
|
1550
1552
|
- docs/VerifySmsRegistrationOtpRequest.md
|
|
1553
|
+
- docs/VerifyWhatsAppCallerIdRequest.md
|
|
1551
1554
|
- docs/VoiceApi.md
|
|
1552
1555
|
- docs/VoteRedditThingRequest.md
|
|
1553
1556
|
- docs/Webhook.md
|
|
@@ -2942,6 +2945,8 @@ files:
|
|
|
2942
2945
|
- lib/zernio-sdk/models/start_sms_registration_request_brand.rb
|
|
2943
2946
|
- lib/zernio-sdk/models/start_sms_registration_request_campaign.rb
|
|
2944
2947
|
- lib/zernio-sdk/models/start_sms_registration_request_toll_free.rb
|
|
2948
|
+
- lib/zernio-sdk/models/start_whats_app_caller_id_verification200_response.rb
|
|
2949
|
+
- lib/zernio-sdk/models/start_whats_app_caller_id_verification_request.rb
|
|
2945
2950
|
- lib/zernio-sdk/models/submit_phone_number_kyc200_response.rb
|
|
2946
2951
|
- lib/zernio-sdk/models/submit_phone_number_kyc200_response_numbers_inner.rb
|
|
2947
2952
|
- lib/zernio-sdk/models/submit_phone_number_kyc200_response_phone_number.rb
|
|
@@ -3169,6 +3174,7 @@ files:
|
|
|
3169
3174
|
- lib/zernio-sdk/models/verification.rb
|
|
3170
3175
|
- lib/zernio-sdk/models/verify_sms_registration_otp200_response.rb
|
|
3171
3176
|
- lib/zernio-sdk/models/verify_sms_registration_otp_request.rb
|
|
3177
|
+
- lib/zernio-sdk/models/verify_whats_app_caller_id_request.rb
|
|
3172
3178
|
- lib/zernio-sdk/models/vote_reddit_thing_request.rb
|
|
3173
3179
|
- lib/zernio-sdk/models/webhook.rb
|
|
3174
3180
|
- lib/zernio-sdk/models/webhook_log.rb
|
|
@@ -4548,6 +4554,8 @@ files:
|
|
|
4548
4554
|
- spec/models/start_sms_registration_request_campaign_spec.rb
|
|
4549
4555
|
- spec/models/start_sms_registration_request_spec.rb
|
|
4550
4556
|
- spec/models/start_sms_registration_request_toll_free_spec.rb
|
|
4557
|
+
- spec/models/start_whats_app_caller_id_verification200_response_spec.rb
|
|
4558
|
+
- spec/models/start_whats_app_caller_id_verification_request_spec.rb
|
|
4551
4559
|
- spec/models/submit_phone_number_kyc200_response_numbers_inner_spec.rb
|
|
4552
4560
|
- spec/models/submit_phone_number_kyc200_response_phone_number_spec.rb
|
|
4553
4561
|
- spec/models/submit_phone_number_kyc200_response_spec.rb
|
|
@@ -4775,6 +4783,7 @@ files:
|
|
|
4775
4783
|
- spec/models/verification_spec.rb
|
|
4776
4784
|
- spec/models/verify_sms_registration_otp200_response_spec.rb
|
|
4777
4785
|
- spec/models/verify_sms_registration_otp_request_spec.rb
|
|
4786
|
+
- spec/models/verify_whats_app_caller_id_request_spec.rb
|
|
4778
4787
|
- spec/models/vote_reddit_thing_request_spec.rb
|
|
4779
4788
|
- spec/models/webhook_log_spec.rb
|
|
4780
4789
|
- spec/models/webhook_payload_account_ads_initial_sync_completed_account_spec.rb
|
|
@@ -5150,6 +5159,7 @@ test_files:
|
|
|
5150
5159
|
- spec/models/webhook_payload_account_ads_initial_sync_completed_sync_spec.rb
|
|
5151
5160
|
- spec/models/get_whats_app_call_permissions200_response_spec.rb
|
|
5152
5161
|
- spec/models/get_sms_registration200_response_campaign_content_spec.rb
|
|
5162
|
+
- spec/models/start_whats_app_caller_id_verification200_response_spec.rb
|
|
5153
5163
|
- spec/models/list_form_leads200_response_spec.rb
|
|
5154
5164
|
- spec/models/billing_snapshot_status_spec.rb
|
|
5155
5165
|
- spec/models/get_phone_number200_response_spec.rb
|
|
@@ -6428,6 +6438,7 @@ test_files:
|
|
|
6428
6438
|
- spec/models/on_whats_app_number_activated_request_spec.rb
|
|
6429
6439
|
- spec/models/like_inbox_comment_request_spec.rb
|
|
6430
6440
|
- spec/models/activate_workflow200_response_workflow_spec.rb
|
|
6441
|
+
- spec/models/verify_whats_app_caller_id_request_spec.rb
|
|
6431
6442
|
- spec/models/preflight_sms_registration200_response_spec.rb
|
|
6432
6443
|
- spec/models/set_whatsapp_business_username_request_spec.rb
|
|
6433
6444
|
- spec/models/update_ad_set_request_spec.rb
|
|
@@ -6469,6 +6480,7 @@ test_files:
|
|
|
6469
6480
|
- spec/models/create_phone_number_kyc_link_request_branding_spec.rb
|
|
6470
6481
|
- spec/models/get_google_business_services200_response_services_inner_spec.rb
|
|
6471
6482
|
- spec/models/get_whats_app_display_name200_response_spec.rb
|
|
6483
|
+
- spec/models/start_whats_app_caller_id_verification_request_spec.rb
|
|
6472
6484
|
- spec/models/search_inbox_conversations200_response_meta_spec.rb
|
|
6473
6485
|
- spec/models/list_inbox_reviews200_response_data_inner_reply_spec.rb
|
|
6474
6486
|
- spec/models/send_conversions_request_spec.rb
|