late-sdk 0.0.531 → 0.0.533
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 +16 -0
- data/docs/AdsApi.md +287 -0
- data/docs/CheckPhoneNumberPortability200ResponseResultsInner.md +5 -1
- data/docs/CreatePhoneNumberPortInRequest.md +4 -2
- data/docs/CreatePhoneNumberPortInRequestEndUser.md +8 -4
- data/docs/CreatePhoneNumberPortInRequestRequirementsInner.md +20 -0
- data/docs/CreateRfPrediction201Response.md +22 -0
- data/docs/CreateRfPredictionRequest.md +34 -0
- data/docs/CreateStandaloneAdRequest.md +4 -0
- data/docs/GetPhoneNumberPortInOrderRequirements200Response.md +20 -0
- data/docs/GetPhoneNumberPortInOrderRequirements200ResponseRequirementsInner.md +32 -0
- data/docs/GetPhoneNumberPortInRequirements200Response.md +24 -0
- data/docs/GetPhoneNumberPortInRequirements200ResponseFieldsInner.md +28 -0
- data/docs/PhoneNumbersApi.md +149 -5
- data/docs/ReserveRfPrediction201Response.md +20 -0
- data/docs/ReserveRfPredictionRequest.md +20 -0
- data/docs/RfPrediction.md +42 -0
- data/lib/zernio-sdk/api/ads_api.rb +294 -0
- data/lib/zernio-sdk/api/phone_numbers_api.rb +148 -10
- data/lib/zernio-sdk/models/check_phone_number_portability200_response_results_inner.rb +24 -2
- data/lib/zernio-sdk/models/create_phone_number_port_in_request.rb +36 -5
- data/lib/zernio-sdk/models/create_phone_number_port_in_request_end_user.rb +65 -23
- data/lib/zernio-sdk/models/create_phone_number_port_in_request_requirements_inner.rb +201 -0
- data/lib/zernio-sdk/models/create_rf_prediction201_response.rb +165 -0
- data/lib/zernio-sdk/models/create_rf_prediction_request.rb +323 -0
- data/lib/zernio-sdk/models/create_standalone_ad_request.rb +33 -1
- data/lib/zernio-sdk/models/get_phone_number_port_in_order_requirements200_response.rb +158 -0
- data/lib/zernio-sdk/models/get_phone_number_port_in_order_requirements200_response_requirements_inner.rb +247 -0
- data/lib/zernio-sdk/models/get_phone_number_port_in_requirements200_response.rb +177 -0
- data/lib/zernio-sdk/models/get_phone_number_port_in_requirements200_response_fields_inner.rb +231 -0
- data/lib/zernio-sdk/models/reserve_rf_prediction201_response.rb +156 -0
- data/lib/zernio-sdk/models/reserve_rf_prediction_request.rb +190 -0
- data/lib/zernio-sdk/models/rf_prediction.rb +273 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +10 -0
- data/openapi.yaml +283 -16
- data/spec/api/ads_api_spec.rb +52 -0
- data/spec/api/phone_numbers_api_spec.rb +28 -3
- data/spec/models/check_phone_number_portability200_response_results_inner_spec.rb +12 -0
- data/spec/models/create_phone_number_port_in_request_end_user_spec.rb +13 -1
- data/spec/models/create_phone_number_port_in_request_requirements_inner_spec.rb +42 -0
- data/spec/models/create_phone_number_port_in_request_spec.rb +6 -0
- data/spec/models/create_rf_prediction201_response_spec.rb +48 -0
- data/spec/models/create_rf_prediction_request_spec.rb +84 -0
- data/spec/models/create_standalone_ad_request_spec.rb +16 -0
- data/spec/models/get_phone_number_port_in_order_requirements200_response_requirements_inner_spec.rb +82 -0
- data/spec/models/get_phone_number_port_in_order_requirements200_response_spec.rb +42 -0
- data/spec/models/get_phone_number_port_in_requirements200_response_fields_inner_spec.rb +70 -0
- data/spec/models/get_phone_number_port_in_requirements200_response_spec.rb +54 -0
- data/spec/models/reserve_rf_prediction201_response_spec.rb +42 -0
- data/spec/models/reserve_rf_prediction_request_spec.rb +42 -0
- data/spec/models/rf_prediction_spec.rb +108 -0
- data/zernio-sdk-0.0.533.gem +0 -0
- metadata +42 -2
- data/zernio-sdk-0.0.531.gem +0 -0
data/openapi.yaml
CHANGED
|
@@ -605,6 +605,23 @@ components:
|
|
|
605
605
|
effective_account_limit: 2000
|
|
606
606
|
current_account_count: 2000
|
|
607
607
|
schemas:
|
|
608
|
+
RfPrediction:
|
|
609
|
+
type: object
|
|
610
|
+
description: A Meta Reach & Frequency prediction. Money values in whole units of the ad account currency.
|
|
611
|
+
properties:
|
|
612
|
+
predictionId: { type: string }
|
|
613
|
+
status: { type: string, description: "ready | pending | failed:<meta code>" }
|
|
614
|
+
budget: { type: [number, "null"], description: "Quoted (or provided) lifetime budget for the window." }
|
|
615
|
+
reach: { type: [integer, "null"], description: "Predicted (or requested) unique reach." }
|
|
616
|
+
impressions: { type: [integer, "null"] }
|
|
617
|
+
minBudget: { type: [number, "null"], description: "Meta's allowed lower bound for this spec." }
|
|
618
|
+
maxBudget: { type: [number, "null"] }
|
|
619
|
+
minReach: { type: [integer, "null"] }
|
|
620
|
+
maxReach: { type: [integer, "null"] }
|
|
621
|
+
frequencyCap: { type: [integer, "null"] }
|
|
622
|
+
startTime: { type: [integer, "null"], description: "Unix seconds; the reserved window the R&F ad set will run on." }
|
|
623
|
+
stopTime: { type: [integer, "null"] }
|
|
624
|
+
expiresAt: { type: [string, "null"], description: "When the reservation's locked price expires (set after reserving)." }
|
|
608
625
|
CtwaAdRequestBody:
|
|
609
626
|
type: object
|
|
610
627
|
required: [accountId, adAccountId, name, budgetAmount, budgetType]
|
|
@@ -28184,10 +28201,18 @@ paths:
|
|
|
28184
28201
|
|
|
28185
28202
|
Run the portability check (POST /v1/phone-numbers/port-in/check) and
|
|
28186
28203
|
upload the two documents (POST /v1/phone-numbers/port-in/documents)
|
|
28187
|
-
first
|
|
28188
|
-
|
|
28189
|
-
|
|
28190
|
-
|
|
28204
|
+
first — uploaded documents must be attached to an order within 30
|
|
28205
|
+
minutes or the carrier deletes them, so upload right before this call.
|
|
28206
|
+
The carrier may split the numbers into several orders (by country,
|
|
28207
|
+
number type, losing carrier); `orders` carries per-order results, and a
|
|
28208
|
+
partial failure still returns 201 with the failed orders' `error` set
|
|
28209
|
+
(they stay as cancellable drafts).
|
|
28210
|
+
|
|
28211
|
+
Non-US/CA numbers additionally need the country-specific values from
|
|
28212
|
+
GET /v1/phone-numbers/port-in/requirements, passed via `requirements`,
|
|
28213
|
+
and must be submitted one country per request. When required
|
|
28214
|
+
information is still missing after submission, the order is kept as a
|
|
28215
|
+
resumable draft whose `error` / `declineReason` names the gaps.
|
|
28191
28216
|
security:
|
|
28192
28217
|
- bearerAuth: []
|
|
28193
28218
|
requestBody:
|
|
@@ -28211,24 +28236,42 @@ paths:
|
|
|
28211
28236
|
losing carrier matches every field against its records and rejects the
|
|
28212
28237
|
whole port on a mismatch — enter values exactly as they appear on the
|
|
28213
28238
|
carrier bill.
|
|
28214
|
-
required: [entityName, authPersonName, accountNumber, streetAddress, locality,
|
|
28239
|
+
required: [entityName, authPersonName, accountNumber, streetAddress, locality, postalCode, countryCode]
|
|
28215
28240
|
properties:
|
|
28216
28241
|
entityName: { type: string, description: "Account holder / business name, as on the carrier account." }
|
|
28217
28242
|
authPersonName: { type: string, description: "Full name (first + last) of the person authorizing the port — must match the LOA signature." }
|
|
28218
28243
|
billingPhoneNumber: { type: string, description: "Phone number on the losing carrier's bill. Defaults to the ported number itself on single-number orders. Validated as a real phone number when present." }
|
|
28219
28244
|
accountNumber: { type: string, description: "Account number with the losing carrier — required (carriers reject ports without it; on prepaid mobile plans it is often the phone number itself)." }
|
|
28220
|
-
pinPasscode: { type: string, description: "Transfer PIN. Required for mobile numbers (wireless carriers reject PIN-less ports). Forwarded to the carrier, never stored." }
|
|
28245
|
+
pinPasscode: { type: string, description: "Transfer PIN. Required for US/CA mobile numbers (wireless carriers reject PIN-less ports). Forwarded to the carrier, never stored. International porting codes (e.g. the UK PAC) go through `requirements` instead." }
|
|
28246
|
+
taxIdentifier: { type: string, maxLength: 50, description: "Company tax id on the carrier account (EU ports, e.g. Spanish CIF)." }
|
|
28247
|
+
businessIdentifier: { type: string, maxLength: 50, description: "Business registration id on the carrier account (EU ports)." }
|
|
28221
28248
|
streetAddress: { type: string }
|
|
28222
28249
|
extendedAddress: { type: string }
|
|
28223
28250
|
locality: { type: string }
|
|
28224
|
-
administrativeArea: { type: string, description: "2-letter
|
|
28225
|
-
postalCode: { type: string, description: "US ZIP
|
|
28226
|
-
countryCode: { type: string, minLength: 2, maxLength: 2, enum: [US, CA] }
|
|
28251
|
+
administrativeArea: { type: string, description: "Region. Required for US/CA as the 2-letter state/province code (full names are accepted and normalized); optional elsewhere." }
|
|
28252
|
+
postalCode: { type: string, description: "Postal code. Validated as a US ZIP / Canadian postal code for US/CA; free-form elsewhere." }
|
|
28253
|
+
countryCode: { type: string, minLength: 2, maxLength: 2, enum: [US, CA, GB, ES, DE, FR, NL, AU], description: "Service-address country (a supported port-in country)." }
|
|
28227
28254
|
loaDocumentId: { type: string, description: Document id from POST /v1/phone-numbers/port-in/documents (kind=loa). }
|
|
28228
28255
|
invoiceDocumentId: { type: string, description: Document id from POST /v1/phone-numbers/port-in/documents (kind=invoice). }
|
|
28229
|
-
focDatetimeRequested: { type: string, format: date-time, description: "Requested port date; the carrier confirms the actual FOC later.
|
|
28256
|
+
focDatetimeRequested: { type: string, format: date-time, description: "Requested port date; the carrier confirms the actual FOC later. US/CA default is one week out (shifted off weekends); international orders are scheduled into the carrier's next allowed porting window at or after this date." }
|
|
28230
28257
|
customerReference: { type: string, maxLength: 100 }
|
|
28231
28258
|
portType: { type: string, enum: [full, partial], default: full, description: "Whether the losing account ports all its numbers (full) or keeps some (partial)." }
|
|
28259
|
+
requirements:
|
|
28260
|
+
type: array
|
|
28261
|
+
maxItems: 30
|
|
28262
|
+
description: >-
|
|
28263
|
+
Country-specific requirement values for international ports
|
|
28264
|
+
(from GET /v1/phone-numbers/port-in/requirements). Not
|
|
28265
|
+
needed for US/CA. The LOA and invoice requirements are
|
|
28266
|
+
satisfied automatically by loaDocumentId/invoiceDocumentId,
|
|
28267
|
+
and address-type requirements by the endUser service
|
|
28268
|
+
address.
|
|
28269
|
+
items:
|
|
28270
|
+
type: object
|
|
28271
|
+
required: [requirementTypeId, fieldValue]
|
|
28272
|
+
properties:
|
|
28273
|
+
requirementTypeId: { type: string, description: "The requirement's id, from the requirements endpoint." }
|
|
28274
|
+
fieldValue: { type: string, maxLength: 1000, description: "Text value, ISO datetime, or a documentId from POST /v1/phone-numbers/port-in/documents, per the requirement's kind." }
|
|
28232
28275
|
responses:
|
|
28233
28276
|
'201':
|
|
28234
28277
|
description: Port submitted. Top-level fields mirror the first successfully submitted order; per-order truth (including failures) is in `orders`.
|
|
@@ -28251,9 +28294,10 @@ paths:
|
|
|
28251
28294
|
status: { type: string }
|
|
28252
28295
|
phoneNumbers: { type: array, items: { type: string } }
|
|
28253
28296
|
error: { type: string, description: Present when this split order failed to submit (it stays as a cancellable draft). }
|
|
28297
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
28254
28298
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
28255
28299
|
'409': { description: "A number is already provisioned, or already in an in-flight port" }
|
|
28256
|
-
'422': { description: "A number is not portable (reason included), or every split order failed to submit" }
|
|
28300
|
+
'422': { description: "A number is not portable (reason included), numbers span multiple non-US/CA countries, or every split order failed to submit" }
|
|
28257
28301
|
get:
|
|
28258
28302
|
operationId: listPhoneNumberPortIns
|
|
28259
28303
|
tags: [Phone Numbers]
|
|
@@ -28331,7 +28375,9 @@ paths:
|
|
|
28331
28375
|
phoneNumber: { type: string }
|
|
28332
28376
|
portable: { type: boolean }
|
|
28333
28377
|
fastPortable: { type: boolean, description: Qualifies for the carrier's accelerated FastPort lane. }
|
|
28334
|
-
lineType: { type: [string, "null"], description: "Line type when known (mobile, landline, voip…). A mobile number requires the transfer PIN at submit." }
|
|
28378
|
+
lineType: { type: [string, "null"], description: "Line type when known (mobile, landline, voip…). A US/CA mobile number requires the transfer PIN at submit." }
|
|
28379
|
+
countryCode: { type: [string, "null"], description: "ISO country of the number — pass it to GET /v1/phone-numbers/port-in/requirements for international numbers." }
|
|
28380
|
+
phoneNumberType: { type: [string, "null"], description: "Carrier number-type classification (local, mobile, national, toll_free…) — the numberType for the requirements endpoint." }
|
|
28335
28381
|
notPortableReason: { type: [string, "null"], description: Carrier reason when not portable; null when portable. }
|
|
28336
28382
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
28337
28383
|
|
|
@@ -28341,9 +28387,13 @@ paths:
|
|
|
28341
28387
|
tags: [Phone Numbers]
|
|
28342
28388
|
summary: Upload a porting document
|
|
28343
28389
|
description: |
|
|
28344
|
-
Upload ONE porting document
|
|
28345
|
-
|
|
28346
|
-
`
|
|
28390
|
+
Upload ONE porting document and get back its `documentId`. For the
|
|
28391
|
+
signed LOA / carrier invoice the id goes to `loaDocumentId` /
|
|
28392
|
+
`invoiceDocumentId`; for a country-specific document requirement
|
|
28393
|
+
(international ports) it becomes that requirement's `fieldValue`.
|
|
28394
|
+
Requirement documents are normalized to PDF automatically (regulators
|
|
28395
|
+
reject raw images). PDF, JPEG, or PNG, 10MB max. Uploads must be
|
|
28396
|
+
attached to an order within 30 minutes or the carrier deletes them.
|
|
28347
28397
|
security:
|
|
28348
28398
|
- bearerAuth: []
|
|
28349
28399
|
requestBody:
|
|
@@ -28355,7 +28405,7 @@ paths:
|
|
|
28355
28405
|
required: [file]
|
|
28356
28406
|
properties:
|
|
28357
28407
|
file: { type: string, format: binary, description: "The document (PDF/JPEG/PNG, 10MB max)." }
|
|
28358
|
-
kind: { type: string,
|
|
28408
|
+
kind: { type: string, description: "'loa', 'invoice', or any short slug for requirement documents. Informational; used for the stored filename." }
|
|
28359
28409
|
responses:
|
|
28360
28410
|
'200':
|
|
28361
28411
|
description: Document uploaded.
|
|
@@ -28368,6 +28418,90 @@ paths:
|
|
|
28368
28418
|
'400': { description: "Missing file, file too large, or unsupported type" }
|
|
28369
28419
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
28370
28420
|
|
|
28421
|
+
/v1/phone-numbers/port-in/requirements:
|
|
28422
|
+
get:
|
|
28423
|
+
operationId: getPhoneNumberPortInRequirements
|
|
28424
|
+
tags: [Phone Numbers]
|
|
28425
|
+
summary: Country porting requirements
|
|
28426
|
+
description: |
|
|
28427
|
+
The country-specific information a port-in needs BEYOND the LOA,
|
|
28428
|
+
invoice, and account/address details — e.g. an ID copy, proof of
|
|
28429
|
+
address, a tax id, or a porting code. Call it after the portability
|
|
28430
|
+
check (which returns each number's `countryCode` and
|
|
28431
|
+
`phoneNumberType`), render the fields, and pass the collected values as
|
|
28432
|
+
the create request's `requirements`. US/CA return an empty list.
|
|
28433
|
+
security:
|
|
28434
|
+
- bearerAuth: []
|
|
28435
|
+
parameters:
|
|
28436
|
+
- { name: country, in: query, required: true, schema: { type: string, minLength: 2, maxLength: 2 }, description: "ISO country of the numbers being ported (a supported port-in country)." }
|
|
28437
|
+
- { name: numberType, in: query, required: false, schema: { type: string, enum: [local, mobile, national, toll_free], default: local }, description: "The portability check's phoneNumberType — requirements differ by type." }
|
|
28438
|
+
responses:
|
|
28439
|
+
'200':
|
|
28440
|
+
description: Requirement fields for the country/type combination.
|
|
28441
|
+
content:
|
|
28442
|
+
application/json:
|
|
28443
|
+
schema:
|
|
28444
|
+
type: object
|
|
28445
|
+
properties:
|
|
28446
|
+
country: { type: string }
|
|
28447
|
+
numberType: { type: string }
|
|
28448
|
+
supported: { type: boolean, description: "false when the combination includes a step that can't be completed through the API (e.g. an in-person identity verification) — porting it needs support." }
|
|
28449
|
+
fields:
|
|
28450
|
+
type: array
|
|
28451
|
+
items:
|
|
28452
|
+
type: object
|
|
28453
|
+
properties:
|
|
28454
|
+
requirementId: { type: string, description: "Pass back as requirements[].requirementTypeId." }
|
|
28455
|
+
label: { type: string }
|
|
28456
|
+
kind: { type: string, enum: [text, date, address, file, action], description: "text/date take a string value; file takes a documentId from the documents endpoint; address is satisfied automatically from the end-user service address." }
|
|
28457
|
+
description: { type: string }
|
|
28458
|
+
example: { type: string }
|
|
28459
|
+
acceptableValues: { type: array, items: { type: string }, description: "When present, the value must be one of these." }
|
|
28460
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
28461
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
28462
|
+
'422': { description: "Country not supported for port-in" }
|
|
28463
|
+
|
|
28464
|
+
/v1/phone-numbers/port-in/{id}/requirements:
|
|
28465
|
+
get:
|
|
28466
|
+
operationId: getPhoneNumberPortInOrderRequirements
|
|
28467
|
+
tags: [Phone Numbers]
|
|
28468
|
+
summary: A port-in order's pending requirements
|
|
28469
|
+
description: |
|
|
28470
|
+
The live requirements on an EXISTING porting order: which are filled,
|
|
28471
|
+
which are still pending, and which bounced on review
|
|
28472
|
+
(`requirement-info-exception`). Use it to fix and resubmit a rejected
|
|
28473
|
+
international port. Same field shape as the country-level requirements
|
|
28474
|
+
endpoint, plus per-requirement status.
|
|
28475
|
+
security:
|
|
28476
|
+
- bearerAuth: []
|
|
28477
|
+
parameters:
|
|
28478
|
+
- { name: id, in: path, required: true, schema: { type: string }, description: Porting order ID (from the port-in list). }
|
|
28479
|
+
responses:
|
|
28480
|
+
'200':
|
|
28481
|
+
description: The order's requirements with statuses.
|
|
28482
|
+
content:
|
|
28483
|
+
application/json:
|
|
28484
|
+
schema:
|
|
28485
|
+
type: object
|
|
28486
|
+
properties:
|
|
28487
|
+
country: { type: string }
|
|
28488
|
+
requirements:
|
|
28489
|
+
type: array
|
|
28490
|
+
items:
|
|
28491
|
+
type: object
|
|
28492
|
+
properties:
|
|
28493
|
+
requirementId: { type: string }
|
|
28494
|
+
label: { type: string }
|
|
28495
|
+
kind: { type: string, enum: [text, date, address, file, action] }
|
|
28496
|
+
description: { type: string }
|
|
28497
|
+
example: { type: string }
|
|
28498
|
+
acceptableValues: { type: array, items: { type: string } }
|
|
28499
|
+
status: { type: string, description: "requirement-info-pending | requirement-info-under-review | requirement-info-exception | approved" }
|
|
28500
|
+
filled: { type: boolean }
|
|
28501
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
28502
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
28503
|
+
'404': { description: Porting order not found }
|
|
28504
|
+
|
|
28371
28505
|
/v1/phone-numbers/port-in/{id}:
|
|
28372
28506
|
delete:
|
|
28373
28507
|
operationId: cancelPhoneNumberPortIn
|
|
@@ -34182,6 +34316,137 @@ paths:
|
|
|
34182
34316
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
34183
34317
|
'501': { description: Only supported on Meta (facebook/instagram) }
|
|
34184
34318
|
|
|
34319
|
+
/v1/ads/rf-predictions:
|
|
34320
|
+
post:
|
|
34321
|
+
operationId: createRfPrediction
|
|
34322
|
+
tags: [Ads]
|
|
34323
|
+
summary: Create a Reach & Frequency prediction (Meta)
|
|
34324
|
+
description: |-
|
|
34325
|
+
Creates an R&F prediction — a QUOTE, nothing is bought and no ad entities are created.
|
|
34326
|
+
Provide a date range plus exactly one of `budgetAmount` (Meta predicts reach) or `reach`
|
|
34327
|
+
(Meta predicts the budget). The response carries the estimate and its allowed bounds
|
|
34328
|
+
(min/max budget and reach). Predictions expire on their own; to buy, reserve one via
|
|
34329
|
+
POST /v1/ads/rf-predictions/{predictionId}/reserve and pass the RESERVED id to
|
|
34330
|
+
POST /v1/ads/create with `buyingType: "RESERVED"`.
|
|
34331
|
+
|
|
34332
|
+
Reservation campaigns reject automatic placements, so omitted `placements` default to
|
|
34333
|
+
Facebook feed (+ Instagram stream when a linked IG professional account resolves);
|
|
34334
|
+
Instagram placements require that IG account. Meta only.
|
|
34335
|
+
security:
|
|
34336
|
+
- bearerAuth: []
|
|
34337
|
+
requestBody:
|
|
34338
|
+
required: true
|
|
34339
|
+
content:
|
|
34340
|
+
application/json:
|
|
34341
|
+
schema:
|
|
34342
|
+
type: object
|
|
34343
|
+
required: [accountId, adAccountId, startDate, endDate]
|
|
34344
|
+
properties:
|
|
34345
|
+
accountId: { type: string, description: "Zernio SocialAccount id (posting or ads variant)." }
|
|
34346
|
+
adAccountId: { type: string, description: "Meta ad account id (act_<n>)." }
|
|
34347
|
+
budgetAmount: { type: number, description: "Whole currency units. Exactly one of budgetAmount / reach." }
|
|
34348
|
+
reach: { type: integer, description: "Target unique reach. Exactly one of budgetAmount / reach." }
|
|
34349
|
+
startDate: { type: string, format: date-time, description: "Campaign window start (must be in the future)." }
|
|
34350
|
+
endDate: { type: string, format: date-time }
|
|
34351
|
+
frequencyCap: { type: integer, minimum: 1, maximum: 90, description: "Max impressions per person over the window." }
|
|
34352
|
+
targeting: { type: object, description: "Canonical camelCase TargetingSpec (same shape as /v1/ads/create's `targeting`). Defaults to countries: [US]." }
|
|
34353
|
+
placements: { type: object, description: "Meta placements object (same shape as /v1/ads/create's `placements`)." }
|
|
34354
|
+
responses:
|
|
34355
|
+
'201':
|
|
34356
|
+
description: Prediction created (usually ready within seconds)
|
|
34357
|
+
content:
|
|
34358
|
+
application/json:
|
|
34359
|
+
schema:
|
|
34360
|
+
type: object
|
|
34361
|
+
properties:
|
|
34362
|
+
adAccountId: { type: string }
|
|
34363
|
+
currency: { type: string }
|
|
34364
|
+
prediction: { $ref: '#/components/schemas/RfPrediction' }
|
|
34365
|
+
'400': { description: "Invalid input, or Meta rejected the prediction — message carries Meta's error" }
|
|
34366
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
34367
|
+
'422': { description: "No Facebook Page resolved for the account" }
|
|
34368
|
+
'501': { description: Only supported on Meta (facebook/instagram) }
|
|
34369
|
+
|
|
34370
|
+
/v1/ads/rf-predictions/{predictionId}:
|
|
34371
|
+
get:
|
|
34372
|
+
operationId: getRfPrediction
|
|
34373
|
+
tags: [Ads]
|
|
34374
|
+
summary: Read a Reach & Frequency prediction (Meta)
|
|
34375
|
+
security:
|
|
34376
|
+
- bearerAuth: []
|
|
34377
|
+
parameters:
|
|
34378
|
+
- { name: predictionId, in: path, required: true, schema: { type: string } }
|
|
34379
|
+
- { name: accountId, in: query, required: true, schema: { type: string } }
|
|
34380
|
+
- { name: adAccountId, in: query, required: true, schema: { type: string } }
|
|
34381
|
+
responses:
|
|
34382
|
+
'200':
|
|
34383
|
+
description: Prediction status and estimates
|
|
34384
|
+
content:
|
|
34385
|
+
application/json:
|
|
34386
|
+
schema:
|
|
34387
|
+
type: object
|
|
34388
|
+
properties:
|
|
34389
|
+
adAccountId: { type: string }
|
|
34390
|
+
currency: { type: string }
|
|
34391
|
+
prediction: { $ref: '#/components/schemas/RfPrediction' }
|
|
34392
|
+
'400': { description: Invalid input }
|
|
34393
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
34394
|
+
'501': { description: Only supported on Meta (facebook/instagram) }
|
|
34395
|
+
delete:
|
|
34396
|
+
operationId: cancelRfReservation
|
|
34397
|
+
tags: [Ads]
|
|
34398
|
+
summary: Cancel a Reach & Frequency reservation (Meta)
|
|
34399
|
+
description: Releases a RESERVATION's locked price and inventory. Unreserved predictions expire on their own.
|
|
34400
|
+
security:
|
|
34401
|
+
- bearerAuth: []
|
|
34402
|
+
parameters:
|
|
34403
|
+
- { name: predictionId, in: path, required: true, schema: { type: string } }
|
|
34404
|
+
- { name: accountId, in: query, required: true, schema: { type: string } }
|
|
34405
|
+
- { name: adAccountId, in: query, required: true, schema: { type: string } }
|
|
34406
|
+
responses:
|
|
34407
|
+
'200':
|
|
34408
|
+
description: Reservation cancelled
|
|
34409
|
+
'400': { description: "Invalid input, or Meta rejected the cancel" }
|
|
34410
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
34411
|
+
'501': { description: Only supported on Meta (facebook/instagram) }
|
|
34412
|
+
|
|
34413
|
+
/v1/ads/rf-predictions/{predictionId}/reserve:
|
|
34414
|
+
post:
|
|
34415
|
+
operationId: reserveRfPrediction
|
|
34416
|
+
tags: [Ads]
|
|
34417
|
+
summary: Reserve a Reach & Frequency prediction (Meta)
|
|
34418
|
+
description: |-
|
|
34419
|
+
Locks the quoted price + inventory until the returned `expiresAt` and mints a NEW
|
|
34420
|
+
prediction id — pass that RESERVED id (not the original) as `rfPredictionId` on
|
|
34421
|
+
POST /v1/ads/create. Release an unused reservation via DELETE. Meta only.
|
|
34422
|
+
security:
|
|
34423
|
+
- bearerAuth: []
|
|
34424
|
+
parameters:
|
|
34425
|
+
- { name: predictionId, in: path, required: true, schema: { type: string } }
|
|
34426
|
+
requestBody:
|
|
34427
|
+
required: true
|
|
34428
|
+
content:
|
|
34429
|
+
application/json:
|
|
34430
|
+
schema:
|
|
34431
|
+
type: object
|
|
34432
|
+
required: [accountId, adAccountId]
|
|
34433
|
+
properties:
|
|
34434
|
+
accountId: { type: string }
|
|
34435
|
+
adAccountId: { type: string }
|
|
34436
|
+
responses:
|
|
34437
|
+
'201':
|
|
34438
|
+
description: Reserved; `prediction.predictionId` is the new RESERVED id
|
|
34439
|
+
content:
|
|
34440
|
+
application/json:
|
|
34441
|
+
schema:
|
|
34442
|
+
type: object
|
|
34443
|
+
properties:
|
|
34444
|
+
adAccountId: { type: string }
|
|
34445
|
+
prediction: { $ref: '#/components/schemas/RfPrediction' }
|
|
34446
|
+
'400': { description: "Invalid input, or Meta rejected the reserve" }
|
|
34447
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
34448
|
+
'501': { description: Only supported on Meta (facebook/instagram) }
|
|
34449
|
+
|
|
34185
34450
|
/v1/ads/studies:
|
|
34186
34451
|
get:
|
|
34187
34452
|
operationId: listAdStudies
|
|
@@ -34734,6 +34999,8 @@ paths:
|
|
|
34734
34999
|
- For `lead_generation` or `conversions` on LinkedIn, or to promote an existing post, use POST /v1/ads/boost.
|
|
34735
35000
|
optimizationGoal: { type: string, description: "Meta only. Explicit ad-set `optimization_goal` (e.g. `LANDING_PAGE_VIEWS`, `LINK_CLICKS`, `REACH`, `IMPRESSIONS`, `OFFSITE_CONVERSIONS`, `THRUPLAY`, `LEAD_GENERATION`). Overrides the default derived from `goal` (e.g. `traffic` defaults to `LINK_CLICKS`). Forwarded verbatim to Meta, which validates compatibility with the campaign objective and rejects incompatible combinations." }
|
|
34736
35001
|
billingEvent: { type: string, description: "Meta only. Explicit ad-set `billing_event`. Defaults to `IMPRESSIONS`. Forwarded verbatim to Meta, which validates compatibility with the optimization goal." }
|
|
35002
|
+
buyingType: { type: string, enum: [AUCTION, RESERVED], description: "Meta only. RESERVED = Reach & Frequency: requires `rfPredictionId` (a RESERVED prediction from /v1/ads/rf-predictions + /reserve). Budget, schedule and pricing come from the reservation, so budgetAmount/budgetType are not required and bid fields are ignored. Only the plain single-ad shape (no creatives[], adSetId, existingCampaignId or dynamicCreative)." }
|
|
35003
|
+
rfPredictionId: { type: string, description: "Meta only. The RESERVED prediction id the R&F ad set runs on (reserving mints a new id — pass that one). Requires buyingType RESERVED." }
|
|
34737
35004
|
budgetAmount: { type: number, description: "Required on legacy + multi-creative shapes. Inherited on attach." }
|
|
34738
35005
|
budgetType: { type: string, enum: [daily, lifetime], description: "Required on legacy + multi-creative shapes. Inherited on attach." }
|
|
34739
35006
|
status:
|
data/spec/api/ads_api_spec.rb
CHANGED
|
@@ -83,6 +83,20 @@ describe 'AdsApi' do
|
|
|
83
83
|
end
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
# unit tests for cancel_rf_reservation
|
|
87
|
+
# Cancel a Reach & Frequency reservation (Meta)
|
|
88
|
+
# Releases a RESERVATION's locked price and inventory. Unreserved predictions expire on their own.
|
|
89
|
+
# @param prediction_id
|
|
90
|
+
# @param account_id
|
|
91
|
+
# @param ad_account_id
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [nil]
|
|
94
|
+
describe 'cancel_rf_reservation test' 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
|
+
|
|
86
100
|
# unit tests for create_ad_insights_report
|
|
87
101
|
# Submit an async insights report run (Meta)
|
|
88
102
|
# Submits an asynchronous Meta insights report. Same query surface as GET /v1/ads/insights, but in the JSON body; Meta processes the report server-side, which is the right choice for long ranges or large accounts where the sync query is slow or rate-limited. Returns a `reportRunId` to poll via GET /v1/ads/insights/reports/{reportRunId}. Meta only.
|
|
@@ -156,6 +170,18 @@ describe 'AdsApi' do
|
|
|
156
170
|
end
|
|
157
171
|
end
|
|
158
172
|
|
|
173
|
+
# unit tests for create_rf_prediction
|
|
174
|
+
# Create a Reach & Frequency prediction (Meta)
|
|
175
|
+
# Creates an R&F prediction — a QUOTE, nothing is bought and no ad entities are created. Provide a date range plus exactly one of `budgetAmount` (Meta predicts reach) or `reach` (Meta predicts the budget). The response carries the estimate and its allowed bounds (min/max budget and reach). Predictions expire on their own; to buy, reserve one via POST /v1/ads/rf-predictions/{predictionId}/reserve and pass the RESERVED id to POST /v1/ads/create with `buyingType: \"RESERVED\"`. Reservation campaigns reject automatic placements, so omitted `placements` default to Facebook feed (+ Instagram stream when a linked IG professional account resolves); Instagram placements require that IG account. Meta only.
|
|
176
|
+
# @param create_rf_prediction_request
|
|
177
|
+
# @param [Hash] opts the optional parameters
|
|
178
|
+
# @return [CreateRfPrediction201Response]
|
|
179
|
+
describe 'create_rf_prediction test' do
|
|
180
|
+
it 'should work' do
|
|
181
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
159
185
|
# unit tests for create_standalone_ad
|
|
160
186
|
# Create standalone ad
|
|
161
187
|
# Creates a paid ad with custom creative across Meta, Google Ads, Pinterest, TikTok, X/Twitter, and LinkedIn. Supports three mutually-exclusive request shapes selected by the body, a legacy single-creative shape (all platforms, default), a Meta-only multi-creative shape via the creatives array (one ad set with N ads sharing budget and targeting), and a Meta-only attach shape via adSetId (adds one new ad to an existing ad set). Per-platform required fields, budget minimums, and video-ad rules are documented on each property below. LinkedIn creates a Single Image or Single Video Ad backed by a Direct Sponsored Content \"dark post\" authored by a Company Page (see `organizationId`); supported goals are engagement, traffic, awareness, and video_views (video ads use the `video` field; video_views requires a video), and traffic ads require `linkUrl`. **Idempotency:** this endpoint is not idempotent at the platform level (a blind retry creates a second campaign/ad set/ad). Send an `Idempotency-Key` header to make retries safe: the first request with a given key creates the ad and we store the response; a retry with the same key replays that exact response (with `Idempotent-Replayed: true`) instead of creating duplicates. Reusing a key with a different body returns 422; a key whose first request is still in flight returns 409 (retry after a short backoff). Keys are scoped to your credential and expire after 24h.
|
|
@@ -467,6 +493,19 @@ describe 'AdsApi' do
|
|
|
467
493
|
end
|
|
468
494
|
end
|
|
469
495
|
|
|
496
|
+
# unit tests for get_rf_prediction
|
|
497
|
+
# Read a Reach & Frequency prediction (Meta)
|
|
498
|
+
# @param prediction_id
|
|
499
|
+
# @param account_id
|
|
500
|
+
# @param ad_account_id
|
|
501
|
+
# @param [Hash] opts the optional parameters
|
|
502
|
+
# @return [CreateRfPrediction201Response]
|
|
503
|
+
describe 'get_rf_prediction test' do
|
|
504
|
+
it 'should work' do
|
|
505
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
506
|
+
end
|
|
507
|
+
end
|
|
508
|
+
|
|
470
509
|
# unit tests for list_ad_accounts
|
|
471
510
|
# List ad accounts
|
|
472
511
|
# Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs). For TikTok agencies: enumerates every advertiser under every Business Center the token can read (paginated server-side), then chunks the lookup against TikTok's `/advertiser/info/` endpoint (which has a per-call cap of ≤100 IDs). Solo advertisers without a BC fall back to the OAuth-time `advertiser_ids` list. Cached for 1h on the SocialAccount; lazy-refreshed on first call after expiry.
|
|
@@ -687,6 +726,19 @@ describe 'AdsApi' do
|
|
|
687
726
|
end
|
|
688
727
|
end
|
|
689
728
|
|
|
729
|
+
# unit tests for reserve_rf_prediction
|
|
730
|
+
# Reserve a Reach & Frequency prediction (Meta)
|
|
731
|
+
# Locks the quoted price + inventory until the returned `expiresAt` and mints a NEW prediction id — pass that RESERVED id (not the original) as `rfPredictionId` on POST /v1/ads/create. Release an unused reservation via DELETE. Meta only.
|
|
732
|
+
# @param prediction_id
|
|
733
|
+
# @param reserve_rf_prediction_request
|
|
734
|
+
# @param [Hash] opts the optional parameters
|
|
735
|
+
# @return [ReserveRfPrediction201Response]
|
|
736
|
+
describe 'reserve_rf_prediction test' do
|
|
737
|
+
it 'should work' do
|
|
738
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
739
|
+
end
|
|
740
|
+
end
|
|
741
|
+
|
|
690
742
|
# unit tests for search_ad_interests
|
|
691
743
|
# Search targeting interests
|
|
692
744
|
# Deprecated alias for `GET /v1/ads/targeting/search?dimension=interest`. Kept for backward compatibility, it returns the legacy `{ interests: [...] }` shape rather than the normalized `{ results: [...] }`. New integrations should use `GET /v1/ads/targeting/search` with `dimension=interest`.
|
|
@@ -83,7 +83,7 @@ describe 'PhoneNumbersApi' do
|
|
|
83
83
|
|
|
84
84
|
# unit tests for create_phone_number_port_in
|
|
85
85
|
# Port numbers in
|
|
86
|
-
# Submit a port-in for one or more existing numbers from another carrier. Creates the carrier order(s), attaches the end-user (current account) info plus the LOA and invoice documents, and submits to the losing carrier. The transfer PIN is forwarded to the carrier and never stored. Ported numbers arrive voice-ready (and SMS-ready where the order supports messaging). Run the portability check (POST /v1/phone-numbers/port-in/check) and upload the two documents (POST /v1/phone-numbers/port-in/documents) first. The carrier may split the numbers into several orders (by country, number type, losing carrier); `orders` carries per-order results, and a partial failure still returns 201 with the failed orders' `error` set (they stay as cancellable drafts).
|
|
86
|
+
# Submit a port-in for one or more existing numbers from another carrier. Creates the carrier order(s), attaches the end-user (current account) info plus the LOA and invoice documents, and submits to the losing carrier. The transfer PIN is forwarded to the carrier and never stored. Ported numbers arrive voice-ready (and SMS-ready where the order supports messaging). Run the portability check (POST /v1/phone-numbers/port-in/check) and upload the two documents (POST /v1/phone-numbers/port-in/documents) first — uploaded documents must be attached to an order within 30 minutes or the carrier deletes them, so upload right before this call. The carrier may split the numbers into several orders (by country, number type, losing carrier); `orders` carries per-order results, and a partial failure still returns 201 with the failed orders' `error` set (they stay as cancellable drafts). Non-US/CA numbers additionally need the country-specific values from GET /v1/phone-numbers/port-in/requirements, passed via `requirements`, and must be submitted one country per request. When required information is still missing after submission, the order is kept as a resumable draft whose `error` / `declineReason` names the gaps.
|
|
87
87
|
# @param create_phone_number_port_in_request
|
|
88
88
|
# @param [Hash] opts the optional parameters
|
|
89
89
|
# @return [CreatePhoneNumberPortIn201Response]
|
|
@@ -118,6 +118,31 @@ describe 'PhoneNumbersApi' do
|
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
+
# unit tests for get_phone_number_port_in_order_requirements
|
|
122
|
+
# A port-in order's pending requirements
|
|
123
|
+
# The live requirements on an EXISTING porting order: which are filled, which are still pending, and which bounced on review (`requirement-info-exception`). Use it to fix and resubmit a rejected international port. Same field shape as the country-level requirements endpoint, plus per-requirement status.
|
|
124
|
+
# @param id Porting order ID (from the port-in list).
|
|
125
|
+
# @param [Hash] opts the optional parameters
|
|
126
|
+
# @return [GetPhoneNumberPortInOrderRequirements200Response]
|
|
127
|
+
describe 'get_phone_number_port_in_order_requirements test' do
|
|
128
|
+
it 'should work' do
|
|
129
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# unit tests for get_phone_number_port_in_requirements
|
|
134
|
+
# Country porting requirements
|
|
135
|
+
# The country-specific information a port-in needs BEYOND the LOA, invoice, and account/address details — e.g. an ID copy, proof of address, a tax id, or a porting code. Call it after the portability check (which returns each number's `countryCode` and `phoneNumberType`), render the fields, and pass the collected values as the create request's `requirements`. US/CA return an empty list.
|
|
136
|
+
# @param country ISO country of the numbers being ported (a supported port-in country).
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @option opts [String] :number_type The portability check's phoneNumberType — requirements differ by type.
|
|
139
|
+
# @return [GetPhoneNumberPortInRequirements200Response]
|
|
140
|
+
describe 'get_phone_number_port_in_requirements test' do
|
|
141
|
+
it 'should work' do
|
|
142
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
121
146
|
# unit tests for get_phone_number_remediation
|
|
122
147
|
# Get declined requirements
|
|
123
148
|
# For a number in `regulatory_declined`, returns ONLY the requirements the reviewer flagged declined, as a form spec (same shape as the KYC form GET). The customer fixes just those — Telnyx supports correcting a declined requirement group and re-submitting it (no new number/group). Falls back to the full spec if the provider exposes no per-requirement flags.
|
|
@@ -259,10 +284,10 @@ describe 'PhoneNumbersApi' do
|
|
|
259
284
|
|
|
260
285
|
# unit tests for upload_phone_number_port_in_document
|
|
261
286
|
# Upload a porting document
|
|
262
|
-
# Upload ONE porting document
|
|
287
|
+
# Upload ONE porting document and get back its `documentId`. For the signed LOA / carrier invoice the id goes to `loaDocumentId` / `invoiceDocumentId`; for a country-specific document requirement (international ports) it becomes that requirement's `fieldValue`. Requirement documents are normalized to PDF automatically (regulators reject raw images). PDF, JPEG, or PNG, 10MB max. Uploads must be attached to an order within 30 minutes or the carrier deletes them.
|
|
263
288
|
# @param file The document (PDF/JPEG/PNG, 10MB max).
|
|
264
289
|
# @param [Hash] opts the optional parameters
|
|
265
|
-
# @option opts [String] :kind Informational; used for the stored filename.
|
|
290
|
+
# @option opts [String] :kind 'loa', 'invoice', or any short slug for requirement documents. Informational; used for the stored filename.
|
|
266
291
|
# @return [UploadPhoneNumberPortInDocument200Response]
|
|
267
292
|
describe 'upload_phone_number_port_in_document test' do
|
|
268
293
|
it 'should work' do
|
|
@@ -51,6 +51,18 @@ describe Zernio::CheckPhoneNumberPortability200ResponseResultsInner do
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
describe 'test attribute "country_code"' 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
|
+
describe 'test attribute "phone_number_type"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
54
66
|
describe 'test attribute "not_portable_reason"' do
|
|
55
67
|
it 'should work' do
|
|
56
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -57,6 +57,18 @@ describe Zernio::CreatePhoneNumberPortInRequestEndUser do
|
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
describe 'test attribute "tax_identifier"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "business_identifier"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
60
72
|
describe 'test attribute "street_address"' do
|
|
61
73
|
it 'should work' do
|
|
62
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -90,7 +102,7 @@ describe Zernio::CreatePhoneNumberPortInRequestEndUser do
|
|
|
90
102
|
describe 'test attribute "country_code"' do
|
|
91
103
|
it 'should work' do
|
|
92
104
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["US", "CA"])
|
|
105
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["US", "CA", "GB", "ES", "DE", "FR", "NL", "AU"])
|
|
94
106
|
# validator.allowable_values.each do |value|
|
|
95
107
|
# expect { instance.country_code = value }.not_to raise_error
|
|
96
108
|
# 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::CreatePhoneNumberPortInRequestRequirementsInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::CreatePhoneNumberPortInRequestRequirementsInner do
|
|
21
|
+
#let(:instance) { Zernio::CreatePhoneNumberPortInRequestRequirementsInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreatePhoneNumberPortInRequestRequirementsInner' do
|
|
24
|
+
it 'should create an instance of CreatePhoneNumberPortInRequestRequirementsInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::CreatePhoneNumberPortInRequestRequirementsInner)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "requirement_type_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 "field_value"' 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
|
|
@@ -73,4 +73,10 @@ describe Zernio::CreatePhoneNumberPortInRequest do
|
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
+
describe 'test attribute "requirements"' 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
|
+
|
|
76
82
|
end
|