pescheck-client 0.4.3 → 0.5.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 +4 -4
- data/README.md +90 -45
- data/docs/AddOnsApi.md +305 -0
- data/docs/AddonPrice.md +20 -0
- data/docs/AuthenticationApi.md +0 -70
- data/docs/DisabledDivision.md +20 -0
- data/docs/OAuthApplication.md +1 -1
- data/docs/OAuthApplicationResponse.md +6 -2
- data/docs/OrganisationAddon.md +32 -0
- data/docs/OrganisationAddonUpdate.md +18 -0
- data/docs/OrganisationAddonUpdateResult.md +34 -0
- data/docs/PatchedOrganisationAddonUpdate.md +18 -0
- data/docs/ScreeningsApi.md +72 -0
- data/docs/V2Candidate.md +1 -1
- data/docs/V2CheckField.md +1 -1
- data/docs/V2Document.md +1 -1
- data/docs/V2ProfileCheck.md +1 -1
- data/docs/V2ProfileCheckEntry.md +1 -1
- data/docs/V2ProfileDetail.md +4 -0
- data/docs/V2ProfileUpdateCheck.md +1 -1
- data/docs/V2ScreeningCheck.md +1 -1
- data/docs/V2ScreeningCheckEntry.md +1 -1
- data/docs/V2ScreeningCheckListItem.md +1 -1
- data/docs/V2ScreeningCreate.md +3 -1
- data/docs/V2ScreeningDetail.md +3 -1
- data/docs/{V2ScreeningDetailProfile.md → V2ScreeningDetailOrganisation.md} +2 -2
- data/docs/V2ScreeningListItem.md +3 -1
- data/docs/V2ScreeningNoteInput.md +1 -1
- data/docs/WebhooksApi.md +1 -1
- data/lib/pescheck-client/api/add_ons_api.rb +305 -0
- data/lib/pescheck-client/api/authentication_api.rb +0 -66
- data/lib/pescheck-client/api/profiles_api.rb +1 -1
- data/lib/pescheck-client/api/screenings_api.rb +66 -0
- data/lib/pescheck-client/api/webhooks_api.rb +2 -2
- data/lib/pescheck-client/configuration.rb +8 -0
- data/lib/pescheck-client/models/{custom_token_obtain_pair.rb → addon_price.rb} +46 -45
- data/lib/pescheck-client/models/disabled_division.rb +190 -0
- data/lib/pescheck-client/models/o_auth_application.rb +3 -3
- data/lib/pescheck-client/models/o_auth_application_response.rb +70 -44
- data/lib/pescheck-client/models/organisation_addon.rb +339 -0
- data/lib/pescheck-client/models/organisation_addon_update.rb +165 -0
- data/lib/pescheck-client/models/organisation_addon_update_result.rb +368 -0
- data/lib/pescheck-client/models/patched_organisation_addon_update.rb +148 -0
- data/lib/pescheck-client/models/v2_candidate.rb +1 -35
- data/lib/pescheck-client/models/v2_check_field.rb +2 -2
- data/lib/pescheck-client/models/v2_document.rb +6 -30
- data/lib/pescheck-client/models/v2_profile_check.rb +3 -3
- data/lib/pescheck-client/models/v2_profile_check_entry.rb +6 -30
- data/lib/pescheck-client/models/v2_profile_detail.rb +55 -1
- data/lib/pescheck-client/models/v2_profile_update_check.rb +3 -3
- data/lib/pescheck-client/models/v2_screening_check.rb +3 -3
- data/lib/pescheck-client/models/v2_screening_check_entry.rb +6 -30
- data/lib/pescheck-client/models/v2_screening_check_list_item.rb +6 -30
- data/lib/pescheck-client/models/v2_screening_create.rb +14 -4
- data/lib/pescheck-client/models/v2_screening_detail.rb +14 -2
- data/lib/pescheck-client/models/{v2_screening_detail_profile.rb → v2_screening_detail_organisation.rb} +4 -3
- data/lib/pescheck-client/models/v2_screening_list_item.rb +14 -2
- data/lib/pescheck-client/models/v2_screening_note_input.rb +3 -3
- data/lib/pescheck-client/models/webhook_response.rb +5 -5
- data/lib/pescheck-client/version.rb +1 -1
- data/lib/pescheck-client.rb +8 -2
- data/spec/api/add_ons_api_spec.rb +84 -0
- data/spec/api/authentication_api_spec.rb +1 -12
- data/spec/api/screenings_api_spec.rb +13 -0
- data/spec/api/webhooks_api_spec.rb +1 -1
- data/spec/models/{custom_token_obtain_pair_spec.rb → addon_price_spec.rb} +8 -8
- data/spec/models/disabled_division_spec.rb +42 -0
- data/spec/models/o_auth_application_response_spec.rb +12 -8
- data/spec/models/o_auth_application_spec.rb +1 -1
- data/spec/models/organisation_addon_spec.rb +78 -0
- data/spec/models/organisation_addon_update_result_spec.rb +84 -0
- data/spec/models/organisation_addon_update_spec.rb +36 -0
- data/spec/models/patched_organisation_addon_update_spec.rb +36 -0
- data/spec/models/v2_candidate_spec.rb +0 -4
- data/spec/models/v2_document_spec.rb +0 -4
- data/spec/models/v2_profile_check_entry_spec.rb +0 -4
- data/spec/models/v2_profile_check_spec.rb +1 -1
- data/spec/models/v2_profile_detail_spec.rb +12 -0
- data/spec/models/v2_profile_update_check_spec.rb +1 -1
- data/spec/models/v2_screening_check_entry_spec.rb +0 -4
- data/spec/models/v2_screening_check_list_item_spec.rb +0 -4
- data/spec/models/v2_screening_check_spec.rb +1 -1
- data/spec/models/v2_screening_create_spec.rb +12 -0
- data/spec/models/{v2_screening_detail_profile_spec.rb → v2_screening_detail_organisation_spec.rb} +6 -6
- data/spec/models/v2_screening_detail_spec.rb +12 -0
- data/spec/models/v2_screening_list_item_spec.rb +6 -0
- data/spec/models/v2_screening_note_input_spec.rb +1 -1
- metadata +65 -41
- data/docs/CustomTokenObtainPair.md +0 -22
|
@@ -20,6 +20,8 @@ module Pescheck
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :status
|
|
22
22
|
|
|
23
|
+
attr_accessor :organisation
|
|
24
|
+
|
|
23
25
|
attr_accessor :profile
|
|
24
26
|
|
|
25
27
|
attr_accessor :candidate
|
|
@@ -39,6 +41,7 @@ module Pescheck
|
|
|
39
41
|
{
|
|
40
42
|
:'id' => :'id',
|
|
41
43
|
:'status' => :'status',
|
|
44
|
+
:'organisation' => :'organisation',
|
|
42
45
|
:'profile' => :'profile',
|
|
43
46
|
:'candidate' => :'candidate',
|
|
44
47
|
:'checks' => :'checks',
|
|
@@ -64,7 +67,8 @@ module Pescheck
|
|
|
64
67
|
{
|
|
65
68
|
:'id' => :'String',
|
|
66
69
|
:'status' => :'String',
|
|
67
|
-
:'
|
|
70
|
+
:'organisation' => :'V2ScreeningDetailOrganisation',
|
|
71
|
+
:'profile' => :'V2ScreeningDetailOrganisation',
|
|
68
72
|
:'candidate' => :'V2Candidate',
|
|
69
73
|
:'checks' => :'Array<V2ScreeningCheckListItem>',
|
|
70
74
|
:'candidate_wizard_url' => :'String',
|
|
@@ -77,6 +81,7 @@ module Pescheck
|
|
|
77
81
|
# List of attributes with nullable: true
|
|
78
82
|
def self.openapi_nullable
|
|
79
83
|
Set.new([
|
|
84
|
+
:'organisation',
|
|
80
85
|
:'profile',
|
|
81
86
|
:'candidate_wizard_url',
|
|
82
87
|
])
|
|
@@ -108,6 +113,12 @@ module Pescheck
|
|
|
108
113
|
self.status = attributes[:'status']
|
|
109
114
|
end
|
|
110
115
|
|
|
116
|
+
if attributes.key?(:'organisation')
|
|
117
|
+
self.organisation = attributes[:'organisation']
|
|
118
|
+
else
|
|
119
|
+
self.organisation = nil
|
|
120
|
+
end
|
|
121
|
+
|
|
111
122
|
if attributes.key?(:'profile')
|
|
112
123
|
self.profile = attributes[:'profile']
|
|
113
124
|
else
|
|
@@ -265,6 +276,7 @@ module Pescheck
|
|
|
265
276
|
self.class == o.class &&
|
|
266
277
|
id == o.id &&
|
|
267
278
|
status == o.status &&
|
|
279
|
+
organisation == o.organisation &&
|
|
268
280
|
profile == o.profile &&
|
|
269
281
|
candidate == o.candidate &&
|
|
270
282
|
checks == o.checks &&
|
|
@@ -283,7 +295,7 @@ module Pescheck
|
|
|
283
295
|
# Calculates hash code according to all attributes.
|
|
284
296
|
# @return [Integer] Hash code
|
|
285
297
|
def hash
|
|
286
|
-
[id, status, profile, candidate, checks, candidate_wizard_url, dashboard_url, created_at, updated_at].hash
|
|
298
|
+
[id, status, organisation, profile, candidate, checks, candidate_wizard_url, dashboard_url, created_at, updated_at].hash
|
|
287
299
|
end
|
|
288
300
|
|
|
289
301
|
# Builds the object from hash
|
|
@@ -21,7 +21,7 @@ module Pescheck
|
|
|
21
21
|
# Links the note to the Check spawned from this ProfileCheck. Wins over check_type.
|
|
22
22
|
attr_accessor :profile_check_id
|
|
23
23
|
|
|
24
|
-
# Scope the note to a check type. Ignored when profile_check_id is given. * `addresscheck` - addresscheck * `adversemedia2check` - adversemedia2check * `adversemediacheck` - adversemediacheck * `bigcheck` - bigcheck * `criminalrecordscheck` - criminalrecordscheck * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck * `customintegritycheck` - customintegritycheck * `cvcheck` - cvcheck * `edrcheck` - edrcheck * `
|
|
24
|
+
# Scope the note to a check type. Ignored when profile_check_id is given. * `addresscheck` - addresscheck * `adversemedia2check` - adversemedia2check * `adversemediacheck` - adversemediacheck * `bigcheck` - bigcheck * `criminalrecordscheck` - criminalrecordscheck * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck * `customintegritycheck` - customintegritycheck * `cvcheck` - cvcheck * `edrcheck` - edrcheck * `ibancheck` - ibancheck * `id2check` - id2check * `idcheck` - idcheck * `integritycheck` - integritycheck * `openhealthcarecheck` - openhealthcarecheck * `permissioncheck` - permissioncheck * `pescheckadversemediacheck` - pescheckadversemediacheck * `qualificationcheck` - qualificationcheck * `righttoworkcheck` - righttoworkcheck * `vogcheck` - vogcheck * `watchlist2check` - watchlist2check * `watchlistcheck` - watchlistcheck * `workreferencecheck` - workreferencecheck * `worldwidecreditcheck` - worldwidecreditcheck
|
|
25
25
|
attr_accessor :check_type
|
|
26
26
|
|
|
27
27
|
class EnumAttributeValidator
|
|
@@ -129,7 +129,7 @@ module Pescheck
|
|
|
129
129
|
def valid?
|
|
130
130
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
131
131
|
return false if @note.nil?
|
|
132
|
-
check_type_validator = EnumAttributeValidator.new('String', ["addresscheck", "adversemedia2check", "adversemediacheck", "bigcheck", "criminalrecordscheck", "criminalrecordsuploadcheck", "customintegritycheck", "cvcheck", "edrcheck", "
|
|
132
|
+
check_type_validator = EnumAttributeValidator.new('String', ["addresscheck", "adversemedia2check", "adversemediacheck", "bigcheck", "criminalrecordscheck", "criminalrecordsuploadcheck", "customintegritycheck", "cvcheck", "edrcheck", "ibancheck", "id2check", "idcheck", "integritycheck", "openhealthcarecheck", "permissioncheck", "pescheckadversemediacheck", "qualificationcheck", "righttoworkcheck", "vogcheck", "watchlist2check", "watchlistcheck", "workreferencecheck", "worldwidecreditcheck", ""])
|
|
133
133
|
return false unless check_type_validator.valid?(@check_type)
|
|
134
134
|
true
|
|
135
135
|
end
|
|
@@ -147,7 +147,7 @@ module Pescheck
|
|
|
147
147
|
# Custom attribute writer method checking allowed values (enum).
|
|
148
148
|
# @param [Object] check_type Object to be assigned
|
|
149
149
|
def check_type=(check_type)
|
|
150
|
-
validator = EnumAttributeValidator.new('String', ["addresscheck", "adversemedia2check", "adversemediacheck", "bigcheck", "criminalrecordscheck", "criminalrecordsuploadcheck", "customintegritycheck", "cvcheck", "edrcheck", "
|
|
150
|
+
validator = EnumAttributeValidator.new('String', ["addresscheck", "adversemedia2check", "adversemediacheck", "bigcheck", "criminalrecordscheck", "criminalrecordsuploadcheck", "customintegritycheck", "cvcheck", "edrcheck", "ibancheck", "id2check", "idcheck", "integritycheck", "openhealthcarecheck", "permissioncheck", "pescheckadversemediacheck", "qualificationcheck", "righttoworkcheck", "vogcheck", "watchlist2check", "watchlistcheck", "workreferencecheck", "worldwidecreditcheck", ""])
|
|
151
151
|
unless validator.valid?(check_type)
|
|
152
152
|
fail ArgumentError, "invalid value for \"check_type\", must be one of #{validator.allowable_values}."
|
|
153
153
|
end
|
|
@@ -178,8 +178,8 @@ module Pescheck
|
|
|
178
178
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
179
179
|
end
|
|
180
180
|
|
|
181
|
-
if @url.to_s.length >
|
|
182
|
-
invalid_properties.push('invalid value for "url", the character length must be smaller than or equal to
|
|
181
|
+
if @url.to_s.length > 400
|
|
182
|
+
invalid_properties.push('invalid value for "url", the character length must be smaller than or equal to 400.')
|
|
183
183
|
end
|
|
184
184
|
|
|
185
185
|
if @verified.nil?
|
|
@@ -205,7 +205,7 @@ module Pescheck
|
|
|
205
205
|
return false if @name.nil?
|
|
206
206
|
return false if @name.to_s.length > 255
|
|
207
207
|
return false if @url.nil?
|
|
208
|
-
return false if @url.to_s.length >
|
|
208
|
+
return false if @url.to_s.length > 400
|
|
209
209
|
return false if @verified.nil?
|
|
210
210
|
return false if @created_at.nil?
|
|
211
211
|
return false if @updated_at.nil?
|
|
@@ -243,8 +243,8 @@ module Pescheck
|
|
|
243
243
|
fail ArgumentError, 'url cannot be nil'
|
|
244
244
|
end
|
|
245
245
|
|
|
246
|
-
if url.to_s.length >
|
|
247
|
-
fail ArgumentError, 'invalid value for "url", the character length must be smaller than or equal to
|
|
246
|
+
if url.to_s.length > 400
|
|
247
|
+
fail ArgumentError, 'invalid value for "url", the character length must be smaller than or equal to 400.'
|
|
248
248
|
end
|
|
249
249
|
|
|
250
250
|
@url = url
|
data/lib/pescheck-client.rb
CHANGED
|
@@ -18,17 +18,22 @@ require 'pescheck-client/version'
|
|
|
18
18
|
require 'pescheck-client/configuration'
|
|
19
19
|
|
|
20
20
|
# Models
|
|
21
|
-
require 'pescheck-client/models/
|
|
21
|
+
require 'pescheck-client/models/addon_price'
|
|
22
|
+
require 'pescheck-client/models/disabled_division'
|
|
22
23
|
require 'pescheck-client/models/division_read_only'
|
|
23
24
|
require 'pescheck-client/models/division_write'
|
|
24
25
|
require 'pescheck-client/models/jwt_generation'
|
|
25
26
|
require 'pescheck-client/models/jwt_response'
|
|
26
27
|
require 'pescheck-client/models/o_auth_application'
|
|
27
28
|
require 'pescheck-client/models/o_auth_application_response'
|
|
29
|
+
require 'pescheck-client/models/organisation_addon'
|
|
30
|
+
require 'pescheck-client/models/organisation_addon_update'
|
|
31
|
+
require 'pescheck-client/models/organisation_addon_update_result'
|
|
28
32
|
require 'pescheck-client/models/paginated_division_read_only_list'
|
|
29
33
|
require 'pescheck-client/models/paginated_v2_profile_list_item_list'
|
|
30
34
|
require 'pescheck-client/models/paginated_v2_screening_list_item_list'
|
|
31
35
|
require 'pescheck-client/models/patched_division_write'
|
|
36
|
+
require 'pescheck-client/models/patched_organisation_addon_update'
|
|
32
37
|
require 'pescheck-client/models/patched_v2_profile_partial_update'
|
|
33
38
|
require 'pescheck-client/models/token_refresh'
|
|
34
39
|
require 'pescheck-client/models/v2_candidate'
|
|
@@ -49,7 +54,7 @@ require 'pescheck-client/models/v2_screening_check_entry'
|
|
|
49
54
|
require 'pescheck-client/models/v2_screening_check_list_item'
|
|
50
55
|
require 'pescheck-client/models/v2_screening_create'
|
|
51
56
|
require 'pescheck-client/models/v2_screening_detail'
|
|
52
|
-
require 'pescheck-client/models/
|
|
57
|
+
require 'pescheck-client/models/v2_screening_detail_organisation'
|
|
53
58
|
require 'pescheck-client/models/v2_screening_list_item'
|
|
54
59
|
require 'pescheck-client/models/v2_screening_note'
|
|
55
60
|
require 'pescheck-client/models/v2_screening_note_input'
|
|
@@ -58,6 +63,7 @@ require 'pescheck-client/models/webhook'
|
|
|
58
63
|
require 'pescheck-client/models/webhook_response'
|
|
59
64
|
|
|
60
65
|
# APIs
|
|
66
|
+
require 'pescheck-client/api/add_ons_api'
|
|
61
67
|
require 'pescheck-client/api/authentication_api'
|
|
62
68
|
require 'pescheck-client/api/checks_api'
|
|
63
69
|
require 'pescheck-client/api/divisions_api'
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pescheck API
|
|
3
|
+
|
|
4
|
+
#Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.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 Pescheck::AddOnsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'AddOnsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Pescheck::AddOnsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of AddOnsApi' do
|
|
30
|
+
it 'should create an instance of AddOnsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Pescheck::AddOnsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for v2_organisations_addons_list
|
|
36
|
+
# List every add-on with whether it is enabled for the organisation.
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @option opts [String] :division_id Act on this division instead of the organisation the token belongs to.
|
|
39
|
+
# @return [Array<OrganisationAddon>]
|
|
40
|
+
describe 'v2_organisations_addons_list test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for v2_organisations_addons_partial_update
|
|
47
|
+
# Switch an add-on on or off. Enabling is billed monthly from today.
|
|
48
|
+
# @param addon The add-on to act on.
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @option opts [String] :division_id Act on this division instead of the organisation the token belongs to.
|
|
51
|
+
# @option opts [PatchedOrganisationAddonUpdate] :patched_organisation_addon_update
|
|
52
|
+
# @return [OrganisationAddonUpdateResult]
|
|
53
|
+
describe 'v2_organisations_addons_partial_update test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for v2_organisations_addons_retrieve
|
|
60
|
+
# Get one add-on's state for the organisation.
|
|
61
|
+
# @param addon The add-on to act on.
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @option opts [String] :division_id Act on this division instead of the organisation the token belongs to.
|
|
64
|
+
# @return [OrganisationAddon]
|
|
65
|
+
describe 'v2_organisations_addons_retrieve test' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# unit tests for v2_organisations_addons_update
|
|
72
|
+
# Switch an add-on on or off. Enabling is billed monthly from today.
|
|
73
|
+
# @param addon The add-on to act on.
|
|
74
|
+
# @param organisation_addon_update
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @option opts [String] :division_id Act on this division instead of the organisation the token belongs to.
|
|
77
|
+
# @return [OrganisationAddonUpdateResult]
|
|
78
|
+
describe 'v2_organisations_addons_update test' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
end
|
|
@@ -33,7 +33,7 @@ describe 'AuthenticationApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# unit tests for generate_jwt_token2
|
|
36
|
-
# Log in with email + password. Returns a JWT pair scoped to the organization or division specified by organisation_id/division_id
|
|
36
|
+
# Log in with email + password. Returns a JWT pair scoped to the organization or division specified by organisation_id/division_id. Without it, your single organization is used; accounts with access to more than one organization must specify one. For a plain login, use POST /api/jwt/.
|
|
37
37
|
# @param jwt_generation
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @return [JWTResponse]
|
|
@@ -43,17 +43,6 @@ describe 'AuthenticationApi' do
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
# unit tests for jwt_create
|
|
47
|
-
# Log in with email + password. Returns a JWT pair scoped to your current organization (last viewed, or first available). For a token scoped to a specific org or division, use POST /api/v2/jwt/generate/.
|
|
48
|
-
# @param custom_token_obtain_pair
|
|
49
|
-
# @param [Hash] opts the optional parameters
|
|
50
|
-
# @return [CustomTokenObtainPair]
|
|
51
|
-
describe 'jwt_create test' do
|
|
52
|
-
it 'should work' do
|
|
53
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
|
|
57
46
|
# unit tests for jwt_refresh_create
|
|
58
47
|
# Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
|
|
59
48
|
# @param token_refresh
|
|
@@ -32,6 +32,18 @@ describe 'ScreeningsApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# unit tests for v2_screenings_close_create
|
|
36
|
+
# Close a screening
|
|
37
|
+
# Stop a running screening (status OPEN, HOLD, WAITING or ATTENTION). Every check that has not finished is rejected, no more checks are done and the screening becomes FINISHED. This cannot be undone. The screening is still invoiced. Returns 409 when the screening is not running, for example a draft or a finished screening.
|
|
38
|
+
# @param id A UUID string identifying this screening.
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [V2ScreeningDetail]
|
|
41
|
+
describe 'v2_screenings_close_create test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
35
47
|
# unit tests for v2_screenings_create
|
|
36
48
|
# @param v2_screening_create
|
|
37
49
|
# @param [Hash] opts the optional parameters
|
|
@@ -58,6 +70,7 @@ describe 'ScreeningsApi' do
|
|
|
58
70
|
|
|
59
71
|
# unit tests for v2_screenings_list
|
|
60
72
|
# @param [Hash] opts the optional parameters
|
|
73
|
+
# @option opts [String] :organisation Restrict to screenings owned by this organisation. Use it with a parent-organisation token to list a single department's screenings.
|
|
61
74
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
62
75
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
63
76
|
# @option opts [Boolean] :paginate Enable/disable pagination. When false, max 500 records returned.
|
|
@@ -33,7 +33,7 @@ describe 'WebhooksApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# unit tests for create_webhook2
|
|
36
|
-
# Create webhook for event notifications. **Authentication Notes:** - OAuth2: Organization is automatically determined from the OAuth application - If your OAuth app has no organization set, pass it via `X-Organization-Id` header or `organization_id` query parameter **Valid Events:** - `check.
|
|
36
|
+
# Create webhook for event notifications. **Authentication Notes:** - OAuth2: Organization is automatically determined from the OAuth application - If your OAuth app has no organization set, pass it via `X-Organization-Id` header or `organization_id` query parameter **Valid Events:** - `check.status_changed` - Check status has changed (new status in payload) - `screening.status_changed` - Screening status has changed (new status in payload) - `screening.archived` - Screening has been archived - `package.created` - New package has been created - `package.updated` - Package has been updated - `profile.created` - New profile has been created - `profile.updated` - Profile has been updated - `division.created` - New division has been created - `division.updated` - Division has been updated Limited to 5 webhooks per organization/division.
|
|
37
37
|
# @param webhook
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [String] :x_organization_id Organization ID (for JWT/Session auth only)
|
|
@@ -14,26 +14,26 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for Pescheck::
|
|
17
|
+
# Unit tests for Pescheck::AddonPrice
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe Pescheck::
|
|
21
|
-
#let(:instance) { Pescheck::
|
|
20
|
+
describe Pescheck::AddonPrice do
|
|
21
|
+
#let(:instance) { Pescheck::AddonPrice.new }
|
|
22
22
|
|
|
23
|
-
describe 'test an instance of
|
|
24
|
-
it 'should create an instance of
|
|
23
|
+
describe 'test an instance of AddonPrice' do
|
|
24
|
+
it 'should create an instance of AddonPrice' do
|
|
25
25
|
# uncomment below to test the instance creation
|
|
26
|
-
#expect(instance).to be_instance_of(Pescheck::
|
|
26
|
+
#expect(instance).to be_instance_of(Pescheck::AddonPrice)
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
describe 'test attribute "
|
|
30
|
+
describe 'test attribute "amount"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
describe 'test attribute "
|
|
36
|
+
describe 'test attribute "currency"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
39
|
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pescheck API
|
|
3
|
+
|
|
4
|
+
#Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.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 Pescheck::DisabledDivision
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Pescheck::DisabledDivision do
|
|
21
|
+
#let(:instance) { Pescheck::DisabledDivision.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of DisabledDivision' do
|
|
24
|
+
it 'should create an instance of DisabledDivision' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Pescheck::DisabledDivision)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "id"' 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 "name"' 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
|
|
@@ -54,20 +54,24 @@ describe Pescheck::OAuthApplicationResponse do
|
|
|
54
54
|
describe 'test attribute "client_type"' do
|
|
55
55
|
it 'should work' do
|
|
56
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["confidential", "public"])
|
|
58
|
-
# validator.allowable_values.each do |value|
|
|
59
|
-
# expect { instance.client_type = value }.not_to raise_error
|
|
60
|
-
# end
|
|
61
57
|
end
|
|
62
58
|
end
|
|
63
59
|
|
|
64
60
|
describe 'test attribute "authorization_grant_type"' do
|
|
65
61
|
it 'should work' do
|
|
66
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "organisation"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
describe 'test attribute "organisation_id"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
71
75
|
end
|
|
72
76
|
end
|
|
73
77
|
|
|
@@ -46,7 +46,7 @@ describe Pescheck::OAuthApplication do
|
|
|
46
46
|
describe 'test attribute "authorization_grant_type"' do
|
|
47
47
|
it 'should work' do
|
|
48
48
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
49
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["authorization-code", "implicit", "password", "client-credentials", "openid-hybrid"])
|
|
49
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["authorization-code", "urn:ietf:params:oauth:grant-type:device_code", "implicit", "password", "client-credentials", "openid-hybrid"])
|
|
50
50
|
# validator.allowable_values.each do |value|
|
|
51
51
|
# expect { instance.authorization_grant_type = value }.not_to raise_error
|
|
52
52
|
# end
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pescheck API
|
|
3
|
+
|
|
4
|
+
#Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.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 Pescheck::OrganisationAddon
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Pescheck::OrganisationAddon do
|
|
21
|
+
#let(:instance) { Pescheck::OrganisationAddon.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of OrganisationAddon' do
|
|
24
|
+
it 'should create an instance of OrganisationAddon' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Pescheck::OrganisationAddon)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "addon"' 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 "name"' 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 "description"' 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 "enabled"' 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 "active"' 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
|
+
describe 'test attribute "blocked_by_parent"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "monthly_price"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
describe 'test attribute "price_is_indicative"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pescheck API
|
|
3
|
+
|
|
4
|
+
#Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.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 Pescheck::OrganisationAddonUpdateResult
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Pescheck::OrganisationAddonUpdateResult do
|
|
21
|
+
#let(:instance) { Pescheck::OrganisationAddonUpdateResult.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of OrganisationAddonUpdateResult' do
|
|
24
|
+
it 'should create an instance of OrganisationAddonUpdateResult' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Pescheck::OrganisationAddonUpdateResult)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "addon"' 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 "name"' 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 "description"' 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 "enabled"' 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 "active"' 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
|
+
describe 'test attribute "blocked_by_parent"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "monthly_price"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
describe 'test attribute "price_is_indicative"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
describe 'test attribute "disabled_divisions"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pescheck API
|
|
3
|
+
|
|
4
|
+
#Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.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 Pescheck::OrganisationAddonUpdate
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Pescheck::OrganisationAddonUpdate do
|
|
21
|
+
#let(:instance) { Pescheck::OrganisationAddonUpdate.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of OrganisationAddonUpdate' do
|
|
24
|
+
it 'should create an instance of OrganisationAddonUpdate' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Pescheck::OrganisationAddonUpdate)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "enabled"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|