passbase 1.0.3 → 1.1.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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -4
- data/docs/Identity.md +4 -0
- data/docs/IdentityOwner.md +21 -0
- data/docs/ProjectSettings.md +1 -1
- data/lib/passbase.rb +1 -0
- data/lib/passbase/api_client.rb +1 -1
- data/lib/passbase/models/identity.rb +20 -1
- data/lib/passbase/models/identity_owner.rb +229 -0
- data/lib/passbase/models/project_settings.rb +1 -1
- data/lib/passbase/version.rb +1 -1
- data/spec/models/identity_owner_spec.rb +53 -0
- data/spec/models/identity_spec.rb +12 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/jaro_winkler-1.5.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/psych-3.2.0/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/Makefile +2 -2
- data/walkthrough.md +1 -1
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a60740edd4e3d57ce802d35c341b9a5de1c1a54b721b11ed0745e8316347a71b
|
4
|
+
data.tar.gz: 65282b719464abc5c627e6a8b01b49adf17f7bd4d1b2958a0939f0182314aba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 023d51aadf5277b968f38b018d81fffaaa308ab24cd64e7d71f920440a8b1ef8896e8e44eb771d04e315331f48dde9d32fb96b38199bbf76385ecf55d2618dec
|
7
|
+
data.tar.gz: 97d349d199f52e1b5d87b435a21b7413b3b1e5ba6becfb4c0956315cb3f4b905b833d3c69607c603f0c1c98bd7ddd394cd8b83f4c7f402613bf926fc11ebd31d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -9,7 +9,7 @@ Passbase - the Ruby gem for the Verification API
|
|
9
9
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
10
10
|
|
11
11
|
- API version: 1.0.0
|
12
|
-
- Package version: 1.0
|
12
|
+
- Package version: 1.1.0
|
13
13
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
14
14
|
|
15
15
|
## Installation
|
@@ -25,16 +25,16 @@ gem build passbase.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./passbase-1.0.
|
28
|
+
gem install ./passbase-1.1.0.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./passbase-1.0.
|
31
|
+
(for development, run `gem install --dev ./passbase-1.1.0.gem` to install the development dependencies)
|
32
32
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
34
|
|
35
35
|
Finally add this to the Gemfile:
|
36
36
|
|
37
|
-
gem 'passbase', '~> 1.0
|
37
|
+
gem 'passbase', '~> 1.1.0'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
@@ -96,6 +96,7 @@ Class | Method | HTTP request | Description
|
|
96
96
|
|
97
97
|
- [Passbase::Cursor](docs/Cursor.md)
|
98
98
|
- [Passbase::Identity](docs/Identity.md)
|
99
|
+
- [Passbase::IdentityOwner](docs/IdentityOwner.md)
|
99
100
|
- [Passbase::IdentityResource](docs/IdentityResource.md)
|
100
101
|
- [Passbase::PaginatedIdentities](docs/PaginatedIdentities.md)
|
101
102
|
- [Passbase::PaginatedResources](docs/PaginatedResources.md)
|
data/docs/Identity.md
CHANGED
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**id** | **String** | Unique ID of the identity | [optional]
|
8
8
|
**status** | **String** | Current state of the identity in Passbase's systems | [optional]
|
9
|
+
**owner** | [**IdentityOwner**](.md) | | [optional]
|
10
|
+
**score** | **Float** | Float between 0 and 1 representing our confidence that this identity is valid. 0 meaning we couldn't verify any of the information provided with accuracy, and 1 absolute confidence. | [optional]
|
9
11
|
**created** | **Integer** | Unix-timestamp of when the identity was created | [optional]
|
10
12
|
**updated** | **Integer** | Unix-timestamp of when the identity was updated | [optional]
|
11
13
|
**resources** | [**Array<IdentityResource>**](IdentityResource.md) | resources attached to a verification | [optional]
|
@@ -18,6 +20,8 @@ require 'Passbase'
|
|
18
20
|
|
19
21
|
instance = Passbase::Identity.new(id: 00000000-0000-0000-0000-000000000000,
|
20
22
|
status: null,
|
23
|
+
owner: null,
|
24
|
+
score: 0.01000000000000012,
|
21
25
|
created: 1600250430,
|
22
26
|
updated: 1600250430,
|
23
27
|
resources: null,
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Passbase::IdentityOwner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**email** | **String** | Email of the user the identity belongs to | [optional]
|
8
|
+
**first_name** | **String** | First name of the user the identity belongs to | [optional]
|
9
|
+
**last_name** | **String** | Last name of the user the identity belongs to | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'Passbase'
|
15
|
+
|
16
|
+
instance = Passbase::IdentityOwner.new(email: john.doe@example.com,
|
17
|
+
first_name: John,
|
18
|
+
last_name: Doe)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
data/docs/ProjectSettings.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**id** | **String** | Unique ID of the project | [optional]
|
8
|
-
**slug** | **String** |
|
8
|
+
**slug** | **String** | Slugs are meant to be a way to verify people just with the link | [optional]
|
9
9
|
**environment** | **String** | | [optional]
|
10
10
|
**organization** | **String** | Name of the organization that owns this project | [optional]
|
11
11
|
**customizations** | [**ProjectSettingsCustomizations**](ProjectSettingsCustomizations.md) | | [optional]
|
data/lib/passbase.rb
CHANGED
@@ -19,6 +19,7 @@ require 'passbase/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'passbase/models/cursor'
|
21
21
|
require 'passbase/models/identity'
|
22
|
+
require 'passbase/models/identity_owner'
|
22
23
|
require 'passbase/models/identity_resource'
|
23
24
|
require 'passbase/models/paginated_identities'
|
24
25
|
require 'passbase/models/paginated_resources'
|
data/lib/passbase/api_client.rb
CHANGED
@@ -30,7 +30,7 @@ module Passbase
|
|
30
30
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
31
31
|
def initialize(config = Configuration.default)
|
32
32
|
@config = config
|
33
|
-
@user_agent = "passbase/ruby@1.0
|
33
|
+
@user_agent = "passbase/ruby@1.1.0"
|
34
34
|
@default_headers = {
|
35
35
|
'Content-Type' => 'application/json',
|
36
36
|
'User-Agent' => @user_agent
|
@@ -20,6 +20,11 @@ module Passbase
|
|
20
20
|
# Current state of the identity in Passbase's systems
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
|
+
attr_accessor :owner
|
24
|
+
|
25
|
+
# Float between 0 and 1 representing our confidence that this identity is valid. 0 meaning we couldn't verify any of the information provided with accuracy, and 1 absolute confidence.
|
26
|
+
attr_accessor :score
|
27
|
+
|
23
28
|
# Unix-timestamp of when the identity was created
|
24
29
|
attr_accessor :created
|
25
30
|
|
@@ -58,6 +63,8 @@ module Passbase
|
|
58
63
|
{
|
59
64
|
:'id' => :'id',
|
60
65
|
:'status' => :'status',
|
66
|
+
:'owner' => :'owner',
|
67
|
+
:'score' => :'score',
|
61
68
|
:'created' => :'created',
|
62
69
|
:'updated' => :'updated',
|
63
70
|
:'resources' => :'resources',
|
@@ -70,6 +77,8 @@ module Passbase
|
|
70
77
|
{
|
71
78
|
:'id' => :'String',
|
72
79
|
:'status' => :'String',
|
80
|
+
:'owner' => :'IdentityOwner',
|
81
|
+
:'score' => :'Float',
|
73
82
|
:'created' => :'Integer',
|
74
83
|
:'updated' => :'Integer',
|
75
84
|
:'resources' => :'Array<IdentityResource>',
|
@@ -106,6 +115,14 @@ module Passbase
|
|
106
115
|
self.status = attributes[:'status']
|
107
116
|
end
|
108
117
|
|
118
|
+
if attributes.key?(:'owner')
|
119
|
+
self.owner = attributes[:'owner']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'score')
|
123
|
+
self.score = attributes[:'score']
|
124
|
+
end
|
125
|
+
|
109
126
|
if attributes.key?(:'created')
|
110
127
|
self.created = attributes[:'created']
|
111
128
|
end
|
@@ -157,6 +174,8 @@ module Passbase
|
|
157
174
|
self.class == o.class &&
|
158
175
|
id == o.id &&
|
159
176
|
status == o.status &&
|
177
|
+
owner == o.owner &&
|
178
|
+
score == o.score &&
|
160
179
|
created == o.created &&
|
161
180
|
updated == o.updated &&
|
162
181
|
resources == o.resources &&
|
@@ -172,7 +191,7 @@ module Passbase
|
|
172
191
|
# Calculates hash code according to all attributes.
|
173
192
|
# @return [Integer] Hash code
|
174
193
|
def hash
|
175
|
-
[id, status, created, updated, resources, watchlist].hash
|
194
|
+
[id, status, owner, score, created, updated, resources, watchlist].hash
|
176
195
|
end
|
177
196
|
|
178
197
|
# Builds the object from hash
|
@@ -0,0 +1,229 @@
|
|
1
|
+
=begin
|
2
|
+
#Verification API
|
3
|
+
|
4
|
+
## Introduction <span class=\"subtext\"> Welcome to the Passbase Verifications API docs. This documentation will help you understand our models and the Verification API with its endpoints. Based on this you can build your own system (i.e. verification) and hook it up to Passbase. In case of feedback or questions you can reach us under this email address: [developer@passbase.com](mailto:developer@passbase.com). </span> A User submits a video selfie and valid identifying __Resources__ during a __Verification__ guided by the Passbase client-side integration. Once all the necessary __Resources__ are submitted, __Data points__ are extracted, digitized, and authenticated. These Data points then becomes part of the User's __Identity__. The User then consents to share __Resources__ and/or __Data points__ from their Identity with you. This information is passed to you and can be used to make decisions about a User (e.g. activate account). This table below explains our terminology further. | Term | Description | |-----------------------------------------|-------------| | [Identity](#tag/identity_model) | A set of Data points and Resources related to and owned by one single User. This data can be accessed by you through a Verification. | | Data points | Any data about a User extracted from a Resource (E.g. Passport Number, or Age). | | [Resource](#tag/resource_model) | A source document used to generate the Data points for a User (E.g. Passport). | | [User](#tag/user_model) | The owner of an email address associated with an Identity. | | Verification | A transaction through which a User consents to share Data points with you. If the Data points you request are not already available in the User's Identity, the Passbase client will ask the User to submit the necessary Resource required to extract them. | | Re-authentication (login) | A transaction through which a User can certify the ownership of Personal data previously shared through an Authentication. | # Authentication <span class=\"subtext\"> There are two forms of authentication for the API: <br/>• API Key <br/>• Bearer JWT Token </span>
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Passbase
|
16
|
+
class IdentityOwner
|
17
|
+
# Email of the user the identity belongs to
|
18
|
+
attr_accessor :email
|
19
|
+
|
20
|
+
# First name of the user the identity belongs to
|
21
|
+
attr_accessor :first_name
|
22
|
+
|
23
|
+
# Last name of the user the identity belongs to
|
24
|
+
attr_accessor :last_name
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'email' => :'email',
|
30
|
+
:'first_name' => :'first_name',
|
31
|
+
:'last_name' => :'last_name'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'email' => :'String',
|
39
|
+
:'first_name' => :'String',
|
40
|
+
:'last_name' => :'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 `Passbase::IdentityOwner` initialize method"
|
55
|
+
end
|
56
|
+
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Passbase::IdentityOwner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
|
+
end
|
62
|
+
h[k.to_sym] = v
|
63
|
+
}
|
64
|
+
|
65
|
+
if attributes.key?(:'email')
|
66
|
+
self.email = attributes[:'email']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.key?(:'first_name')
|
70
|
+
self.first_name = attributes[:'first_name']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'last_name')
|
74
|
+
self.last_name = attributes[:'last_name']
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
79
|
+
# @return Array for valid properties with the reasons
|
80
|
+
def list_invalid_properties
|
81
|
+
invalid_properties = Array.new
|
82
|
+
invalid_properties
|
83
|
+
end
|
84
|
+
|
85
|
+
# Check to see if the all the properties in the model are valid
|
86
|
+
# @return true if the model is valid
|
87
|
+
def valid?
|
88
|
+
true
|
89
|
+
end
|
90
|
+
|
91
|
+
# Checks equality by comparing each attribute.
|
92
|
+
# @param [Object] Object to be compared
|
93
|
+
def ==(o)
|
94
|
+
return true if self.equal?(o)
|
95
|
+
self.class == o.class &&
|
96
|
+
email == o.email &&
|
97
|
+
first_name == o.first_name &&
|
98
|
+
last_name == o.last_name
|
99
|
+
end
|
100
|
+
|
101
|
+
# @see the `==` method
|
102
|
+
# @param [Object] Object to be compared
|
103
|
+
def eql?(o)
|
104
|
+
self == o
|
105
|
+
end
|
106
|
+
|
107
|
+
# Calculates hash code according to all attributes.
|
108
|
+
# @return [Integer] Hash code
|
109
|
+
def hash
|
110
|
+
[email, first_name, last_name].hash
|
111
|
+
end
|
112
|
+
|
113
|
+
# Builds the object from hash
|
114
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
115
|
+
# @return [Object] Returns the model itself
|
116
|
+
def self.build_from_hash(attributes)
|
117
|
+
new.build_from_hash(attributes)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Builds the object from hash
|
121
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
122
|
+
# @return [Object] Returns the model itself
|
123
|
+
def build_from_hash(attributes)
|
124
|
+
return nil unless attributes.is_a?(Hash)
|
125
|
+
self.class.openapi_types.each_pair do |key, type|
|
126
|
+
if type =~ /\AArray<(.*)>/i
|
127
|
+
# check to ensure the input is an array given that the attribute
|
128
|
+
# is documented as an array but the input is not
|
129
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
130
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
131
|
+
end
|
132
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
133
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
134
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
135
|
+
self.send("#{key}=", nil)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
self
|
140
|
+
end
|
141
|
+
|
142
|
+
# Deserializes the data based on type
|
143
|
+
# @param string type Data type
|
144
|
+
# @param string value Value to be deserialized
|
145
|
+
# @return [Object] Deserialized data
|
146
|
+
def _deserialize(type, value)
|
147
|
+
case type.to_sym
|
148
|
+
when :DateTime
|
149
|
+
DateTime.parse(value)
|
150
|
+
when :Date
|
151
|
+
Date.parse(value)
|
152
|
+
when :String
|
153
|
+
value.to_s
|
154
|
+
when :Integer
|
155
|
+
value.to_i
|
156
|
+
when :Float
|
157
|
+
value.to_f
|
158
|
+
when :Boolean
|
159
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
160
|
+
true
|
161
|
+
else
|
162
|
+
false
|
163
|
+
end
|
164
|
+
when :Object
|
165
|
+
# generic object (usually a Hash), return directly
|
166
|
+
value
|
167
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
168
|
+
inner_type = Regexp.last_match[:inner_type]
|
169
|
+
value.map { |v| _deserialize(inner_type, v) }
|
170
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
171
|
+
k_type = Regexp.last_match[:k_type]
|
172
|
+
v_type = Regexp.last_match[:v_type]
|
173
|
+
{}.tap do |hash|
|
174
|
+
value.each do |k, v|
|
175
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
176
|
+
end
|
177
|
+
end
|
178
|
+
else # model
|
179
|
+
Passbase.const_get(type).build_from_hash(value)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the string representation of the object
|
184
|
+
# @return [String] String presentation of the object
|
185
|
+
def to_s
|
186
|
+
to_hash.to_s
|
187
|
+
end
|
188
|
+
|
189
|
+
# to_body is an alias to to_hash (backward compatibility)
|
190
|
+
# @return [Hash] Returns the object in the form of hash
|
191
|
+
def to_body
|
192
|
+
to_hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Returns the object in the form of hash
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
197
|
+
def to_hash
|
198
|
+
hash = {}
|
199
|
+
self.class.attribute_map.each_pair do |attr, param|
|
200
|
+
value = self.send(attr)
|
201
|
+
if value.nil?
|
202
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
203
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
204
|
+
end
|
205
|
+
|
206
|
+
hash[param] = _to_hash(value)
|
207
|
+
end
|
208
|
+
hash
|
209
|
+
end
|
210
|
+
|
211
|
+
# Outputs non-array value in the form of hash
|
212
|
+
# For object, use to_hash. Otherwise, just return the value
|
213
|
+
# @param [Object] value Any valid value
|
214
|
+
# @return [Hash] Returns the value in the form of hash
|
215
|
+
def _to_hash(value)
|
216
|
+
if value.is_a?(Array)
|
217
|
+
value.compact.map { |v| _to_hash(v) }
|
218
|
+
elsif value.is_a?(Hash)
|
219
|
+
{}.tap do |hash|
|
220
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
221
|
+
end
|
222
|
+
elsif value.respond_to? :to_hash
|
223
|
+
value.to_hash
|
224
|
+
else
|
225
|
+
value
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
@@ -17,7 +17,7 @@ module Passbase
|
|
17
17
|
# Unique ID of the project
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
#
|
20
|
+
# Slugs are meant to be a way to verify people just with the link
|
21
21
|
attr_accessor :slug
|
22
22
|
|
23
23
|
attr_accessor :environment
|
data/lib/passbase/version.rb
CHANGED
@@ -0,0 +1,53 @@
|
|
1
|
+
=begin
|
2
|
+
#Verification API
|
3
|
+
|
4
|
+
## Introduction <span class=\"subtext\"> Welcome to the Passbase Verifications API docs. This documentation will help you understand our models and the Verification API with its endpoints. Based on this you can build your own system (i.e. verification) and hook it up to Passbase. In case of feedback or questions you can reach us under this email address: [developer@passbase.com](mailto:developer@passbase.com). </span> A User submits a video selfie and valid identifying __Resources__ during a __Verification__ guided by the Passbase client-side integration. Once all the necessary __Resources__ are submitted, __Data points__ are extracted, digitized, and authenticated. These Data points then becomes part of the User's __Identity__. The User then consents to share __Resources__ and/or __Data points__ from their Identity with you. This information is passed to you and can be used to make decisions about a User (e.g. activate account). This table below explains our terminology further. | Term | Description | |-----------------------------------------|-------------| | [Identity](#tag/identity_model) | A set of Data points and Resources related to and owned by one single User. This data can be accessed by you through a Verification. | | Data points | Any data about a User extracted from a Resource (E.g. Passport Number, or Age). | | [Resource](#tag/resource_model) | A source document used to generate the Data points for a User (E.g. Passport). | | [User](#tag/user_model) | The owner of an email address associated with an Identity. | | Verification | A transaction through which a User consents to share Data points with you. If the Data points you request are not already available in the User's Identity, the Passbase client will ask the User to submit the necessary Resource required to extract them. | | Re-authentication (login) | A transaction through which a User can certify the ownership of Personal data previously shared through an Authentication. | # Authentication <span class=\"subtext\"> There are two forms of authentication for the API: <br/>• API Key <br/>• Bearer JWT Token </span>
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Passbase::IdentityOwner
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'IdentityOwner' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = Passbase::IdentityOwner.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of IdentityOwner' do
|
31
|
+
it 'should create an instance of IdentityOwner' do
|
32
|
+
expect(@instance).to be_instance_of(Passbase::IdentityOwner)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "email"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "first_name"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "last_name"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -48,6 +48,18 @@ describe 'Identity' do
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
+
describe 'test attribute "owner"' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
describe 'test attribute "score"' do
|
58
|
+
it 'should work' do
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
51
63
|
describe 'test attribute "created"' do
|
52
64
|
it 'should work' do
|
53
65
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/byebug-11.1.3/gem_make.out
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
current directory: /home/runner/work/passbase-ruby/passbase-ruby/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug
|
2
|
-
/opt/hostedtoolcache/Ruby/2.7.2/x64/bin/ruby -I /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/2.7.0 -r ./siteconf20201102-
|
2
|
+
/opt/hostedtoolcache/Ruby/2.7.2/x64/bin/ruby -I /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/2.7.0 -r ./siteconf20201102-2379-aigg9l.rb extconf.rb
|
3
3
|
creating Makefile
|
4
4
|
|
5
5
|
current directory: /home/runner/work/passbase-ruby/passbase-ruby/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug
|
@@ -16,4 +16,4 @@ linking shared-object byebug/byebug.so
|
|
16
16
|
|
17
17
|
current directory: /home/runner/work/passbase-ruby/passbase-ruby/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug
|
18
18
|
make "DESTDIR=" install
|
19
|
-
/usr/bin/install -c -m 0755 byebug.so ./.gem.20201102-
|
19
|
+
/usr/bin/install -c -m 0755 byebug.so ./.gem.20201102-2379-wd8cgh/byebug
|
data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/jaro_winkler-1.5.4/gem_make.out
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
current directory: /home/runner/work/passbase-ruby/passbase-ruby/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler
|
2
|
-
/opt/hostedtoolcache/Ruby/2.7.2/x64/bin/ruby -I /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/2.7.0 -r ./siteconf20201102-
|
2
|
+
/opt/hostedtoolcache/Ruby/2.7.2/x64/bin/ruby -I /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/2.7.0 -r ./siteconf20201102-2379-kna0vn.rb extconf.rb
|
3
3
|
creating Makefile
|
4
4
|
|
5
5
|
current directory: /home/runner/work/passbase-ruby/passbase-ruby/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler
|
@@ -61,4 +61,4 @@ linking shared-object jaro_winkler/jaro_winkler_ext.so
|
|
61
61
|
|
62
62
|
current directory: /home/runner/work/passbase-ruby/passbase-ruby/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler
|
63
63
|
make "DESTDIR=" install
|
64
|
-
/usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20201102-
|
64
|
+
/usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20201102-2379-1xlwn49/jaro_winkler
|
@@ -1,5 +1,5 @@
|
|
1
1
|
current directory: /home/runner/work/passbase-ruby/passbase-ruby/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych
|
2
|
-
/opt/hostedtoolcache/Ruby/2.7.2/x64/bin/ruby -I /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/2.7.0 -r ./siteconf20201102-
|
2
|
+
/opt/hostedtoolcache/Ruby/2.7.2/x64/bin/ruby -I /opt/hostedtoolcache/Ruby/2.7.2/x64/lib/ruby/2.7.0 -r ./siteconf20201102-2379-1nrxvxj.rb extconf.rb
|
3
3
|
checking for yaml.h... no
|
4
4
|
checking for _WIN32... no
|
5
5
|
checking for dlfcn.h... yes
|
@@ -38,4 +38,4 @@ linking shared-object psych.so
|
|
38
38
|
|
39
39
|
current directory: /home/runner/work/passbase-ruby/passbase-ruby/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych
|
40
40
|
make "DESTDIR=" install
|
41
|
-
/usr/bin/install -c -m 0755 psych.so ./.gem.20201102-
|
41
|
+
/usr/bin/install -c -m 0755 psych.so ./.gem.20201102-2379-f533yc
|
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
|
|
31
31
|
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
32
32
|
vendorlibdir = $(vendordir)/$(ruby_version)
|
33
33
|
vendordir = $(rubylibprefix)/vendor_ruby
|
34
|
-
sitearchdir = $(DESTDIR)./.gem.20201102-
|
35
|
-
sitelibdir = $(DESTDIR)./.gem.20201102-
|
34
|
+
sitearchdir = $(DESTDIR)./.gem.20201102-2379-wd8cgh
|
35
|
+
sitelibdir = $(DESTDIR)./.gem.20201102-2379-wd8cgh
|
36
36
|
sitedir = $(rubylibprefix)/site_ruby
|
37
37
|
rubyarchdir = $(rubylibdir)/$(arch)
|
38
38
|
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
|
|
31
31
|
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
32
32
|
vendorlibdir = $(vendordir)/$(ruby_version)
|
33
33
|
vendordir = $(rubylibprefix)/vendor_ruby
|
34
|
-
sitearchdir = $(DESTDIR)./.gem.20201102-
|
35
|
-
sitelibdir = $(DESTDIR)./.gem.20201102-
|
34
|
+
sitearchdir = $(DESTDIR)./.gem.20201102-2379-1xlwn49
|
35
|
+
sitelibdir = $(DESTDIR)./.gem.20201102-2379-1xlwn49
|
36
36
|
sitedir = $(rubylibprefix)/site_ruby
|
37
37
|
rubyarchdir = $(rubylibdir)/$(arch)
|
38
38
|
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
|
|
31
31
|
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
32
32
|
vendorlibdir = $(vendordir)/$(ruby_version)
|
33
33
|
vendordir = $(rubylibprefix)/vendor_ruby
|
34
|
-
sitearchdir = $(DESTDIR)./.gem.20201102-
|
35
|
-
sitelibdir = $(DESTDIR)./.gem.20201102-
|
34
|
+
sitearchdir = $(DESTDIR)./.gem.20201102-2379-f533yc
|
35
|
+
sitelibdir = $(DESTDIR)./.gem.20201102-2379-f533yc
|
36
36
|
sitedir = $(rubylibprefix)/site_ruby
|
37
37
|
rubyarchdir = $(rubylibdir)/$(arch)
|
38
38
|
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
data/walkthrough.md
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: passbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Passbase
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- docs/Cursor.md
|
58
58
|
- docs/Identity.md
|
59
59
|
- docs/IdentityApi.md
|
60
|
+
- docs/IdentityOwner.md
|
60
61
|
- docs/IdentityResource.md
|
61
62
|
- docs/PaginatedIdentities.md
|
62
63
|
- docs/PaginatedResources.md
|
@@ -77,6 +78,7 @@ files:
|
|
77
78
|
- lib/passbase/configuration.rb
|
78
79
|
- lib/passbase/models/cursor.rb
|
79
80
|
- lib/passbase/models/identity.rb
|
81
|
+
- lib/passbase/models/identity_owner.rb
|
80
82
|
- lib/passbase/models/identity_resource.rb
|
81
83
|
- lib/passbase/models/paginated_identities.rb
|
82
84
|
- lib/passbase/models/paginated_resources.rb
|
@@ -95,6 +97,7 @@ files:
|
|
95
97
|
- spec/api_client_spec.rb
|
96
98
|
- spec/configuration_spec.rb
|
97
99
|
- spec/models/cursor_spec.rb
|
100
|
+
- spec/models/identity_owner_spec.rb
|
98
101
|
- spec/models/identity_resource_spec.rb
|
99
102
|
- spec/models/identity_spec.rb
|
100
103
|
- spec/models/paginated_identities_spec.rb
|
@@ -2036,6 +2039,7 @@ test_files:
|
|
2036
2039
|
- spec/models/resource_spec.rb
|
2037
2040
|
- spec/models/watchlist_response_spec.rb
|
2038
2041
|
- spec/models/user_spec.rb
|
2042
|
+
- spec/models/identity_owner_spec.rb
|
2039
2043
|
- spec/models/cursor_spec.rb
|
2040
2044
|
- spec/models/project_settings_spec.rb
|
2041
2045
|
- spec/models/resource_file_spec.rb
|