late-sdk 0.0.619 → 0.0.621

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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -0
  3. data/docs/EnableWhatsAppCallingLegacy200Response.md +3 -1
  4. data/docs/GetWhatsAppCalling200Response.md +5 -1
  5. data/docs/GetWhatsAppCallingConfig200Response.md +5 -1
  6. data/docs/StartWhatsAppCallerIdVerification200Response.md +22 -0
  7. data/docs/StartWhatsAppCallerIdVerificationRequest.md +18 -0
  8. data/docs/VerifyWhatsAppCallerIdRequest.md +18 -0
  9. data/docs/WhatsAppCallingApi.md +146 -0
  10. data/lib/zernio-sdk/api/whats_app_calling_api.rb +144 -0
  11. data/lib/zernio-sdk/models/enable_whats_app_calling_legacy200_response.rb +48 -4
  12. data/lib/zernio-sdk/models/get_whats_app_calling200_response.rb +58 -4
  13. data/lib/zernio-sdk/models/get_whats_app_calling_config200_response.rb +59 -5
  14. data/lib/zernio-sdk/models/start_whats_app_caller_id_verification200_response.rb +199 -0
  15. data/lib/zernio-sdk/models/start_whats_app_caller_id_verification_request.rb +183 -0
  16. data/lib/zernio-sdk/models/verify_whats_app_caller_id_request.rb +182 -0
  17. data/lib/zernio-sdk/version.rb +1 -1
  18. data/lib/zernio-sdk.rb +3 -0
  19. data/openapi.yaml +94 -2
  20. data/spec/api/whats_app_calling_api_spec.rb +26 -0
  21. data/spec/models/enable_whats_app_calling_legacy200_response_spec.rb +10 -0
  22. data/spec/models/get_whats_app_calling200_response_spec.rb +16 -0
  23. data/spec/models/get_whats_app_calling_config200_response_spec.rb +16 -0
  24. data/spec/models/start_whats_app_caller_id_verification200_response_spec.rb +52 -0
  25. data/spec/models/start_whats_app_caller_id_verification_request_spec.rb +40 -0
  26. data/spec/models/verify_whats_app_caller_id_request_spec.rb +36 -0
  27. data/zernio-sdk-0.0.621.gem +0 -0
  28. metadata +14 -2
  29. data/zernio-sdk-0.0.619.gem +0 -0
