passbase 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 926cc7baa85124ec1d95e7ded9a196558c36b764712d36117b58794d0bb736ed
4
- data.tar.gz: 6f5917d9a6c53ef9a74014d129e239bd82de5954c57e64c42b0b581f57c799f1
3
+ metadata.gz: f834f243971596bfa920a226fadfbac9422278c59ad68bdf9f71bc986b0d1a76
4
+ data.tar.gz: b0fa87855e3e58dce268bd7b9e6a531a6af2794c316dad5759c52cbe9f19b8f3
5
5
  SHA512:
6
- metadata.gz: 2a7e3725a95375c633d18d0022457a53d1003c874692b4d606bc94f397a4aaf85e0d4172118a5b6dc4799139be577e348e282470ba9e3bb82b3f6c93fc56fda5
7
- data.tar.gz: bb1d1b08af4944e43c2847c6db20e4d4418d461618772f1da2c698170de5b2413ad45574cd5993c89109d0fd58a6c794b0006dcf1a9ed0c9b971d4051573bd1f
6
+ metadata.gz: 0e83583a972455fc9c830bb7fd728694b905c1eb0f40f0da8d489eeaa30aeaf0411db5cd6e37e469d43ba1c903f96e185d2bc0cf7de0c6fd225745b1e6007c20
7
+ data.tar.gz: d97258d9ab42dbb92eaf778506ae40ae6bdd1acb1c224f8af2735efbf5e6ff5e9a9f4530d5c7d36df78b02ec43c3bb82bb5ea030c954abefa3601686311851d4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- passbase (1.0.0)
4
+ passbase (1.0.1)
5
5
  faraday (>= 0.14.0)
6
6
 
7
7
  GEM
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.0
12
+ - Package version: 1.0.1
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.0.gem
28
+ gem install ./passbase-1.0.1.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./passbase-1.0.0.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./passbase-1.0.1.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.0'
37
+ gem 'passbase', '~> 1.0.1'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -106,7 +106,6 @@ Class | Method | HTTP request | Description
106
106
  - [Passbase::Resource](docs/Resource.md)
107
107
  - [Passbase::ResourceFile](docs/ResourceFile.md)
108
108
  - [Passbase::ResourceInput](docs/ResourceInput.md)
109
- - [Passbase::ResourceType](docs/ResourceType.md)
110
109
  - [Passbase::User](docs/User.md)
111
110
  - [Passbase::WatchlistResponse](docs/WatchlistResponse.md)
112
111
 
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **datapoints** | **Object** | Dynamic key/value hashmap of the data extracted from the resource. | [optional]
8
- **type** | [**ResourceType**](ResourceType.md) | | [optional]
8
+ **type** | **String** | All resource types that passbase supports | [optional]
9
9
 
10
10
  ## Code Sample
11
11
 
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
13
13
  require 'Passbase'
14
14
 
15
15
  instance = Passbase::IdentityResource.new(datapoints: {"date_of_birth":"1970-01-01","document_number":"010101010101","first_names":"Jessie","last_name":"Smith"},
16
- type: null)
16
+ type: NATIONAL_ID_CARD)
17
17
  ```
18
18
 
19
19
 
@@ -21,7 +21,7 @@ instance = Passbase::ProjectSettings.new(id: 00000000-0000-0000-0000-00000000000
21
21
  environment: sandbox,
22
22
  organization: Passbase Inc.,
23
23
  customizations: null,
24
- verification_steps: [{"type":"email","document_types":["EMAIL"]},{"type":"liveness_check","document_types":["FACE_VIDEO"]},{"type":"country","document_types":["COUNTRY"]},{"type":"identity_document_check","document_types":["PASSPORT","DRIVERS_LICENSE"]},{"type":"insurance_card_scan","document_types":["HEALTH_INSURANCE_CARD"]}])
24
+ verification_steps: [{"step":"email","resource_types":["EMAIL"]},{"step":"liveness_check","resource_types":["FACE_VIDEO"]},{"step":"country","resource_types":["de","us","gb","ca"]},{"step":"identity_document_check","resource_types":["PASSPORT","DRIVERS_LICENSE"]},{"step":"insurance_card_scan","resource_types":["HEALTH_INSURANCE_CARD"]}])
25
25
  ```
26
26
 
27
27
 
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **step** | **String** | | [optional]
8
- **resource_types** | [**Array<ResourceType>**](ResourceType.md) | | [optional]
8
+ **resource_types** | **Array<String>** | | [optional]
9
9
 
10
10
  ## Code Sample
11
11
 
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **status** | **String** | Current state of the resource in Passbase's systems | [optional]
9
9
  **created** | **Integer** | Unix-timestamp of when the resource was created | [optional]
10
10
  **updated** | **Integer** | Unix-timestamp of when the resource was updated | [optional]
