late-sdk 0.0.588 → 0.0.589
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 +8 -0
- data/docs/PreflightSmsRegistration200Response.md +24 -0
- data/docs/PreflightSmsRegistration200ResponseAdvisoriesInner.md +24 -0
- data/docs/PreflightSmsRegistration200ResponseComposed.md +20 -0
- data/docs/PreflightSmsRegistrationRequest.md +26 -0
- data/docs/RespondToSmsRegistrationReview200Response.md +18 -0
- data/docs/RespondToSmsRegistrationReviewRequest.md +20 -0
- data/docs/SMSApi.md +142 -0
- data/docs/StartSmsRegistrationRequest.md +2 -0
- data/lib/zernio-sdk/api/sms_api.rb +142 -0
- data/lib/zernio-sdk/models/preflight_sms_registration200_response.rb +211 -0
- data/lib/zernio-sdk/models/preflight_sms_registration200_response_advisories_inner.rb +212 -0
- data/lib/zernio-sdk/models/preflight_sms_registration200_response_composed.rb +157 -0
- data/lib/zernio-sdk/models/preflight_sms_registration_request.rb +290 -0
- data/lib/zernio-sdk/models/respond_to_sms_registration_review200_response.rb +181 -0
- data/lib/zernio-sdk/models/respond_to_sms_registration_review_request.rb +198 -0
- data/lib/zernio-sdk/models/start_sms_registration_request.rb +39 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +6 -0
- data/openapi.yaml +103 -0
- data/spec/api/sms_api_spec.rb +25 -0
- data/spec/models/preflight_sms_registration200_response_advisories_inner_spec.rb +58 -0
- data/spec/models/preflight_sms_registration200_response_composed_spec.rb +42 -0
- data/spec/models/preflight_sms_registration200_response_spec.rb +58 -0
- data/spec/models/preflight_sms_registration_request_spec.rb +64 -0
- data/spec/models/respond_to_sms_registration_review200_response_spec.rb +40 -0
- data/spec/models/respond_to_sms_registration_review_request_spec.rb +42 -0
- data/spec/models/start_sms_registration_request_spec.rb +6 -0
- data/zernio-sdk-0.0.589.gem +0 -0
- metadata +26 -2
- data/zernio-sdk-0.0.588.gem +0 -0
|
@@ -24,6 +24,9 @@ module Zernio
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :campaign
|
|
26
26
|
|
|
27
|
+
# DBA / trade name used to brand message content (samples and auto-replies) when it differs from the legal name, e.g. a sole proprietor texting under a business name. The legal `brand.displayName` is still what the carrier vets.
|
|
28
|
+
attr_accessor :messaging_brand_name
|
|
29
|
+
|
|
27
30
|
# Raw dashboard-wizard answers, stored only to prefill edit-and-resubmit. API integrators can omit.
|
|
28
31
|
attr_accessor :wizard_values
|
|
29
32
|
|
|
@@ -61,6 +64,7 @@ module Zernio
|
|
|
61
64
|
:'phone_numbers' => :'phoneNumbers',
|
|
62
65
|
:'brand' => :'brand',
|
|
63
66
|
:'campaign' => :'campaign',
|
|
67
|
+
:'messaging_brand_name' => :'messagingBrandName',
|
|
64
68
|
:'wizard_values' => :'wizardValues',
|
|
65
69
|
:'resubmit_request_id' => :'resubmitRequestId',
|
|
66
70
|
:'toll_free' => :'tollFree'
|
|
@@ -84,6 +88,7 @@ module Zernio
|
|
|
84
88
|
:'phone_numbers' => :'Array<String>',
|
|
85
89
|
:'brand' => :'StartSmsRegistrationRequestBrand',
|
|
86
90
|
:'campaign' => :'StartSmsRegistrationRequestCampaign',
|
|
91
|
+
:'messaging_brand_name' => :'String',
|
|
87
92
|
:'wizard_values' => :'Hash<String, String>',
|
|
88
93
|
:'resubmit_request_id' => :'String',
|
|
89
94
|
:'toll_free' => :'StartSmsRegistrationRequestTollFree'
|
|
@@ -134,6 +139,10 @@ module Zernio
|
|
|
134
139
|
self.campaign = attributes[:'campaign']
|
|
135
140
|
end
|
|
136
141
|
|
|
142
|
+
if attributes.key?(:'messaging_brand_name')
|
|
143
|
+
self.messaging_brand_name = attributes[:'messaging_brand_name']
|
|
144
|
+
end
|
|
145
|
+
|
|
137
146
|
if attributes.key?(:'wizard_values')
|
|
138
147
|
if (value = attributes[:'wizard_values']).is_a?(Hash)
|
|
139
148
|
self.wizard_values = value
|
|
@@ -166,6 +175,14 @@ module Zernio
|
|
|
166
175
|
invalid_properties.push('invalid value for "phone_numbers", number of items must be greater than or equal to 1.')
|
|
167
176
|
end
|
|
168
177
|
|
|
178
|
+
if !@messaging_brand_name.nil? && @messaging_brand_name.to_s.length > 60
|
|
179
|
+
invalid_properties.push('invalid value for "messaging_brand_name", the character length must be smaller than or equal to 60.')
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if !@messaging_brand_name.nil? && @messaging_brand_name.to_s.length < 2
|
|
183
|
+
invalid_properties.push('invalid value for "messaging_brand_name", the character length must be greater than or equal to 2.')
|
|
184
|
+
end
|
|
185
|
+
|
|
169
186
|
invalid_properties
|
|
170
187
|
end
|
|
171
188
|
|
|
@@ -178,6 +195,8 @@ module Zernio
|
|
|
178
195
|
return false unless registration_type_validator.valid?(@registration_type)
|
|
179
196
|
return false if @phone_numbers.nil?
|
|
180
197
|
return false if @phone_numbers.length < 1
|
|
198
|
+
return false if !@messaging_brand_name.nil? && @messaging_brand_name.to_s.length > 60
|
|
199
|
+
return false if !@messaging_brand_name.nil? && @messaging_brand_name.to_s.length < 2
|
|
181
200
|
true
|
|
182
201
|
end
|
|
183
202
|
|
|
@@ -205,6 +224,24 @@ module Zernio
|
|
|
205
224
|
@phone_numbers = phone_numbers
|
|
206
225
|
end
|
|
207
226
|
|
|
227
|
+
# Custom attribute writer method with validation
|
|
228
|
+
# @param [Object] messaging_brand_name Value to be assigned
|
|
229
|
+
def messaging_brand_name=(messaging_brand_name)
|
|
230
|
+
if messaging_brand_name.nil?
|
|
231
|
+
fail ArgumentError, 'messaging_brand_name cannot be nil'
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if messaging_brand_name.to_s.length > 60
|
|
235
|
+
fail ArgumentError, 'invalid value for "messaging_brand_name", the character length must be smaller than or equal to 60.'
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if messaging_brand_name.to_s.length < 2
|
|
239
|
+
fail ArgumentError, 'invalid value for "messaging_brand_name", the character length must be greater than or equal to 2.'
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
@messaging_brand_name = messaging_brand_name
|
|
243
|
+
end
|
|
244
|
+
|
|
208
245
|
# Checks equality by comparing each attribute.
|
|
209
246
|
# @param [Object] Object to be compared
|
|
210
247
|
def ==(o)
|
|
@@ -214,6 +251,7 @@ module Zernio
|
|
|
214
251
|
phone_numbers == o.phone_numbers &&
|
|
215
252
|
brand == o.brand &&
|
|
216
253
|
campaign == o.campaign &&
|
|
254
|
+
messaging_brand_name == o.messaging_brand_name &&
|
|
217
255
|
wizard_values == o.wizard_values &&
|
|
218
256
|
resubmit_request_id == o.resubmit_request_id &&
|
|
219
257
|
toll_free == o.toll_free
|
|
@@ -228,7 +266,7 @@ module Zernio
|
|
|
228
266
|
# Calculates hash code according to all attributes.
|
|
229
267
|
# @return [Integer] Hash code
|
|
230
268
|
def hash
|
|
231
|
-
[registration_type, phone_numbers, brand, campaign, wizard_values, resubmit_request_id, toll_free].hash
|
|
269
|
+
[registration_type, phone_numbers, brand, campaign, messaging_brand_name, wizard_values, resubmit_request_id, toll_free].hash
|
|
232
270
|
end
|
|
233
271
|
|
|
234
272
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -988,6 +988,10 @@ require 'zernio-sdk/models/post_retry_response'
|
|
|
988
988
|
require 'zernio-sdk/models/post_update_response'
|
|
989
989
|
require 'zernio-sdk/models/post_user_id'
|
|
990
990
|
require 'zernio-sdk/models/posts_list_response'
|
|
991
|
+
require 'zernio-sdk/models/preflight_sms_registration200_response'
|
|
992
|
+
require 'zernio-sdk/models/preflight_sms_registration200_response_advisories_inner'
|
|
993
|
+
require 'zernio-sdk/models/preflight_sms_registration200_response_composed'
|
|
994
|
+
require 'zernio-sdk/models/preflight_sms_registration_request'
|
|
991
995
|
require 'zernio-sdk/models/profile'
|
|
992
996
|
require 'zernio-sdk/models/profile_create_response'
|
|
993
997
|
require 'zernio-sdk/models/profile_delete_response'
|
|
@@ -1048,6 +1052,8 @@ require 'zernio-sdk/models/reserve_rf_prediction_request'
|
|
|
1048
1052
|
require 'zernio-sdk/models/respond_to_phone_number_reviewer200_response'
|
|
1049
1053
|
require 'zernio-sdk/models/respond_to_phone_number_reviewer_request'
|
|
1050
1054
|
require 'zernio-sdk/models/respond_to_phone_number_reviewer_request_documents_inner'
|
|
1055
|
+
require 'zernio-sdk/models/respond_to_sms_registration_review200_response'
|
|
1056
|
+
require 'zernio-sdk/models/respond_to_sms_registration_review_request'
|
|
1051
1057
|
require 'zernio-sdk/models/restore_workflow_version200_response'
|
|
1052
1058
|
require 'zernio-sdk/models/restore_workflow_version200_response_workflow'
|
|
1053
1059
|
require 'zernio-sdk/models/retweet_post200_response'
|
data/openapi.yaml
CHANGED
|
@@ -26619,6 +26619,11 @@ paths:
|
|
|
26619
26619
|
directLending: { type: boolean }
|
|
26620
26620
|
privacyPolicyLink: { type: string, description: "Link to your privacy policy. Recommended: reviewers check that it says mobile information is not sold or shared with third parties for promotional purposes. A bare domain is normalized to https://." }
|
|
26621
26621
|
termsAndConditionsLink: { type: string, description: "Link to your terms & conditions. A bare domain is normalized to https://." }
|
|
26622
|
+
messagingBrandName:
|
|
26623
|
+
type: string
|
|
26624
|
+
minLength: 2
|
|
26625
|
+
maxLength: 60
|
|
26626
|
+
description: 'DBA / trade name used to brand message content (samples and auto-replies) when it differs from the legal name, e.g. a sole proprietor texting under a business name. The legal `brand.displayName` is still what the carrier vets.'
|
|
26622
26627
|
wizardValues:
|
|
26623
26628
|
type: object
|
|
26624
26629
|
additionalProperties: { type: string }
|
|
@@ -26717,6 +26722,60 @@ paths:
|
|
|
26717
26722
|
'400': { $ref: '#/components/responses/BadRequest' }
|
|
26718
26723
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
26719
26724
|
|
|
26725
|
+
/v1/sms/registrations/preflight:
|
|
26726
|
+
post:
|
|
26727
|
+
operationId: preflightSmsRegistration
|
|
26728
|
+
tags: [SMS]
|
|
26729
|
+
summary: Pre-check a carrier registration
|
|
26730
|
+
description: |
|
|
26731
|
+
Dry-run of `POST /v1/sms/registrations` for 10DLC: validates and
|
|
26732
|
+
composes the exact brand/campaign payloads a submission would store
|
|
26733
|
+
(branding, disclosures, auto-replies), runs deterministic compliance
|
|
26734
|
+
lints plus an AI reviewer over them, and returns the findings WITHOUT
|
|
26735
|
+
creating anything. Use it to fix issues before submitting; `block`
|
|
26736
|
+
severity findings indicate a near-certain carrier rejection.
|
|
26737
|
+
security:
|
|
26738
|
+
- bearerAuth: []
|
|
26739
|
+
requestBody:
|
|
26740
|
+
required: true
|
|
26741
|
+
content:
|
|
26742
|
+
application/json:
|
|
26743
|
+
schema:
|
|
26744
|
+
type: object
|
|
26745
|
+
required: [registrationType, brand, campaign]
|
|
26746
|
+
properties:
|
|
26747
|
+
registrationType: { type: string, enum: [standard_10dlc, sole_prop_10dlc] }
|
|
26748
|
+
phoneNumbers: { type: array, items: { type: string } }
|
|
26749
|
+
brand: { type: object, description: 'Same shape as the registration `brand`.' }
|
|
26750
|
+
campaign: { type: object, description: 'Same shape as the registration `campaign`.' }
|
|
26751
|
+
messagingBrandName: { type: string, minLength: 2, maxLength: 60 }
|
|
26752
|
+
responses:
|
|
26753
|
+
'200':
|
|
26754
|
+
description: Composed payloads + findings.
|
|
26755
|
+
content:
|
|
26756
|
+
application/json:
|
|
26757
|
+
schema:
|
|
26758
|
+
type: object
|
|
26759
|
+
properties:
|
|
26760
|
+
composed:
|
|
26761
|
+
type: object
|
|
26762
|
+
description: 'The exact payloads a submission would store (post-branding, disclosures appended, auto-replies generated).'
|
|
26763
|
+
properties:
|
|
26764
|
+
brand: { type: object }
|
|
26765
|
+
campaign: { type: object }
|
|
26766
|
+
advisories:
|
|
26767
|
+
type: array
|
|
26768
|
+
items:
|
|
26769
|
+
type: object
|
|
26770
|
+
properties:
|
|
26771
|
+
field: { type: [string, "null"], description: 'The payload field the finding is about, when attributable.' }
|
|
26772
|
+
code: { type: [string, "null"], description: 'Stable rule id for deterministic findings; absent on AI findings.' }
|
|
26773
|
+
concern: { type: string }
|
|
26774
|
+
severity: { type: string, enum: [block, warn] }
|
|
26775
|
+
verdict: { type: string, enum: [pass, warn, fail, unreviewed] }
|
|
26776
|
+
aiUnavailable: { type: boolean, description: 'True when the AI portion of the check could not run; advisories then contain only deterministic findings.' }
|
|
26777
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
26778
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
26720
26779
|
/v1/sms/registrations/{id}:
|
|
26721
26780
|
delete:
|
|
26722
26781
|
operationId: deactivateSmsRegistration
|
|
@@ -26894,6 +26953,50 @@ paths:
|
|
|
26894
26953
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
26895
26954
|
'404': { description: Registration not found }
|
|
26896
26955
|
|
|
26956
|
+
/v1/sms/registrations/{id}/respond:
|
|
26957
|
+
post:
|
|
26958
|
+
operationId: respondToSmsRegistrationReview
|
|
26959
|
+
tags: [SMS]
|
|
26960
|
+
summary: Reply to a change request
|
|
26961
|
+
description: |
|
|
26962
|
+
Replies to a reviewer change request on a registration in
|
|
26963
|
+
`changes_requested` state: a note, hosted document URLs (from
|
|
26964
|
+
`POST /v1/sms/opt-in-proof`), or both, sent together. The registration
|
|
26965
|
+
returns to `requested` (back in review) — no need to resubmit the
|
|
26966
|
+
whole registration. To change the submitted brand/campaign fields
|
|
26967
|
+
themselves, resubmit via `POST /v1/sms/registrations` with
|
|
26968
|
+
`resubmitRequestId` instead.
|
|
26969
|
+
security:
|
|
26970
|
+
- bearerAuth: []
|
|
26971
|
+
parameters:
|
|
26972
|
+
- { name: id, in: path, required: true, schema: { type: string } }
|
|
26973
|
+
requestBody:
|
|
26974
|
+
required: true
|
|
26975
|
+
content:
|
|
26976
|
+
application/json:
|
|
26977
|
+
schema:
|
|
26978
|
+
type: object
|
|
26979
|
+
properties:
|
|
26980
|
+
note: { type: string, maxLength: 2000, description: 'Answer for the reviewer. Required when no files are sent.' }
|
|
26981
|
+
files:
|
|
26982
|
+
type: array
|
|
26983
|
+
maxItems: 5
|
|
26984
|
+
items: { type: string }
|
|
26985
|
+
description: 'Hosted document URLs returned by POST /v1/sms/opt-in-proof.'
|
|
26986
|
+
responses:
|
|
26987
|
+
'200':
|
|
26988
|
+
description: Reply recorded; the registration is back in review.
|
|
26989
|
+
content:
|
|
26990
|
+
application/json:
|
|
26991
|
+
schema:
|
|
26992
|
+
type: object
|
|
26993
|
+
properties:
|
|
26994
|
+
status: { type: string, enum: [requested] }
|
|
26995
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
26996
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
26997
|
+
'404': { description: Registration not found }
|
|
26998
|
+
'409': { description: Registration is not waiting on changes }
|
|
26999
|
+
|
|
26897
27000
|
/v1/sms/opt-in-proof:
|
|
26898
27001
|
post:
|
|
26899
27002
|
operationId: uploadSmsOptInProofFile
|
data/spec/api/sms_api_spec.rb
CHANGED
|
@@ -163,6 +163,18 @@ describe 'SMSApi' do
|
|
|
163
163
|
end
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
+
# unit tests for preflight_sms_registration
|
|
167
|
+
# Pre-check a carrier registration
|
|
168
|
+
# Dry-run of `POST /v1/sms/registrations` for 10DLC: validates and composes the exact brand/campaign payloads a submission would store (branding, disclosures, auto-replies), runs deterministic compliance lints plus an AI reviewer over them, and returns the findings WITHOUT creating anything. Use it to fix issues before submitting; `block` severity findings indicate a near-certain carrier rejection.
|
|
169
|
+
# @param preflight_sms_registration_request
|
|
170
|
+
# @param [Hash] opts the optional parameters
|
|
171
|
+
# @return [PreflightSmsRegistration200Response]
|
|
172
|
+
describe 'preflight_sms_registration test' do
|
|
173
|
+
it 'should work' do
|
|
174
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
166
178
|
# unit tests for request_sms_sender_id_limit_increase
|
|
167
179
|
# Request a higher sender ID daily limit
|
|
168
180
|
# Asks support to raise the workspace's daily sender-ID message cap. There is no self-serve raise: the request (desired cap + use case) is reviewed manually, usually within a business day.
|
|
@@ -187,6 +199,19 @@ describe 'SMSApi' do
|
|
|
187
199
|
end
|
|
188
200
|
end
|
|
189
201
|
|
|
202
|
+
# unit tests for respond_to_sms_registration_review
|
|
203
|
+
# Reply to a change request
|
|
204
|
+
# Replies to a reviewer change request on a registration in `changes_requested` state: a note, hosted document URLs (from `POST /v1/sms/opt-in-proof`), or both, sent together. The registration returns to `requested` (back in review) — no need to resubmit the whole registration. To change the submitted brand/campaign fields themselves, resubmit via `POST /v1/sms/registrations` with `resubmitRequestId` instead.
|
|
205
|
+
# @param id
|
|
206
|
+
# @param respond_to_sms_registration_review_request
|
|
207
|
+
# @param [Hash] opts the optional parameters
|
|
208
|
+
# @return [RespondToSmsRegistrationReview200Response]
|
|
209
|
+
describe 'respond_to_sms_registration_review test' do
|
|
210
|
+
it 'should work' do
|
|
211
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
190
215
|
# unit tests for reuse_sms_registration_for_number
|
|
191
216
|
# Add number to SMS registration
|
|
192
217
|
# Attaches this number to your existing approved 10DLC campaign instead of running a fresh registration: the number inherits the campaign's approval (no new brand or campaign, no extra carrier fee). Enable SMS on the number first (`POST /v1/phone-numbers/{id}/sms`; its response tells you whether a reusable registration exists).
|
|
@@ -0,0 +1,58 @@
|
|
|
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::PreflightSmsRegistration200ResponseAdvisoriesInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::PreflightSmsRegistration200ResponseAdvisoriesInner do
|
|
21
|
+
#let(:instance) { Zernio::PreflightSmsRegistration200ResponseAdvisoriesInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of PreflightSmsRegistration200ResponseAdvisoriesInner' do
|
|
24
|
+
it 'should create an instance of PreflightSmsRegistration200ResponseAdvisoriesInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::PreflightSmsRegistration200ResponseAdvisoriesInner)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "field"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "code"' 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 "concern"' 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 "severity"' 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', ["block", "warn"])
|
|
52
|
+
# validator.allowable_values.each do |value|
|
|
53
|
+
# expect { instance.severity = value }.not_to raise_error
|
|
54
|
+
# end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
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::PreflightSmsRegistration200ResponseComposed
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::PreflightSmsRegistration200ResponseComposed do
|
|
21
|
+
#let(:instance) { Zernio::PreflightSmsRegistration200ResponseComposed.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of PreflightSmsRegistration200ResponseComposed' do
|
|
24
|
+
it 'should create an instance of PreflightSmsRegistration200ResponseComposed' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::PreflightSmsRegistration200ResponseComposed)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "brand"' 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 "campaign"' 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
|
|
@@ -0,0 +1,58 @@
|
|
|
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::PreflightSmsRegistration200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::PreflightSmsRegistration200Response do
|
|
21
|
+
#let(:instance) { Zernio::PreflightSmsRegistration200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of PreflightSmsRegistration200Response' do
|
|
24
|
+
it 'should create an instance of PreflightSmsRegistration200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::PreflightSmsRegistration200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "composed"' 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 "advisories"' 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 "verdict"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pass", "warn", "fail", "unreviewed"])
|
|
46
|
+
# validator.allowable_values.each do |value|
|
|
47
|
+
# expect { instance.verdict = value }.not_to raise_error
|
|
48
|
+
# end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "ai_unavailable"' 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
|
+
|
|
58
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
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::PreflightSmsRegistrationRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::PreflightSmsRegistrationRequest do
|
|
21
|
+
#let(:instance) { Zernio::PreflightSmsRegistrationRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of PreflightSmsRegistrationRequest' do
|
|
24
|
+
it 'should create an instance of PreflightSmsRegistrationRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::PreflightSmsRegistrationRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "registration_type"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["standard_10dlc", "sole_prop_10dlc"])
|
|
34
|
+
# validator.allowable_values.each do |value|
|
|
35
|
+
# expect { instance.registration_type = value }.not_to raise_error
|
|
36
|
+
# end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
describe 'test attribute "phone_numbers"' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
describe 'test attribute "brand"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "campaign"' 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
|
+
|
|
58
|
+
describe 'test attribute "messaging_brand_name"' 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
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::RespondToSmsRegistrationReview200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::RespondToSmsRegistrationReview200Response do
|
|
21
|
+
#let(:instance) { Zernio::RespondToSmsRegistrationReview200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of RespondToSmsRegistrationReview200Response' do
|
|
24
|
+
it 'should create an instance of RespondToSmsRegistrationReview200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::RespondToSmsRegistrationReview200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "status"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["requested"])
|
|
34
|
+
# validator.allowable_values.each do |value|
|
|
35
|
+
# expect { instance.status = value }.not_to raise_error
|
|
36
|
+
# end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
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::RespondToSmsRegistrationReviewRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::RespondToSmsRegistrationReviewRequest do
|
|
21
|
+
#let(:instance) { Zernio::RespondToSmsRegistrationReviewRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of RespondToSmsRegistrationReviewRequest' do
|
|
24
|
+
it 'should create an instance of RespondToSmsRegistrationReviewRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::RespondToSmsRegistrationReviewRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "note"' 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 "files"' 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
|
|
@@ -55,6 +55,12 @@ describe Zernio::StartSmsRegistrationRequest do
|
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
describe 'test attribute "messaging_brand_name"' 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
|
+
|
|
58
64
|
describe 'test attribute "wizard_values"' do
|
|
59
65
|
it 'should work' do
|
|
60
66
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
Binary file
|