@@ -0,0 +1,182 @@
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 'date'
14
+ require 'time'
15
+
16
+ module Zernio
17
+ class VerifyWhatsAppCallerIdRequest < ApiModelBase
18
+ attr_accessor :code
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'code' => :'code'
24
+ }
25
+ end
26
+
27
+ # Returns attribute mapping this model knows about
28
+ def self.acceptable_attribute_map
29
+ attribute_map
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ acceptable_attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'code' => :'String'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::VerifyWhatsAppCallerIdRequest` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ acceptable_attribute_map = self.class.acceptable_attribute_map
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!acceptable_attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::VerifyWhatsAppCallerIdRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'code')
67
+ self.code = attributes[:'code']
68
+ else
69
+ self.code = nil
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ if @code.nil?
79
+ invalid_properties.push('invalid value for "code", code cannot be nil.')
80
+ end
81
+
82
+ if @code.to_s.length > 10
83
+ invalid_properties.push('invalid value for "code", the character length must be smaller than or equal to 10.')
84
+ end
85
+
86
+ if @code.to_s.length < 4
87
+ invalid_properties.push('invalid value for "code", the character length must be greater than or equal to 4.')
88
+ end
89
+
90
+ invalid_properties
91
+ end
92
+
93
+ # Check to see if the all the properties in the model are valid
94
+ # @return true if the model is valid
95
+ def valid?
96
+ warn '[DEPRECATED] the `valid?` method is obsolete'
97
+ return false if @code.nil?
98
+ return false if @code.to_s.length > 10
99
+ return false if @code.to_s.length < 4
100
+ true
101
+ end
102
+
103
+ # Custom attribute writer method with validation
104
+ # @param [Object] code Value to be assigned
105
+ def code=(code)
106
+ if code.nil?
107
+ fail ArgumentError, 'code cannot be nil'
108
+ end
109
+
110
+ if code.to_s.length > 10
111
+ fail ArgumentError, 'invalid value for "code", the character length must be smaller than or equal to 10.'
112
+ end
113
+
114
+ if code.to_s.length < 4
115
+ fail ArgumentError, 'invalid value for "code", the character length must be greater than or equal to 4.'
116
+ end
117
+
118
+ @code = code
119
+ end
120
+
121
+ # Checks equality by comparing each attribute.
122
+ # @param [Object] Object to be compared
123
+ def ==(o)
124
+ return true if self.equal?(o)
125
+ self.class == o.class &&
126
+ code == o.code
127
+ end
128
+
129
+ # @see the `==` method
130
+ # @param [Object] Object to be compared
131
+ def eql?(o)
132
+ self == o
133
+ end
134
+
135
+ # Calculates hash code according to all attributes.
136
+ # @return [Integer] Hash code
137
+ def hash
138
+ [code].hash
139
+ end
140
+
141
+ # Builds the object from hash
142
+ # @param [Hash] attributes Model attributes in the form of hash
143
+ # @return [Object] Returns the model itself
144
+ def self.build_from_hash(attributes)
145
+ return nil unless attributes.is_a?(Hash)
146
+ attributes = attributes.transform_keys(&:to_sym)
147
+ transformed_hash = {}
148
+ openapi_types.each_pair do |key, type|
149
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
150
+ transformed_hash["#{key}"] = nil
151
+ elsif type =~ /\AArray<(.*)>/i
152
+ # check to ensure the input is an array given that the attribute
153
+ # is documented as an array but the input is not
154
+ if attributes[attribute_map[key]].is_a?(Array)
155
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
156
+ end
157
+ elsif !attributes[attribute_map[key]].nil?
158
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
159
+ end
160
+ end
161
+ new(transformed_hash)
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ if value.nil?
171
+ is_nullable = self.class.openapi_nullable.include?(attr)
172
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
173
+ end
174
+
175
+ hash[param] = _to_hash(value)
176
+ end
177
+ hash
178
+ end
179
+
180
+ end
181
+
182
+ end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.619'
14
+ VERSION = '0.0.621'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -1223,6 +1223,8 @@ require 'zernio-sdk/models/start_sms_registration_request'
1223
1223
  require 'zernio-sdk/models/start_sms_registration_request_brand'
1224
1224
  require 'zernio-sdk/models/start_sms_registration_request_campaign'
1225
1225
  require 'zernio-sdk/models/start_sms_registration_request_toll_free'
1226
+ require 'zernio-sdk/models/start_whats_app_caller_id_verification200_response'
1227
+ require 'zernio-sdk/models/start_whats_app_caller_id_verification_request'
1226
1228
  require 'zernio-sdk/models/submit_phone_number_kyc200_response'
1227
1229
  require 'zernio-sdk/models/submit_phone_number_kyc200_response_numbers_inner'
1228
1230
  require 'zernio-sdk/models/submit_phone_number_kyc200_response_phone_number'
@@ -1450,6 +1452,7 @@ require 'zernio-sdk/models/validate_subreddit200_response_one_of_subreddit'
1450
1452
  require 'zernio-sdk/models/verification'
1451
1453
  require 'zernio-sdk/models/verify_sms_registration_otp200_response'
1452
1454
  require 'zernio-sdk/models/verify_sms_registration_otp_request'
1455
+ require 'zernio-sdk/models/verify_whats_app_caller_id_request'
1453
1456
  require 'zernio-sdk/models/vote_reddit_thing_request'
1454
1457
  require 'zernio-sdk/models/webhook'
1455
1458
  require 'zernio-sdk/models/webhook_log'
data/openapi.yaml CHANGED
@@ -25954,6 +25954,11 @@ paths:
25954
25954
  callIconCountries:
25955
25955
  type: [array, "null"]
25956
25956
  items: { type: string, minLength: 2, maxLength: 2 }
25957
+ callerIdMode:
25958
+ type: string
25959
+ enum: [business, platform]
25960
+ description: 'Caller ID the forward-leg callee sees on tel: forwards. business = this WhatsApp number; platform = a Zernio number (customer-brought number without verified caller ID; verify via /v1/phone-numbers/{id}/whatsapp/caller-id-verification).'
25961
+ callerIdVerified: { type: boolean, description: 'True once the number completed caller-ID verification.' }
25957
25962
  '401': { $ref: '#/components/responses/Unauthorized' }
25958
25963
  '404': { description: WhatsApp phone number not found for this account }
25959
25964
 
@@ -26003,7 +26008,11 @@ paths:
26003
26008
  callingEnabled: { type: boolean }
26004
26009
  sipHostname: { type: string }
26005
26010
  forwardTo: { type: string }
26006
- '400': { description: Invalid request }
26011
+ callerIdMode:
26012
+ type: string
26013
+ enum: [business, platform]
26014
+ description: 'Caller ID the forward-leg callee sees on tel: forwards. business = this WhatsApp number; platform = a Zernio number (customer-brought number without verified caller ID).'
26015
+ '400': { description: 'Invalid request (including forwardTo set to the number itself)' }
26007
26016
  '401': { $ref: '#/components/responses/Unauthorized' }
26008
26017
  '404': { description: WhatsApp phone number not found }
26009
26018
  '422': { description: "Not eligible to enable calling: not on usage-based billing, or the number's messaging limit is below Meta's ~2,000-daily-recipient threshold (TIER_250). Warm the number up to raise the limit." }
@@ -31004,6 +31013,11 @@ paths:
31004
31013
  type: [array, "null"]
31005
31014
  items: { type: string, minLength: 2, maxLength: 2 }
31006
31015
  outboundDisabled: { type: boolean, description: "True when the number's country blocks business-initiated (outbound) WhatsApp calling; inbound still works." }
31016
+ callerIdMode:
31017
+ type: string
31018
+ enum: [business, platform]
31019
+ description: 'Caller ID the forward-leg callee sees on tel: forwards. business = this WhatsApp number; platform = a Zernio number (used when the number was brought by the customer and its caller ID is not verified for PSTN origination).'
31020
+ callerIdVerified: { type: boolean, description: 'True once the number completed caller-ID verification, making tel: forwards display the business number itself.' }
31007
31021
  '400': { description: Invalid request }
31008
31022
  '401': { $ref: '#/components/responses/Unauthorized' }
31009
31023
  '404': { description: Number not found }
@@ -31048,7 +31062,11 @@ paths:
31048
31062
  callingEnabled: { type: boolean }
31049
31063
  sipHostname: { type: string }
31050
31064
  forwardTo: { type: string }
31051
- '400': { description: Invalid request }
31065
+ callerIdMode:
31066
+ type: string
31067
+ enum: [business, platform]
31068
+ description: 'Caller ID the forward-leg callee sees on tel: forwards. business = this WhatsApp number; platform = a Zernio number (customer-brought number without verified caller ID).'
31069
+ '400': { description: 'Invalid request (including forwardTo set to the number itself)' }
31052
31070
  '401': { $ref: '#/components/responses/Unauthorized' }
31053
31071
  '404': { description: Phone number not found }
31054
31072
  '422': { description: "Not eligible to enable calling: not on usage-based billing, or the number's messaging limit is below Meta's ~2,000-daily-recipient threshold (TIER_250). Warm the number up to raise the limit." }
@@ -31107,7 +31125,81 @@ paths:
31107
31125
  '401': { $ref: '#/components/responses/Unauthorized' }
31108
31126
  '404': { description: Phone number not found }
31109
31127
 
31128
+ /v1/phone-numbers/{id}/whatsapp/caller-id-verification:
31129
+ post:
31130
+ operationId: startWhatsAppCallerIdVerification
31131
+ tags: [WhatsApp Calling]
31132
+ summary: Start caller-ID verification for a customer-brought number
31133
+ description: |
31134
+ Customer-brought (BYO) WhatsApp numbers cannot present themselves as
31135
+ caller ID on `tel:` call forwards until verified (carrier
31136
+ anti-spoofing); until then forwarded calls show a Zernio number
31137
+ (`callerIdMode: platform` on the calling config). This sends a
31138
+ one-time code to the number by SMS or voice call. Re-POST to resend.
31139
+ Zernio-purchased numbers never need this and get a 400.
31140
+ security:
31141
+ - bearerAuth: []
31142
+ parameters:
31143
+ - { name: id, in: path, required: true, schema: { type: string }, description: "Phone number record ID (from GET /v1/phone-numbers)." }
31144
+ requestBody:
31145
+ required: false
31146
+ content:
31147
+ application/json:
31148
+ schema:
31149
+ type: object
31150
+ properties:
31151
+ method: { type: string, enum: [sms, call], default: sms }
31152
+ responses:
31153
+ '200':
31154
+ description: 'Code sent (or the number was already verified)'
31155
+ content:
31156
+ application/json:
31157
+ schema:
31158
+ type: object
31159
+ properties:
31160
+ verified: { type: boolean }
31161
+ codeSent: { type: boolean }
31162
+ method: { type: string, enum: [sms, call] }
31163
+ '400': { $ref: '#/components/responses/BadRequest' }
31164
+ '401': { $ref: '#/components/responses/Unauthorized' }
31165
+ '404': { description: Number not found }
31166
+ '429': { description: 'Too many verification attempts for this number; wait before retrying' }
31110
31167
 
31168
+ /v1/phone-numbers/{id}/whatsapp/caller-id-verification/verify:
31169
+ post:
31170
+ operationId: verifyWhatsAppCallerId
31171
+ tags: [WhatsApp Calling]
31172
+ summary: Confirm the caller-ID verification code
31173
+ description: |
31174
+ Submits the one-time code the number received. On success, `tel:`
31175
+ call forwards present the business number itself as caller ID
31176
+ (`callerIdMode: business`).
31177
+ security:
31178
+ - bearerAuth: []
31179
+ parameters:
31180
+ - { name: id, in: path, required: true, schema: { type: string }, description: "Phone number record ID (from GET /v1/phone-numbers)." }
31181
+ requestBody:
31182
+ required: true
31183
+ content:
31184
+ application/json:
31185
+ schema:
31186
+ type: object
31187
+ required: [code]
31188
+ properties:
31189
+ code: { type: string, minLength: 4, maxLength: 10 }
31190
+ responses:
31191
+ '200':
31192
+ description: Verified
31193
+ content:
31194
+ application/json:
31195
+ schema:
31196
+ type: object
31197
+ properties:
31198
+ verified: { type: boolean }
31199
+ '400': { description: 'Invalid or expired code, or malformed request' }
31200
+ '401': { $ref: '#/components/responses/Unauthorized' }
31201
+ '404': { description: Number not found }
31202
+ '429': { description: 'Attempt lockout from the carrier; wait a few minutes, then request a fresh code' }
31111
31203
 
31112
31204
  /v1/whatsapp/phone-numbers/{phoneNumberId}:
31113
31205
  get:
@@ -193,6 +193,19 @@ describe 'WhatsAppCallingApi' do
193
193
  end
194
194
  end
195
195
 
196
+ # unit tests for start_whats_app_caller_id_verification
197
+ # Start caller-ID verification for a customer-brought number
198
+ # Customer-brought (BYO) WhatsApp numbers cannot present themselves as caller ID on &#x60;tel:&#x60; call forwards until verified (carrier anti-spoofing); until then forwarded calls show a Zernio number (&#x60;callerIdMode: platform&#x60; on the calling config). This sends a one-time code to the number by SMS or voice call. Re-POST to resend. Zernio-purchased numbers never need this and get a 400.
199
+ # @param id Phone number record ID (from GET /v1/phone-numbers).
200
+ # @param [Hash] opts the optional parameters
201
+ # @option opts [StartWhatsAppCallerIdVerificationRequest] :start_whats_app_caller_id_verification_request
202
+ # @return [StartWhatsAppCallerIdVerification200Response]
203
+ describe 'start_whats_app_caller_id_verification test' do
204
+ it 'should work' do
205
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
206
+ end
207
+ end
208
+
196
209
  # unit tests for update_whats_app_calling
197
210
  # Update calling config
198
211
  # Update fields on an already-enabled number. Only fields present in the body are written; &#x60;undefined&#x60; leaves the stored value alone, explicit &#x60;null&#x60; clears a nullable field. No Meta side effect, this only changes local routing state consumed by the Telnyx webhook handler.
@@ -219,4 +232,17 @@ describe 'WhatsAppCallingApi' do
219
232
  end
220
233
  end
221
234
 
235
+ # unit tests for verify_whats_app_caller_id
236
+ # Confirm the caller-ID verification code
237
+ # Submits the one-time code the number received. On success, &#x60;tel:&#x60; call forwards present the business number itself as caller ID (&#x60;callerIdMode: business&#x60;).
238
+ # @param id Phone number record ID (from GET /v1/phone-numbers).
239
+ # @param verify_whats_app_caller_id_request
240
+ # @param [Hash] opts the optional parameters
241
+ # @return [VerifySmsRegistrationOtp200Response]
242
+ describe 'verify_whats_app_caller_id test' do
243
+ it 'should work' do
244
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
245
+ end
246
+ end
247
+
222
248
  end
@@ -51,4 +51,14 @@ describe Zernio::EnableWhatsAppCallingLegacy200Response do
51
51
  end
52
52
  end
53
53
 
54
+ describe 'test attribute "caller_id_mode"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["business", "platform"])
58
+ # validator.allowable_values.each do |value|
59
+ # expect { instance.caller_id_mode = value }.not_to raise_error
60
+ # end
61
+ end
62
+ end
63
+
54
64
  end
@@ -81,4 +81,20 @@ describe Zernio::GetWhatsAppCalling200Response do
81
81
  end
82
82
  end
83
83
 
84
+ describe 'test attribute "caller_id_mode"' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["business", "platform"])
88
+ # validator.allowable_values.each do |value|
89
+ # expect { instance.caller_id_mode = value }.not_to raise_error
90
+ # end
91
+ end
92
+ end
93
+
94
+ describe 'test attribute "caller_id_verified"' 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
+
84
100
  end
@@ -81,4 +81,20 @@ describe Zernio::GetWhatsAppCallingConfig200Response do
81
81
  end
82
82
  end
83
83
 
84
+ describe 'test attribute "caller_id_mode"' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["business", "platform"])
88
+ # validator.allowable_values.each do |value|
89
+ # expect { instance.caller_id_mode = value }.not_to raise_error
90
+ # end
91
+ end
92
+ end
93
+
94
+ describe 'test attribute "caller_id_verified"' 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
+
84
100
  end
@@ -0,0 +1,52 @@
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::StartWhatsAppCallerIdVerification200Response
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zernio::StartWhatsAppCallerIdVerification200Response do
21
+ #let(:instance) { Zernio::StartWhatsAppCallerIdVerification200Response.new }
22
+
23
+ describe 'test an instance of StartWhatsAppCallerIdVerification200Response' do
24
+ it 'should create an instance of StartWhatsAppCallerIdVerification200Response' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zernio::StartWhatsAppCallerIdVerification200Response)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "verified"' 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_sent"' 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 "method"' 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', ["sms", "call"])
46
+ # validator.allowable_values.each do |value|
47
+ # expect { instance.method = value }.not_to raise_error
48
+ # end
49
+ end
50
+ end
51
+
52
+ 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::StartWhatsAppCallerIdVerificationRequest
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zernio::StartWhatsAppCallerIdVerificationRequest do
21
+ #let(:instance) { Zernio::StartWhatsAppCallerIdVerificationRequest.new }
22
+
23
+ describe 'test an instance of StartWhatsAppCallerIdVerificationRequest' do
24
+ it 'should create an instance of StartWhatsAppCallerIdVerificationRequest' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zernio::StartWhatsAppCallerIdVerificationRequest)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "method"' 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', ["sms", "call"])
34
+ # validator.allowable_values.each do |value|
35
+ # expect { instance.method = value }.not_to raise_error
36
+ # end
37
+ end
38
+ end
39
+
40
+ 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::VerifyWhatsAppCallerIdRequest
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zernio::VerifyWhatsAppCallerIdRequest do
21
+ #let(:instance) { Zernio::VerifyWhatsAppCallerIdRequest.new }
22
+
23
+ describe 'test an instance of VerifyWhatsAppCallerIdRequest' do
24
+ it 'should create an instance of VerifyWhatsAppCallerIdRequest' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zernio::VerifyWhatsAppCallerIdRequest)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "code"' 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
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.619
4
+ version: 0.0.621
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -1315,6 +1315,8 @@ files:
1315
1315
  - docs/StartSmsRegistrationRequestBrand.md
1316
1316
  - docs/StartSmsRegistrationRequestCampaign.md
1317
1317
  - docs/StartSmsRegistrationRequestTollFree.md
1318
+ - docs/StartWhatsAppCallerIdVerification200Response.md
1319
+ - docs/StartWhatsAppCallerIdVerificationRequest.md
1318
1320
  - docs/SubmitPhoneNumberKyc200Response.md
1319
1321
  - docs/SubmitPhoneNumberKyc200ResponseNumbersInner.md
1320
1322
  - docs/SubmitPhoneNumberKyc200ResponsePhoneNumber.md
@@ -1548,6 +1550,7 @@ files:
1548
1550
  - docs/VerifyApi.md
1549
1551
  - docs/VerifySmsRegistrationOtp200Response.md
1550
1552
  - docs/VerifySmsRegistrationOtpRequest.md
1553
+ - docs/VerifyWhatsAppCallerIdRequest.md
1551
1554
  - docs/VoiceApi.md
1552
1555
  - docs/VoteRedditThingRequest.md
1553
1556
  - docs/Webhook.md
@@ -2943,6 +2946,8 @@ files:
2943
2946
  - lib/zernio-sdk/models/start_sms_registration_request_brand.rb
2944
2947
  - lib/zernio-sdk/models/start_sms_registration_request_campaign.rb
2945
2948
  - lib/zernio-sdk/models/start_sms_registration_request_toll_free.rb
2949
+ - lib/zernio-sdk/models/start_whats_app_caller_id_verification200_response.rb
2950
+ - lib/zernio-sdk/models/start_whats_app_caller_id_verification_request.rb
2946
2951
  - lib/zernio-sdk/models/submit_phone_number_kyc200_response.rb
2947
2952
  - lib/zernio-sdk/models/submit_phone_number_kyc200_response_numbers_inner.rb
2948
2953
  - lib/zernio-sdk/models/submit_phone_number_kyc200_response_phone_number.rb
@@ -3170,6 +3175,7 @@ files:
3170
3175
  - lib/zernio-sdk/models/verification.rb
3171
3176
  - lib/zernio-sdk/models/verify_sms_registration_otp200_response.rb
3172
3177
  - lib/zernio-sdk/models/verify_sms_registration_otp_request.rb
3178
+ - lib/zernio-sdk/models/verify_whats_app_caller_id_request.rb
3173
3179
  - lib/zernio-sdk/models/vote_reddit_thing_request.rb
3174
3180
  - lib/zernio-sdk/models/webhook.rb
3175
3181
  - lib/zernio-sdk/models/webhook_log.rb
@@ -4549,6 +4555,8 @@ files:
4549
4555
  - spec/models/start_sms_registration_request_campaign_spec.rb
4550
4556
  - spec/models/start_sms_registration_request_spec.rb
4551
4557
  - spec/models/start_sms_registration_request_toll_free_spec.rb
4558
+ - spec/models/start_whats_app_caller_id_verification200_response_spec.rb
4559
+ - spec/models/start_whats_app_caller_id_verification_request_spec.rb
4552
4560
  - spec/models/submit_phone_number_kyc200_response_numbers_inner_spec.rb
4553
4561
  - spec/models/submit_phone_number_kyc200_response_phone_number_spec.rb
4554
4562
  - spec/models/submit_phone_number_kyc200_response_spec.rb
@@ -4776,6 +4784,7 @@ files:
4776
4784
  - spec/models/verification_spec.rb
4777
4785
  - spec/models/verify_sms_registration_otp200_response_spec.rb
4778
4786
  - spec/models/verify_sms_registration_otp_request_spec.rb
4787
+ - spec/models/verify_whats_app_caller_id_request_spec.rb
4779
4788
  - spec/models/vote_reddit_thing_request_spec.rb
4780
4789
  - spec/models/webhook_log_spec.rb
4781
4790
  - spec/models/webhook_payload_account_ads_initial_sync_completed_account_spec.rb
@@ -4886,7 +4895,7 @@ files:
4886
4895
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
4887
4896
  - spec/models/you_tube_video_retention_response_spec.rb
4888
4897
  - spec/spec_helper.rb
4889
- - zernio-sdk-0.0.619.gem
4898
+ - zernio-sdk-0.0.621.gem
4890
4899
  - zernio-sdk.gemspec
4891
4900
  homepage: https://openapi-generator.tech
4892
4901
  licenses:
@@ -5152,6 +5161,7 @@ test_files:
5152
5161
  - spec/models/webhook_payload_account_ads_initial_sync_completed_sync_spec.rb
5153
5162
  - spec/models/get_whats_app_call_permissions200_response_spec.rb
5154
5163
  - spec/models/get_sms_registration200_response_campaign_content_spec.rb
5164
+ - spec/models/start_whats_app_caller_id_verification200_response_spec.rb
5155
5165
  - spec/models/list_form_leads200_response_spec.rb
5156
5166
  - spec/models/billing_snapshot_status_spec.rb
5157
5167
  - spec/models/get_phone_number200_response_spec.rb
@@ -6430,6 +6440,7 @@ test_files:
6430
6440
  - spec/models/on_whats_app_number_activated_request_spec.rb
6431
6441
  - spec/models/like_inbox_comment_request_spec.rb
6432
6442
  - spec/models/activate_workflow200_response_workflow_spec.rb
6443
+ - spec/models/verify_whats_app_caller_id_request_spec.rb
6433
6444
  - spec/models/preflight_sms_registration200_response_spec.rb
6434
6445
  - spec/models/set_whatsapp_business_username_request_spec.rb
6435
6446
  - spec/models/update_ad_set_request_spec.rb
@@ -6471,6 +6482,7 @@ test_files:
6471
6482
  - spec/models/create_phone_number_kyc_link_request_branding_spec.rb
6472
6483
  - spec/models/get_google_business_services200_response_services_inner_spec.rb
6473
6484
  - spec/models/get_whats_app_display_name200_response_spec.rb
6485
+ - spec/models/start_whats_app_caller_id_verification_request_spec.rb
6474
6486
  - spec/models/search_inbox_conversations200_response_meta_spec.rb
6475
6487
  - spec/models/list_inbox_reviews200_response_data_inner_reply_spec.rb
6476
6488
  - spec/models/send_conversions_request_spec.rb
Binary file