late-sdk 0.0.568 → 0.0.570
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 +2 -0
- data/docs/Ad.md +5 -1
- data/docs/AdCampaign.md +1 -1
- data/docs/AdReviewStatus.md +15 -0
- data/docs/AdTreeCampaign.md +1 -1
- data/docs/CheckPhoneNumberAvailability200Response.md +3 -1
- data/docs/CheckPhoneNumberAvailability200ResponseAreaOptionsInner.md +22 -0
- data/docs/CreatePhoneNumberKycLinkRequest.md +2 -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/phone_numbers_api.rb +3 -0
- data/lib/zernio-sdk/api/whats_app_phone_numbers_api.rb +3 -0
- data/lib/zernio-sdk/models/ad.rb +23 -1
- data/lib/zernio-sdk/models/ad_campaign.rb +1 -14
- data/lib/zernio-sdk/models/ad_review_status.rb +42 -0
- data/lib/zernio-sdk/models/ad_tree_campaign.rb +1 -14
- 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/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 +2 -0
- data/openapi.yaml +80 -15
- 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/ad_campaign_spec.rb +0 -4
- data/spec/models/ad_review_status_spec.rb +30 -0
- data/spec/models/ad_spec.rb +12 -0
- data/spec/models/ad_tree_campaign_spec.rb +0 -4
- 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/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.570.gem +0 -0
- metadata +10 -2
- data/zernio-sdk-0.0.568.gem +0 -0
data/openapi.yaml
CHANGED
|
@@ -6368,6 +6368,10 @@ components:
|
|
|
6368
6368
|
AdStatus:
|
|
6369
6369
|
type: string
|
|
6370
6370
|
enum: [active, paused, pending_review, rejected, completed, cancelled, error]
|
|
6371
|
+
AdReviewStatus:
|
|
6372
|
+
type: string
|
|
6373
|
+
enum: [in_review, approved, rejected, with_issues]
|
|
6374
|
+
description: "Platform-side review state, independent of the delivery `status` and the `configuredStatus` on/off toggle. `in_review` means the platform is still reviewing. Absent when the platform reports no review signal (e.g. a paused ad whose review state is masked behind the pause)."
|
|
6371
6375
|
BusinessCenter:
|
|
6372
6376
|
type: object
|
|
6373
6377
|
description: |
|
|
@@ -6581,7 +6585,14 @@ components:
|
|
|
6581
6585
|
_id: { type: string }
|
|
6582
6586
|
name: { type: string }
|
|
6583
6587
|
platform: { type: string, enum: [facebook, instagram, tiktok, linkedin, pinterest, google, twitter, openai] }
|
|
6584
|
-
status: { $ref: '#/components/schemas/AdStatus' }
|
|
6588
|
+
status: { allOf: [{ $ref: '#/components/schemas/AdStatus' }], description: "Delivery status. Derived from the platform `effective_status`, so it inherits ancestor pauses (an ACTIVE ad under a PAUSED campaign reads `paused`). For the ad's own on/off toggle use `configuredStatus`; for the review state use `reviewStatus`." }
|
|
6589
|
+
configuredStatus:
|
|
6590
|
+
type: [string, "null"]
|
|
6591
|
+
description: "The ad's own on/off toggle as configured on the platform (Meta `configured_status`: ACTIVE / PAUSED), unaffected by ancestor (ad set / campaign) pauses. Distinct from `status`, which is the ancestor-cascaded delivery status. Only present for Meta ads synced after this field was added."
|
|
6592
|
+
example: ACTIVE
|
|
6593
|
+
reviewStatus:
|
|
6594
|
+
allOf: [{ $ref: '#/components/schemas/AdReviewStatus' }]
|
|
6595
|
+
description: "Platform review state of this ad, independent of delivery `status` / `configuredStatus`. Absent when the platform reports no review signal."
|
|
6585
6596
|
adType: { type: string, enum: [boost, standalone] }
|
|
6586
6597
|
goal: { type: string, enum: [engagement, traffic, awareness, video_views, lead_generation, lead_conversion, conversions, app_promotion, catalog_sales, job_applicants], description: "Available goals vary by platform. Meta (Facebook/Instagram) supports all 9 (incl. `lead_conversion` = website pixel lead optimization and `catalog_sales` = Advantage+ catalog ads). TikTok supports the 7 non-`lead_conversion` goals. LinkedIn supports all except app_promotion / lead_conversion. Twitter/X supports engagement, traffic, awareness, video_views, app_promotion. Pinterest and Google Ads support only engagement, traffic, awareness, video_views." }
|
|
6587
6598
|
isExternal: { type: boolean, description: True for ads synced from platform ad managers }
|
|
@@ -6765,8 +6776,9 @@ components:
|
|
|
6765
6776
|
campaignName: { type: string }
|
|
6766
6777
|
status: { allOf: [{ $ref: '#/components/schemas/AdStatus' }], description: "Delivery status derived from child ad statuses. Distinct from `reviewStatus`, which reflects the platform-side review state." }
|
|
6767
6778
|
reviewStatus:
|
|
6768
|
-
|
|
6769
|
-
|
|
6779
|
+
anyOf:
|
|
6780
|
+
- $ref: '#/components/schemas/AdReviewStatus'
|
|
6781
|
+
- type: "null"
|
|
6770
6782
|
description: |
|
|
6771
6783
|
Platform-side review state of the campaign. Independent of the
|
|
6772
6784
|
children-derived delivery `status`: a campaign can have ads
|
|
@@ -6848,8 +6860,9 @@ components:
|
|
|
6848
6860
|
campaignName: { type: string }
|
|
6849
6861
|
status: { allOf: [{ $ref: '#/components/schemas/AdStatus' }], description: "Delivery status derived from child ad statuses. Distinct from `reviewStatus`." }
|
|
6850
6862
|
reviewStatus:
|
|
6851
|
-
|
|
6852
|
-
|
|
6863
|
+
anyOf:
|
|
6864
|
+
- $ref: '#/components/schemas/AdReviewStatus'
|
|
6865
|
+
- type: "null"
|
|
6853
6866
|
description: "Platform-side review state of the campaign. See AdTreeCampaign.reviewStatus for the full description."
|
|
6854
6867
|
platformCampaignStatus:
|
|
6855
6868
|
type: [string, "null"]
|
|
@@ -25129,6 +25142,7 @@ paths:
|
|
|
25129
25142
|
'400': { description: accountId is required }
|
|
25130
25143
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
25131
25144
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
25145
|
+
'502': { description: Meta rejected the request or was unreachable. Meta 4xx statuses are forwarded as-is. }
|
|
25132
25146
|
patch:
|
|
25133
25147
|
operationId: updateWhatsAppTemplate
|
|
25134
25148
|
tags: [WhatsApp]
|
|
@@ -25193,6 +25207,7 @@ paths:
|
|
|
25193
25207
|
'400': { description: Validation error (missing fields) }
|
|
25194
25208
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
25195
25209
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
25210
|
+
'502': { description: Meta rejected the update or was unreachable. Meta 4xx statuses are forwarded as-is. }
|
|
25196
25211
|
delete:
|
|
25197
25212
|
operationId: deleteWhatsAppTemplate
|
|
25198
25213
|
tags: [WhatsApp]
|
|
@@ -25230,6 +25245,7 @@ paths:
|
|
|
25230
25245
|
'400': { description: accountId or template name is required }
|
|
25231
25246
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
25232
25247
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
25248
|
+
'502': { description: Meta rejected the delete or was unreachable. Meta 4xx statuses are forwarded as-is. }
|
|
25233
25249
|
|
|
25234
25250
|
# ──────────────────────────────────────────────────────────────────────────
|
|
25235
25251
|
# WHATSAPP BUSINESS CALLING
|
|
@@ -27883,6 +27899,17 @@ paths:
|
|
|
27883
27899
|
connect WhatsApp (400 when combined with
|
|
27884
27900
|
connectWhatsapp:true), and wantsSms:true requires an
|
|
27885
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).
|
|
27886
27913
|
connectWhatsapp:
|
|
27887
27914
|
type: boolean
|
|
27888
27915
|
default: true
|
|
@@ -27974,16 +28001,18 @@ paths:
|
|
|
27974
28001
|
'403': { description: A paid plan is required }
|
|
27975
28002
|
'409':
|
|
27976
28003
|
description: >
|
|
27977
|
-
|
|
27978
|
-
|
|
27979
|
-
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).
|
|
27980
28009
|
content:
|
|
27981
28010
|
application/json:
|
|
27982
28011
|
schema:
|
|
27983
28012
|
type: object
|
|
27984
28013
|
properties:
|
|
27985
28014
|
error: { type: string }
|
|
27986
|
-
code: { type: string, enum: [PURCHASE_VELOCITY] }
|
|
28015
|
+
code: { type: string, enum: [PURCHASE_VELOCITY, AREA_CODE_UNAVAILABLE] }
|
|
27987
28016
|
'202':
|
|
27988
28017
|
description: Country requires end-user KYC before the number can be ordered.
|
|
27989
28018
|
content:
|
|
@@ -28116,6 +28145,7 @@ paths:
|
|
|
28116
28145
|
parameters:
|
|
28117
28146
|
- { name: country, in: query, required: true, schema: { type: string }, description: ISO-2 country code. }
|
|
28118
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.' }
|
|
28119
28149
|
responses:
|
|
28120
28150
|
'200':
|
|
28121
28151
|
description: Availability + address constraint.
|
|
@@ -28132,6 +28162,20 @@ paths:
|
|
|
28132
28162
|
type: array
|
|
28133
28163
|
description: For `geo` only — the area(s) the registered address must be in.
|
|
28134
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. }
|
|
28135
28179
|
'400': { description: Country not offerable }
|
|
28136
28180
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
28137
28181
|
|
|
@@ -28340,16 +28384,18 @@ paths:
|
|
|
28340
28384
|
'403': { description: A paid plan is required }
|
|
28341
28385
|
'409':
|
|
28342
28386
|
description: >
|
|
28343
|
-
|
|
28344
|
-
|
|
28345
|
-
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).
|
|
28346
28392
|
content:
|
|
28347
28393
|
application/json:
|
|
28348
28394
|
schema:
|
|
28349
28395
|
type: object
|
|
28350
28396
|
properties:
|
|
28351
28397
|
error: { type: string }
|
|
28352
|
-
code: { type: string, enum: [PURCHASE_VELOCITY] }
|
|
28398
|
+
code: { type: string, enum: [PURCHASE_VELOCITY, AREA_CODE_UNAVAILABLE] }
|
|
28353
28399
|
'202':
|
|
28354
28400
|
description: Country requires end-user KYC before the number can be ordered.
|
|
28355
28401
|
content:
|
|
@@ -28465,6 +28511,7 @@ paths:
|
|
|
28465
28511
|
parameters:
|
|
28466
28512
|
- { name: country, in: query, required: true, schema: { type: string }, description: ISO-2 country code. }
|
|
28467
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.' }
|
|
28468
28515
|
responses:
|
|
28469
28516
|
'200':
|
|
28470
28517
|
description: Availability + address constraint.
|
|
@@ -28481,6 +28528,20 @@ paths:
|
|
|
28481
28528
|
type: array
|
|
28482
28529
|
description: For `geo` only — the area(s) the registered address must be in.
|
|
28483
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. }
|
|
28484
28545
|
'400': { description: Country not offerable }
|
|
28485
28546
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
28486
28547
|
|
|
@@ -28591,6 +28652,7 @@ paths:
|
|
|
28591
28652
|
reuse: { type: boolean, description: Reuse a prior approved verification for this country (skips document/field collection; places the order immediately). }
|
|
28592
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.' }
|
|
28593
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.' }
|
|
28594
28656
|
endUserFirstName: { type: string, description: End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement. }
|
|
28595
28657
|
endUserLastName: { type: string, description: End user's legal last name. Same condition as endUserFirstName. }
|
|
28596
28658
|
values:
|
|
@@ -28652,7 +28714,7 @@ paths:
|
|
|
28652
28714
|
phoneNumber: { type: string }
|
|
28653
28715
|
country: { type: string }
|
|
28654
28716
|
'400': { description: "Validation error (e.g. address not in-country, file too large)" }
|
|
28655
|
-
'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).' }
|
|
28656
28718
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
28657
28719
|
|
|
28658
28720
|
/v1/phone-numbers/kyc/document/{documentId}:
|
|
@@ -28815,6 +28877,7 @@ paths:
|
|
|
28815
28877
|
properties:
|
|
28816
28878
|
profileId: { type: string }
|
|
28817
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).' }
|
|
28818
28881
|
branding:
|
|
28819
28882
|
type: object
|
|
28820
28883
|
description: Optional white-label of the hosted page the end customer sees.
|
|
@@ -29561,6 +29624,7 @@ paths:
|
|
|
29561
29624
|
reuse: { type: boolean, description: Reuse a prior approved verification for this country (skips document/field collection; places the order immediately). }
|
|
29562
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.' }
|
|
29563
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.' }
|
|
29564
29628
|
endUserFirstName: { type: string, description: End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement. }
|
|
29565
29629
|
endUserLastName: { type: string, description: End user's legal last name. Same condition as endUserFirstName. }
|
|
29566
29630
|
values:
|
|
@@ -29622,7 +29686,7 @@ paths:
|
|
|
29622
29686
|
phoneNumber: { type: string }
|
|
29623
29687
|
country: { type: string }
|
|
29624
29688
|
'400': { description: "Validation error (e.g. address not in-country, file too large)" }
|
|
29625
|
-
'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).' }
|
|
29626
29690
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
29627
29691
|
|
|
29628
29692
|
/v1/whatsapp/phone-numbers/kyc/upload-document:
|
|
@@ -29769,6 +29833,7 @@ paths:
|
|
|
29769
29833
|
properties:
|
|
29770
29834
|
profileId: { type: string }
|
|
29771
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).' }
|
|
29772
29837
|
branding:
|
|
29773
29838
|
type: object
|
|
29774
29839
|
description: Optional white-label of the hosted page the end customer sees.
|
|
@@ -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
|
|
@@ -58,10 +58,6 @@ describe Zernio::AdCampaign do
|
|
|
58
58
|
describe 'test attribute "review_status"' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["in_review", "approved", "rejected", "with_issues"])
|
|
62
|
-
# validator.allowable_values.each do |value|
|
|
63
|
-
# expect { instance.review_status = value }.not_to raise_error
|
|
64
|
-
# end
|
|
65
61
|
end
|
|
66
62
|
end
|
|
67
63
|
|
|
@@ -0,0 +1,30 @@
|
|
|
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::AdReviewStatus
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::AdReviewStatus do
|
|
21
|
+
#let(:instance) { Zernio::AdReviewStatus.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of AdReviewStatus' do
|
|
24
|
+
it 'should create an instance of AdReviewStatus' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::AdReviewStatus)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
end
|
data/spec/models/ad_spec.rb
CHANGED
|
@@ -55,6 +55,18 @@ describe Zernio::Ad do
|
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
describe 'test attribute "configured_status"' 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 "review_status"' 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
|
+
|
|
58
70
|
describe 'test attribute "ad_type"' do
|
|
59
71
|
it 'should work' do
|
|
60
72
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -58,10 +58,6 @@ describe Zernio::AdTreeCampaign do
|
|
|
58
58
|
describe 'test attribute "review_status"' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["in_review", "approved", "rejected", "with_issues"])
|
|
62
|
-
# validator.allowable_values.each do |value|
|
|
63
|
-
# expect { instance.review_status = value }.not_to raise_error
|
|
64
|
-
# end
|
|
65
61
|
end
|
|
66
62
|
end
|
|
67
63
|
|
|
@@ -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/
|
|
@@ -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
|
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.570
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -87,6 +87,7 @@ files:
|
|
|
87
87
|
- docs/AdInsightsApi.md
|
|
88
88
|
- docs/AdMetrics.md
|
|
89
89
|
- docs/AdPromotedObject.md
|
|
90
|
+
- docs/AdReviewStatus.md
|
|
90
91
|
- docs/AdSchedule.md
|
|
91
92
|
- docs/AdStatus.md
|
|
92
93
|
- docs/AdTargetingApi.md
|
|
@@ -181,6 +182,7 @@ files:
|
|
|
181
182
|
- docs/CancelBroadcast200Response.md
|
|
182
183
|
- docs/CancelPhoneNumberPortIn200Response.md
|
|
183
184
|
- docs/CheckPhoneNumberAvailability200Response.md
|
|
185
|
+
- docs/CheckPhoneNumberAvailability200ResponseAreaOptionsInner.md
|
|
184
186
|
- docs/CheckPhoneNumberPortability200Response.md
|
|
185
187
|
- docs/CheckPhoneNumberPortability200ResponseResultsInner.md
|
|
186
188
|
- docs/CheckPhoneNumberPortabilityRequest.md
|
|
@@ -1708,6 +1710,7 @@ files:
|
|
|
1708
1710
|
- lib/zernio-sdk/models/ad_daily_metrics.rb
|
|
1709
1711
|
- lib/zernio-sdk/models/ad_metrics.rb
|
|
1710
1712
|
- lib/zernio-sdk/models/ad_promoted_object.rb
|
|
1713
|
+
- lib/zernio-sdk/models/ad_review_status.rb
|
|
1711
1714
|
- lib/zernio-sdk/models/ad_schedule.rb
|
|
1712
1715
|
- lib/zernio-sdk/models/ad_status.rb
|
|
1713
1716
|
- lib/zernio-sdk/models/ad_tree_ad_set.rb
|
|
@@ -1798,6 +1801,7 @@ files:
|
|
|
1798
1801
|
- lib/zernio-sdk/models/cancel_broadcast200_response.rb
|
|
1799
1802
|
- lib/zernio-sdk/models/cancel_phone_number_port_in200_response.rb
|
|
1800
1803
|
- lib/zernio-sdk/models/check_phone_number_availability200_response.rb
|
|
1804
|
+
- lib/zernio-sdk/models/check_phone_number_availability200_response_area_options_inner.rb
|
|
1801
1805
|
- lib/zernio-sdk/models/check_phone_number_portability200_response.rb
|
|
1802
1806
|
- lib/zernio-sdk/models/check_phone_number_portability200_response_results_inner.rb
|
|
1803
1807
|
- lib/zernio-sdk/models/check_phone_number_portability_request.rb
|
|
@@ -3268,6 +3272,7 @@ files:
|
|
|
3268
3272
|
- spec/models/ad_daily_metrics_spec.rb
|
|
3269
3273
|
- spec/models/ad_metrics_spec.rb
|
|
3270
3274
|
- spec/models/ad_promoted_object_spec.rb
|
|
3275
|
+
- spec/models/ad_review_status_spec.rb
|
|
3271
3276
|
- spec/models/ad_schedule_spec.rb
|
|
3272
3277
|
- spec/models/ad_spec.rb
|
|
3273
3278
|
- spec/models/ad_status_spec.rb
|
|
@@ -3358,6 +3363,7 @@ files:
|
|
|
3358
3363
|
- spec/models/call_record_transcript_inner_spec.rb
|
|
3359
3364
|
- spec/models/cancel_broadcast200_response_spec.rb
|
|
3360
3365
|
- spec/models/cancel_phone_number_port_in200_response_spec.rb
|
|
3366
|
+
- spec/models/check_phone_number_availability200_response_area_options_inner_spec.rb
|
|
3361
3367
|
- spec/models/check_phone_number_availability200_response_spec.rb
|
|
3362
3368
|
- spec/models/check_phone_number_portability200_response_results_inner_spec.rb
|
|
3363
3369
|
- spec/models/check_phone_number_portability200_response_spec.rb
|
|
@@ -4751,7 +4757,7 @@ files:
|
|
|
4751
4757
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
4752
4758
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
4753
4759
|
- spec/spec_helper.rb
|
|
4754
|
-
- zernio-sdk-0.0.
|
|
4760
|
+
- zernio-sdk-0.0.570.gem
|
|
4755
4761
|
- zernio-sdk.gemspec
|
|
4756
4762
|
homepage: https://openapi-generator.tech
|
|
4757
4763
|
licenses:
|
|
@@ -5162,6 +5168,7 @@ test_files:
|
|
|
5162
5168
|
- spec/models/webhook_payload_review_new_spec.rb
|
|
5163
5169
|
- spec/models/get_inbox_top_accounts200_response_accounts_inner_spec.rb
|
|
5164
5170
|
- spec/models/boost_post_request_tracking_spec.rb
|
|
5171
|
+
- spec/models/check_phone_number_availability200_response_area_options_inner_spec.rb
|
|
5165
5172
|
- spec/models/request_sms_sender_id_limit_increase_request_spec.rb
|
|
5166
5173
|
- spec/models/get_whats_app_number_remediation200_response_spec.rb
|
|
5167
5174
|
- spec/models/get_ad_comments200_response_meta_spec.rb
|
|
@@ -5989,6 +5996,7 @@ test_files:
|
|
|
5989
5996
|
- spec/models/delete_ad_creative200_response_spec.rb
|
|
5990
5997
|
- spec/models/get_google_business_attributes200_response_attributes_inner_spec.rb
|
|
5991
5998
|
- spec/models/webhook_payload_message_metadata_referral_spec.rb
|
|
5999
|
+
- spec/models/ad_review_status_spec.rb
|
|
5992
6000
|
- spec/models/connect_open_ai_ads_credentials_request_spec.rb
|
|
5993
6001
|
- spec/models/update_sequence_request_steps_inner_spec.rb
|
|
5994
6002
|
- spec/models/webhook_payload_call_failed_spec.rb
|
data/zernio-sdk-0.0.568.gem
DELETED
|
Binary file
|