11
- **type** | [**ResourceType**](ResourceType.md) | | [optional]
11
+ **type** | **String** | All resource types that passbase supports | [optional]
12
12
  **resource_files** | **Array<Object>** | | [optional]
13
13
 
14
14
  ## Code Sample
@@ -20,7 +20,7 @@ instance = Passbase::Resource.new(id: null,
20
20
  status: null,
21
21
  created: 1600250430,
22
22
  updated: 1600250430,
23
- type: null,
23
+ type: NATIONAL_ID_CARD,
24
24
  resource_files: null)
25
25
  ```
26
26
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **type** | [**ResourceType**](ResourceType.md) | | [optional]
7
+ **type** | **String** | All resource types that passbase supports | [optional]
8
8
  **country** | **String** | 2-letter code of the country | [optional]
9
9
  **resource_files** | **Array<Array>** | | [optional]
10
10
  **resource_data** | **Object** | | [optional]
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
15
15
  ```ruby
16
16
  require 'Passbase'
17
17
 
18
- instance = Passbase::ResourceInput.new(type: null,
18
+ instance = Passbase::ResourceInput.new(type: NATIONAL_ID_CARD,
19
19
  country: DE,
20
20
  resource_files: null,
21
21
  resource_data: null,
@@ -15,7 +15,7 @@ require 'Passbase'
15
15
 
16
16
  instance = Passbase::User.new(email: jessie@example.com,
17
17
  identity_access_token: eyJhbGciOiJIUzI1NiIsI...,
18
- required_steps: [{"type":"email","document_types":["EMAIL"]},{"type":"liveness_check","document_types":["FACE_VIDEO"]},{"type":"country","document_types":["COUNTRY"]},{"type":"identity_document_check","document_types":["PASSPORT","DRIVERS_LICENSE"]},{"type":"insurance_card_scan","document_types":["HEALTH_INSURANCE_CARD"]}])
18
+ required_steps: [{"step":"email","resource_types":["EMAIL"]},{"step":"liveness_check","resource_types":["FACE_VIDEO"]},{"step":"country","resource_types":["de","us","vn","zn"]},{"step":"identity_document_check","resource_types":["PASSPORT","DRIVERS_LICENSE"]},{"step":"insurance_card_scan","resource_types":["HEALTH_INSURANCE_CARD"]}])
19
19
  ```
20
20
 
21
21
 
@@ -28,7 +28,6 @@ require 'passbase/models/project_settings_verification_steps'
28
28
  require 'passbase/models/resource'
29
29
  require 'passbase/models/resource_file'
30
30
  require 'passbase/models/resource_input'
31
- require 'passbase/models/resource_type'
32
31
  require 'passbase/models/user'
33
32
  require 'passbase/models/watchlist_response'
34
33
 
@@ -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.0"
33
+ @user_agent = "passbase/ruby@1.0.1"
34
34
  @default_headers = {
35
35
  'Content-Type' => 'application/json',
36
36
  'User-Agent' => @user_agent
@@ -17,6 +17,7 @@ module Passbase
17
17
  # Dynamic key/value hashmap of the data extracted from the resource.
18
18
  attr_accessor :datapoints
19
19
 
20
+ # All resource types that passbase supports
20
21
  attr_accessor :type
21
22
 
22
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,7 +32,7 @@ module Passbase
31
32
  def self.openapi_types
32
33
  {
33
34
  :'datapoints' => :'Object',
34
- :'type' => :'ResourceType'
35
+ :'type' => :'String'
35
36
  }
36
37
  end
37
38
 
@@ -30,7 +30,7 @@ module Passbase
30
30
  def self.openapi_types
31
31
  {
32
32
  :'step' => :'String',
33
- :'resource_types' => :'Array<ResourceType>'
33
+ :'resource_types' => :'Array<String>'
34
34
  }
35
35
  end
36
36
 
@@ -26,6 +26,7 @@ module Passbase
26
26
  # Unix-timestamp of when the resource was updated
27
27
  attr_accessor :updated
28
28
 
29
+ # All resource types that passbase supports
29
30
  attr_accessor :type
30
31
 
31
32
  attr_accessor :resource_files
@@ -71,7 +72,7 @@ module Passbase
71
72
  :'status' => :'String',
72
73
  :'created' => :'Integer',
73
74
  :'updated' => :'Integer',
74
- :'type' => :'ResourceType',
75
+ :'type' => :'String',
75
76
  :'resource_files' => :'Array<Object>'
76
77
  }
77
78
  end
@@ -14,6 +14,7 @@ require 'date'
14
14
 
15
15
  module Passbase
16
16
  class ResourceInput
17
+ # All resource types that passbase supports
17
18
  attr_accessor :type
18
19
 
19
20
  # 2-letter code of the country
@@ -39,7 +40,7 @@ module Passbase
39
40
  # Attribute type mapping.
40
41
  def self.openapi_types
41
42
  {
42
- :'type' => :'ResourceType',
43
+ :'type' => :'String',
43
44
  :'country' => :'String',
44
45
  :'resource_files' => :'Array<Array>',
45
46
  :'resource_data' => :'Object',
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module Passbase
14
- VERSION = '1.0.0'
14
+ VERSION = '1.0.1'
15
15
  end
@@ -1,7 +1,7 @@
1
1
  1. Add Passbase's SDK gem to your Gemfile.
2
2
 
3
3
  ```rb
4
- gem 'passbase', '~> 0.0.1'
4
+ gem 'passbase', '~> 1.0.0'
5
5
  ```
6
6
 
7
7
  2. Require the necessary modules in your app
@@ -10,7 +10,7 @@ gem 'passbase', '~> 0.0.1'
10
10
  require 'passbase'
11
11
 
12
12
  Passbase.configure do |config|
13
- config.api_key['X-API-KEY'] = '{{YOUR_SECRET_API_KEY}}'
13
+ config.api_key['X-API-KEY'] = '{{YOUR_SECRET_API_KEY}}'
14
14
  end
15
15
 
16
16
  api_instance = Passbase::ProjectApi.new
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Passbase
@@ -67,7 +67,6 @@ files:
67
67
  - docs/Resource.md
68
68
  - docs/ResourceFile.md
69
69
  - docs/ResourceInput.md
70
- - docs/ResourceType.md
71
70
  - docs/User.md
72
71
  - docs/WatchlistResponse.md
73
72
  - lib/passbase.rb
@@ -87,7 +86,6 @@ files:
87
86
  - lib/passbase/models/resource.rb
88
87
  - lib/passbase/models/resource_file.rb
89
88
  - lib/passbase/models/resource_input.rb
90
- - lib/passbase/models/resource_type.rb
91
89
  - lib/passbase/models/user.rb
92
90
  - lib/passbase/models/watchlist_response.rb
93
91
  - lib/passbase/version.rb
@@ -107,7 +105,6 @@ files:
107
105
  - spec/models/resource_file_spec.rb
108
106
  - spec/models/resource_input_spec.rb
109
107
  - spec/models/resource_spec.rb
110
- - spec/models/resource_type_spec.rb
111
108
  - spec/models/user_spec.rb
112
109
  - spec/models/watchlist_response_spec.rb
113
110
  - spec/spec_helper.rb
@@ -2038,7 +2035,6 @@ test_files:
2038
2035
  - spec/models/resource_spec.rb
2039
2036
  - spec/models/project_settings_spec.rb
2040
2037
  - spec/models/paginated_identities_spec.rb
2041
- - spec/models/resource_type_spec.rb
2042
2038
  - spec/models/paginated_resources_spec.rb
2043
2039
  - spec/models/identity_spec.rb
2044
2040
  - spec/models/project_settings_verification_steps_spec.rb
@@ -1,16 +0,0 @@
1
- # Passbase::ResourceType
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
-
8
- ## Code Sample
9
-
10
- ```ruby
11
- require 'Passbase'
12
-
13
- instance = Passbase::ResourceType.new()
14
- ```
15
-
16
-
@@ -1,41 +0,0 @@
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/>&bull; API Key <br/>&bull; 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 ResourceType
17
- PASSPORT = "PASSPORT".freeze
18
- DRIVERS_LICENSE = "DRIVERS_LICENSE".freeze
19
- NATIONAL_ID_CARD = "NATIONAL_ID_CARD".freeze
20
- HEALTH_INSURANCE_CARD = "HEALTH_INSURANCE_CARD".freeze
21
- SELFIE_VIDEO = "SELFIE_VIDEO".freeze
22
- PROOF_OF_ADDRESS = "PROOF_OF_ADDRESS".freeze
23
- EMAIL = "EMAIL".freeze
24
-
25
- # Builds the enum from string
26
- # @param [String] The enum value in the form of the string
27
- # @return [String] The enum value
28
- def self.build_from_hash(value)
29
- new.build_from_hash(value)
30
- end
31
-
32
- # Builds the enum from string
33
- # @param [String] The enum value in the form of the string
34
- # @return [String] The enum value
35
- def build_from_hash(value)
36
- constantValues = ResourceType.constants.select { |c| ResourceType::const_get(c) == value }
37
- raise "Invalid ENUM value #{value} for class #ResourceType" if constantValues.empty?
38
- value
39
- end
40
- end
41
- end
@@ -1,35 +0,0 @@
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/>&bull; API Key <br/>&bull; 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::ResourceType
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe 'ResourceType' do
21
- before do
22
- # run before each test
23
- @instance = Passbase::ResourceType.new
24
- end
25
-
26
- after do
27
- # run after each test
28
- end
29
-
30
- describe 'test an instance of ResourceType' do
31
- it 'should create an instance of ResourceType' do
32
- expect(@instance).to be_instance_of(Passbase::ResourceType)
33
- end
34
- end
35
- end