railsware-telesign 0.0.2

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.
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 [name of plugin creator]
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.markdown ADDED
@@ -0,0 +1,66 @@
1
+ Telesign
2
+ ========
3
+
4
+ Telesign is a Rails plugin for interacting with the [Telesign](http://telesign.com) Phone Verification service.
5
+
6
+ Installation with Bundler!
7
+ -----------------------------
8
+
9
+ Add the following do your bundler file:
10
+
11
+ gem "railsware-telesign"
12
+
13
+ And then somewhere in a Rails initializer:
14
+
15
+ Telesign::ApiRequest.customer_id = <Your Telesign CustomerID>
16
+ Telesign::ApiRequest.authentication_id = <Your Telesign AuthenticationID>
17
+
18
+ Sample Usage
19
+ ------------
20
+
21
+ PhoneID and Phone Verification calls require a phone object.
22
+
23
+ phone = Telesign::Phone.new("555555555", "United States")
24
+
25
+ Telesign provides a PhoneID service for identifying phone numbers.
26
+ This is useful for stopping users from entering phone numbers which are easily obtained, such as Pre-Paid Mobile or Non-Fixed VOIP phones.
27
+
28
+ identity = Telesign.identify(phone)
29
+
30
+ identity.country
31
+ => "US"
32
+
33
+ identity.city
34
+ => "San Francisco"
35
+
36
+ identity.phone_type == Telesign::PhoneType::MOBILE
37
+ => true
38
+
39
+ Phone Verification requires a random verification code to be read to the callee.
40
+
41
+ code = Telesign.verification_code
42
+
43
+ # Calls the phone number provided and reads the callee the verification code
44
+ verification = Telesign.call(phone, code)
45
+
46
+ reference_id = verification.reference_id
47
+
48
+ You can also verify using a text message:
49
+
50
+ verification = Telesign.sms(phone, code)
51
+
52
+ After calling the user, you should save the random code and the reference_id for later use. The random code will be used for comparison with the code entered by your user through a form, which will determine whether they are phone verified or not.
53
+
54
+ You can also request the status of a specific call, using the previously saved reference_id:
55
+
56
+ status = Telesign.status(reference_id)
57
+
58
+ status.answered?
59
+ => true
60
+
61
+ Contributing
62
+ ------------
63
+
64
+ [Fork](http://help.github.com/forking) the project and submit pull requests.
65
+
66
+
data/lib/telesign.rb ADDED
@@ -0,0 +1,60 @@
1
+ module Telesign
2
+
3
+ def self.identify(phone)
4
+ request = PhoneID::Request.new(phone)
5
+ yield(request) if block_given?
6
+ PhoneID::Response.new(request.call)
7
+ end
8
+
9
+ def self.call(phone, verification_code)
10
+ request = Call::Request.new(phone)
11
+ request.verification_code = verification_code
12
+ yield(request) if block_given?
13
+ Call::Response.new(request.call)
14
+ end
15
+
16
+ def self.sms(phone, verification_code)
17
+ request = SMS::Request.new(phone)
18
+ request.verification_code = verification_code
19
+ yield(request) if block_given?
20
+ SMS::Response.new(request.call)
21
+ end
22
+
23
+ def self.status(reference_id, verification_code = nil)
24
+ request = Status::Request.new(reference_id)
25
+ request.verification_code = verification_code
26
+ yield(request) if block_given?
27
+ Status::Response.new(request.call)
28
+ end
29
+
30
+ ##
31
+ # Generates a random 3 digit integer without leading zeroes.
32
+ def self.verification_code
33
+ rand(899) + 100
34
+ end
35
+ end
36
+
37
+ require 'forwardable'
38
+
39
+ require 'telesign/phone'
40
+ require 'telesign/lib/country'
41
+ require 'telesign/lib/exceptions'
42
+ require 'telesign/lib/phone_type'
43
+ require 'telesign/lib/language'
44
+
45
+ require 'telesign/api_request'
46
+ require 'telesign/api_response'
47
+ require 'telesign/phone_id/request'
48
+ require 'telesign/phone_id/response'
49
+ require 'telesign/phone_verification/request'
50
+ require 'telesign/phone_verification/response'
51
+ require 'telesign/status/request'
52
+ require 'telesign/status/response'
53
+ require 'telesign/call/request'
54
+ require 'telesign/call/response'
55
+ require 'telesign/sms/request'
56
+ require 'telesign/sms/response'
57
+
58
+ require 'telesign/api/default'
59
+ require 'telesign/api/defaultMappingRegistry'
60
+ require 'telesign/api/defaultDriver'
@@ -0,0 +1,874 @@
1
+ require 'xsd/qname'
2
+
3
+ module Telesign; module API
4
+
5
+
6
+ # {https://www.telesign.com/api/}Version
7
+ # number - SOAP::SOAPString
8
+ class Version
9
+ attr_accessor :number
10
+
11
+ def initialize(number = nil)
12
+ @number = number
13
+ end
14
+ end
15
+
16
+ # {https://www.telesign.com/api/}SMS
17
+ # referenceID - SOAP::SOAPString
18
+ # aPIError - Telesign::API::APIErrorResponse
19
+ class SMS
20
+ attr_accessor :referenceID
21
+ attr_accessor :aPIError
22
+
23
+ def initialize(referenceID = nil, aPIError = nil)
24
+ @referenceID = referenceID
25
+ @aPIError = aPIError
26
+ end
27
+ end
28
+
29
+ # {https://www.telesign.com/api/}APIErrorResponse
30
+ # code - SOAP::SOAPInt
31
+ # message - SOAP::SOAPString
32
+ class APIErrorResponse
33
+ attr_accessor :code
34
+ attr_accessor :message
35
+
36
+ def initialize(code = nil, message = nil)
37
+ @code = code
38
+ @message = message
39
+ end
40
+ end
41
+
42
+ # {https://www.telesign.com/api/}PhoneID
43
+ # countryCode - SOAP::SOAPString
44
+ # originalPhoneNumber - SOAP::SOAPString
45
+ # cleansedPhoneNumber - SOAP::SOAPString
46
+ # cleansedCode - SOAP::SOAPString
47
+ # city - SOAP::SOAPString
48
+ # state - SOAP::SOAPString
49
+ # zip - SOAP::SOAPString
50
+ # primaryMetroCode - SOAP::SOAPString
51
+ # county - SOAP::SOAPString
52
+ # timeZone - SOAP::SOAPString
53
+ # timeZoneUTCMin - SOAP::SOAPString
54
+ # timeZoneUTCMax - SOAP::SOAPString
55
+ # latitude - SOAP::SOAPString
56
+ # longitude - SOAP::SOAPString
57
+ # country - SOAP::SOAPString
58
+ # countryName - SOAP::SOAPString
59
+ # minNumLength - SOAP::SOAPString
60
+ # maxNumLength - SOAP::SOAPString
61
+ # referenceID - SOAP::SOAPString
62
+ # typeofPhone - SOAP::SOAPString
63
+ # aPIError - Telesign::API::APIErrorResponse
64
+ class PhoneID
65
+ attr_accessor :countryCode
66
+ attr_accessor :originalPhoneNumber
67
+ attr_accessor :cleansedPhoneNumber
68
+ attr_accessor :cleansedCode
69
+ attr_accessor :city
70
+ attr_accessor :state
71
+ attr_accessor :zip
72
+ attr_accessor :primaryMetroCode
73
+ attr_accessor :county
74
+ attr_accessor :timeZone
75
+ attr_accessor :timeZoneUTCMin
76
+ attr_accessor :timeZoneUTCMax
77
+ attr_accessor :latitude
78
+ attr_accessor :longitude
79
+ attr_accessor :country
80
+ attr_accessor :countryName
81
+ attr_accessor :minNumLength
82
+ attr_accessor :maxNumLength
83
+ attr_accessor :referenceID
84
+ attr_accessor :typeofPhone
85
+ attr_accessor :aPIError
86
+
87
+ def initialize(countryCode = nil, originalPhoneNumber = nil, cleansedPhoneNumber = nil, cleansedCode = nil, city = nil, state = nil, zip = nil, primaryMetroCode = nil, county = nil, timeZone = nil, timeZoneUTCMin = nil, timeZoneUTCMax = nil, latitude = nil, longitude = nil, country = nil, countryName = nil, minNumLength = nil, maxNumLength = nil, referenceID = nil, typeofPhone = nil, aPIError = nil)
88
+ @countryCode = countryCode
89
+ @originalPhoneNumber = originalPhoneNumber
90
+ @cleansedPhoneNumber = cleansedPhoneNumber
91
+ @cleansedCode = cleansedCode
92
+ @city = city
93
+ @state = state
94
+ @zip = zip
95
+ @primaryMetroCode = primaryMetroCode
96
+ @county = county
97
+ @timeZone = timeZone
98
+ @timeZoneUTCMin = timeZoneUTCMin
99
+ @timeZoneUTCMax = timeZoneUTCMax
100
+ @latitude = latitude
101
+ @longitude = longitude
102
+ @country = country
103
+ @countryName = countryName
104
+ @minNumLength = minNumLength
105
+ @maxNumLength = maxNumLength
106
+ @referenceID = referenceID
107
+ @typeofPhone = typeofPhone
108
+ @aPIError = aPIError
109
+ end
110
+ end
111
+
112
+ # {https://www.telesign.com/api/}STATUS
113
+ # statusCode - SOAP::SOAPString
114
+ # verificationCodeValid - SOAP::SOAPString
115
+ # additional - SOAP::SOAPString
116
+ # keyPress - SOAP::SOAPString
117
+ # aPIError - Telesign::API::APIErrorResponse
118
+ class STATUS
119
+ attr_accessor :statusCode
120
+ attr_accessor :verificationCodeValid
121
+ attr_accessor :additional
122
+ attr_accessor :keyPress
123
+ attr_accessor :aPIError
124
+
125
+ def initialize(statusCode = nil, verificationCodeValid = nil, additional = nil, keyPress = nil, aPIError = nil)
126
+ @statusCode = statusCode
127
+ @verificationCodeValid = verificationCodeValid
128
+ @additional = additional
129
+ @keyPress = keyPress
130
+ @aPIError = aPIError
131
+ end
132
+ end
133
+
134
+ # {https://www.telesign.com/api/}Call
135
+ # referenceID - SOAP::SOAPString
136
+ # aPIError - Telesign::API::APIErrorResponse
137
+ class Call
138
+ attr_accessor :referenceID
139
+ attr_accessor :aPIError
140
+
141
+ def initialize(referenceID = nil, aPIError = nil)
142
+ @referenceID = referenceID
143
+ @aPIError = aPIError
144
+ end
145
+ end
146
+
147
+ # {https://www.telesign.com/api/}PhoneIDPlatinum
148
+ # countryCode - SOAP::SOAPString
149
+ # originalPhoneNumber - SOAP::SOAPString
150
+ # cleansedPhoneNumber - SOAP::SOAPString
151
+ # cleansedCode - SOAP::SOAPString
152
+ # phoneCity - SOAP::SOAPString
153
+ # phoneState - SOAP::SOAPString
154
+ # phoneZip - SOAP::SOAPString
155
+ # primaryMetroCode - SOAP::SOAPString
156
+ # phoneCounty - SOAP::SOAPString
157
+ # phoneLatitude - SOAP::SOAPString
158
+ # phoneLongitude - SOAP::SOAPString
159
+ # phoneCountry - SOAP::SOAPString
160
+ # phoneCountryName - SOAP::SOAPString
161
+ # minNumLength - SOAP::SOAPString
162
+ # maxNumLength - SOAP::SOAPString
163
+ # referenceID - SOAP::SOAPString
164
+ # typeofPhone - SOAP::SOAPString
165
+ # newAreaCode - SOAP::SOAPString
166
+ # dialable - SOAP::SOAPString
167
+ # pointCode - SOAP::SOAPString
168
+ # nameType - SOAP::SOAPString
169
+ # name1 - SOAP::SOAPString
170
+ # name2 - SOAP::SOAPString
171
+ # name3 - SOAP::SOAPString
172
+ # addressStatus - SOAP::SOAPString
173
+ # addressType - SOAP::SOAPString
174
+ # buildingName - SOAP::SOAPString
175
+ # address1Number - SOAP::SOAPString
176
+ # streetPreDirection - SOAP::SOAPString
177
+ # streetName - SOAP::SOAPString
178
+ # streetType - SOAP::SOAPString
179
+ # streetPostDirection - SOAP::SOAPString
180
+ # address2Number - SOAP::SOAPString
181
+ # address2Type - SOAP::SOAPString
182
+ # addressCity - SOAP::SOAPString
183
+ # addressState - SOAP::SOAPString
184
+ # addressZip - SOAP::SOAPString
185
+ # addressZipPlus4 - SOAP::SOAPString
186
+ # addressCountryCode - SOAP::SOAPString
187
+ # addressCountryName - SOAP::SOAPString
188
+ # streetNameAccent - SOAP::SOAPString
189
+ # addressCityAccent - SOAP::SOAPString
190
+ # addressStateAccent - SOAP::SOAPString
191
+ # fIPSCode - SOAP::SOAPString
192
+ # deliveryPointCode - SOAP::SOAPString
193
+ # carrierRoute - SOAP::SOAPString
194
+ # routeTypeDesc - SOAP::SOAPString
195
+ # routeTypeNum - SOAP::SOAPString
196
+ # addressTimeZoneCode - SOAP::SOAPString
197
+ # addressTimeZoneUTCMin - SOAP::SOAPString
198
+ # addressTimeZoneUTCMax - SOAP::SOAPString
199
+ # dSTObserved - SOAP::SOAPString
200
+ # spatiallyInconsistent - SOAP::SOAPString
201
+ # uniqueSource - SOAP::SOAPString
202
+ # aPIError - Telesign::API::APIErrorResponse
203
+ class PhoneIDPlatinum
204
+ attr_accessor :countryCode
205
+ attr_accessor :originalPhoneNumber
206
+ attr_accessor :cleansedPhoneNumber
207
+ attr_accessor :cleansedCode
208
+ attr_accessor :phoneCity
209
+ attr_accessor :phoneState
210
+ attr_accessor :phoneZip
211
+ attr_accessor :primaryMetroCode
212
+ attr_accessor :phoneCounty
213
+ attr_accessor :phoneLatitude
214
+ attr_accessor :phoneLongitude
215
+ attr_accessor :phoneCountry
216
+ attr_accessor :phoneCountryName
217
+ attr_accessor :minNumLength
218
+ attr_accessor :maxNumLength
219
+ attr_accessor :referenceID
220
+ attr_accessor :typeofPhone
221
+ attr_accessor :newAreaCode
222
+ attr_accessor :dialable
223
+ attr_accessor :pointCode
224
+ attr_accessor :nameType
225
+ attr_accessor :name1
226
+ attr_accessor :name2
227
+ attr_accessor :name3
228
+ attr_accessor :addressStatus
229
+ attr_accessor :addressType
230
+ attr_accessor :buildingName
231
+ attr_accessor :address1Number
232
+ attr_accessor :streetPreDirection
233
+ attr_accessor :streetName
234
+ attr_accessor :streetType
235
+ attr_accessor :streetPostDirection
236
+ attr_accessor :address2Number
237
+ attr_accessor :address2Type
238
+ attr_accessor :addressCity
239
+ attr_accessor :addressState
240
+ attr_accessor :addressZip
241
+ attr_accessor :addressZipPlus4
242
+ attr_accessor :addressCountryCode
243
+ attr_accessor :addressCountryName
244
+ attr_accessor :streetNameAccent
245
+ attr_accessor :addressCityAccent
246
+ attr_accessor :addressStateAccent
247
+ attr_accessor :fIPSCode
248
+ attr_accessor :deliveryPointCode
249
+ attr_accessor :carrierRoute
250
+ attr_accessor :routeTypeDesc
251
+ attr_accessor :routeTypeNum
252
+ attr_accessor :addressTimeZoneCode
253
+ attr_accessor :addressTimeZoneUTCMin
254
+ attr_accessor :addressTimeZoneUTCMax
255
+ attr_accessor :dSTObserved
256
+ attr_accessor :spatiallyInconsistent
257
+ attr_accessor :uniqueSource
258
+ attr_accessor :aPIError
259
+
260
+ def initialize(countryCode = nil, originalPhoneNumber = nil, cleansedPhoneNumber = nil, cleansedCode = nil, phoneCity = nil, phoneState = nil, phoneZip = nil, primaryMetroCode = nil, phoneCounty = nil, phoneLatitude = nil, phoneLongitude = nil, phoneCountry = nil, phoneCountryName = nil, minNumLength = nil, maxNumLength = nil, referenceID = nil, typeofPhone = nil, newAreaCode = nil, dialable = nil, pointCode = nil, nameType = nil, name1 = nil, name2 = nil, name3 = nil, addressStatus = nil, addressType = nil, buildingName = nil, address1Number = nil, streetPreDirection = nil, streetName = nil, streetType = nil, streetPostDirection = nil, address2Number = nil, address2Type = nil, addressCity = nil, addressState = nil, addressZip = nil, addressZipPlus4 = nil, addressCountryCode = nil, addressCountryName = nil, streetNameAccent = nil, addressCityAccent = nil, addressStateAccent = nil, fIPSCode = nil, deliveryPointCode = nil, carrierRoute = nil, routeTypeDesc = nil, routeTypeNum = nil, addressTimeZoneCode = nil, addressTimeZoneUTCMin = nil, addressTimeZoneUTCMax = nil, dSTObserved = nil, spatiallyInconsistent = nil, uniqueSource = nil, aPIError = nil)
261
+ @countryCode = countryCode
262
+ @originalPhoneNumber = originalPhoneNumber
263
+ @cleansedPhoneNumber = cleansedPhoneNumber
264
+ @cleansedCode = cleansedCode
265
+ @phoneCity = phoneCity
266
+ @phoneState = phoneState
267
+ @phoneZip = phoneZip
268
+ @primaryMetroCode = primaryMetroCode
269
+ @phoneCounty = phoneCounty
270
+ @phoneLatitude = phoneLatitude
271
+ @phoneLongitude = phoneLongitude
272
+ @phoneCountry = phoneCountry
273
+ @phoneCountryName = phoneCountryName
274
+ @minNumLength = minNumLength
275
+ @maxNumLength = maxNumLength
276
+ @referenceID = referenceID
277
+ @typeofPhone = typeofPhone
278
+ @newAreaCode = newAreaCode
279
+ @dialable = dialable
280
+ @pointCode = pointCode
281
+ @nameType = nameType
282
+ @name1 = name1
283
+ @name2 = name2
284
+ @name3 = name3
285
+ @addressStatus = addressStatus
286
+ @addressType = addressType
287
+ @buildingName = buildingName
288
+ @address1Number = address1Number
289
+ @streetPreDirection = streetPreDirection
290
+ @streetName = streetName
291
+ @streetType = streetType
292
+ @streetPostDirection = streetPostDirection
293
+ @address2Number = address2Number
294
+ @address2Type = address2Type
295
+ @addressCity = addressCity
296
+ @addressState = addressState
297
+ @addressZip = addressZip
298
+ @addressZipPlus4 = addressZipPlus4
299
+ @addressCountryCode = addressCountryCode
300
+ @addressCountryName = addressCountryName
301
+ @streetNameAccent = streetNameAccent
302
+ @addressCityAccent = addressCityAccent
303
+ @addressStateAccent = addressStateAccent
304
+ @fIPSCode = fIPSCode
305
+ @deliveryPointCode = deliveryPointCode
306
+ @carrierRoute = carrierRoute
307
+ @routeTypeDesc = routeTypeDesc
308
+ @routeTypeNum = routeTypeNum
309
+ @addressTimeZoneCode = addressTimeZoneCode
310
+ @addressTimeZoneUTCMin = addressTimeZoneUTCMin
311
+ @addressTimeZoneUTCMax = addressTimeZoneUTCMax
312
+ @dSTObserved = dSTObserved
313
+ @spatiallyInconsistent = spatiallyInconsistent
314
+ @uniqueSource = uniqueSource
315
+ @aPIError = aPIError
316
+ end
317
+ end
318
+
319
+ # {https://www.telesign.com/api/}InformationQualityScore
320
+ # referenceID - SOAP::SOAPString
321
+ # score - SOAP::SOAPString
322
+ # phoneVerify - SOAP::SOAPString
323
+ # listingType - SOAP::SOAPString
324
+ # validAddress - SOAP::SOAPString
325
+ # validPhoneNumber - SOAP::SOAPString
326
+ # inService6M - SOAP::SOAPString
327
+ # onDoNotCall - SOAP::SOAPString
328
+ # nearAddress - SOAP::SOAPString
329
+ # recentChange - SOAP::SOAPString
330
+ # addressType - SOAP::SOAPString
331
+ # basedOnPhoneNumber - Telesign::API::BasedOnPhoneNumberResponse
332
+ # basedOnAddress - Telesign::API::BasedOnAddressResponse
333
+ # standardizedAddress - Telesign::API::StandardizedAddressResponse
334
+ # aPIError - Telesign::API::APIErrorResponse
335
+ class InformationQualityScore
336
+ attr_accessor :referenceID
337
+ attr_accessor :score
338
+ attr_accessor :phoneVerify
339
+ attr_accessor :listingType
340
+ attr_accessor :validAddress
341
+ attr_accessor :validPhoneNumber
342
+ attr_accessor :inService6M
343
+ attr_accessor :onDoNotCall
344
+ attr_accessor :nearAddress
345
+ attr_accessor :recentChange
346
+ attr_accessor :addressType
347
+ attr_accessor :basedOnPhoneNumber
348
+ attr_accessor :basedOnAddress
349
+ attr_accessor :standardizedAddress
350
+ attr_accessor :aPIError
351
+
352
+ def initialize(referenceID = nil, score = nil, phoneVerify = nil, listingType = nil, validAddress = nil, validPhoneNumber = nil, inService6M = nil, onDoNotCall = nil, nearAddress = nil, recentChange = nil, addressType = nil, basedOnPhoneNumber = nil, basedOnAddress = nil, standardizedAddress = nil, aPIError = nil)
353
+ @referenceID = referenceID
354
+ @score = score
355
+ @phoneVerify = phoneVerify
356
+ @listingType = listingType
357
+ @validAddress = validAddress
358
+ @validPhoneNumber = validPhoneNumber
359
+ @inService6M = inService6M
360
+ @onDoNotCall = onDoNotCall
361
+ @nearAddress = nearAddress
362
+ @recentChange = recentChange
363
+ @addressType = addressType
364
+ @basedOnPhoneNumber = basedOnPhoneNumber
365
+ @basedOnAddress = basedOnAddress
366
+ @standardizedAddress = standardizedAddress
367
+ @aPIError = aPIError
368
+ end
369
+ end
370
+
371
+ # {https://www.telesign.com/api/}BasedOnPhoneNumberResponse
372
+ # name - SOAP::SOAPString
373
+ # street - SOAP::SOAPString
374
+ # city - SOAP::SOAPString
375
+ # state - SOAP::SOAPString
376
+ # zip - SOAP::SOAPString
377
+ class BasedOnPhoneNumberResponse
378
+ attr_accessor :name
379
+ attr_accessor :street
380
+ attr_accessor :city
381
+ attr_accessor :state
382
+ attr_accessor :zip
383
+
384
+ def initialize(name = nil, street = nil, city = nil, state = nil, zip = nil)
385
+ @name = name
386
+ @street = street
387
+ @city = city
388
+ @state = state
389
+ @zip = zip
390
+ end
391
+ end
392
+
393
+ # {https://www.telesign.com/api/}BasedOnAddressResponse
394
+ # name - SOAP::SOAPString
395
+ # street - SOAP::SOAPString
396
+ # city - SOAP::SOAPString
397
+ # state - SOAP::SOAPString
398
+ # zip - SOAP::SOAPString
399
+ # phoneNumber - SOAP::SOAPString
400
+ class BasedOnAddressResponse
401
+ attr_accessor :name
402
+ attr_accessor :street
403
+ attr_accessor :city
404
+ attr_accessor :state
405
+ attr_accessor :zip
406
+ attr_accessor :phoneNumber
407
+
408
+ def initialize(name = nil, street = nil, city = nil, state = nil, zip = nil, phoneNumber = nil)
409
+ @name = name
410
+ @street = street
411
+ @city = city
412
+ @state = state
413
+ @zip = zip
414
+ @phoneNumber = phoneNumber
415
+ end
416
+ end
417
+
418
+ # {https://www.telesign.com/api/}StandardizedAddressResponse
419
+ # line1 - SOAP::SOAPString
420
+ # line2 - SOAP::SOAPString
421
+ class StandardizedAddressResponse
422
+ attr_accessor :line1
423
+ attr_accessor :line2
424
+
425
+ def initialize(line1 = nil, line2 = nil)
426
+ @line1 = line1
427
+ @line2 = line2
428
+ end
429
+ end
430
+
431
+ # {https://www.telesign.com/api/}FraudAnalyzer
432
+ # referenceID - SOAP::SOAPString
433
+ # countryMatch - SOAP::SOAPString
434
+ # countryCode - SOAP::SOAPString
435
+ # highRiskCountry - SOAP::SOAPString
436
+ # iPBillingDistance - SOAP::SOAPString
437
+ # iPRegion - SOAP::SOAPString
438
+ # iPCity - SOAP::SOAPString
439
+ # iPLatitude - SOAP::SOAPString
440
+ # iPLongitude - SOAP::SOAPString
441
+ # iPISP - SOAP::SOAPString
442
+ # iPOrg - SOAP::SOAPString
443
+ # anonymousProxy - SOAP::SOAPString
444
+ # proxyScore - SOAP::SOAPString
445
+ # isTransparentProxy - SOAP::SOAPString
446
+ # freeEmail - SOAP::SOAPString
447
+ # highRiskEmail - SOAP::SOAPString
448
+ # highRiskPassword - SOAP::SOAPString
449
+ # highRiskUsername - SOAP::SOAPString
450
+ # binMatch - SOAP::SOAPString
451
+ # binCountry - SOAP::SOAPString
452
+ # binNameMatch - SOAP::SOAPString
453
+ # binName - SOAP::SOAPString
454
+ # binPhoneMatch - SOAP::SOAPString
455
+ # binPhone - SOAP::SOAPString
456
+ # phoneNumberInBillingLocation - SOAP::SOAPString
457
+ # shipForward - SOAP::SOAPString
458
+ # cityZipMatch - SOAP::SOAPString
459
+ # shipCityZipMatch - SOAP::SOAPString
460
+ # fraudScore - SOAP::SOAPString
461
+ # fraudScoreDescription - SOAP::SOAPString
462
+ # aPIError - Telesign::API::APIErrorResponse
463
+ class FraudAnalyzer
464
+ attr_accessor :referenceID
465
+ attr_accessor :countryMatch
466
+ attr_accessor :countryCode
467
+ attr_accessor :highRiskCountry
468
+ attr_accessor :iPBillingDistance
469
+ attr_accessor :iPRegion
470
+ attr_accessor :iPCity
471
+ attr_accessor :iPLatitude
472
+ attr_accessor :iPLongitude
473
+ attr_accessor :iPISP
474
+ attr_accessor :iPOrg
475
+ attr_accessor :anonymousProxy
476
+ attr_accessor :proxyScore
477
+ attr_accessor :isTransparentProxy
478
+ attr_accessor :freeEmail
479
+ attr_accessor :highRiskEmail
480
+ attr_accessor :highRiskPassword
481
+ attr_accessor :highRiskUsername
482
+ attr_accessor :binMatch
483
+ attr_accessor :binCountry
484
+ attr_accessor :binNameMatch
485
+ attr_accessor :binName
486
+ attr_accessor :binPhoneMatch
487
+ attr_accessor :binPhone
488
+ attr_accessor :phoneNumberInBillingLocation
489
+ attr_accessor :shipForward
490
+ attr_accessor :cityZipMatch
491
+ attr_accessor :shipCityZipMatch
492
+ attr_accessor :fraudScore
493
+ attr_accessor :fraudScoreDescription
494
+ attr_accessor :aPIError
495
+
496
+ def initialize(referenceID = nil, countryMatch = nil, countryCode = nil, highRiskCountry = nil, iPBillingDistance = nil, iPRegion = nil, iPCity = nil, iPLatitude = nil, iPLongitude = nil, iPISP = nil, iPOrg = nil, anonymousProxy = nil, proxyScore = nil, isTransparentProxy = nil, freeEmail = nil, highRiskEmail = nil, highRiskPassword = nil, highRiskUsername = nil, binMatch = nil, binCountry = nil, binNameMatch = nil, binName = nil, binPhoneMatch = nil, binPhone = nil, phoneNumberInBillingLocation = nil, shipForward = nil, cityZipMatch = nil, shipCityZipMatch = nil, fraudScore = nil, fraudScoreDescription = nil, aPIError = nil)
497
+ @referenceID = referenceID
498
+ @countryMatch = countryMatch
499
+ @countryCode = countryCode
500
+ @highRiskCountry = highRiskCountry
501
+ @iPBillingDistance = iPBillingDistance
502
+ @iPRegion = iPRegion
503
+ @iPCity = iPCity
504
+ @iPLatitude = iPLatitude
505
+ @iPLongitude = iPLongitude
506
+ @iPISP = iPISP
507
+ @iPOrg = iPOrg
508
+ @anonymousProxy = anonymousProxy
509
+ @proxyScore = proxyScore
510
+ @isTransparentProxy = isTransparentProxy
511
+ @freeEmail = freeEmail
512
+ @highRiskEmail = highRiskEmail
513
+ @highRiskPassword = highRiskPassword
514
+ @highRiskUsername = highRiskUsername
515
+ @binMatch = binMatch
516
+ @binCountry = binCountry
517
+ @binNameMatch = binNameMatch
518
+ @binName = binName
519
+ @binPhoneMatch = binPhoneMatch
520
+ @binPhone = binPhone
521
+ @phoneNumberInBillingLocation = phoneNumberInBillingLocation
522
+ @shipForward = shipForward
523
+ @cityZipMatch = cityZipMatch
524
+ @shipCityZipMatch = shipCityZipMatch
525
+ @fraudScore = fraudScore
526
+ @fraudScoreDescription = fraudScoreDescription
527
+ @aPIError = aPIError
528
+ end
529
+ end
530
+
531
+ # {https://www.telesign.com/api/}RequestAPIversion
532
+ class RequestAPIversion
533
+ def initialize
534
+ end
535
+ end
536
+
537
+ # {https://www.telesign.com/api/}RequestAPIversionResponse
538
+ # requestAPIversionResult - Telesign::API::Version
539
+ class RequestAPIversionResponse
540
+ attr_accessor :requestAPIversionResult
541
+
542
+ def initialize(requestAPIversionResult = nil)
543
+ @requestAPIversionResult = requestAPIversionResult
544
+ end
545
+ end
546
+
547
+ # {https://www.telesign.com/api/}RequestSMS
548
+ # customerID - SOAP::SOAPString
549
+ # authenticationID - SOAP::SOAPString
550
+ # countryCode - SOAP::SOAPString
551
+ # phoneNumber - SOAP::SOAPString
552
+ # language - SOAP::SOAPString
553
+ # verificationCode - SOAP::SOAPString
554
+ # message - SOAP::SOAPString
555
+ class RequestSMS
556
+ attr_accessor :customerID
557
+ attr_accessor :authenticationID
558
+ attr_accessor :countryCode
559
+ attr_accessor :phoneNumber
560
+ attr_accessor :language
561
+ attr_accessor :verificationCode
562
+ attr_accessor :message
563
+
564
+ def initialize(customerID = nil, authenticationID = nil, countryCode = nil, phoneNumber = nil, language = nil, verificationCode = nil, message = nil)
565
+ @customerID = customerID
566
+ @authenticationID = authenticationID
567
+ @countryCode = countryCode
568
+ @phoneNumber = phoneNumber
569
+ @language = language
570
+ @verificationCode = verificationCode
571
+ @message = message
572
+ end
573
+ end
574
+
575
+ # {https://www.telesign.com/api/}RequestSMSResponse
576
+ # requestSMSResult - Telesign::API::SMS
577
+ class RequestSMSResponse
578
+ attr_accessor :requestSMSResult
579
+
580
+ def initialize(requestSMSResult = nil)
581
+ @requestSMSResult = requestSMSResult
582
+ end
583
+ end
584
+
585
+ # {https://www.telesign.com/api/}RequestPhoneID
586
+ # customerID - SOAP::SOAPString
587
+ # authenticationID - SOAP::SOAPString
588
+ # countryCode - SOAP::SOAPString
589
+ # phoneNumber - SOAP::SOAPString
590
+ class RequestPhoneID
591
+ attr_accessor :customerID
592
+ attr_accessor :authenticationID
593
+ attr_accessor :countryCode
594
+ attr_accessor :phoneNumber
595
+
596
+ def initialize(customerID = nil, authenticationID = nil, countryCode = nil, phoneNumber = nil)
597
+ @customerID = customerID
598
+ @authenticationID = authenticationID
599
+ @countryCode = countryCode
600
+ @phoneNumber = phoneNumber
601
+ end
602
+ end
603
+
604
+ # {https://www.telesign.com/api/}RequestPhoneIDResponse
605
+ # requestPhoneIDResult - Telesign::API::PhoneID
606
+ class RequestPhoneIDResponse
607
+ attr_accessor :requestPhoneIDResult
608
+
609
+ def initialize(requestPhoneIDResult = nil)
610
+ @requestPhoneIDResult = requestPhoneIDResult
611
+ end
612
+ end
613
+
614
+ # {https://www.telesign.com/api/}RequestSTATUS
615
+ # customerID - SOAP::SOAPString
616
+ # authenticationID - SOAP::SOAPString
617
+ # referenceID - SOAP::SOAPString
618
+ # verificationCode - SOAP::SOAPString
619
+ class RequestSTATUS
620
+ attr_accessor :customerID
621
+ attr_accessor :authenticationID
622
+ attr_accessor :referenceID
623
+ attr_accessor :verificationCode
624
+
625
+ def initialize(customerID = nil, authenticationID = nil, referenceID = nil, verificationCode = nil)
626
+ @customerID = customerID
627
+ @authenticationID = authenticationID
628
+ @referenceID = referenceID
629
+ @verificationCode = verificationCode
630
+ end
631
+ end
632
+
633
+ # {https://www.telesign.com/api/}RequestSTATUSResponse
634
+ # requestSTATUSResult - Telesign::API::STATUS
635
+ class RequestSTATUSResponse
636
+ attr_accessor :requestSTATUSResult
637
+
638
+ def initialize(requestSTATUSResult = nil)
639
+ @requestSTATUSResult = requestSTATUSResult
640
+ end
641
+ end
642
+
643
+ # {https://www.telesign.com/api/}RequestCALL
644
+ # customerID - SOAP::SOAPString
645
+ # authenticationID - SOAP::SOAPString
646
+ # countryCode - SOAP::SOAPString
647
+ # phoneNumber - SOAP::SOAPString
648
+ # language - SOAP::SOAPString
649
+ # verificationCode - SOAP::SOAPString
650
+ # priority - SOAP::SOAPString
651
+ # delayTime - SOAP::SOAPString
652
+ # redialCount - SOAP::SOAPString
653
+ # extensionContent - SOAP::SOAPString
654
+ # extensionType - SOAP::SOAPString
655
+ # message - SOAP::SOAPString
656
+ # callType - SOAP::SOAPString
657
+ # callerID - SOAP::SOAPString
658
+ # project - SOAP::SOAPString
659
+ # additional - SOAP::SOAPString
660
+ class RequestCALL
661
+ attr_accessor :customerID
662
+ attr_accessor :authenticationID
663
+ attr_accessor :countryCode
664
+ attr_accessor :phoneNumber
665
+ attr_accessor :language
666
+ attr_accessor :verificationCode
667
+ attr_accessor :priority
668
+ attr_accessor :delayTime
669
+ attr_accessor :redialCount
670
+ attr_accessor :extensionContent
671
+ attr_accessor :extensionType
672
+ attr_accessor :message
673
+ attr_accessor :callType
674
+ attr_accessor :callerID
675
+ attr_accessor :project
676
+ attr_accessor :additional
677
+
678
+ def initialize(customerID = nil, authenticationID = nil, countryCode = nil, phoneNumber = nil, language = nil, verificationCode = nil, priority = nil, delayTime = nil, redialCount = nil, extensionContent = nil, extensionType = nil, message = nil, callType = nil, callerID = nil, project = nil, additional = nil)
679
+ @customerID = customerID
680
+ @authenticationID = authenticationID
681
+ @countryCode = countryCode
682
+ @phoneNumber = phoneNumber
683
+ @language = language
684
+ @verificationCode = verificationCode
685
+ @priority = priority
686
+ @delayTime = delayTime
687
+ @redialCount = redialCount
688
+ @extensionContent = extensionContent
689
+ @extensionType = extensionType
690
+ @message = message
691
+ @callType = callType
692
+ @callerID = callerID
693
+ @project = project
694
+ @additional = additional
695
+ end
696
+ end
697
+
698
+ # {https://www.telesign.com/api/}RequestCALLResponse
699
+ # requestCALLResult - Telesign::API::Call
700
+ class RequestCALLResponse
701
+ attr_accessor :requestCALLResult
702
+
703
+ def initialize(requestCALLResult = nil)
704
+ @requestCALLResult = requestCALLResult
705
+ end
706
+ end
707
+
708
+ # {https://www.telesign.com/api/}RequestPhoneIDPlatinum
709
+ # customerID - SOAP::SOAPString
710
+ # authenticationID - SOAP::SOAPString
711
+ # countryCode - SOAP::SOAPString
712
+ # phoneNumber - SOAP::SOAPString
713
+ class RequestPhoneIDPlatinum
714
+ attr_accessor :customerID
715
+ attr_accessor :authenticationID
716
+ attr_accessor :countryCode
717
+ attr_accessor :phoneNumber
718
+
719
+ def initialize(customerID = nil, authenticationID = nil, countryCode = nil, phoneNumber = nil)
720
+ @customerID = customerID
721
+ @authenticationID = authenticationID
722
+ @countryCode = countryCode
723
+ @phoneNumber = phoneNumber
724
+ end
725
+ end
726
+
727
+ # {https://www.telesign.com/api/}RequestPhoneIDPlatinumResponse
728
+ # requestPhoneIDPlatinumResult - Telesign::API::PhoneIDPlatinum
729
+ class RequestPhoneIDPlatinumResponse
730
+ attr_accessor :requestPhoneIDPlatinumResult
731
+
732
+ def initialize(requestPhoneIDPlatinumResult = nil)
733
+ @requestPhoneIDPlatinumResult = requestPhoneIDPlatinumResult
734
+ end
735
+ end
736
+
737
+ # {https://www.telesign.com/api/}RequestInformationQualityScore
738
+ # customerID - SOAP::SOAPString
739
+ # authenticationID - SOAP::SOAPString
740
+ # countryCode - SOAP::SOAPString
741
+ # phoneNumber - SOAP::SOAPString
742
+ # nameType - SOAP::SOAPString
743
+ # name - SOAP::SOAPString
744
+ # street - SOAP::SOAPString
745
+ # city - SOAP::SOAPString
746
+ # state - SOAP::SOAPString
747
+ # zip - SOAP::SOAPString
748
+ class RequestInformationQualityScore
749
+ attr_accessor :customerID
750
+ attr_accessor :authenticationID
751
+ attr_accessor :countryCode
752
+ attr_accessor :phoneNumber
753
+ attr_accessor :nameType
754
+ attr_accessor :name
755
+ attr_accessor :street
756
+ attr_accessor :city
757
+ attr_accessor :state
758
+ attr_accessor :zip
759
+
760
+ def initialize(customerID = nil, authenticationID = nil, countryCode = nil, phoneNumber = nil, nameType = nil, name = nil, street = nil, city = nil, state = nil, zip = nil)
761
+ @customerID = customerID
762
+ @authenticationID = authenticationID
763
+ @countryCode = countryCode
764
+ @phoneNumber = phoneNumber
765
+ @nameType = nameType
766
+ @name = name
767
+ @street = street
768
+ @city = city
769
+ @state = state
770
+ @zip = zip
771
+ end
772
+ end
773
+
774
+ # {https://www.telesign.com/api/}RequestInformationQualityScoreResponse
775
+ # requestInformationQualityScoreResult - Telesign::API::InformationQualityScore
776
+ class RequestInformationQualityScoreResponse
777
+ attr_accessor :requestInformationQualityScoreResult
778
+
779
+ def initialize(requestInformationQualityScoreResult = nil)
780
+ @requestInformationQualityScoreResult = requestInformationQualityScoreResult
781
+ end
782
+ end
783
+
784
+ # {https://www.telesign.com/api/}RequestFraudAnalyzer
785
+ # customerID - SOAP::SOAPString
786
+ # authenticationID - SOAP::SOAPString
787
+ # iPAddress - SOAP::SOAPString
788
+ # country - SOAP::SOAPString
789
+ # city - SOAP::SOAPString
790
+ # region - SOAP::SOAPString
791
+ # zip - SOAP::SOAPString
792
+ # domain - SOAP::SOAPString
793
+ # bin - SOAP::SOAPString
794
+ # binName - SOAP::SOAPString
795
+ # binPhone - SOAP::SOAPString
796
+ # phoneNumber - SOAP::SOAPString
797
+ # forwardedIP - SOAP::SOAPString
798
+ # emailMD5 - SOAP::SOAPString
799
+ # usernameMD5 - SOAP::SOAPString
800
+ # passwordMD5 - SOAP::SOAPString
801
+ # shipAddress - SOAP::SOAPString
802
+ # shipCity - SOAP::SOAPString
803
+ # shipRegion - SOAP::SOAPString
804
+ # shipZip - SOAP::SOAPString
805
+ # shipCountry - SOAP::SOAPString
806
+ # sessionID - SOAP::SOAPString
807
+ # userAgent - SOAP::SOAPString
808
+ # browserLanguage - SOAP::SOAPString
809
+ class RequestFraudAnalyzer
810
+ attr_accessor :customerID
811
+ attr_accessor :authenticationID
812
+ attr_accessor :iPAddress
813
+ attr_accessor :country
814
+ attr_accessor :city
815
+ attr_accessor :region
816
+ attr_accessor :zip
817
+ attr_accessor :domain
818
+ attr_accessor :bin
819
+ attr_accessor :binName
820
+ attr_accessor :binPhone
821
+ attr_accessor :phoneNumber
822
+ attr_accessor :forwardedIP
823
+ attr_accessor :emailMD5
824
+ attr_accessor :usernameMD5
825
+ attr_accessor :passwordMD5
826
+ attr_accessor :shipAddress
827
+ attr_accessor :shipCity
828
+ attr_accessor :shipRegion
829
+ attr_accessor :shipZip
830
+ attr_accessor :shipCountry
831
+ attr_accessor :sessionID
832
+ attr_accessor :userAgent
833
+ attr_accessor :browserLanguage
834
+
835
+ def initialize(customerID = nil, authenticationID = nil, iPAddress = nil, country = nil, city = nil, region = nil, zip = nil, domain = nil, bin = nil, binName = nil, binPhone = nil, phoneNumber = nil, forwardedIP = nil, emailMD5 = nil, usernameMD5 = nil, passwordMD5 = nil, shipAddress = nil, shipCity = nil, shipRegion = nil, shipZip = nil, shipCountry = nil, sessionID = nil, userAgent = nil, browserLanguage = nil)
836
+ @customerID = customerID
837
+ @authenticationID = authenticationID
838
+ @iPAddress = iPAddress
839
+ @country = country
840
+ @city = city
841
+ @region = region
842
+ @zip = zip
843
+ @domain = domain
844
+ @bin = bin
845
+ @binName = binName
846
+ @binPhone = binPhone
847
+ @phoneNumber = phoneNumber
848
+ @forwardedIP = forwardedIP
849
+ @emailMD5 = emailMD5
850
+ @usernameMD5 = usernameMD5
851
+ @passwordMD5 = passwordMD5
852
+ @shipAddress = shipAddress
853
+ @shipCity = shipCity
854
+ @shipRegion = shipRegion
855
+ @shipZip = shipZip
856
+ @shipCountry = shipCountry
857
+ @sessionID = sessionID
858
+ @userAgent = userAgent
859
+ @browserLanguage = browserLanguage
860
+ end
861
+ end
862
+
863
+ # {https://www.telesign.com/api/}RequestFraudAnalyzerResponse
864
+ # requestFraudAnalyzerResult - Telesign::API::FraudAnalyzer
865
+ class RequestFraudAnalyzerResponse
866
+ attr_accessor :requestFraudAnalyzerResult
867
+
868
+ def initialize(requestFraudAnalyzerResult = nil)
869
+ @requestFraudAnalyzerResult = requestFraudAnalyzerResult
870
+ end
871
+ end
872
+
873
+
874
+ end; end