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
|
@@ -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::PatchedOrganisationAddonUpdate
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Pescheck::PatchedOrganisationAddonUpdate do
|
|
21
|
+
#let(:instance) { Pescheck::PatchedOrganisationAddonUpdate.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of PatchedOrganisationAddonUpdate' do
|
|
24
|
+
it 'should create an instance of PatchedOrganisationAddonUpdate' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Pescheck::PatchedOrganisationAddonUpdate)
|
|
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
|
|
@@ -66,10 +66,6 @@ describe Pescheck::V2Candidate do
|
|
|
66
66
|
describe 'test attribute "nationality"' do
|
|
67
67
|
it 'should work' do
|
|
68
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AN", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "ST", "SV", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "XK", "YE", "YT", "ZA", "ZM", "ZW", ""])
|
|
70
|
-
# validator.allowable_values.each do |value|
|
|
71
|
-
# expect { instance.nationality = value }.not_to raise_error
|
|
72
|
-
# end
|
|
73
69
|
end
|
|
74
70
|
end
|
|
75
71
|
|
|
@@ -36,10 +36,6 @@ describe Pescheck::V2Document do
|
|
|
36
36
|
describe 'test attribute "check_type"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["addresscheck", "adversemediacheck", "bigcheck", "criminalrecordscheck", "criminalrecordsuploadcheck", "customintegritycheck", "cvcheck", "edrcheck", "focumcheck", "id2check", "idcheck", "integritycheck", "openhealthcarecheck", "permissioncheck", "pescheckadversemediacheck", "qualificationcheck", "righttoworkcheck", "vogcheck", "watchlist2check", "watchlistcheck", "workreferencecheck", "worldwidecreditcheck"])
|
|
40
|
-
# validator.allowable_values.each do |value|
|
|
41
|
-
# expect { instance.check_type = value }.not_to raise_error
|
|
42
|
-
# end
|
|
43
39
|
end
|
|
44
40
|
end
|
|
45
41
|
|
|
@@ -36,10 +36,6 @@ describe Pescheck::V2ProfileCheckEntry do
|
|
|
36
36
|
describe 'test attribute "check_type"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["addresscheck", "adversemediacheck", "bigcheck", "criminalrecordscheck", "criminalrecordsuploadcheck", "customintegritycheck", "cvcheck", "edrcheck", "focumcheck", "id2check", "idcheck", "integritycheck", "openhealthcarecheck", "permissioncheck", "pescheckadversemediacheck", "qualificationcheck", "righttoworkcheck", "vogcheck", "watchlist2check", "watchlistcheck", "workreferencecheck", "worldwidecreditcheck"])
|
|
40
|
-
# validator.allowable_values.each do |value|
|
|
41
|
-
# expect { instance.check_type = value }.not_to raise_error
|
|
42
|
-
# end
|
|
43
39
|
end
|
|
44
40
|
end
|
|
45
41
|
|
|
@@ -30,7 +30,7 @@ describe Pescheck::V2ProfileCheck do
|
|
|
30
30
|
describe 'test attribute "check_type"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["addresscheck", "
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["addresscheck", "adversemedia2check", "bigcheck", "criminalrecordscheck", "criminalrecordsuploadcheck", "customintegritycheck", "cvcheck", "edrcheck", "ibancheck", "id2check", "integritycheck", "openhealthcarecheck", "qualificationcheck", "righttoworkcheck", "vogcheck", "watchlist2check", "watchlistcheck", "workreferencecheck", "worldwidecreditcheck"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.check_type = value }.not_to raise_error
|
|
36
36
|
# end
|
|
@@ -81,6 +81,18 @@ describe Pescheck::V2ProfileDetail do
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
describe 'test attribute "creates_as_draft"' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
describe 'test attribute "draft_reasons"' do
|
|
91
|
+
it 'should work' do
|
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
84
96
|
describe 'test attribute "created_at"' do
|
|
85
97
|
it 'should work' do
|
|
86
98
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -30,7 +30,7 @@ describe Pescheck::V2ProfileUpdateCheck do
|
|
|
30
30
|
describe 'test attribute "check_type"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["addresscheck", "adversemediacheck", "bigcheck", "criminalrecordscheck", "criminalrecordsuploadcheck", "customintegritycheck", "cvcheck", "edrcheck", "
|
|
33
|
+
# validator = Petstore::EnumTest::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"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.check_type = value }.not_to raise_error
|
|
36
36
|
# end
|
|
@@ -42,10 +42,6 @@ describe Pescheck::V2ScreeningCheckEntry do
|
|
|
42
42
|
describe 'test attribute "check_type"' do
|
|
43
43
|
it 'should work' do
|
|
44
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["addresscheck", "adversemediacheck", "bigcheck", "criminalrecordscheck", "criminalrecordsuploadcheck", "customintegritycheck", "cvcheck", "edrcheck", "focumcheck", "id2check", "idcheck", "integritycheck", "openhealthcarecheck", "permissioncheck", "pescheckadversemediacheck", "qualificationcheck", "righttoworkcheck", "vogcheck", "watchlist2check", "watchlistcheck", "workreferencecheck", "worldwidecreditcheck"])
|
|
46
|
-
# validator.allowable_values.each do |value|
|
|
47
|
-
# expect { instance.check_type = value }.not_to raise_error
|
|
48
|
-
# end
|
|
49
45
|
end
|
|
50
46
|
end
|
|
51
47
|
|
|
@@ -36,10 +36,6 @@ describe Pescheck::V2ScreeningCheckListItem do
|
|
|
36
36
|
describe 'test attribute "check_type"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["addresscheck", "adversemediacheck", "bigcheck", "criminalrecordscheck", "criminalrecordsuploadcheck", "customintegritycheck", "cvcheck", "edrcheck", "focumcheck", "id2check", "idcheck", "integritycheck", "openhealthcarecheck", "permissioncheck", "pescheckadversemediacheck", "qualificationcheck", "righttoworkcheck", "vogcheck", "watchlist2check", "watchlistcheck", "workreferencecheck", "worldwidecreditcheck"])
|
|
40
|
-
# validator.allowable_values.each do |value|
|
|
41
|
-
# expect { instance.check_type = value }.not_to raise_error
|
|
42
|
-
# end
|
|
43
39
|
end
|
|
44
40
|
end
|
|
45
41
|
|
|
@@ -30,7 +30,7 @@ describe Pescheck::V2ScreeningCheck do
|
|
|
30
30
|
describe 'test attribute "check_type"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["addresscheck", "
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["addresscheck", "adversemedia2check", "bigcheck", "criminalrecordscheck", "criminalrecordsuploadcheck", "customintegritycheck", "cvcheck", "edrcheck", "ibancheck", "id2check", "integritycheck", "openhealthcarecheck", "qualificationcheck", "righttoworkcheck", "vogcheck", "watchlist2check", "watchlistcheck", "workreferencecheck", "worldwidecreditcheck"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.check_type = value }.not_to raise_error
|
|
36
36
|
# end
|
|
@@ -45,4 +45,16 @@ describe Pescheck::V2ScreeningCreate do
|
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
+
describe 'test attribute "screening_notes"' 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 "division_id"' 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
|
+
|
|
48
60
|
end
|
data/spec/models/{v2_screening_detail_profile_spec.rb → v2_screening_detail_organisation_spec.rb}
RENAMED
|
@@ -14,16 +14,16 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for Pescheck::
|
|
17
|
+
# Unit tests for Pescheck::V2ScreeningDetailOrganisation
|
|
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::V2ScreeningDetailOrganisation do
|
|
21
|
+
#let(:instance) { Pescheck::V2ScreeningDetailOrganisation.new }
|
|
22
22
|
|
|
23
|
-
describe 'test an instance of
|
|
24
|
-
it 'should create an instance of
|
|
23
|
+
describe 'test an instance of V2ScreeningDetailOrganisation' do
|
|
24
|
+
it 'should create an instance of V2ScreeningDetailOrganisation' 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::V2ScreeningDetailOrganisation)
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
@@ -39,6 +39,12 @@ describe Pescheck::V2ScreeningDetail do
|
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
describe 'test attribute "organisation"' 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
|
+
|
|
42
48
|
describe 'test attribute "profile"' do
|
|
43
49
|
it 'should work' do
|
|
44
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -57,6 +63,12 @@ describe Pescheck::V2ScreeningDetail do
|
|
|
57
63
|
end
|
|
58
64
|
end
|
|
59
65
|
|
|
66
|
+
describe 'test attribute "screening_notes"' 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
|
+
|
|
60
72
|
describe 'test attribute "candidate_wizard_url"' do
|
|
61
73
|
it 'should work' do
|
|
62
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -39,6 +39,12 @@ describe Pescheck::V2ScreeningListItem do
|
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
describe 'test attribute "organisation"' 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
|
+
|
|
42
48
|
describe 'test attribute "profile"' do
|
|
43
49
|
it 'should work' do
|
|
44
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -42,7 +42,7 @@ describe Pescheck::V2ScreeningNoteInput do
|
|
|
42
42
|
describe 'test attribute "check_type"' do
|
|
43
43
|
it 'should work' do
|
|
44
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["addresscheck", "adversemedia2check", "adversemediacheck", "bigcheck", "criminalrecordscheck", "criminalrecordsuploadcheck", "customintegritycheck", "cvcheck", "edrcheck", "
|
|
45
|
+
# validator = Petstore::EnumTest::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", ""])
|
|
46
46
|
# validator.allowable_values.each do |value|
|
|
47
47
|
# expect { instance.check_type = value }.not_to raise_error
|
|
48
48
|
# end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pescheck-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pescheck
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -91,9 +91,11 @@ files:
|
|
|
91
91
|
- Gemfile
|
|
92
92
|
- README.md
|
|
93
93
|
- Rakefile
|
|
94
|
+
- docs/AddOnsApi.md
|
|
95
|
+
- docs/AddonPrice.md
|
|
94
96
|
- docs/AuthenticationApi.md
|
|
95
97
|
- docs/ChecksApi.md
|
|
96
|
-
- docs/
|
|
98
|
+
- docs/DisabledDivision.md
|
|
97
99
|
- docs/DivisionReadOnly.md
|
|
98
100
|
- docs/DivisionWrite.md
|
|
99
101
|
- docs/DivisionsApi.md
|
|
@@ -102,10 +104,14 @@ files:
|
|
|
102
104
|
- docs/OAuthApi.md
|
|
103
105
|
- docs/OAuthApplication.md
|
|
104
106
|
- docs/OAuthApplicationResponse.md
|
|
107
|
+
- docs/OrganisationAddon.md
|
|
108
|
+
- docs/OrganisationAddonUpdate.md
|
|
109
|
+
- docs/OrganisationAddonUpdateResult.md
|
|
105
110
|
- docs/PaginatedDivisionReadOnlyList.md
|
|
106
111
|
- docs/PaginatedV2ProfileListItemList.md
|
|
107
112
|
- docs/PaginatedV2ScreeningListItemList.md
|
|
108
113
|
- docs/PatchedDivisionWrite.md
|
|
114
|
+
- docs/PatchedOrganisationAddonUpdate.md
|
|
109
115
|
- docs/PatchedV2ProfilePartialUpdate.md
|
|
110
116
|
- docs/ProfilesApi.md
|
|
111
117
|
- docs/ScreeningsApi.md
|
|
@@ -128,7 +134,7 @@ files:
|
|
|
128
134
|
- docs/V2ScreeningCheckListItem.md
|
|
129
135
|
- docs/V2ScreeningCreate.md
|
|
130
136
|
- docs/V2ScreeningDetail.md
|
|
131
|
-
- docs/
|
|
137
|
+
- docs/V2ScreeningDetailOrganisation.md
|
|
132
138
|
- docs/V2ScreeningListItem.md
|
|
133
139
|
- docs/V2ScreeningNote.md
|
|
134
140
|
- docs/V2ScreeningNoteInput.md
|
|
@@ -138,6 +144,7 @@ files:
|
|
|
138
144
|
- docs/WebhooksApi.md
|
|
139
145
|
- git_push.sh
|
|
140
146
|
- lib/pescheck-client.rb
|
|
147
|
+
- lib/pescheck-client/api/add_ons_api.rb
|
|
141
148
|
- lib/pescheck-client/api/authentication_api.rb
|
|
142
149
|
- lib/pescheck-client/api/checks_api.rb
|
|
143
150
|
- lib/pescheck-client/api/divisions_api.rb
|
|
@@ -149,17 +156,22 @@ files:
|
|
|
149
156
|
- lib/pescheck-client/api_error.rb
|
|
150
157
|
- lib/pescheck-client/api_model_base.rb
|
|
151
158
|
- lib/pescheck-client/configuration.rb
|
|
152
|
-
- lib/pescheck-client/models/
|
|
159
|
+
- lib/pescheck-client/models/addon_price.rb
|
|
160
|
+
- lib/pescheck-client/models/disabled_division.rb
|
|
153
161
|
- lib/pescheck-client/models/division_read_only.rb
|
|
154
162
|
- lib/pescheck-client/models/division_write.rb
|
|
155
163
|
- lib/pescheck-client/models/jwt_generation.rb
|
|
156
164
|
- lib/pescheck-client/models/jwt_response.rb
|
|
157
165
|
- lib/pescheck-client/models/o_auth_application.rb
|
|
158
166
|
- lib/pescheck-client/models/o_auth_application_response.rb
|
|
167
|
+
- lib/pescheck-client/models/organisation_addon.rb
|
|
168
|
+
- lib/pescheck-client/models/organisation_addon_update.rb
|
|
169
|
+
- lib/pescheck-client/models/organisation_addon_update_result.rb
|
|
159
170
|
- lib/pescheck-client/models/paginated_division_read_only_list.rb
|
|
160
171
|
- lib/pescheck-client/models/paginated_v2_profile_list_item_list.rb
|
|
161
172
|
- lib/pescheck-client/models/paginated_v2_screening_list_item_list.rb
|
|
162
173
|
- lib/pescheck-client/models/patched_division_write.rb
|
|
174
|
+
- lib/pescheck-client/models/patched_organisation_addon_update.rb
|
|
163
175
|
- lib/pescheck-client/models/patched_v2_profile_partial_update.rb
|
|
164
176
|
- lib/pescheck-client/models/token_refresh.rb
|
|
165
177
|
- lib/pescheck-client/models/v2_candidate.rb
|
|
@@ -180,7 +192,7 @@ files:
|
|
|
180
192
|
- lib/pescheck-client/models/v2_screening_check_list_item.rb
|
|
181
193
|
- lib/pescheck-client/models/v2_screening_create.rb
|
|
182
194
|
- lib/pescheck-client/models/v2_screening_detail.rb
|
|
183
|
-
- lib/pescheck-client/models/
|
|
195
|
+
- lib/pescheck-client/models/v2_screening_detail_organisation.rb
|
|
184
196
|
- lib/pescheck-client/models/v2_screening_list_item.rb
|
|
185
197
|
- lib/pescheck-client/models/v2_screening_note.rb
|
|
186
198
|
- lib/pescheck-client/models/v2_screening_note_input.rb
|
|
@@ -189,6 +201,7 @@ files:
|
|
|
189
201
|
- lib/pescheck-client/models/webhook_response.rb
|
|
190
202
|
- lib/pescheck-client/version.rb
|
|
191
203
|
- pescheck-client.gemspec
|
|
204
|
+
- spec/api/add_ons_api_spec.rb
|
|
192
205
|
- spec/api/authentication_api_spec.rb
|
|
193
206
|
- spec/api/checks_api_spec.rb
|
|
194
207
|
- spec/api/divisions_api_spec.rb
|
|
@@ -196,17 +209,22 @@ files:
|
|
|
196
209
|
- spec/api/profiles_api_spec.rb
|
|
197
210
|
- spec/api/screenings_api_spec.rb
|
|
198
211
|
- spec/api/webhooks_api_spec.rb
|
|
199
|
-
- spec/models/
|
|
212
|
+
- spec/models/addon_price_spec.rb
|
|
213
|
+
- spec/models/disabled_division_spec.rb
|
|
200
214
|
- spec/models/division_read_only_spec.rb
|
|
201
215
|
- spec/models/division_write_spec.rb
|
|
202
216
|
- spec/models/jwt_generation_spec.rb
|
|
203
217
|
- spec/models/jwt_response_spec.rb
|
|
204
218
|
- spec/models/o_auth_application_response_spec.rb
|
|
205
219
|
- spec/models/o_auth_application_spec.rb
|
|
220
|
+
- spec/models/organisation_addon_spec.rb
|
|
221
|
+
- spec/models/organisation_addon_update_result_spec.rb
|
|
222
|
+
- spec/models/organisation_addon_update_spec.rb
|
|
206
223
|
- spec/models/paginated_division_read_only_list_spec.rb
|
|
207
224
|
- spec/models/paginated_v2_profile_list_item_list_spec.rb
|
|
208
225
|
- spec/models/paginated_v2_screening_list_item_list_spec.rb
|
|
209
226
|
- spec/models/patched_division_write_spec.rb
|
|
227
|
+
- spec/models/patched_organisation_addon_update_spec.rb
|
|
210
228
|
- spec/models/patched_v2_profile_partial_update_spec.rb
|
|
211
229
|
- spec/models/token_refresh_spec.rb
|
|
212
230
|
- spec/models/v2_candidate_spec.rb
|
|
@@ -226,7 +244,7 @@ files:
|
|
|
226
244
|
- spec/models/v2_screening_check_list_item_spec.rb
|
|
227
245
|
- spec/models/v2_screening_check_spec.rb
|
|
228
246
|
- spec/models/v2_screening_create_spec.rb
|
|
229
|
-
- spec/models/
|
|
247
|
+
- spec/models/v2_screening_detail_organisation_spec.rb
|
|
230
248
|
- spec/models/v2_screening_detail_spec.rb
|
|
231
249
|
- spec/models/v2_screening_list_item_spec.rb
|
|
232
250
|
- spec/models/v2_screening_note_input_spec.rb
|
|
@@ -259,49 +277,55 @@ signing_key:
|
|
|
259
277
|
specification_version: 4
|
|
260
278
|
summary: Official Ruby client for the Pescheck API
|
|
261
279
|
test_files:
|
|
262
|
-
- spec/api/
|
|
280
|
+
- spec/api/authentication_api_spec.rb
|
|
263
281
|
- spec/api/webhooks_api_spec.rb
|
|
264
|
-
- spec/api/
|
|
265
|
-
- spec/api/
|
|
282
|
+
- spec/api/add_ons_api_spec.rb
|
|
283
|
+
- spec/api/screenings_api_spec.rb
|
|
266
284
|
- spec/api/profiles_api_spec.rb
|
|
267
285
|
- spec/api/o_auth_api_spec.rb
|
|
268
|
-
- spec/api/
|
|
269
|
-
- spec/
|
|
270
|
-
- spec/models/
|
|
286
|
+
- spec/api/divisions_api_spec.rb
|
|
287
|
+
- spec/api/checks_api_spec.rb
|
|
288
|
+
- spec/models/v2_document_content_spec.rb
|
|
289
|
+
- spec/models/v2_profile_list_item_spec.rb
|
|
290
|
+
- spec/models/v2_profile_detail_spec.rb
|
|
291
|
+
- spec/models/disabled_division_spec.rb
|
|
271
292
|
- spec/models/division_read_only_spec.rb
|
|
293
|
+
- spec/models/token_refresh_spec.rb
|
|
294
|
+
- spec/models/jwt_generation_spec.rb
|
|
295
|
+
- spec/models/organisation_addon_spec.rb
|
|
296
|
+
- spec/models/v2_screening_detail_organisation_spec.rb
|
|
297
|
+
- spec/models/v2_screening_note_input_spec.rb
|
|
298
|
+
- spec/models/o_auth_application_response_spec.rb
|
|
272
299
|
- spec/models/webhook_spec.rb
|
|
300
|
+
- spec/models/addon_price_spec.rb
|
|
301
|
+
- spec/models/webhook_response_spec.rb
|
|
302
|
+
- spec/models/v2_profile_update_spec.rb
|
|
303
|
+
- spec/models/v2_screening_check_spec.rb
|
|
304
|
+
- spec/models/v2_document_spec.rb
|
|
273
305
|
- spec/models/v2_profile_create_spec.rb
|
|
306
|
+
- spec/models/v2_screening_detail_spec.rb
|
|
274
307
|
- spec/models/v2_profile_check_spec.rb
|
|
275
|
-
- spec/models/
|
|
276
|
-
- spec/models/
|
|
277
|
-
- spec/models/custom_token_obtain_pair_spec.rb
|
|
278
|
-
- spec/models/v2_screening_note_input_spec.rb
|
|
279
|
-
- spec/models/v2_profile_update_check_spec.rb
|
|
280
|
-
- spec/models/v2_profile_detail_spec.rb
|
|
308
|
+
- spec/models/v2_check_field_spec.rb
|
|
309
|
+
- spec/models/o_auth_application_spec.rb
|
|
281
310
|
- spec/models/v2_candidate_spec.rb
|
|
282
|
-
- spec/models/
|
|
283
|
-
- spec/models/
|
|
311
|
+
- spec/models/v2_screening_list_item_spec.rb
|
|
312
|
+
- spec/models/v2_screening_create_spec.rb
|
|
313
|
+
- spec/models/paginated_division_read_only_list_spec.rb
|
|
284
314
|
- spec/models/v2_money_spec.rb
|
|
285
|
-
- spec/models/
|
|
286
|
-
- spec/models/
|
|
315
|
+
- spec/models/patched_organisation_addon_update_spec.rb
|
|
316
|
+
- spec/models/organisation_addon_update_spec.rb
|
|
317
|
+
- spec/models/division_write_spec.rb
|
|
318
|
+
- spec/models/v2_profile_update_check_spec.rb
|
|
319
|
+
- spec/models/v2_check_info_spec.rb
|
|
320
|
+
- spec/models/jwt_response_spec.rb
|
|
321
|
+
- spec/models/patched_v2_profile_partial_update_spec.rb
|
|
322
|
+
- spec/models/organisation_addon_update_result_spec.rb
|
|
323
|
+
- spec/models/v2_screening_check_entry_spec.rb
|
|
287
324
|
- spec/models/v2_screening_check_list_item_spec.rb
|
|
288
|
-
- spec/models/
|
|
289
|
-
- spec/models/v2_screening_list_item_spec.rb
|
|
290
|
-
- spec/models/o_auth_application_spec.rb
|
|
325
|
+
- spec/models/patched_division_write_spec.rb
|
|
291
326
|
- spec/models/v2_profile_check_entry_spec.rb
|
|
292
|
-
- spec/models/
|
|
293
|
-
- spec/models/
|
|
327
|
+
- spec/models/verify_webhook_spec.rb
|
|
328
|
+
- spec/models/paginated_v2_profile_list_item_list_spec.rb
|
|
329
|
+
- spec/models/v2_screening_note_spec.rb
|
|
294
330
|
- spec/models/paginated_v2_screening_list_item_list_spec.rb
|
|
295
|
-
- spec/models/token_refresh_spec.rb
|
|
296
|
-
- spec/models/v2_screening_check_entry_spec.rb
|
|
297
|
-
- spec/models/v2_profile_update_spec.rb
|
|
298
|
-
- spec/models/patched_v2_profile_partial_update_spec.rb
|
|
299
|
-
- spec/models/webhook_response_spec.rb
|
|
300
|
-
- spec/models/v2_screening_detail_spec.rb
|
|
301
|
-
- spec/models/jwt_response_spec.rb
|
|
302
|
-
- spec/models/v2_screening_create_spec.rb
|
|
303
|
-
- spec/models/jwt_generation_spec.rb
|
|
304
|
-
- spec/models/o_auth_application_response_spec.rb
|
|
305
|
-
- spec/models/v2_document_spec.rb
|
|
306
|
-
- spec/models/v2_screening_detail_profile_spec.rb
|
|
307
331
|
- spec/spec_helper.rb
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Pescheck::CustomTokenObtainPair
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **organization_id** | **String** | Organization or division ID to scope the token to. Required when your account has access to more than one organization. | [optional] |
|
|
8
|
-
| **email** | **String** | | |
|
|
9
|
-
| **password** | **String** | | |
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'pescheck-client'
|
|
15
|
-
|
|
16
|
-
instance = Pescheck::CustomTokenObtainPair.new(
|
|
17
|
-
organization_id: null,
|
|
18
|
-
email: null,
|
|
19
|
-
password: null
|
|
20
|
-
)
|
|
21
|
-
```
|
|
22
|
-
|