late-sdk 0.0.885 → 0.0.886
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 +6 -0
- data/docs/CreateCommentAutomationRequest.md +1 -1
- data/docs/RegisterWhatsAppNumberRequest.md +1 -1
- data/docs/RequestWhatsAppVerificationCode200Response.md +26 -0
- data/docs/RequestWhatsAppVerificationCodeRequest.md +20 -0
- data/docs/VerifyWhatsAppNumber200Response.md +22 -0
- data/docs/VerifyWhatsAppNumberRequest.md +18 -0
- data/docs/WhatsAppApi.md +146 -0
- data/lib/zernio-sdk/api/whats_app_api.rb +144 -0
- data/lib/zernio-sdk/models/create_comment_automation_request.rb +1 -1
- data/lib/zernio-sdk/models/register_whats_app_number_request.rb +1 -1
- data/lib/zernio-sdk/models/request_whats_app_verification_code200_response.rb +183 -0
- data/lib/zernio-sdk/models/request_whats_app_verification_code_request.rb +195 -0
- data/lib/zernio-sdk/models/verify_whats_app_number200_response.rb +165 -0
- data/lib/zernio-sdk/models/verify_whats_app_number_request.rb +165 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +4 -0
- data/openapi.yaml +120 -2
- data/spec/api/whats_app_api_spec.rb +26 -0
- data/spec/models/request_whats_app_verification_code200_response_spec.rb +60 -0
- data/spec/models/request_whats_app_verification_code_request_spec.rb +46 -0
- data/spec/models/verify_whats_app_number200_response_spec.rb +48 -0
- data/spec/models/verify_whats_app_number_request_spec.rb +36 -0
- data/zernio-sdk-0.0.886.gem +0 -0
- metadata +18 -2
- data/zernio-sdk-0.0.885.gem +0 -0
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -1308,6 +1308,8 @@ require 'zernio-sdk/models/reply_to_phone_number_reviewer_request'
|
|
|
1308
1308
|
require 'zernio-sdk/models/reply_to_phone_number_reviewer_request_attachments_inner'
|
|
1309
1309
|
require 'zernio-sdk/models/request_sms_sender_id_limit_increase200_response'
|
|
1310
1310
|
require 'zernio-sdk/models/request_sms_sender_id_limit_increase_request'
|
|
1311
|
+
require 'zernio-sdk/models/request_whats_app_verification_code200_response'
|
|
1312
|
+
require 'zernio-sdk/models/request_whats_app_verification_code_request'
|
|
1311
1313
|
require 'zernio-sdk/models/resend_sms_registration_otp200_response'
|
|
1312
1314
|
require 'zernio-sdk/models/reserve_rf_prediction201_response'
|
|
1313
1315
|
require 'zernio-sdk/models/reserve_rf_prediction_request'
|
|
@@ -1786,6 +1788,8 @@ require 'zernio-sdk/models/verify_credential200_response'
|
|
|
1786
1788
|
require 'zernio-sdk/models/verify_sms_registration_otp200_response'
|
|
1787
1789
|
require 'zernio-sdk/models/verify_sms_registration_otp_request'
|
|
1788
1790
|
require 'zernio-sdk/models/verify_whats_app_caller_id_request'
|
|
1791
|
+
require 'zernio-sdk/models/verify_whats_app_number200_response'
|
|
1792
|
+
require 'zernio-sdk/models/verify_whats_app_number_request'
|
|
1789
1793
|
require 'zernio-sdk/models/vote_reddit_thing_request'
|
|
1790
1794
|
require 'zernio-sdk/models/webhook'
|
|
1791
1795
|
require 'zernio-sdk/models/webhook_log'
|
data/openapi.yaml
CHANGED
|
@@ -17802,7 +17802,7 @@ paths:
|
|
|
17802
17802
|
pin:
|
|
17803
17803
|
type: string
|
|
17804
17804
|
pattern: '^\d{6}$'
|
|
17805
|
-
description: 'The 6-digit two-step verification PIN set on the number.
|
|
17805
|
+
description: 'The 6-digit two-step verification PIN set on the number. Omitting it applies Zernio''s managed default registration PIN, the same one every Embedded Signup connect sets automatically.'
|
|
17806
17806
|
example:
|
|
17807
17807
|
pin: "481902"
|
|
17808
17808
|
responses:
|
|
@@ -17824,6 +17824,124 @@ paths:
|
|
|
17824
17824
|
description: WhatsApp account not found
|
|
17825
17825
|
'422':
|
|
17826
17826
|
description: 'Meta rejected the registration (e.g. PIN mismatch), or the number cannot be registered through the API.'
|
|
17827
|
+
/v1/accounts/{accountId}/whatsapp/request-code:
|
|
17828
|
+
post:
|
|
17829
|
+
x-resource-group: "accounts"
|
|
17830
|
+
operationId: requestWhatsAppVerificationCode
|
|
17831
|
+
tags: [WhatsApp]
|
|
17832
|
+
summary: Request a Meta re-verification code for a BYO WhatsApp number
|
|
17833
|
+
description: |
|
|
17834
|
+
For a bring-your-own WhatsApp number (its own WABA, migrated off another BSP) that
|
|
17835
|
+
Meta demoted to re-verification, this requests a new OTP from Meta. The code lands
|
|
17836
|
+
on the customer's own handset, so verifying it is necessarily self-service; call
|
|
17837
|
+
POST /v1/accounts/{accountId}/whatsapp/verify-code with the code once it arrives.
|
|
17838
|
+
Rate-limited to one request per 10 minutes per account, and Meta enforces its own
|
|
17839
|
+
cooldown on top of that.
|
|
17840
|
+
parameters:
|
|
17841
|
+
- name: accountId
|
|
17842
|
+
in: path
|
|
17843
|
+
required: true
|
|
17844
|
+
schema: { type: string }
|
|
17845
|
+
description: The WhatsApp account ID
|
|
17846
|
+
requestBody:
|
|
17847
|
+
required: false
|
|
17848
|
+
content:
|
|
17849
|
+
application/json:
|
|
17850
|
+
schema:
|
|
17851
|
+
type: object
|
|
17852
|
+
properties:
|
|
17853
|
+
method:
|
|
17854
|
+
type: string
|
|
17855
|
+
enum: [SMS, VOICE]
|
|
17856
|
+
default: SMS
|
|
17857
|
+
language:
|
|
17858
|
+
type: string
|
|
17859
|
+
default: en_US
|
|
17860
|
+
description: 'Meta locale code for the verification message, e.g. en_US.'
|
|
17861
|
+
responses:
|
|
17862
|
+
'200':
|
|
17863
|
+
description: 'Code requested, or the number was already CONNECTED and no code was needed.'
|
|
17864
|
+
content:
|
|
17865
|
+
application/json:
|
|
17866
|
+
schema:
|
|
17867
|
+
type: object
|
|
17868
|
+
properties:
|
|
17869
|
+
requested: { type: boolean }
|
|
17870
|
+
alreadyActive: { type: boolean }
|
|
17871
|
+
method: { type: string }
|
|
17872
|
+
accountId: { type: string }
|
|
17873
|
+
phoneNumberId: { type: string }
|
|
17874
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
17875
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
17876
|
+
'404': { $ref: '#/components/responses/NotFound' }
|
|
17877
|
+
'409':
|
|
17878
|
+
description: 'Meta already reports this number as VERIFIED. Call POST /v1/accounts/{accountId}/whatsapp/register instead.'
|
|
17879
|
+
'422':
|
|
17880
|
+
description: 'The account has no phone number bound yet, it runs in coexistence with the WhatsApp Business app, or Meta rejected the code request.'
|
|
17881
|
+
'429':
|
|
17882
|
+
description: 'Our own 10-minute-per-account cooldown is active, or Meta has escalated to a multi-hour lockout after repeated attempts.'
|
|
17883
|
+
headers:
|
|
17884
|
+
Retry-After:
|
|
17885
|
+
description: 'Seconds remaining until the cooldown or lockout clears.'
|
|
17886
|
+
schema: { type: integer }
|
|
17887
|
+
content:
|
|
17888
|
+
application/json:
|
|
17889
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
17890
|
+
'503':
|
|
17891
|
+
description: "Meta could not dispatch a code for this number yet. Retry shortly."
|
|
17892
|
+
headers:
|
|
17893
|
+
Retry-After:
|
|
17894
|
+
description: 'Seconds to wait before retrying.'
|
|
17895
|
+
schema: { type: integer }
|
|
17896
|
+
content:
|
|
17897
|
+
application/json:
|
|
17898
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
17899
|
+
/v1/accounts/{accountId}/whatsapp/verify-code:
|
|
17900
|
+
post:
|
|
17901
|
+
x-resource-group: "accounts"
|
|
17902
|
+
operationId: verifyWhatsAppNumber
|
|
17903
|
+
tags: [WhatsApp]
|
|
17904
|
+
summary: Verify the Meta re-verification code for a BYO WhatsApp number
|
|
17905
|
+
description: |
|
|
17906
|
+
Submits the OTP Meta sent in response to POST /v1/accounts/{accountId}/whatsapp/request-code.
|
|
17907
|
+
This only verifies the number with Meta; it does not register it on the Cloud API.
|
|
17908
|
+
Call POST /v1/accounts/{accountId}/whatsapp/register afterward to complete activation.
|
|
17909
|
+
parameters:
|
|
17910
|
+
- name: accountId
|
|
17911
|
+
in: path
|
|
17912
|
+
required: true
|
|
17913
|
+
schema: { type: string }
|
|
17914
|
+
description: The WhatsApp account ID
|
|
17915
|
+
requestBody:
|
|
17916
|
+
required: true
|
|
17917
|
+
content:
|
|
17918
|
+
application/json:
|
|
17919
|
+
schema:
|
|
17920
|
+
type: object
|
|
17921
|
+
required: [code]
|
|
17922
|
+
properties:
|
|
17923
|
+
code:
|
|
17924
|
+
type: string
|
|
17925
|
+
description: 'The 6-digit code Meta sent to the phone. Non-digit separators (e.g. "749-456") are stripped automatically.'
|
|
17926
|
+
example:
|
|
17927
|
+
code: "749456"
|
|
17928
|
+
responses:
|
|
17929
|
+
'200':
|
|
17930
|
+
description: Number verified with Meta
|
|
17931
|
+
content:
|
|
17932
|
+
application/json:
|
|
17933
|
+
schema:
|
|
17934
|
+
type: object
|
|
17935
|
+
properties:
|
|
17936
|
+
verified: { type: boolean }
|
|
17937
|
+
accountId: { type: string }
|
|
17938
|
+
phoneNumberId: { type: string }
|
|
17939
|
+
'400':
|
|
17940
|
+
description: 'The code is malformed, or Meta rejected it as wrong or expired.'
|
|
17941
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
17942
|
+
'404': { $ref: '#/components/responses/NotFound' }
|
|
17943
|
+
'422':
|
|
17944
|
+
description: 'The account has no phone number bound to it yet.'
|
|
17827
17945
|
/v1/accounts/{accountId}/health:
|
|
17828
17946
|
get:
|
|
17829
17947
|
x-resource-group: "accounts"
|
|
@@ -41650,7 +41768,7 @@ paths:
|
|
|
41650
41768
|
accountId: { type: string, description: Instagram or Facebook account ID }
|
|
41651
41769
|
trigger: { type: string, enum: [comment, story_reply], default: comment, description: "What fires the automation. 'comment' (keyword comment on a post) or 'story_reply' (keyword reply to an Instagram story). For 'story_reply', platformPostId is the story media id (omit for any story)." }
|
|
41652
41770
|
platformPostId: { type: string, description: "Platform media/post ID (or story media id when trigger=story_reply). Omit for an account-wide (any-post / any-story) automation." }
|
|
41653
|
-
postId: { type: string, description: "Zernio post ID.
|
|
41771
|
+
postId: { type: string, description: "Zernio post ID. Optional and never required. Use it INSTEAD of platformPostId to bind a per-post automation to a not-yet-published Zernio post: the automation stays pending and arms itself when that post publishes. For a post already live on the platform, pass platformPostId alone and omit this." }
|
|
41654
41772
|
postTitle: { type: string, description: Post content snippet for display }
|
|
41655
41773
|
name: { type: string, description: Automation label }
|
|
41656
41774
|
keywords:
|
|
@@ -422,6 +422,19 @@ describe 'WhatsAppApi' do
|
|
|
422
422
|
end
|
|
423
423
|
end
|
|
424
424
|
|
|
425
|
+
# unit tests for request_whats_app_verification_code
|
|
426
|
+
# Request a Meta re-verification code for a BYO WhatsApp number
|
|
427
|
+
# For a bring-your-own WhatsApp number (its own WABA, migrated off another BSP) that Meta demoted to re-verification, this requests a new OTP from Meta. The code lands on the customer's own handset, so verifying it is necessarily self-service; call POST /v1/accounts/{accountId}/whatsapp/verify-code with the code once it arrives. Rate-limited to one request per 10 minutes per account, and Meta enforces its own cooldown on top of that.
|
|
428
|
+
# @param account_id The WhatsApp account ID
|
|
429
|
+
# @param [Hash] opts the optional parameters
|
|
430
|
+
# @option opts [RequestWhatsAppVerificationCodeRequest] :request_whats_app_verification_code_request
|
|
431
|
+
# @return [RequestWhatsAppVerificationCode200Response]
|
|
432
|
+
describe 'request_whats_app_verification_code test' do
|
|
433
|
+
it 'should work' do
|
|
434
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
435
|
+
end
|
|
436
|
+
end
|
|
437
|
+
|
|
425
438
|
# unit tests for send_whats_app_conversion
|
|
426
439
|
# Send WhatsApp conversion event
|
|
427
440
|
# Forward a WhatsApp Business Messaging conversion event (`LeadSubmitted`, `Purchase`, `AddToCart`, `InitiateCheckout`, `ViewContent`) to Meta's Conversions API with `action_source = business_messaging` and `messaging_channel = whatsapp`. The endpoint looks up the originating CTWA click ID (`ctwa_clid`) captured on the first inbound message of the conversation and replays it on every event so Meta can attribute the conversion back to the Click-to-WhatsApp ad that drove the chat. Configuration prerequisite on the WhatsApp account metadata: - `metaCapiDatasetId`: the Meta dataset ID linked to the WABA. Provision one with `POST /v1/whatsapp/dataset`. The WABA ID (already set automatically at connect time) is forwarded as `user_data.whatsapp_business_account_id`, which is the per-channel attribution identifier Meta requires for WhatsApp events. No Facebook Page ID is needed (that field is the Messenger-branch identifier). Identify the conversation by either `conversationId` (preferred) or `phoneE164` (digits only, no `+`). At least one is required. If the conversation has no captured `ctwa_clid`, the request returns 422 because there is nothing to attribute. Token and dataset coupling: the WhatsApp account's accessToken must have access to the configured `metaCapiDatasetId`. By default a WABA's system-user token is scoped to the WABA's own Business Manager and cannot post to a pixel owned by a different Business; Meta returns code 100 in that case. Either share the dataset with the WhatsApp app's Business in BM, or use a dataset already in the same Business as the WABA.
|
|
@@ -535,4 +548,17 @@ describe 'WhatsAppApi' do
|
|
|
535
548
|
end
|
|
536
549
|
end
|
|
537
550
|
|
|
551
|
+
# unit tests for verify_whats_app_number
|
|
552
|
+
# Verify the Meta re-verification code for a BYO WhatsApp number
|
|
553
|
+
# Submits the OTP Meta sent in response to POST /v1/accounts/{accountId}/whatsapp/request-code. This only verifies the number with Meta; it does not register it on the Cloud API. Call POST /v1/accounts/{accountId}/whatsapp/register afterward to complete activation.
|
|
554
|
+
# @param account_id The WhatsApp account ID
|
|
555
|
+
# @param verify_whats_app_number_request
|
|
556
|
+
# @param [Hash] opts the optional parameters
|
|
557
|
+
# @return [VerifyWhatsAppNumber200Response]
|
|
558
|
+
describe 'verify_whats_app_number test' do
|
|
559
|
+
it 'should work' do
|
|
560
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
561
|
+
end
|
|
562
|
+
end
|
|
563
|
+
|
|
538
564
|
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
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::RequestWhatsAppVerificationCode200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::RequestWhatsAppVerificationCode200Response do
|
|
21
|
+
#let(:instance) { Zernio::RequestWhatsAppVerificationCode200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of RequestWhatsAppVerificationCode200Response' do
|
|
24
|
+
it 'should create an instance of RequestWhatsAppVerificationCode200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::RequestWhatsAppVerificationCode200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "requested"' 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 "already_active"' 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
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "account_id"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "phone_number_id"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
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::RequestWhatsAppVerificationCodeRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::RequestWhatsAppVerificationCodeRequest do
|
|
21
|
+
#let(:instance) { Zernio::RequestWhatsAppVerificationCodeRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of RequestWhatsAppVerificationCodeRequest' do
|
|
24
|
+
it 'should create an instance of RequestWhatsAppVerificationCodeRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::RequestWhatsAppVerificationCodeRequest)
|
|
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", "VOICE"])
|
|
34
|
+
# validator.allowable_values.each do |value|
|
|
35
|
+
# expect { instance.method = value }.not_to raise_error
|
|
36
|
+
# end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
describe 'test attribute "language"' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
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::VerifyWhatsAppNumber200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::VerifyWhatsAppNumber200Response do
|
|
21
|
+
#let(:instance) { Zernio::VerifyWhatsAppNumber200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of VerifyWhatsAppNumber200Response' do
|
|
24
|
+
it 'should create an instance of VerifyWhatsAppNumber200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::VerifyWhatsAppNumber200Response)
|
|
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 "account_id"' 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 "phone_number_id"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
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 Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
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::VerifyWhatsAppNumberRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::VerifyWhatsAppNumberRequest do
|
|
21
|
+
#let(:instance) { Zernio::VerifyWhatsAppNumberRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of VerifyWhatsAppNumberRequest' do
|
|
24
|
+
it 'should create an instance of VerifyWhatsAppNumberRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::VerifyWhatsAppNumberRequest)
|
|
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
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.886
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -1406,6 +1406,8 @@ files:
|
|
|
1406
1406
|
- docs/ReplyToPhoneNumberReviewerRequestAttachmentsInner.md
|
|
1407
1407
|
- docs/RequestSmsSenderIdLimitIncrease200Response.md
|
|
1408
1408
|
- docs/RequestSmsSenderIdLimitIncreaseRequest.md
|
|
1409
|
+
- docs/RequestWhatsAppVerificationCode200Response.md
|
|
1410
|
+
- docs/RequestWhatsAppVerificationCodeRequest.md
|
|
1409
1411
|
- docs/ResendSmsRegistrationOtp200Response.md
|
|
1410
1412
|
- docs/ReserveRfPrediction201Response.md
|
|
1411
1413
|
- docs/ReserveRfPredictionRequest.md
|
|
@@ -1894,6 +1896,8 @@ files:
|
|
|
1894
1896
|
- docs/VerifySmsRegistrationOtp200Response.md
|
|
1895
1897
|
- docs/VerifySmsRegistrationOtpRequest.md
|
|
1896
1898
|
- docs/VerifyWhatsAppCallerIdRequest.md
|
|
1899
|
+
- docs/VerifyWhatsAppNumber200Response.md
|
|
1900
|
+
- docs/VerifyWhatsAppNumberRequest.md
|
|
1897
1901
|
- docs/VoiceApi.md
|
|
1898
1902
|
- docs/VoteRedditThingRequest.md
|
|
1899
1903
|
- docs/Webhook.md
|
|
@@ -3426,6 +3430,8 @@ files:
|
|
|
3426
3430
|
- lib/zernio-sdk/models/reply_to_phone_number_reviewer_request_attachments_inner.rb
|
|
3427
3431
|
- lib/zernio-sdk/models/request_sms_sender_id_limit_increase200_response.rb
|
|
3428
3432
|
- lib/zernio-sdk/models/request_sms_sender_id_limit_increase_request.rb
|
|
3433
|
+
- lib/zernio-sdk/models/request_whats_app_verification_code200_response.rb
|
|
3434
|
+
- lib/zernio-sdk/models/request_whats_app_verification_code_request.rb
|
|
3429
3435
|
- lib/zernio-sdk/models/resend_sms_registration_otp200_response.rb
|
|
3430
3436
|
- lib/zernio-sdk/models/reserve_rf_prediction201_response.rb
|
|
3431
3437
|
- lib/zernio-sdk/models/reserve_rf_prediction_request.rb
|
|
@@ -3904,6 +3910,8 @@ files:
|
|
|
3904
3910
|
- lib/zernio-sdk/models/verify_sms_registration_otp200_response.rb
|
|
3905
3911
|
- lib/zernio-sdk/models/verify_sms_registration_otp_request.rb
|
|
3906
3912
|
- lib/zernio-sdk/models/verify_whats_app_caller_id_request.rb
|
|
3913
|
+
- lib/zernio-sdk/models/verify_whats_app_number200_response.rb
|
|
3914
|
+
- lib/zernio-sdk/models/verify_whats_app_number_request.rb
|
|
3907
3915
|
- lib/zernio-sdk/models/vote_reddit_thing_request.rb
|
|
3908
3916
|
- lib/zernio-sdk/models/webhook.rb
|
|
3909
3917
|
- lib/zernio-sdk/models/webhook_log.rb
|
|
@@ -5420,6 +5428,8 @@ files:
|
|
|
5420
5428
|
- spec/models/reply_to_phone_number_reviewer_request_spec.rb
|
|
5421
5429
|
- spec/models/request_sms_sender_id_limit_increase200_response_spec.rb
|
|
5422
5430
|
- spec/models/request_sms_sender_id_limit_increase_request_spec.rb
|
|
5431
|
+
- spec/models/request_whats_app_verification_code200_response_spec.rb
|
|
5432
|
+
- spec/models/request_whats_app_verification_code_request_spec.rb
|
|
5423
5433
|
- spec/models/resend_sms_registration_otp200_response_spec.rb
|
|
5424
5434
|
- spec/models/reserve_rf_prediction201_response_spec.rb
|
|
5425
5435
|
- spec/models/reserve_rf_prediction_request_spec.rb
|
|
@@ -5898,6 +5908,8 @@ files:
|
|
|
5898
5908
|
- spec/models/verify_sms_registration_otp200_response_spec.rb
|
|
5899
5909
|
- spec/models/verify_sms_registration_otp_request_spec.rb
|
|
5900
5910
|
- spec/models/verify_whats_app_caller_id_request_spec.rb
|
|
5911
|
+
- spec/models/verify_whats_app_number200_response_spec.rb
|
|
5912
|
+
- spec/models/verify_whats_app_number_request_spec.rb
|
|
5901
5913
|
- spec/models/vote_reddit_thing_request_spec.rb
|
|
5902
5914
|
- spec/models/webhook_log_spec.rb
|
|
5903
5915
|
- spec/models/webhook_payload_account_ads_initial_sync_completed_account_spec.rb
|
|
@@ -6055,7 +6067,7 @@ files:
|
|
|
6055
6067
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
6056
6068
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
6057
6069
|
- spec/spec_helper.rb
|
|
6058
|
-
- zernio-sdk-0.0.
|
|
6070
|
+
- zernio-sdk-0.0.886.gem
|
|
6059
6071
|
- zernio-sdk.gemspec
|
|
6060
6072
|
homepage: https://openapi-generator.tech
|
|
6061
6073
|
licenses:
|
|
@@ -6396,6 +6408,7 @@ test_files:
|
|
|
6396
6408
|
- spec/models/webhook_payload_referral_spec.rb
|
|
6397
6409
|
- spec/models/list_phone_number_countries200_response_countries_inner_types_inner_spec.rb
|
|
6398
6410
|
- spec/models/discord_guild_member_user_spec.rb
|
|
6411
|
+
- spec/models/verify_whats_app_number_request_spec.rb
|
|
6399
6412
|
- spec/models/get_discord_settings200_response_spec.rb
|
|
6400
6413
|
- spec/models/update_account200_response_spec.rb
|
|
6401
6414
|
- spec/models/schedule_broadcast200_response_broadcast_spec.rb
|
|
@@ -6566,6 +6579,7 @@ test_files:
|
|
|
6566
6579
|
- spec/models/ad_review_status_spec.rb
|
|
6567
6580
|
- spec/models/purchase_whats_app_phone_number200_response_one_of_spec.rb
|
|
6568
6581
|
- spec/models/business_agent_connector_input_auth_config_spec.rb
|
|
6582
|
+
- spec/models/request_whats_app_verification_code200_response_spec.rb
|
|
6569
6583
|
- spec/models/vote_reddit_thing_request_spec.rb
|
|
6570
6584
|
- spec/models/update_google_business_services_request_service_items_inner_price_spec.rb
|
|
6571
6585
|
- spec/models/linked_in_lead_form_platform_data_spec.rb
|
|
@@ -6731,6 +6745,7 @@ test_files:
|
|
|
6731
6745
|
- spec/models/update_blog_article_request_spec.rb
|
|
6732
6746
|
- spec/models/send_inbox_message_request_spec.rb
|
|
6733
6747
|
- spec/models/list_whats_app_group_join_requests200_response_spec.rb
|
|
6748
|
+
- spec/models/request_whats_app_verification_code_request_spec.rb
|
|
6734
6749
|
- spec/models/send_discord_direct_message_request_attachments_inner_spec.rb
|
|
6735
6750
|
- spec/models/update_campaign_targeting_request_targeting_locations_one_of_spec.rb
|
|
6736
6751
|
- spec/models/list_google_business_media200_response_media_items_inner_spec.rb
|
|
@@ -7178,6 +7193,7 @@ test_files:
|
|
|
7178
7193
|
- spec/models/get_business_agent_connector_logs200_response_spec.rb
|
|
7179
7194
|
- spec/models/list_business_agent_ui_skills200_response_spec.rb
|
|
7180
7195
|
- spec/models/search_ad_targeting200_response_spec.rb
|
|
7196
|
+
- spec/models/verify_whats_app_number200_response_spec.rb
|
|
7181
7197
|
- spec/models/update_ad_creative_request_spec.rb
|
|
7182
7198
|
- spec/models/get_broadcast200_response_broadcast_spec.rb
|
|
7183
7199
|
- spec/models/ad_schedule_spec.rb
|
data/zernio-sdk-0.0.885.gem
DELETED
|
Binary file
|