late-sdk 0.0.569 → 0.0.571
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 +4 -0
- data/docs/AdCampaignsApi.md +92 -0
- data/docs/CheckPhoneNumberAvailability200Response.md +3 -1
- data/docs/CheckPhoneNumberAvailability200ResponseAreaOptionsInner.md +22 -0
- data/docs/CreatePhoneNumberKycLinkRequest.md +2 -0
- data/docs/ListAdKeywords200Response.md +20 -0
- data/docs/ListAdKeywords200ResponseKeywordsInner.md +48 -0
- data/docs/PhoneNumbersApi.md +3 -1
- data/docs/PurchasePhoneNumberRequest.md +2 -0
- data/docs/SubmitPhoneNumberKycRequest.md +2 -0
- data/docs/SubmitWhatsAppNumberKycRequest.md +2 -0
- data/docs/WhatsAppPhoneNumbersApi.md +3 -1
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +114 -0
- data/lib/zernio-sdk/api/phone_numbers_api.rb +3 -0
- data/lib/zernio-sdk/api/whats_app_phone_numbers_api.rb +3 -0
- data/lib/zernio-sdk/models/check_phone_number_availability200_response.rb +16 -4
- data/lib/zernio-sdk/models/check_phone_number_availability200_response_area_options_inner.rb +168 -0
- data/lib/zernio-sdk/models/create_phone_number_kyc_link_request.rb +32 -1
- data/lib/zernio-sdk/models/list_ad_keywords200_response.rb +158 -0
- data/lib/zernio-sdk/models/list_ad_keywords200_response_keywords_inner.rb +348 -0
- data/lib/zernio-sdk/models/purchase_phone_number409_response.rb +2 -2
- data/lib/zernio-sdk/models/purchase_phone_number_request.rb +32 -1
- data/lib/zernio-sdk/models/submit_phone_number_kyc_request.rb +32 -1
- data/lib/zernio-sdk/models/submit_whats_app_number_kyc_request.rb +32 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +3 -0
- data/openapi.yaml +120 -10
- data/spec/api/ad_campaigns_api_spec.rb +22 -0
- data/spec/api/phone_numbers_api_spec.rb +1 -0
- data/spec/api/whats_app_phone_numbers_api_spec.rb +1 -0
- data/spec/models/check_phone_number_availability200_response_area_options_inner_spec.rb +48 -0
- data/spec/models/check_phone_number_availability200_response_spec.rb +6 -0
- data/spec/models/create_phone_number_kyc_link_request_spec.rb +6 -0
- data/spec/models/list_ad_keywords200_response_keywords_inner_spec.rb +138 -0
- data/spec/models/list_ad_keywords200_response_spec.rb +42 -0
- data/spec/models/purchase_phone_number409_response_spec.rb +1 -1
- data/spec/models/purchase_phone_number_request_spec.rb +6 -0
- data/spec/models/submit_phone_number_kyc_request_spec.rb +6 -0
- data/spec/models/submit_whats_app_number_kyc_request_spec.rb +6 -0
- data/zernio-sdk-0.0.571.gem +0 -0
- metadata +15 -3
- data/zernio-sdk-0.0.569.gem +0 -0
data/openapi.yaml
CHANGED
|
@@ -27899,6 +27899,17 @@ paths:
|
|
|
27899
27899
|
connect WhatsApp (400 when combined with
|
|
27900
27900
|
connectWhatsapp:true), and wantsSms:true requires an
|
|
27901
27901
|
SMS-capable type.
|
|
27902
|
+
areaCode:
|
|
27903
|
+
type: string
|
|
27904
|
+
pattern: '^\d{1,4}$'
|
|
27905
|
+
description: >
|
|
27906
|
+
Area code (national destination code, e.g. 11 for Sao
|
|
27907
|
+
Paulo) the number must be in. Hard constraint: when the
|
|
27908
|
+
area has no deliverable inventory the purchase fails with
|
|
27909
|
+
409 code AREA_CODE_UNAVAILABLE instead of assigning a
|
|
27910
|
+
number from another area, and later replacements stay in
|
|
27911
|
+
this area too. Omit for any area. Get live options from
|
|
27912
|
+
GET /v1/phone-numbers/availability (areaOptions).
|
|
27902
27913
|
connectWhatsapp:
|
|
27903
27914
|
type: boolean
|
|
27904
27915
|
default: true
|
|
@@ -27990,16 +28001,18 @@ paths:
|
|
|
27990
28001
|
'403': { description: A paid plan is required }
|
|
27991
28002
|
'409':
|
|
27992
28003
|
description: >
|
|
27993
|
-
|
|
27994
|
-
|
|
27995
|
-
true to confirm the
|
|
28004
|
+
Either duplicate-purchase protection (code PURCHASE_VELOCITY:
|
|
28005
|
+
another number was purchased within the last 10 minutes; retry
|
|
28006
|
+
with allowMultiple: true to confirm), or the requested areaCode
|
|
28007
|
+
has no deliverable inventory right now (code
|
|
28008
|
+
AREA_CODE_UNAVAILABLE: pick another area or omit areaCode).
|
|
27996
28009
|
content:
|
|
27997
28010
|
application/json:
|
|
27998
28011
|
schema:
|
|
27999
28012
|
type: object
|
|
28000
28013
|
properties:
|
|
28001
28014
|
error: { type: string }
|
|
28002
|
-
code: { type: string, enum: [PURCHASE_VELOCITY] }
|
|
28015
|
+
code: { type: string, enum: [PURCHASE_VELOCITY, AREA_CODE_UNAVAILABLE] }
|
|
28003
28016
|
'202':
|
|
28004
28017
|
description: Country requires end-user KYC before the number can be ordered.
|
|
28005
28018
|
content:
|
|
@@ -28132,6 +28145,7 @@ paths:
|
|
|
28132
28145
|
parameters:
|
|
28133
28146
|
- { name: country, in: query, required: true, schema: { type: string }, description: ISO-2 country code. }
|
|
28134
28147
|
- { name: numberType, in: query, required: false, schema: { type: string, enum: [local, mobile, national, toll_free] }, description: "Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type." }
|
|
28148
|
+
- { name: sms, in: query, required: false, schema: { type: boolean }, description: 'Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.' }
|
|
28135
28149
|
responses:
|
|
28136
28150
|
'200':
|
|
28137
28151
|
description: Availability + address constraint.
|
|
@@ -28148,6 +28162,20 @@ paths:
|
|
|
28148
28162
|
type: array
|
|
28149
28163
|
description: For `geo` only — the area(s) the registered address must be in.
|
|
28150
28164
|
items: { type: string }
|
|
28165
|
+
areaOptions:
|
|
28166
|
+
type: array
|
|
28167
|
+
description: >
|
|
28168
|
+
Live inventory grouped by area code, largest stock
|
|
28169
|
+
first. Empty when out of stock (or the area lookup
|
|
28170
|
+
failed). Pass a chosen `ndc` as `areaCode` on POST
|
|
28171
|
+
/v1/phone-numbers/purchase (or on the KYC submit for
|
|
28172
|
+
regulated countries) to require that area.
|
|
28173
|
+
items:
|
|
28174
|
+
type: object
|
|
28175
|
+
properties:
|
|
28176
|
+
ndc: { type: string, description: 'Area code (national destination code), e.g. "11".' }
|
|
28177
|
+
name: { type: string, description: 'Human-readable area name, e.g. "Sao Paulo".' }
|
|
28178
|
+
count: { type: integer, description: Deliverable numbers seen in this area on the latest inventory page. }
|
|
28151
28179
|
'400': { description: Country not offerable }
|
|
28152
28180
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
28153
28181
|
|
|
@@ -28356,16 +28384,18 @@ paths:
|
|
|
28356
28384
|
'403': { description: A paid plan is required }
|
|
28357
28385
|
'409':
|
|
28358
28386
|
description: >
|
|
28359
|
-
|
|
28360
|
-
|
|
28361
|
-
true to confirm the
|
|
28387
|
+
Either duplicate-purchase protection (code PURCHASE_VELOCITY:
|
|
28388
|
+
another number was purchased within the last 10 minutes; retry
|
|
28389
|
+
with allowMultiple: true to confirm), or the requested areaCode
|
|
28390
|
+
has no deliverable inventory right now (code
|
|
28391
|
+
AREA_CODE_UNAVAILABLE: pick another area or omit areaCode).
|
|
28362
28392
|
content:
|
|
28363
28393
|
application/json:
|
|
28364
28394
|
schema:
|
|
28365
28395
|
type: object
|
|
28366
28396
|
properties:
|
|
28367
28397
|
error: { type: string }
|
|
28368
|
-
code: { type: string, enum: [PURCHASE_VELOCITY] }
|
|
28398
|
+
code: { type: string, enum: [PURCHASE_VELOCITY, AREA_CODE_UNAVAILABLE] }
|
|
28369
28399
|
'202':
|
|
28370
28400
|
description: Country requires end-user KYC before the number can be ordered.
|
|
28371
28401
|
content:
|
|
@@ -28481,6 +28511,7 @@ paths:
|
|
|
28481
28511
|
parameters:
|
|
28482
28512
|
- { name: country, in: query, required: true, schema: { type: string }, description: ISO-2 country code. }
|
|
28483
28513
|
- { name: numberType, in: query, required: false, schema: { type: string, enum: [local, mobile, national, toll_free] }, description: "Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type." }
|
|
28514
|
+
- { name: sms, in: query, required: false, schema: { type: boolean }, description: 'Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.' }
|
|
28484
28515
|
responses:
|
|
28485
28516
|
'200':
|
|
28486
28517
|
description: Availability + address constraint.
|
|
@@ -28497,6 +28528,20 @@ paths:
|
|
|
28497
28528
|
type: array
|
|
28498
28529
|
description: For `geo` only — the area(s) the registered address must be in.
|
|
28499
28530
|
items: { type: string }
|
|
28531
|
+
areaOptions:
|
|
28532
|
+
type: array
|
|
28533
|
+
description: >
|
|
28534
|
+
Live inventory grouped by area code, largest stock
|
|
28535
|
+
first. Empty when out of stock (or the area lookup
|
|
28536
|
+
failed). Pass a chosen `ndc` as `areaCode` on POST
|
|
28537
|
+
/v1/phone-numbers/purchase (or on the KYC submit for
|
|
28538
|
+
regulated countries) to require that area.
|
|
28539
|
+
items:
|
|
28540
|
+
type: object
|
|
28541
|
+
properties:
|
|
28542
|
+
ndc: { type: string, description: 'Area code (national destination code), e.g. "11".' }
|
|
28543
|
+
name: { type: string, description: 'Human-readable area name, e.g. "Sao Paulo".' }
|
|
28544
|
+
count: { type: integer, description: Deliverable numbers seen in this area on the latest inventory page. }
|
|
28500
28545
|
'400': { description: Country not offerable }
|
|
28501
28546
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
28502
28547
|
|
|
@@ -28607,6 +28652,7 @@ paths:
|
|
|
28607
28652
|
reuse: { type: boolean, description: Reuse a prior approved verification for this country (skips document/field collection; places the order immediately). }
|
|
28608
28653
|
reuseOptionId: { type: string, description: 'Which reusable verification to use (GET reusable.options[].id). The unambiguous selection key. Omitted = the approved default. No match = 409.' }
|
|
28609
28654
|
reuseFrom: { type: string, description: 'Legacy fallback for `reuseOptionId`: the source phone number (GET reusable.options[].fromPhoneNumber). Ambiguous when a number labels two verifications — prefer `reuseOptionId`. Omitted = the approved default. No match = 409.' }
|
|
28655
|
+
areaCode: { type: string, pattern: '^\d{1,4}$', description: 'Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.' }
|
|
28610
28656
|
endUserFirstName: { type: string, description: End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement. }
|
|
28611
28657
|
endUserLastName: { type: string, description: End user's legal last name. Same condition as endUserFirstName. }
|
|
28612
28658
|
values:
|
|
@@ -28668,7 +28714,7 @@ paths:
|
|
|
28668
28714
|
phoneNumber: { type: string }
|
|
28669
28715
|
country: { type: string }
|
|
28670
28716
|
'400': { description: "Validation error (e.g. address not in-country, file too large)" }
|
|
28671
|
-
'409': { description: reuse requested but no prior approved verification exists for this country }
|
|
28717
|
+
'409': { description: 'Either reuse was requested but no prior approved verification exists for this country, or the requested areaCode has no deliverable inventory right now (code: area_code_unavailable; pick another area and resubmit).' }
|
|
28672
28718
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
28673
28719
|
|
|
28674
28720
|
/v1/phone-numbers/kyc/document/{documentId}:
|
|
@@ -28831,6 +28877,7 @@ paths:
|
|
|
28831
28877
|
properties:
|
|
28832
28878
|
profileId: { type: string }
|
|
28833
28879
|
country: { type: string, minLength: 2, maxLength: 2, description: ISO 3166-1 alpha-2 country code (must be a regulated/KYC country). }
|
|
28880
|
+
areaCode: { type: string, pattern: '^\d{1,4}$', description: 'Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).' }
|
|
28834
28881
|
branding:
|
|
28835
28882
|
type: object
|
|
28836
28883
|
description: Optional white-label of the hosted page the end customer sees.
|
|
@@ -29577,6 +29624,7 @@ paths:
|
|
|
29577
29624
|
reuse: { type: boolean, description: Reuse a prior approved verification for this country (skips document/field collection; places the order immediately). }
|
|
29578
29625
|
reuseOptionId: { type: string, description: 'Which reusable verification to use (GET reusable.options[].id). The unambiguous selection key. Omitted = the approved default. No match = 409.' }
|
|
29579
29626
|
reuseFrom: { type: string, description: 'Legacy fallback for `reuseOptionId`: the source phone number (GET reusable.options[].fromPhoneNumber). Ambiguous when a number labels two verifications — prefer `reuseOptionId`. Omitted = the approved default. No match = 409.' }
|
|
29627
|
+
areaCode: { type: string, pattern: '^\d{1,4}$', description: 'Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.' }
|
|
29580
29628
|
endUserFirstName: { type: string, description: End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement. }
|
|
29581
29629
|
endUserLastName: { type: string, description: End user's legal last name. Same condition as endUserFirstName. }
|
|
29582
29630
|
values:
|
|
@@ -29638,7 +29686,7 @@ paths:
|
|
|
29638
29686
|
phoneNumber: { type: string }
|
|
29639
29687
|
country: { type: string }
|
|
29640
29688
|
'400': { description: "Validation error (e.g. address not in-country, file too large)" }
|
|
29641
|
-
'409': { description: reuse requested but no prior approved verification exists for this country }
|
|
29689
|
+
'409': { description: 'Either reuse was requested but no prior approved verification exists for this country, or the requested areaCode has no deliverable inventory right now (code: area_code_unavailable; pick another area and resubmit).' }
|
|
29642
29690
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
29643
29691
|
|
|
29644
29692
|
/v1/whatsapp/phone-numbers/kyc/upload-document:
|
|
@@ -29785,6 +29833,7 @@ paths:
|
|
|
29785
29833
|
properties:
|
|
29786
29834
|
profileId: { type: string }
|
|
29787
29835
|
country: { type: string, minLength: 2, maxLength: 2, description: ISO 3166-1 alpha-2 country code (must be a regulated/KYC country). }
|
|
29836
|
+
areaCode: { type: string, pattern: '^\d{1,4}$', description: 'Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).' }
|
|
29788
29837
|
branding:
|
|
29789
29838
|
type: object
|
|
29790
29839
|
description: Optional white-label of the hosted page the end customer sees.
|
|
@@ -33662,6 +33711,67 @@ paths:
|
|
|
33662
33711
|
'403':
|
|
33663
33712
|
description: Ads access required. Legacy plans need the Ads add-on; included by default on usage-based plans.
|
|
33664
33713
|
|
|
33714
|
+
/v1/ads/keywords:
|
|
33715
|
+
get:
|
|
33716
|
+
operationId: listAdKeywords
|
|
33717
|
+
tags: ["Ad Campaigns"]
|
|
33718
|
+
x-platforms: ["google"]
|
|
33719
|
+
summary: List Search keywords
|
|
33720
|
+
description: |
|
|
33721
|
+
Returns the Google Search keyword criteria (positive and negative) synced from
|
|
33722
|
+
connected Google Ads accounts, one row per ad-group keyword. Populated by the
|
|
33723
|
+
periodic ads discovery sweep (roughly every 3 hours per account), so keywords
|
|
33724
|
+
added on Google appear with that delay. Campaign-level negative keywords are
|
|
33725
|
+
not included; only ad-group-level criteria are.
|
|
33726
|
+
security:
|
|
33727
|
+
- bearerAuth: []
|
|
33728
|
+
parameters:
|
|
33729
|
+
- $ref: '#/components/parameters/PageParam'
|
|
33730
|
+
- { name: limit, in: query, schema: { type: integer, minimum: 1, maximum: 500, default: 50 } }
|
|
33731
|
+
- { name: accountId, in: query, schema: { type: string }, description: Social account ID }
|
|
33732
|
+
- { name: adAccountId, in: query, schema: { type: string }, description: 'Platform ad account ID (Google customer ID). Mirrors the same filter on /v1/ads.' }
|
|
33733
|
+
- { name: profileId, in: query, schema: { type: string }, description: Profile ID }
|
|
33734
|
+
- { name: campaignId, in: query, schema: { type: string }, description: Platform campaign ID }
|
|
33735
|
+
- { name: adSetId, in: query, schema: { type: string }, description: 'Platform ad group ID (Google ad group)' }
|
|
33736
|
+
- { name: status, in: query, schema: { type: string, enum: [active, paused] }, description: Keyword criterion status }
|
|
33737
|
+
- { name: matchType, in: query, schema: { type: string, enum: [exact, phrase, broad, unknown] } }
|
|
33738
|
+
- { name: negative, in: query, schema: { type: boolean }, description: 'true = negative keywords only, false = positive only. Omit for both.' }
|
|
33739
|
+
- { name: search, in: query, schema: { type: string, maxLength: 200 }, description: 'Case-insensitive substring match on the keyword text' }
|
|
33740
|
+
responses:
|
|
33741
|
+
'200':
|
|
33742
|
+
description: Paginated keywords
|
|
33743
|
+
content:
|
|
33744
|
+
application/json:
|
|
33745
|
+
schema:
|
|
33746
|
+
type: object
|
|
33747
|
+
properties:
|
|
33748
|
+
keywords:
|
|
33749
|
+
type: array
|
|
33750
|
+
items:
|
|
33751
|
+
type: object
|
|
33752
|
+
properties:
|
|
33753
|
+
id: { type: string }
|
|
33754
|
+
accountId: { type: string, description: Social account ID owning the sync }
|
|
33755
|
+
profileId: { type: string }
|
|
33756
|
+
platform: { type: string, enum: [google] }
|
|
33757
|
+
adAccountId: { type: string, description: Google customer ID }
|
|
33758
|
+
campaignId: { type: string }
|
|
33759
|
+
campaignName: { type: [string, "null"] }
|
|
33760
|
+
campaignStatus: { type: [string, "null"] }
|
|
33761
|
+
adSetId: { type: string, description: Google ad group ID }
|
|
33762
|
+
adSetName: { type: [string, "null"] }
|
|
33763
|
+
adSetStatus: { type: [string, "null"] }
|
|
33764
|
+
keyword: { type: string }
|
|
33765
|
+
matchType: { type: string, enum: [exact, phrase, broad, unknown] }
|
|
33766
|
+
status: { type: string, enum: [active, paused] }
|
|
33767
|
+
negative: { type: boolean }
|
|
33768
|
+
syncedAt: { type: [string, "null"], format: date-time }
|
|
33769
|
+
pagination: { $ref: '#/components/schemas/Pagination' }
|
|
33770
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
33771
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
33772
|
+
'403':
|
|
33773
|
+
description: Ads access required. Legacy plans need the Ads add-on; included by default on usage-based plans.
|
|
33774
|
+
|
|
33665
33775
|
/v1/ads/campaigns:
|
|
33666
33776
|
get:
|
|
33667
33777
|
operationId: listAdCampaigns
|
|
@@ -233,6 +233,28 @@ describe 'AdCampaignsApi' do
|
|
|
233
233
|
end
|
|
234
234
|
end
|
|
235
235
|
|
|
236
|
+
# unit tests for list_ad_keywords
|
|
237
|
+
# List Search keywords
|
|
238
|
+
# Returns the Google Search keyword criteria (positive and negative) synced from connected Google Ads accounts, one row per ad-group keyword. Populated by the periodic ads discovery sweep (roughly every 3 hours per account), so keywords added on Google appear with that delay. Campaign-level negative keywords are not included; only ad-group-level criteria are.
|
|
239
|
+
# @param [Hash] opts the optional parameters
|
|
240
|
+
# @option opts [Integer] :page Page number (1-based)
|
|
241
|
+
# @option opts [Integer] :limit
|
|
242
|
+
# @option opts [String] :account_id Social account ID
|
|
243
|
+
# @option opts [String] :ad_account_id Platform ad account ID (Google customer ID). Mirrors the same filter on /v1/ads.
|
|
244
|
+
# @option opts [String] :profile_id Profile ID
|
|
245
|
+
# @option opts [String] :campaign_id Platform campaign ID
|
|
246
|
+
# @option opts [String] :ad_set_id Platform ad group ID (Google ad group)
|
|
247
|
+
# @option opts [String] :status Keyword criterion status
|
|
248
|
+
# @option opts [String] :match_type
|
|
249
|
+
# @option opts [Boolean] :negative true = negative keywords only, false = positive only. Omit for both.
|
|
250
|
+
# @option opts [String] :search Case-insensitive substring match on the keyword text
|
|
251
|
+
# @return [ListAdKeywords200Response]
|
|
252
|
+
describe 'list_ad_keywords test' do
|
|
253
|
+
it 'should work' do
|
|
254
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
236
258
|
# unit tests for list_ads
|
|
237
259
|
# List ads
|
|
238
260
|
# Returns a paginated list of ads with metrics computed over an optional date range. Use source=all to include externally-synced ads from platform ad managers. If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max. To find the Zernio ad behind a comment you see in Meta Business Manager, filter by platformAdId (the Meta ad ID), effectiveObjectStoryId (Facebook), or effectiveInstagramMediaId (Instagram) — those are the post/media the ad's engagement lives on, and are also returned on each ad's `creative` object. Then call GET /v1/ads/{adId}/comments with the returned ad id.
|
|
@@ -50,6 +50,7 @@ describe 'PhoneNumbersApi' do
|
|
|
50
50
|
# @param country ISO-2 country code.
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
|
52
52
|
# @option opts [String] :number_type Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
|
|
53
|
+
# @option opts [Boolean] :sms Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
|
|
53
54
|
# @return [CheckPhoneNumberAvailability200Response]
|
|
54
55
|
describe 'check_phone_number_availability test' do
|
|
55
56
|
it 'should work' do
|
|
@@ -38,6 +38,7 @@ describe 'WhatsAppPhoneNumbersApi' do
|
|
|
38
38
|
# @param country ISO-2 country code.
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @option opts [String] :number_type Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
|
|
41
|
+
# @option opts [Boolean] :sms Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
|
|
41
42
|
# @return [CheckPhoneNumberAvailability200Response]
|
|
42
43
|
describe 'check_whats_app_number_availability test' do
|
|
43
44
|
it 'should work' do
|
|
@@ -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
|
|
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::CheckPhoneNumberAvailability200ResponseAreaOptionsInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::CheckPhoneNumberAvailability200ResponseAreaOptionsInner do
|
|
21
|
+
#let(:instance) { Zernio::CheckPhoneNumberAvailability200ResponseAreaOptionsInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CheckPhoneNumberAvailability200ResponseAreaOptionsInner' do
|
|
24
|
+
it 'should create an instance of CheckPhoneNumberAvailability200ResponseAreaOptionsInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::CheckPhoneNumberAvailability200ResponseAreaOptionsInner)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "ndc"' 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 "name"' 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 "count"' 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
|
|
@@ -61,4 +61,10 @@ describe Zernio::CheckPhoneNumberAvailability200Response do
|
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
+
describe 'test attribute "area_options"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
64
70
|
end
|
|
@@ -39,6 +39,12 @@ describe Zernio::CreatePhoneNumberKycLinkRequest do
|
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
describe 'test attribute "area_code"' 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
|
+
|
|
42
48
|
describe 'test attribute "branding"' do
|
|
43
49
|
it 'should work' do
|
|
44
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -0,0 +1,138 @@
|
|
|
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::ListAdKeywords200ResponseKeywordsInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::ListAdKeywords200ResponseKeywordsInner do
|
|
21
|
+
#let(:instance) { Zernio::ListAdKeywords200ResponseKeywordsInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ListAdKeywords200ResponseKeywordsInner' do
|
|
24
|
+
it 'should create an instance of ListAdKeywords200ResponseKeywordsInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::ListAdKeywords200ResponseKeywordsInner)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "id"' 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 "profile_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
|
+
describe 'test attribute "platform"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["google"])
|
|
52
|
+
# validator.allowable_values.each do |value|
|
|
53
|
+
# expect { instance.platform = value }.not_to raise_error
|
|
54
|
+
# end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
describe 'test attribute "ad_account_id"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
describe 'test attribute "campaign_id"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
describe 'test attribute "campaign_name"' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
describe 'test attribute "campaign_status"' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
describe 'test attribute "ad_set_id"' do
|
|
83
|
+
it 'should work' do
|
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
describe 'test attribute "ad_set_name"' do
|
|
89
|
+
it 'should work' do
|
|
90
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
describe 'test attribute "ad_set_status"' 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
|
+
|
|
100
|
+
describe 'test attribute "keyword"' do
|
|
101
|
+
it 'should work' do
|
|
102
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
describe 'test attribute "match_type"' do
|
|
107
|
+
it 'should work' do
|
|
108
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
109
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "phrase", "broad", "unknown"])
|
|
110
|
+
# validator.allowable_values.each do |value|
|
|
111
|
+
# expect { instance.match_type = value }.not_to raise_error
|
|
112
|
+
# end
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
describe 'test attribute "status"' do
|
|
117
|
+
it 'should work' do
|
|
118
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
119
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active", "paused"])
|
|
120
|
+
# validator.allowable_values.each do |value|
|
|
121
|
+
# expect { instance.status = value }.not_to raise_error
|
|
122
|
+
# end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
describe 'test attribute "negative"' do
|
|
127
|
+
it 'should work' do
|
|
128
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
describe 'test attribute "synced_at"' do
|
|
133
|
+
it 'should work' do
|
|
134
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
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::ListAdKeywords200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::ListAdKeywords200Response do
|
|
21
|
+
#let(:instance) { Zernio::ListAdKeywords200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ListAdKeywords200Response' do
|
|
24
|
+
it 'should create an instance of ListAdKeywords200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::ListAdKeywords200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "keywords"' 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 "pagination"' 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
|
+
end
|
|
@@ -36,7 +36,7 @@ describe Zernio::PurchasePhoneNumber409Response do
|
|
|
36
36
|
describe 'test attribute "code"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PURCHASE_VELOCITY"])
|
|
39
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PURCHASE_VELOCITY", "AREA_CODE_UNAVAILABLE"])
|
|
40
40
|
# validator.allowable_values.each do |value|
|
|
41
41
|
# expect { instance.code = value }.not_to raise_error
|
|
42
42
|
# end
|
|
@@ -49,6 +49,12 @@ describe Zernio::PurchasePhoneNumberRequest do
|
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
describe 'test attribute "area_code"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
52
58
|
describe 'test attribute "connect_whatsapp"' do
|
|
53
59
|
it 'should work' do
|
|
54
60
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -69,6 +69,12 @@ describe Zernio::SubmitPhoneNumberKycRequest do
|
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
describe 'test attribute "area_code"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
72
78
|
describe 'test attribute "end_user_first_name"' do
|
|
73
79
|
it 'should work' do
|
|
74
80
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -69,6 +69,12 @@ describe Zernio::SubmitWhatsAppNumberKycRequest do
|
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
describe 'test attribute "area_code"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
72
78
|
describe 'test attribute "end_user_first_name"' do
|
|
73
79
|
it 'should work' do
|
|
74
80
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
Binary file
|