late-sdk 0.0.533 → 0.0.535
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 +13 -0
- data/docs/CreateSmsSenderId200Response.md +22 -0
- data/docs/CreateSmsSenderIdRequest.md +18 -0
- data/docs/DeleteSmsSenderId200Response.md +18 -0
- data/docs/ListSmsSenderIds200Response.md +20 -0
- data/docs/ListSmsSenderIds200ResponseBudget.md +24 -0
- data/docs/ListSmsSenderIds200ResponseBudgetPendingRequest.md +22 -0
- data/docs/ListSmsSenderIds200ResponseSenderIdsInner.md +24 -0
- data/docs/RequestSmsSenderIdLimitIncrease200Response.md +20 -0
- data/docs/RequestSmsSenderIdLimitIncreaseRequest.md +20 -0
- data/docs/SMSApi.md +276 -1
- data/docs/SendSmsRequest.md +1 -1
- data/lib/zernio-sdk/api/sms_api.rb +256 -2
- data/lib/zernio-sdk/models/create_sms_sender_id200_response.rb +166 -0
- data/lib/zernio-sdk/models/create_sms_sender_id_request.rb +183 -0
- data/lib/zernio-sdk/models/delete_sms_sender_id200_response.rb +147 -0
- data/lib/zernio-sdk/models/list_sms_sender_ids200_response.rb +158 -0
- data/lib/zernio-sdk/models/list_sms_sender_ids200_response_budget.rb +178 -0
- data/lib/zernio-sdk/models/list_sms_sender_ids200_response_budget_pending_request.rb +167 -0
- data/lib/zernio-sdk/models/list_sms_sender_ids200_response_sender_ids_inner.rb +175 -0
- data/lib/zernio-sdk/models/request_sms_sender_id_limit_increase200_response.rb +156 -0
- data/lib/zernio-sdk/models/request_sms_sender_id_limit_increase_request.rb +210 -0
- data/lib/zernio-sdk/models/send_sms_request.rb +1 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +9 -0
- data/openapi.yaml +164 -8
- data/spec/api/sms_api_spec.rb +47 -1
- data/spec/models/create_sms_sender_id200_response_spec.rb +48 -0
- data/spec/models/create_sms_sender_id_request_spec.rb +36 -0
- data/spec/models/delete_sms_sender_id200_response_spec.rb +36 -0
- data/spec/models/list_sms_sender_ids200_response_budget_pending_request_spec.rb +48 -0
- data/spec/models/list_sms_sender_ids200_response_budget_spec.rb +54 -0
- data/spec/models/list_sms_sender_ids200_response_sender_ids_inner_spec.rb +54 -0
- data/spec/models/list_sms_sender_ids200_response_spec.rb +42 -0
- data/spec/models/request_sms_sender_id_limit_increase200_response_spec.rb +42 -0
- data/spec/models/request_sms_sender_id_limit_increase_request_spec.rb +42 -0
- data/zernio-sdk-0.0.535.gem +0 -0
- metadata +38 -2
- data/zernio-sdk-0.0.533.gem +0 -0
data/openapi.yaml
CHANGED
|
@@ -9176,9 +9176,7 @@ paths:
|
|
|
9176
9176
|
content:
|
|
9177
9177
|
application/json:
|
|
9178
9178
|
schema:
|
|
9179
|
-
|
|
9180
|
-
properties:
|
|
9181
|
-
error: { type: string }
|
|
9179
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
9182
9180
|
examples:
|
|
9183
9181
|
invalidMetric:
|
|
9184
9182
|
value:
|
|
@@ -25660,13 +25658,19 @@ paths:
|
|
|
25660
25658
|
summary: Send an SMS/MMS
|
|
25661
25659
|
description: |
|
|
25662
25660
|
Sends an SMS (or MMS when `mediaUrls` is set) from one of your
|
|
25663
|
-
SMS-enabled numbers
|
|
25664
|
-
|
|
25665
|
-
|
|
25661
|
+
SMS-enabled numbers, or from an approved alphanumeric sender ID
|
|
25662
|
+
(`/v1/sms/sender-ids`). At least one of `text` / `mediaUrls` is
|
|
25663
|
+
required. Numbers are normalized to E.164, so `from` matches regardless
|
|
25664
|
+
of formatting and replies thread into the same inbox conversation.
|
|
25666
25665
|
|
|
25667
25666
|
US numbers must have an approved carrier registration
|
|
25668
25667
|
(`/v1/sms/registrations`) before messages deliver.
|
|
25669
25668
|
|
|
25669
|
+
**Alphanumeric sender IDs** are one-way and international only: they
|
|
25670
|
+
cannot reach the US, Canada, or Puerto Rico (403), are text-only (no
|
|
25671
|
+
MMS), and recipients cannot reply. Some destination countries
|
|
25672
|
+
substitute a numeric sender to ensure delivery.
|
|
25673
|
+
|
|
25670
25674
|
**Idempotency:** send an `Idempotency-Key` header to make retries safe:
|
|
25671
25675
|
same key + same body replays the original response instead of sending a
|
|
25672
25676
|
second message; same key + different body returns 422; a key still in
|
|
@@ -25690,7 +25694,7 @@ paths:
|
|
|
25690
25694
|
type: object
|
|
25691
25695
|
required: [from, to]
|
|
25692
25696
|
properties:
|
|
25693
|
-
from: { type: string, description: One of your SMS-enabled numbers (E.164; formatting is normalized). }
|
|
25697
|
+
from: { type: string, description: 'One of your SMS-enabled numbers (E.164; formatting is normalized), or an approved alphanumeric sender ID (3-11 letters/digits/spaces, created via `/v1/sms/sender-ids`).' }
|
|
25694
25698
|
to: { type: string, description: Recipient number (E.164). }
|
|
25695
25699
|
text: { type: string, description: "Message body. Required unless `mediaUrls` is set. Max 10 SMS segments (1530 GSM-7 or 670 unicode characters)." }
|
|
25696
25700
|
mediaUrls:
|
|
@@ -25713,10 +25717,13 @@ paths:
|
|
|
25713
25717
|
id: { type: string, description: Message ID }
|
|
25714
25718
|
conversationId: { type: string, description: Inbox conversation the message was threaded into. }
|
|
25715
25719
|
status: { type: string, enum: [sent] }
|
|
25720
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
25716
25721
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
25717
|
-
'
|
|
25722
|
+
'403': { description: 'Send refused by a gate: US registration missing/pending, MMS not supported by this sender, or an alphanumeric sender ID addressed to the US, Canada or Puerto Rico.' }
|
|
25723
|
+
'404': { description: "No SMS-enabled number or sender ID matches `from`" }
|
|
25718
25724
|
'409': { description: Same Idempotency-Key still processing; retry after a short backoff }
|
|
25719
25725
|
'422': { description: Idempotency-Key reused with a different body }
|
|
25726
|
+
'429': { description: 'Daily sender ID message limit reached for the workspace (alphanumeric sends only, code `alpha_daily_limit_reached`; resets midnight UTC, raisable via support).' }
|
|
25720
25727
|
'502': { description: Carrier-side send failed }
|
|
25721
25728
|
|
|
25722
25729
|
/v1/sms/lookup:
|
|
@@ -25786,6 +25793,155 @@ paths:
|
|
|
25786
25793
|
schema: { type: string, description: "`format=csv` download. Columns: phone_number, opted_out_at, keyword, our_number" }
|
|
25787
25794
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
25788
25795
|
|
|
25796
|
+
/v1/sms/sender-ids:
|
|
25797
|
+
post:
|
|
25798
|
+
operationId: createSmsSenderId
|
|
25799
|
+
tags: [SMS]
|
|
25800
|
+
summary: Create an alphanumeric sender ID
|
|
25801
|
+
description: |
|
|
25802
|
+
Registers an alphanumeric sender ID (e.g. `ZERNIO`) — a branded `from`
|
|
25803
|
+
for one-way international SMS. No phone number purchase or carrier
|
|
25804
|
+
registration is needed; once created, pass it as `from` on
|
|
25805
|
+
`POST /v1/sms/messages`.
|
|
25806
|
+
|
|
25807
|
+
Constraints: 3-11 characters (letters, digits, spaces; at least one
|
|
25808
|
+
letter). Sends cannot reach the US, Canada, or Puerto Rico, are
|
|
25809
|
+
text-only, and recipients cannot reply. Sender IDs that impersonate
|
|
25810
|
+
well-known brands or institutions are rejected, and an ID already
|
|
25811
|
+
registered by another workspace returns 409 (active sender IDs are
|
|
25812
|
+
globally unique, first-come-first-served). Creating the same sender ID
|
|
25813
|
+
again is a no-op (re-activates it after a delete).
|
|
25814
|
+
security:
|
|
25815
|
+
- bearerAuth: []
|
|
25816
|
+
requestBody:
|
|
25817
|
+
required: true
|
|
25818
|
+
content:
|
|
25819
|
+
application/json:
|
|
25820
|
+
schema:
|
|
25821
|
+
type: object
|
|
25822
|
+
required: [senderId]
|
|
25823
|
+
properties:
|
|
25824
|
+
senderId:
|
|
25825
|
+
type: string
|
|
25826
|
+
minLength: 3
|
|
25827
|
+
maxLength: 11
|
|
25828
|
+
description: 'The sender ID recipients will see (3-11 letters/digits/spaces, at least one letter, no leading/trailing space).'
|
|
25829
|
+
responses:
|
|
25830
|
+
'200':
|
|
25831
|
+
description: Sender ID created (or re-activated).
|
|
25832
|
+
content:
|
|
25833
|
+
application/json:
|
|
25834
|
+
schema:
|
|
25835
|
+
type: object
|
|
25836
|
+
properties:
|
|
25837
|
+
id: { type: string, description: Sender ID resource id. }
|
|
25838
|
+
senderId: { type: string }
|
|
25839
|
+
isActive: { type: boolean }
|
|
25840
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
25841
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
25842
|
+
'403': { description: 'Workspace is not on usage-based billing, or already holds the maximum of 5 active sender IDs (code `sender_id_limit_reached`; raisable via support).' }
|
|
25843
|
+
'409': { description: 'Sender ID already registered by another workspace (code `sender_id_taken`).' }
|
|
25844
|
+
'422': { description: 'Sender ID rejected: it appears to impersonate a protected brand or institution.' }
|
|
25845
|
+
get:
|
|
25846
|
+
operationId: listSmsSenderIds
|
|
25847
|
+
tags: [SMS]
|
|
25848
|
+
summary: List alphanumeric sender IDs
|
|
25849
|
+
security:
|
|
25850
|
+
- bearerAuth: []
|
|
25851
|
+
responses:
|
|
25852
|
+
'200':
|
|
25853
|
+
description: The workspace's sender IDs, newest first.
|
|
25854
|
+
content:
|
|
25855
|
+
application/json:
|
|
25856
|
+
schema:
|
|
25857
|
+
type: object
|
|
25858
|
+
properties:
|
|
25859
|
+
senderIds:
|
|
25860
|
+
type: array
|
|
25861
|
+
items:
|
|
25862
|
+
type: object
|
|
25863
|
+
properties:
|
|
25864
|
+
id: { type: string }
|
|
25865
|
+
senderId: { type: string }
|
|
25866
|
+
isActive: { type: boolean }
|
|
25867
|
+
createdAt: { type: [string, "null"], format: date-time }
|
|
25868
|
+
budget:
|
|
25869
|
+
type: object
|
|
25870
|
+
description: 'Workspace-wide daily sending budget, shared by every sender ID (resets midnight UTC).'
|
|
25871
|
+
properties:
|
|
25872
|
+
cap: { type: integer, description: 'Daily message cap (raisable via `/v1/sms/sender-ids/limit-request`).' }
|
|
25873
|
+
usedToday: { type: integer, description: Messages already counted against today's cap. }
|
|
25874
|
+
level: { type: integer, description: 'Cap tier (Level 1 = 500/day).' }
|
|
25875
|
+
pendingRequest:
|
|
25876
|
+
type: [object, "null"]
|
|
25877
|
+
description: 'The in-flight cap-raise request awaiting review, or null. While set, further requests return 409.'
|
|
25878
|
+
properties:
|
|
25879
|
+
requestedCap: { type: integer }
|
|
25880
|
+
level: { type: integer }
|
|
25881
|
+
requestedAt: { type: [string, "null"], format: date-time }
|
|
25882
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
25883
|
+
|
|
25884
|
+
/v1/sms/sender-ids/limit-request:
|
|
25885
|
+
post:
|
|
25886
|
+
operationId: requestSmsSenderIdLimitIncrease
|
|
25887
|
+
tags: [SMS]
|
|
25888
|
+
summary: Request a higher sender ID daily limit
|
|
25889
|
+
description: |
|
|
25890
|
+
Asks support to raise the workspace's daily sender-ID message cap.
|
|
25891
|
+
There is no self-serve raise: the request (desired cap + use case) is
|
|
25892
|
+
reviewed manually, usually within a business day.
|
|
25893
|
+
security:
|
|
25894
|
+
- bearerAuth: []
|
|
25895
|
+
requestBody:
|
|
25896
|
+
required: true
|
|
25897
|
+
content:
|
|
25898
|
+
application/json:
|
|
25899
|
+
schema:
|
|
25900
|
+
type: object
|
|
25901
|
+
required: [requestedCap, reason]
|
|
25902
|
+
properties:
|
|
25903
|
+
requestedCap: { type: integer, description: 'Desired daily message cap. Must exceed the current cap.' }
|
|
25904
|
+
reason: { type: string, minLength: 10, maxLength: 2000, description: 'Use case and audience (what you send, to whom, opt-in status).' }
|
|
25905
|
+
responses:
|
|
25906
|
+
'200':
|
|
25907
|
+
description: Request submitted for review.
|
|
25908
|
+
content:
|
|
25909
|
+
application/json:
|
|
25910
|
+
schema:
|
|
25911
|
+
type: object
|
|
25912
|
+
properties:
|
|
25913
|
+
requested: { type: boolean }
|
|
25914
|
+
requestedCap: { type: integer }
|
|
25915
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
25916
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
25917
|
+
'409': { description: 'A cap-raise request is already awaiting review (code `sender_id_raise_pending`); one at a time.' }
|
|
25918
|
+
'503': { description: Request could not be submitted; retry or contact support. }
|
|
25919
|
+
|
|
25920
|
+
/v1/sms/sender-ids/{id}:
|
|
25921
|
+
delete:
|
|
25922
|
+
operationId: deleteSmsSenderId
|
|
25923
|
+
tags: [SMS]
|
|
25924
|
+
summary: Delete an alphanumeric sender ID
|
|
25925
|
+
description: |
|
|
25926
|
+
Deactivates the sender ID so it can no longer send. Re-creating the
|
|
25927
|
+
same sender ID via `POST /v1/sms/sender-ids` re-activates it.
|
|
25928
|
+
security:
|
|
25929
|
+
- bearerAuth: []
|
|
25930
|
+
parameters:
|
|
25931
|
+
- { name: id, in: path, required: true, schema: { type: string }, description: Sender ID resource id. }
|
|
25932
|
+
responses:
|
|
25933
|
+
'200':
|
|
25934
|
+
description: Sender ID deactivated.
|
|
25935
|
+
content:
|
|
25936
|
+
application/json:
|
|
25937
|
+
schema:
|
|
25938
|
+
type: object
|
|
25939
|
+
properties:
|
|
25940
|
+
deleted: { type: boolean }
|
|
25941
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
25942
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
25943
|
+
'404': { description: Sender ID not found. }
|
|
25944
|
+
|
|
25789
25945
|
/v1/sms/registrations:
|
|
25790
25946
|
post:
|
|
25791
25947
|
operationId: startSmsRegistration
|
data/spec/api/sms_api_spec.rb
CHANGED
|
@@ -45,6 +45,18 @@ describe 'SMSApi' do
|
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
+
# unit tests for create_sms_sender_id
|
|
49
|
+
# Create an alphanumeric sender ID
|
|
50
|
+
# Registers an alphanumeric sender ID (e.g. `ZERNIO`) — a branded `from` for one-way international SMS. No phone number purchase or carrier registration is needed; once created, pass it as `from` on `POST /v1/sms/messages`. Constraints: 3-11 characters (letters, digits, spaces; at least one letter). Sends cannot reach the US, Canada, or Puerto Rico, are text-only, and recipients cannot reply. Sender IDs that impersonate well-known brands or institutions are rejected, and an ID already registered by another workspace returns 409 (active sender IDs are globally unique, first-come-first-served). Creating the same sender ID again is a no-op (re-activates it after a delete).
|
|
51
|
+
# @param create_sms_sender_id_request
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @return [CreateSmsSenderId200Response]
|
|
54
|
+
describe 'create_sms_sender_id test' 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
|
+
|
|
48
60
|
# unit tests for deactivate_sms_registration
|
|
49
61
|
# Deactivate a brand/campaign registration
|
|
50
62
|
# Terminates the campaign with the carrier registry so the recurring monthly campaign fee stops (carriers bill the first 3 months of a campaign regardless). Numbers covered by it can no longer SEND texts — receiving is unaffected — until they're registered under a new brand. Irreversible: a deactivated campaign cannot be restored; texting again later requires a new registration (new one-time and review fees). Idempotent.
|
|
@@ -57,6 +69,18 @@ describe 'SMSApi' do
|
|
|
57
69
|
end
|
|
58
70
|
end
|
|
59
71
|
|
|
72
|
+
# unit tests for delete_sms_sender_id
|
|
73
|
+
# Delete an alphanumeric sender ID
|
|
74
|
+
# Deactivates the sender ID so it can no longer send. Re-creating the same sender ID via `POST /v1/sms/sender-ids` re-activates it.
|
|
75
|
+
# @param id Sender ID resource id.
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [DeleteSmsSenderId200Response]
|
|
78
|
+
describe 'delete_sms_sender_id test' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
60
84
|
# unit tests for disable_sms_on_number
|
|
61
85
|
# Disable SMS on a number
|
|
62
86
|
# Turns off SMS for the number (deactivates its SMS account). The carrier registration is untouched, so re-enabling later just reactivates it, with no re-registration.
|
|
@@ -117,6 +141,16 @@ describe 'SMSApi' do
|
|
|
117
141
|
end
|
|
118
142
|
end
|
|
119
143
|
|
|
144
|
+
# unit tests for list_sms_sender_ids
|
|
145
|
+
# List alphanumeric sender IDs
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @return [ListSmsSenderIds200Response]
|
|
148
|
+
describe 'list_sms_sender_ids test' do
|
|
149
|
+
it 'should work' do
|
|
150
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
|
|
120
154
|
# unit tests for lookup_sms_number
|
|
121
155
|
# Look up carrier + line type
|
|
122
156
|
# Carrier name and line type (mobile / landline / voip / toll-free) for a number, plus `smsReachable` (landlines can't receive SMS). Use it to validate recipients before sending. Each lookup is billed by the carrier-data provider, so call it explicitly (e.g. pre-validating an opt-in list), not on every send.
|
|
@@ -129,6 +163,18 @@ describe 'SMSApi' do
|
|
|
129
163
|
end
|
|
130
164
|
end
|
|
131
165
|
|
|
166
|
+
# unit tests for request_sms_sender_id_limit_increase
|
|
167
|
+
# Request a higher sender ID daily limit
|
|
168
|
+
# 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.
|
|
169
|
+
# @param request_sms_sender_id_limit_increase_request
|
|
170
|
+
# @param [Hash] opts the optional parameters
|
|
171
|
+
# @return [RequestSmsSenderIdLimitIncrease200Response]
|
|
172
|
+
describe 'request_sms_sender_id_limit_increase 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
|
+
|
|
132
178
|
# unit tests for resend_sms_registration_otp
|
|
133
179
|
# Re-send the sole-prop OTP
|
|
134
180
|
# Re-sends the sole-proprietor verification PIN to the brand's mobile number — use it when the original code expired or never arrived. Only valid while the registration is pending and awaiting its OTP; rate limited to one send per minute.
|
|
@@ -155,7 +201,7 @@ describe 'SMSApi' do
|
|
|
155
201
|
|
|
156
202
|
# unit tests for send_sms
|
|
157
203
|
# Send an SMS/MMS
|
|
158
|
-
# Sends an SMS (or MMS when `mediaUrls` is set) from one of your SMS-enabled numbers. At least one of `text` / `mediaUrls` is required.
|
|
204
|
+
# Sends an SMS (or MMS when `mediaUrls` is set) from one of your SMS-enabled numbers, or from an approved alphanumeric sender ID (`/v1/sms/sender-ids`). At least one of `text` / `mediaUrls` is required. Numbers are normalized to E.164, so `from` matches regardless of formatting and replies thread into the same inbox conversation. US numbers must have an approved carrier registration (`/v1/sms/registrations`) before messages deliver. **Alphanumeric sender IDs** are one-way and international only: they cannot reach the US, Canada, or Puerto Rico (403), are text-only (no MMS), and recipients cannot reply. Some destination countries substitute a numeric sender to ensure delivery. **Idempotency:** send an `Idempotency-Key` header to make retries safe: same key + same body replays the original response instead of sending a second message; same key + different body returns 422; a key still in flight returns 409.
|
|
159
205
|
# @param send_sms_request
|
|
160
206
|
# @param [Hash] opts the optional parameters
|
|
161
207
|
# @option opts [String] :idempotency_key Optional client-generated unique key (e.g. a UUID) that makes send retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
@@ -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::CreateSmsSenderId200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::CreateSmsSenderId200Response do
|
|
21
|
+
#let(:instance) { Zernio::CreateSmsSenderId200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateSmsSenderId200Response' do
|
|
24
|
+
it 'should create an instance of CreateSmsSenderId200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::CreateSmsSenderId200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "sender_id"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "is_active"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
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::CreateSmsSenderIdRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::CreateSmsSenderIdRequest do
|
|
21
|
+
#let(:instance) { Zernio::CreateSmsSenderIdRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateSmsSenderIdRequest' do
|
|
24
|
+
it 'should create an instance of CreateSmsSenderIdRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::CreateSmsSenderIdRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "sender_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
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
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::DeleteSmsSenderId200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::DeleteSmsSenderId200Response do
|
|
21
|
+
#let(:instance) { Zernio::DeleteSmsSenderId200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of DeleteSmsSenderId200Response' do
|
|
24
|
+
it 'should create an instance of DeleteSmsSenderId200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::DeleteSmsSenderId200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "deleted"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|
|
@@ -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::ListSmsSenderIds200ResponseBudgetPendingRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::ListSmsSenderIds200ResponseBudgetPendingRequest do
|
|
21
|
+
#let(:instance) { Zernio::ListSmsSenderIds200ResponseBudgetPendingRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ListSmsSenderIds200ResponseBudgetPendingRequest' do
|
|
24
|
+
it 'should create an instance of ListSmsSenderIds200ResponseBudgetPendingRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::ListSmsSenderIds200ResponseBudgetPendingRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "requested_cap"' 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 "level"' 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 "requested_at"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
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::ListSmsSenderIds200ResponseBudget
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::ListSmsSenderIds200ResponseBudget do
|
|
21
|
+
#let(:instance) { Zernio::ListSmsSenderIds200ResponseBudget.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ListSmsSenderIds200ResponseBudget' do
|
|
24
|
+
it 'should create an instance of ListSmsSenderIds200ResponseBudget' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::ListSmsSenderIds200ResponseBudget)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "cap"' 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 "used_today"' 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 "level"' 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 "pending_request"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
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::ListSmsSenderIds200ResponseSenderIdsInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::ListSmsSenderIds200ResponseSenderIdsInner do
|
|
21
|
+
#let(:instance) { Zernio::ListSmsSenderIds200ResponseSenderIdsInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ListSmsSenderIds200ResponseSenderIdsInner' do
|
|
24
|
+
it 'should create an instance of ListSmsSenderIds200ResponseSenderIdsInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::ListSmsSenderIds200ResponseSenderIdsInner)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "sender_id"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "is_active"' 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 "created_at"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
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::ListSmsSenderIds200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::ListSmsSenderIds200Response do
|
|
21
|
+
#let(:instance) { Zernio::ListSmsSenderIds200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ListSmsSenderIds200Response' do
|
|
24
|
+
it 'should create an instance of ListSmsSenderIds200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::ListSmsSenderIds200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "sender_ids"' 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 "budget"' 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,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::RequestSmsSenderIdLimitIncrease200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::RequestSmsSenderIdLimitIncrease200Response do
|
|
21
|
+
#let(:instance) { Zernio::RequestSmsSenderIdLimitIncrease200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of RequestSmsSenderIdLimitIncrease200Response' do
|
|
24
|
+
it 'should create an instance of RequestSmsSenderIdLimitIncrease200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::RequestSmsSenderIdLimitIncrease200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "requested"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "requested_cap"' 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
|