telvri_security 1.0.0
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 +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +96 -0
- data/Rakefile +10 -0
- data/docs/CheckSimSwapDto.md +20 -0
- data/docs/DeveloperAuthApi.md +206 -0
- data/docs/LoginDto.md +20 -0
- data/docs/SIMSwapIntelligenceApi.md +86 -0
- data/docs/SignupDto.md +26 -0
- data/docs/SimSwapResponseDto.md +26 -0
- data/lib/telvri_security/api/developer_auth_api.rb +252 -0
- data/lib/telvri_security/api/sim_swap_intelligence_api.rb +93 -0
- data/lib/telvri_security/api_client.rb +397 -0
- data/lib/telvri_security/api_error.rb +58 -0
- data/lib/telvri_security/api_model_base.rb +88 -0
- data/lib/telvri_security/configuration.rb +316 -0
- data/lib/telvri_security/models/check_sim_swap_dto.rb +216 -0
- data/lib/telvri_security/models/login_dto.rb +201 -0
- data/lib/telvri_security/models/signup_dto.rb +274 -0
- data/lib/telvri_security/models/sim_swap_response_dto.rb +256 -0
- data/lib/telvri_security/version.rb +15 -0
- data/lib/telvri_security.rb +46 -0
- data/spec/api/developer_auth_api_spec.rb +64 -0
- data/spec/api/sim_swap_intelligence_api_spec.rb +48 -0
- data/spec/models/check_sim_swap_dto_spec.rb +42 -0
- data/spec/models/login_dto_spec.rb +42 -0
- data/spec/models/signup_dto_spec.rb +60 -0
- data/spec/models/sim_swap_response_dto_spec.rb +60 -0
- data/spec/spec_helper.rb +111 -0
- data/telvri_security.gemspec +43 -0
- metadata +123 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Telvri Security API Gateway
|
|
3
|
+
|
|
4
|
+
#Developer-first Identity and Security Platform for real-time telco fraud mitigation, including SIM-swap intelligence for trusted application workflows.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.23.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module TelvriSecurity
|
|
17
|
+
class SimSwapResponseDto < ApiModelBase
|
|
18
|
+
# Subscriber phone number in E.164 format.
|
|
19
|
+
attr_accessor :phone_number
|
|
20
|
+
|
|
21
|
+
# Whether the network registry indicates a recent SIM swap.
|
|
22
|
+
attr_accessor :swapped
|
|
23
|
+
|
|
24
|
+
# ISO-8601 timestamp of the most recent SIM-swap signal.
|
|
25
|
+
attr_accessor :last_swapped_at
|
|
26
|
+
|
|
27
|
+
# Resolved mobile network operator or telecom provider (global prefix catalog).
|
|
28
|
+
attr_accessor :provider
|
|
29
|
+
|
|
30
|
+
# Resolved mobile network operator. Alias retained for telco domain consumers.
|
|
31
|
+
attr_accessor :operator
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'phone_number' => :'phoneNumber',
|
|
37
|
+
:'swapped' => :'swapped',
|
|
38
|
+
:'last_swapped_at' => :'lastSwappedAt',
|
|
39
|
+
:'provider' => :'provider',
|
|
40
|
+
:'operator' => :'operator'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Returns attribute mapping this model knows about
|
|
45
|
+
def self.acceptable_attribute_map
|
|
46
|
+
attribute_map
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Returns all the JSON keys this model knows about
|
|
50
|
+
def self.acceptable_attributes
|
|
51
|
+
acceptable_attribute_map.values
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Attribute type mapping.
|
|
55
|
+
def self.openapi_types
|
|
56
|
+
{
|
|
57
|
+
:'phone_number' => :'String',
|
|
58
|
+
:'swapped' => :'Boolean',
|
|
59
|
+
:'last_swapped_at' => :'Time',
|
|
60
|
+
:'provider' => :'String',
|
|
61
|
+
:'operator' => :'String'
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# List of attributes with nullable: true
|
|
66
|
+
def self.openapi_nullable
|
|
67
|
+
Set.new([
|
|
68
|
+
])
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Initializes the object
|
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
73
|
+
def initialize(attributes = {})
|
|
74
|
+
if (!attributes.is_a?(Hash))
|
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TelvriSecurity::SimSwapResponseDto` initialize method"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
79
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
80
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
81
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TelvriSecurity::SimSwapResponseDto`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
83
|
+
end
|
|
84
|
+
h[k.to_sym] = v
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'phone_number')
|
|
88
|
+
self.phone_number = attributes[:'phone_number']
|
|
89
|
+
else
|
|
90
|
+
self.phone_number = nil
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'swapped')
|
|
94
|
+
self.swapped = attributes[:'swapped']
|
|
95
|
+
else
|
|
96
|
+
self.swapped = nil
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'last_swapped_at')
|
|
100
|
+
self.last_swapped_at = attributes[:'last_swapped_at']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'provider')
|
|
104
|
+
self.provider = attributes[:'provider']
|
|
105
|
+
else
|
|
106
|
+
self.provider = nil
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'operator')
|
|
110
|
+
self.operator = attributes[:'operator']
|
|
111
|
+
else
|
|
112
|
+
self.operator = nil
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
117
|
+
# @return Array for valid properties with the reasons
|
|
118
|
+
def list_invalid_properties
|
|
119
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
120
|
+
invalid_properties = Array.new
|
|
121
|
+
if @phone_number.nil?
|
|
122
|
+
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if @swapped.nil?
|
|
126
|
+
invalid_properties.push('invalid value for "swapped", swapped cannot be nil.')
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if @provider.nil?
|
|
130
|
+
invalid_properties.push('invalid value for "provider", provider cannot be nil.')
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if @operator.nil?
|
|
134
|
+
invalid_properties.push('invalid value for "operator", operator cannot be nil.')
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
invalid_properties
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Check to see if the all the properties in the model are valid
|
|
141
|
+
# @return true if the model is valid
|
|
142
|
+
def valid?
|
|
143
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
144
|
+
return false if @phone_number.nil?
|
|
145
|
+
return false if @swapped.nil?
|
|
146
|
+
return false if @provider.nil?
|
|
147
|
+
return false if @operator.nil?
|
|
148
|
+
true
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Custom attribute writer method with validation
|
|
152
|
+
# @param [Object] phone_number Value to be assigned
|
|
153
|
+
def phone_number=(phone_number)
|
|
154
|
+
if phone_number.nil?
|
|
155
|
+
fail ArgumentError, 'phone_number cannot be nil'
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
@phone_number = phone_number
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Custom attribute writer method with validation
|
|
162
|
+
# @param [Object] swapped Value to be assigned
|
|
163
|
+
def swapped=(swapped)
|
|
164
|
+
if swapped.nil?
|
|
165
|
+
fail ArgumentError, 'swapped cannot be nil'
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
@swapped = swapped
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Custom attribute writer method with validation
|
|
172
|
+
# @param [Object] provider Value to be assigned
|
|
173
|
+
def provider=(provider)
|
|
174
|
+
if provider.nil?
|
|
175
|
+
fail ArgumentError, 'provider cannot be nil'
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
@provider = provider
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Custom attribute writer method with validation
|
|
182
|
+
# @param [Object] operator Value to be assigned
|
|
183
|
+
def operator=(operator)
|
|
184
|
+
if operator.nil?
|
|
185
|
+
fail ArgumentError, 'operator cannot be nil'
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
@operator = operator
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Checks equality by comparing each attribute.
|
|
192
|
+
# @param [Object] Object to be compared
|
|
193
|
+
def ==(o)
|
|
194
|
+
return true if self.equal?(o)
|
|
195
|
+
self.class == o.class &&
|
|
196
|
+
phone_number == o.phone_number &&
|
|
197
|
+
swapped == o.swapped &&
|
|
198
|
+
last_swapped_at == o.last_swapped_at &&
|
|
199
|
+
provider == o.provider &&
|
|
200
|
+
operator == o.operator
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# @see the `==` method
|
|
204
|
+
# @param [Object] Object to be compared
|
|
205
|
+
def eql?(o)
|
|
206
|
+
self == o
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Calculates hash code according to all attributes.
|
|
210
|
+
# @return [Integer] Hash code
|
|
211
|
+
def hash
|
|
212
|
+
[phone_number, swapped, last_swapped_at, provider, operator].hash
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Builds the object from hash
|
|
216
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
217
|
+
# @return [Object] Returns the model itself
|
|
218
|
+
def self.build_from_hash(attributes)
|
|
219
|
+
return nil unless attributes.is_a?(Hash)
|
|
220
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
221
|
+
transformed_hash = {}
|
|
222
|
+
openapi_types.each_pair do |key, type|
|
|
223
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
224
|
+
transformed_hash["#{key}"] = nil
|
|
225
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
226
|
+
# check to ensure the input is an array given that the attribute
|
|
227
|
+
# is documented as an array but the input is not
|
|
228
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
229
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
230
|
+
end
|
|
231
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
232
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
new(transformed_hash)
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Returns the object in the form of hash
|
|
239
|
+
# @return [Hash] Returns the object in the form of hash
|
|
240
|
+
def to_hash
|
|
241
|
+
hash = {}
|
|
242
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
243
|
+
value = self.send(attr)
|
|
244
|
+
if value.nil?
|
|
245
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
246
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
hash[param] = _to_hash(value)
|
|
250
|
+
end
|
|
251
|
+
hash
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Telvri Security API Gateway
|
|
3
|
+
|
|
4
|
+
#Developer-first Identity and Security Platform for real-time telco fraud mitigation, including SIM-swap intelligence for trusted application workflows.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.23.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
module TelvriSecurity
|
|
14
|
+
VERSION = '1.0.0'
|
|
15
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Telvri Security API Gateway
|
|
3
|
+
|
|
4
|
+
#Developer-first Identity and Security Platform for real-time telco fraud mitigation, including SIM-swap intelligence for trusted application workflows.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.23.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
# Common files
|
|
14
|
+
require 'telvri_security/api_client'
|
|
15
|
+
require 'telvri_security/api_error'
|
|
16
|
+
require 'telvri_security/api_model_base'
|
|
17
|
+
require 'telvri_security/version'
|
|
18
|
+
require 'telvri_security/configuration'
|
|
19
|
+
|
|
20
|
+
# Models
|
|
21
|
+
require 'telvri_security/models/check_sim_swap_dto'
|
|
22
|
+
require 'telvri_security/models/login_dto'
|
|
23
|
+
require 'telvri_security/models/signup_dto'
|
|
24
|
+
require 'telvri_security/models/sim_swap_response_dto'
|
|
25
|
+
|
|
26
|
+
# APIs
|
|
27
|
+
require 'telvri_security/api/developer_auth_api'
|
|
28
|
+
require 'telvri_security/api/sim_swap_intelligence_api'
|
|
29
|
+
|
|
30
|
+
module TelvriSecurity
|
|
31
|
+
class << self
|
|
32
|
+
# Customize default settings for the SDK using block.
|
|
33
|
+
# TelvriSecurity.configure do |config|
|
|
34
|
+
# config.username = "xxx"
|
|
35
|
+
# config.password = "xxx"
|
|
36
|
+
# end
|
|
37
|
+
# If no block given, return the default Configuration object.
|
|
38
|
+
def configure
|
|
39
|
+
if block_given?
|
|
40
|
+
yield(Configuration.default)
|
|
41
|
+
else
|
|
42
|
+
Configuration.default
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Telvri Security API Gateway
|
|
3
|
+
|
|
4
|
+
#Developer-first Identity and Security Platform for real-time telco fraud mitigation, including SIM-swap intelligence for trusted application workflows.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.23.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for TelvriSecurity::DeveloperAuthApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'DeveloperAuthApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = TelvriSecurity::DeveloperAuthApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of DeveloperAuthApi' do
|
|
30
|
+
it 'should create an instance of DeveloperAuthApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(TelvriSecurity::DeveloperAuthApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for auth_controller_login
|
|
36
|
+
# Authenticate a developer account
|
|
37
|
+
# Accepts login credentials and redirects to the dashboard on success.
|
|
38
|
+
# @param email Developer account email address.
|
|
39
|
+
# @param password Account password.
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [nil]
|
|
42
|
+
describe 'auth_controller_login test' 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
|
+
# unit tests for auth_controller_signup
|
|
49
|
+
# Create a developer account
|
|
50
|
+
# Registers a developer account and redirects to the dashboard on success.
|
|
51
|
+
# @param full_name Full name for the developer account.
|
|
52
|
+
# @param email Work email used for dashboard access and API key delivery.
|
|
53
|
+
# @param password Account password.
|
|
54
|
+
# @param confirm_password Password confirmation.
|
|
55
|
+
# @param [Hash] opts the optional parameters
|
|
56
|
+
# @option opts [String] :company Company or team name.
|
|
57
|
+
# @return [nil]
|
|
58
|
+
describe 'auth_controller_signup test' 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,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Telvri Security API Gateway
|
|
3
|
+
|
|
4
|
+
#Developer-first Identity and Security Platform for real-time telco fraud mitigation, including SIM-swap intelligence for trusted application workflows.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.23.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for TelvriSecurity::SIMSwapIntelligenceApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'SIMSwapIntelligenceApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = TelvriSecurity::SIMSwapIntelligenceApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of SIMSwapIntelligenceApi' do
|
|
30
|
+
it 'should create an instance of SIMSwapIntelligenceApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(TelvriSecurity::SIMSwapIntelligenceApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for sim_swap_controller_check_sim_swap
|
|
36
|
+
# Run a real-time SIM-swap risk check
|
|
37
|
+
# Checks a subscriber phone number against mocked telecom registry intelligence and returns whether recent SIM-swap activity is present.
|
|
38
|
+
# @param check_sim_swap_dto
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :x_api_key Developer API key. Alternative: Authorization: Bearer <KEY>.
|
|
41
|
+
# @return [SimSwapResponseDto]
|
|
42
|
+
describe 'sim_swap_controller_check_sim_swap test' 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,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Telvri Security API Gateway
|
|
3
|
+
|
|
4
|
+
#Developer-first Identity and Security Platform for real-time telco fraud mitigation, including SIM-swap intelligence for trusted application workflows.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.23.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for TelvriSecurity::CheckSimSwapDto
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe TelvriSecurity::CheckSimSwapDto do
|
|
21
|
+
#let(:instance) { TelvriSecurity::CheckSimSwapDto.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CheckSimSwapDto' do
|
|
24
|
+
it 'should create an instance of CheckSimSwapDto' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(TelvriSecurity::CheckSimSwapDto)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "phone_number"' 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 "max_age_hours"' 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
|
+
#Telvri Security API Gateway
|
|
3
|
+
|
|
4
|
+
#Developer-first Identity and Security Platform for real-time telco fraud mitigation, including SIM-swap intelligence for trusted application workflows.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.23.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for TelvriSecurity::LoginDto
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe TelvriSecurity::LoginDto do
|
|
21
|
+
#let(:instance) { TelvriSecurity::LoginDto.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of LoginDto' do
|
|
24
|
+
it 'should create an instance of LoginDto' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(TelvriSecurity::LoginDto)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "email"' 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 "password"' 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,60 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Telvri Security API Gateway
|
|
3
|
+
|
|
4
|
+
#Developer-first Identity and Security Platform for real-time telco fraud mitigation, including SIM-swap intelligence for trusted application workflows.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.23.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for TelvriSecurity::SignupDto
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe TelvriSecurity::SignupDto do
|
|
21
|
+
#let(:instance) { TelvriSecurity::SignupDto.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of SignupDto' do
|
|
24
|
+
it 'should create an instance of SignupDto' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(TelvriSecurity::SignupDto)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "full_name"' 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 "email"' 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 "company"' 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 "password"' 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
|
+
describe 'test attribute "confirm_password"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Telvri Security API Gateway
|
|
3
|
+
|
|
4
|
+
#Developer-first Identity and Security Platform for real-time telco fraud mitigation, including SIM-swap intelligence for trusted application workflows.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.23.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for TelvriSecurity::SimSwapResponseDto
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe TelvriSecurity::SimSwapResponseDto do
|
|
21
|
+
#let(:instance) { TelvriSecurity::SimSwapResponseDto.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of SimSwapResponseDto' do
|
|
24
|
+
it 'should create an instance of SimSwapResponseDto' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(TelvriSecurity::SimSwapResponseDto)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "phone_number"' 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 "swapped"' 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 "last_swapped_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
|
+
describe 'test attribute "provider"' 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
|
+
describe 'test attribute "operator"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|