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.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +90 -45
  3. data/docs/AddOnsApi.md +305 -0
  4. data/docs/AddonPrice.md +20 -0
  5. data/docs/AuthenticationApi.md +0 -70
  6. data/docs/DisabledDivision.md +20 -0
  7. data/docs/OAuthApplication.md +1 -1
  8. data/docs/OAuthApplicationResponse.md +6 -2
  9. data/docs/OrganisationAddon.md +32 -0
  10. data/docs/OrganisationAddonUpdate.md +18 -0
  11. data/docs/OrganisationAddonUpdateResult.md +34 -0
  12. data/docs/PatchedOrganisationAddonUpdate.md +18 -0
  13. data/docs/ScreeningsApi.md +72 -0
  14. data/docs/V2Candidate.md +1 -1
  15. data/docs/V2CheckField.md +1 -1
  16. data/docs/V2Document.md +1 -1
  17. data/docs/V2ProfileCheck.md +1 -1
  18. data/docs/V2ProfileCheckEntry.md +1 -1
  19. data/docs/V2ProfileDetail.md +4 -0
  20. data/docs/V2ProfileUpdateCheck.md +1 -1
  21. data/docs/V2ScreeningCheck.md +1 -1
  22. data/docs/V2ScreeningCheckEntry.md +1 -1
  23. data/docs/V2ScreeningCheckListItem.md +1 -1
  24. data/docs/V2ScreeningCreate.md +3 -1
  25. data/docs/V2ScreeningDetail.md +3 -1
  26. data/docs/{V2ScreeningDetailProfile.md → V2ScreeningDetailOrganisation.md} +2 -2
  27. data/docs/V2ScreeningListItem.md +3 -1
  28. data/docs/V2ScreeningNoteInput.md +1 -1
  29. data/docs/WebhooksApi.md +1 -1
  30. data/lib/pescheck-client/api/add_ons_api.rb +305 -0
  31. data/lib/pescheck-client/api/authentication_api.rb +0 -66
  32. data/lib/pescheck-client/api/profiles_api.rb +1 -1
  33. data/lib/pescheck-client/api/screenings_api.rb +66 -0
  34. data/lib/pescheck-client/api/webhooks_api.rb +2 -2
  35. data/lib/pescheck-client/configuration.rb +8 -0
  36. data/lib/pescheck-client/models/{custom_token_obtain_pair.rb → addon_price.rb} +46 -45
  37. data/lib/pescheck-client/models/disabled_division.rb +190 -0
  38. data/lib/pescheck-client/models/o_auth_application.rb +3 -3
  39. data/lib/pescheck-client/models/o_auth_application_response.rb +70 -44
  40. data/lib/pescheck-client/models/organisation_addon.rb +339 -0
  41. data/lib/pescheck-client/models/organisation_addon_update.rb +165 -0
  42. data/lib/pescheck-client/models/organisation_addon_update_result.rb +368 -0
  43. data/lib/pescheck-client/models/patched_organisation_addon_update.rb +148 -0
  44. data/lib/pescheck-client/models/v2_candidate.rb +1 -35
  45. data/lib/pescheck-client/models/v2_check_field.rb +2 -2
  46. data/lib/pescheck-client/models/v2_document.rb +6 -30
  47. data/lib/pescheck-client/models/v2_profile_check.rb +3 -3
  48. data/lib/pescheck-client/models/v2_profile_check_entry.rb +6 -30
  49. data/lib/pescheck-client/models/v2_profile_detail.rb +55 -1
  50. data/lib/pescheck-client/models/v2_profile_update_check.rb +3 -3
  51. data/lib/pescheck-client/models/v2_screening_check.rb +3 -3
  52. data/lib/pescheck-client/models/v2_screening_check_entry.rb +6 -30
  53. data/lib/pescheck-client/models/v2_screening_check_list_item.rb +6 -30
  54. data/lib/pescheck-client/models/v2_screening_create.rb +14 -4
  55. data/lib/pescheck-client/models/v2_screening_detail.rb +14 -2
  56. data/lib/pescheck-client/models/{v2_screening_detail_profile.rb → v2_screening_detail_organisation.rb} +4 -3
  57. data/lib/pescheck-client/models/v2_screening_list_item.rb +14 -2
  58. data/lib/pescheck-client/models/v2_screening_note_input.rb +3 -3
  59. data/lib/pescheck-client/models/webhook_response.rb +5 -5
  60. data/lib/pescheck-client/version.rb +1 -1
  61. data/lib/pescheck-client.rb +8 -2
  62. data/spec/api/add_ons_api_spec.rb +84 -0
  63. data/spec/api/authentication_api_spec.rb +1 -12
  64. data/spec/api/screenings_api_spec.rb +13 -0
  65. data/spec/api/webhooks_api_spec.rb +1 -1
  66. data/spec/models/{custom_token_obtain_pair_spec.rb → addon_price_spec.rb} +8 -8
  67. data/spec/models/disabled_division_spec.rb +42 -0
  68. data/spec/models/o_auth_application_response_spec.rb +12 -8
  69. data/spec/models/o_auth_application_spec.rb +1 -1
  70. data/spec/models/organisation_addon_spec.rb +78 -0
  71. data/spec/models/organisation_addon_update_result_spec.rb +84 -0
  72. data/spec/models/organisation_addon_update_spec.rb +36 -0
  73. data/spec/models/patched_organisation_addon_update_spec.rb +36 -0
  74. data/spec/models/v2_candidate_spec.rb +0 -4
  75. data/spec/models/v2_document_spec.rb +0 -4
  76. data/spec/models/v2_profile_check_entry_spec.rb +0 -4
  77. data/spec/models/v2_profile_check_spec.rb +1 -1
  78. data/spec/models/v2_profile_detail_spec.rb +12 -0
  79. data/spec/models/v2_profile_update_check_spec.rb +1 -1
  80. data/spec/models/v2_screening_check_entry_spec.rb +0 -4
  81. data/spec/models/v2_screening_check_list_item_spec.rb +0 -4
  82. data/spec/models/v2_screening_check_spec.rb +1 -1
  83. data/spec/models/v2_screening_create_spec.rb +12 -0
  84. data/spec/models/{v2_screening_detail_profile_spec.rb → v2_screening_detail_organisation_spec.rb} +6 -6
  85. data/spec/models/v2_screening_detail_spec.rb +12 -0
  86. data/spec/models/v2_screening_list_item_spec.rb +6 -0
  87. data/spec/models/v2_screening_note_input_spec.rb +1 -1
  88. metadata +65 -41
  89. data/docs/CustomTokenObtainPair.md +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbf25e5cbec40d507d974672a21cadc5b283419b6a82edc9cc6c35cfaf8ac5d0
4
- data.tar.gz: 3589b36e2f33e56e5b0bc75ebd6e8d9d3a9b29a58f43f6b75dbda99fcc66abed
3
+ metadata.gz: 243d140166fd9c39d585cd5d3eee97ee6e26f2a45dec15a90f7044a99a08d614
4
+ data.tar.gz: 68fbc0e037ce4742db376d028459cfc3018ea6a6b2b90d0c100971fdbda0949d
5
5
  SHA512:
6
- metadata.gz: 01a3883aeed04b70a76eecf4193f12ed3f41d9cd2dbc0673e6ff493fdd08bbe526ca6501796c382e3de0aa81343b1849a7e22d1ba24a33dd07c1c8f49cf343d8
7
- data.tar.gz: 07c017dba7904d34a1c6d98f7d5ea534b6f9b6bc05cde64368324ab806260d98872955d1ec06d0ea145fdc9cbb765729ec39111cd55ba42a6155649e7b74f659
6
+ metadata.gz: 1065e3ace53d9fa575148223cd67320620f1f4fd07126f00eb71781afcdc86fd7a178a7fa4713548f088b2d53d76591a32fac72cb95b99fa262c5958123e116c
7
+ data.tar.gz: 4f094bdf5518b7876f6e5ba5899983452ae31097ac3d927135182dfa956a68f68dbb1732d31729e8f4c49ea151bd2ef7c48fbb190813d14d365170f853eebb3e
data/README.md CHANGED
@@ -1,5 +1,45 @@
1
1
  > **Official Pescheck API client** - part of the [pescheck-clients](https://github.com/pescheckit/pescheck-clients) SDKs.
2
2
 
3
+ <!-- pescheck-quickstart:start (generated by scripts/postprocess.mjs) -->
4
+
5
+ ## Quickstart
6
+
7
+ **1. Get API credentials.** Create a test account at [dashboard-staging.pescheck.io](https://dashboard-staging.pescheck.io/). In the dashboard, enable the **API & MCP Access** add-on (*Settings → Add-ons*), then create an app under *Development → Add app*. You get a client ID and a client secret.
8
+
9
+ **2. Get an access token** from the environment you want to use (staging while you integrate):
10
+
11
+ ```bash
12
+ curl -X POST https://api-staging.pescheck.io/api/o/token/ \
13
+ -d grant_type=client_credentials \
14
+ -d client_id=YOUR_CLIENT_ID \
15
+ -d client_secret=YOUR_CLIENT_SECRET
16
+ ```
17
+
18
+ Copy the `access_token` from the response (it is valid for one hour), and point the client at the same environment:
19
+
20
+ ```bash
21
+ export PESCHECK_BASE_URL=https://api-staging.pescheck.io
22
+ export PESCHECK_ACCESS_TOKEN=paste-the-access-token-here
23
+ ```
24
+
25
+ **3. Make your first call:**
26
+
27
+ ```ruby
28
+ require 'pescheck-client'
29
+
30
+ config = Pescheck::Configuration.new # host from PESCHECK_BASE_URL
31
+ config.access_token = ENV.fetch('PESCHECK_ACCESS_TOKEN')
32
+
33
+ checks = Pescheck::ChecksApi.new(Pescheck::ApiClient.new(config)).v2_checks_list
34
+ puts "#{checks.length} check types available"
35
+ ```
36
+
37
+ **4. Go live.** Use your production credentials and request the token from `https://api.pescheck.io/api/o/token/`. Then unset `PESCHECK_BASE_URL`: the client uses production by default. Your code does not change.
38
+
39
+ Setting the host in code (as some examples below do) overrides `PESCHECK_BASE_URL`.
40
+
41
+ <!-- pescheck-quickstart:end -->
42
+
3
43
  # pescheck-client
4
44
 
5
45
  Pescheck - the Ruby gem for the Pescheck API
@@ -64,19 +104,21 @@ Pescheck.configure do |config|
64
104
  # Configure OAuth2 access token for authorization: oauth2
65
105
  config.access_token = 'YOUR ACCESS TOKEN'
66
106
  # Configure a proc to get access tokens in lieu of the static access_token configuration
67
- config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
107
+ config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
68
108
  # Configure faraday connection
69
109
  config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
70
110
  end
71
111
 
72
- api_instance = Pescheck::AuthenticationApi.new
73
- jwt_generation = Pescheck::JWTGeneration.new({email: 'email_example', password: 'password_example'}) # JWTGeneration |
112
+ api_instance = Pescheck::AddOnsApi.new
113
+ opts = {
114
+ division_id: 'division_id_example' # String | Act on this division instead of the organisation the token belongs to.
115
+ }
74
116
 
75
117
  begin
76
- result = api_instance.generate_jwt_token2(jwt_generation)
118
+ result = api_instance.v2_organisations_addons_list(opts)
77
119
  p result
78
120
  rescue Pescheck::ApiError => e
79
- puts "Exception when calling AuthenticationApi->generate_jwt_token2: #{e}"
121
+ puts "Exception when calling AddOnsApi->v2_organisations_addons_list: #{e}"
80
122
  end
81
123
 
82
124
  ```
@@ -87,48 +129,56 @@ All URIs are relative to *https://api.pescheck.io*
87
129
 
88
130
  Class | Method | HTTP request | Description
89
131
  ------------ | ------------- | ------------- | -------------
90
- *Pescheck::AuthenticationApi* | [**generate_jwt_token2**](docs/AuthenticationApi.md#generate_jwt_token2) | **POST** /api/v2/jwt/generate/ |
91
- *Pescheck::AuthenticationApi* | [**jwt_create**](docs/AuthenticationApi.md#jwt_create) | **POST** /api/jwt/ |
92
- *Pescheck::AuthenticationApi* | [**jwt_refresh_create**](docs/AuthenticationApi.md#jwt_refresh_create) | **POST** /api/jwt/refresh/ |
93
- *Pescheck::ChecksApi* | [**v2_checks_list**](docs/ChecksApi.md#v2_checks_list) | **GET** /api/v2/checks/ |
94
- *Pescheck::ChecksApi* | [**v2_checks_retrieve**](docs/ChecksApi.md#v2_checks_retrieve) | **GET** /api/v2/checks/{check_type}/ |
95
- *Pescheck::DivisionsApi* | [**v2_organisations_divisions_create**](docs/DivisionsApi.md#v2_organisations_divisions_create) | **POST** /api/v2/organisations/divisions/ |
96
- *Pescheck::DivisionsApi* | [**v2_organisations_divisions_list**](docs/DivisionsApi.md#v2_organisations_divisions_list) | **GET** /api/v2/organisations/divisions/ |
97
- *Pescheck::DivisionsApi* | [**v2_organisations_divisions_partial_update**](docs/DivisionsApi.md#v2_organisations_divisions_partial_update) | **PATCH** /api/v2/organisations/divisions/{id}/ |
98
- *Pescheck::DivisionsApi* | [**v2_organisations_divisions_retrieve**](docs/DivisionsApi.md#v2_organisations_divisions_retrieve) | **GET** /api/v2/organisations/divisions/{id}/ |
99
- *Pescheck::DivisionsApi* | [**v2_organisations_divisions_update**](docs/DivisionsApi.md#v2_organisations_divisions_update) | **PUT** /api/v2/organisations/divisions/{id}/ |
100
- *Pescheck::OAuthApi* | [**create_o_auth_application2**](docs/OAuthApi.md#create_o_auth_application2) | **POST** /api/v2/oauth/applications/ |
101
- *Pescheck::OAuthApi* | [**delete_o_auth_application2**](docs/OAuthApi.md#delete_o_auth_application2) | **DELETE** /api/v2/oauth/applications/{application_id}/ |
102
- *Pescheck::OAuthApi* | [**list_o_auth_applications2**](docs/OAuthApi.md#list_o_auth_applications2) | **GET** /api/v2/oauth/applications/list/ |
103
- *Pescheck::ProfilesApi* | [**v2_profiles_create**](docs/ProfilesApi.md#v2_profiles_create) | **POST** /api/v2/profiles/ |
104
- *Pescheck::ProfilesApi* | [**v2_profiles_destroy**](docs/ProfilesApi.md#v2_profiles_destroy) | **DELETE** /api/v2/profiles/{id}/ |
105
- *Pescheck::ProfilesApi* | [**v2_profiles_list**](docs/ProfilesApi.md#v2_profiles_list) | **GET** /api/v2/profiles/ |
106
- *Pescheck::ProfilesApi* | [**v2_profiles_partial_update**](docs/ProfilesApi.md#v2_profiles_partial_update) | **PATCH** /api/v2/profiles/{id}/ |
107
- *Pescheck::ProfilesApi* | [**v2_profiles_retrieve**](docs/ProfilesApi.md#v2_profiles_retrieve) | **GET** /api/v2/profiles/{id}/ |
108
- *Pescheck::ProfilesApi* | [**v2_profiles_update**](docs/ProfilesApi.md#v2_profiles_update) | **PUT** /api/v2/profiles/{id}/ |
109
- *Pescheck::ScreeningsApi* | [**v2_screenings_create**](docs/ScreeningsApi.md#v2_screenings_create) | **POST** /api/v2/screenings/ |
132
+ *Pescheck::AddOnsApi* | [**v2_organisations_addons_list**](docs/AddOnsApi.md#v2_organisations_addons_list) | **GET** /api/v2/organisations/addons/ |
133
+ *Pescheck::AddOnsApi* | [**v2_organisations_addons_partial_update**](docs/AddOnsApi.md#v2_organisations_addons_partial_update) | **PATCH** /api/v2/organisations/addons/{addon}/ |
134
+ *Pescheck::AddOnsApi* | [**v2_organisations_addons_retrieve**](docs/AddOnsApi.md#v2_organisations_addons_retrieve) | **GET** /api/v2/organisations/addons/{addon}/ |
135
+ *Pescheck::AddOnsApi* | [**v2_organisations_addons_update**](docs/AddOnsApi.md#v2_organisations_addons_update) | **PUT** /api/v2/organisations/addons/{addon}/ |
136
+ *Pescheck::AuthenticationApi* | [**generate_jwt_token2**](docs/AuthenticationApi.md#generate_jwt_token2) | **POST** /api/v2/jwt/generate/ |
137
+ *Pescheck::AuthenticationApi* | [**jwt_refresh_create**](docs/AuthenticationApi.md#jwt_refresh_create) | **POST** /api/jwt/refresh/ |
138
+ *Pescheck::ChecksApi* | [**v2_checks_list**](docs/ChecksApi.md#v2_checks_list) | **GET** /api/v2/checks/ |
139
+ *Pescheck::ChecksApi* | [**v2_checks_retrieve**](docs/ChecksApi.md#v2_checks_retrieve) | **GET** /api/v2/checks/{check_type}/ |
140
+ *Pescheck::DivisionsApi* | [**v2_organisations_divisions_create**](docs/DivisionsApi.md#v2_organisations_divisions_create) | **POST** /api/v2/organisations/divisions/ |
141
+ *Pescheck::DivisionsApi* | [**v2_organisations_divisions_list**](docs/DivisionsApi.md#v2_organisations_divisions_list) | **GET** /api/v2/organisations/divisions/ |
142
+ *Pescheck::DivisionsApi* | [**v2_organisations_divisions_partial_update**](docs/DivisionsApi.md#v2_organisations_divisions_partial_update) | **PATCH** /api/v2/organisations/divisions/{id}/ |
143
+ *Pescheck::DivisionsApi* | [**v2_organisations_divisions_retrieve**](docs/DivisionsApi.md#v2_organisations_divisions_retrieve) | **GET** /api/v2/organisations/divisions/{id}/ |
144
+ *Pescheck::DivisionsApi* | [**v2_organisations_divisions_update**](docs/DivisionsApi.md#v2_organisations_divisions_update) | **PUT** /api/v2/organisations/divisions/{id}/ |
145
+ *Pescheck::OAuthApi* | [**create_o_auth_application2**](docs/OAuthApi.md#create_o_auth_application2) | **POST** /api/v2/oauth/applications/ |
146
+ *Pescheck::OAuthApi* | [**delete_o_auth_application2**](docs/OAuthApi.md#delete_o_auth_application2) | **DELETE** /api/v2/oauth/applications/{application_id}/ |
147
+ *Pescheck::OAuthApi* | [**list_o_auth_applications2**](docs/OAuthApi.md#list_o_auth_applications2) | **GET** /api/v2/oauth/applications/list/ |
148
+ *Pescheck::ProfilesApi* | [**v2_profiles_create**](docs/ProfilesApi.md#v2_profiles_create) | **POST** /api/v2/profiles/ |
149
+ *Pescheck::ProfilesApi* | [**v2_profiles_destroy**](docs/ProfilesApi.md#v2_profiles_destroy) | **DELETE** /api/v2/profiles/{id}/ |
150
+ *Pescheck::ProfilesApi* | [**v2_profiles_list**](docs/ProfilesApi.md#v2_profiles_list) | **GET** /api/v2/profiles/ |
151
+ *Pescheck::ProfilesApi* | [**v2_profiles_partial_update**](docs/ProfilesApi.md#v2_profiles_partial_update) | **PATCH** /api/v2/profiles/{id}/ |
152
+ *Pescheck::ProfilesApi* | [**v2_profiles_retrieve**](docs/ProfilesApi.md#v2_profiles_retrieve) | **GET** /api/v2/profiles/{id}/ |
153
+ *Pescheck::ProfilesApi* | [**v2_profiles_update**](docs/ProfilesApi.md#v2_profiles_update) | **PUT** /api/v2/profiles/{id}/ |
154
+ *Pescheck::ScreeningsApi* | [**v2_screenings_close_create**](docs/ScreeningsApi.md#v2_screenings_close_create) | **POST** /api/v2/screenings/{id}/close/ | Close a screening
155
+ *Pescheck::ScreeningsApi* | [**v2_screenings_create**](docs/ScreeningsApi.md#v2_screenings_create) | **POST** /api/v2/screenings/ |
110
156
  *Pescheck::ScreeningsApi* | [**v2_screenings_documents_list**](docs/ScreeningsApi.md#v2_screenings_documents_list) | **GET** /api/v2/screenings/{id}/documents/ | Retrieve screening documents
111
- *Pescheck::ScreeningsApi* | [**v2_screenings_list**](docs/ScreeningsApi.md#v2_screenings_list) | **GET** /api/v2/screenings/ |
112
- *Pescheck::ScreeningsApi* | [**v2_screenings_retrieve**](docs/ScreeningsApi.md#v2_screenings_retrieve) | **GET** /api/v2/screenings/{id}/ |
113
- *Pescheck::WebhooksApi* | [**create_webhook2**](docs/WebhooksApi.md#create_webhook2) | **POST** /api/v2/webhooks/ |
114
- *Pescheck::WebhooksApi* | [**delete_webhook2**](docs/WebhooksApi.md#delete_webhook2) | **DELETE** /api/v2/webhooks/{webhook_id}/ |
115
- *Pescheck::WebhooksApi* | [**list_webhooks2**](docs/WebhooksApi.md#list_webhooks2) | **GET** /api/v2/webhooks/list/ |
116
- *Pescheck::WebhooksApi* | [**verify_webhook2**](docs/WebhooksApi.md#verify_webhook2) | **POST** /api/v2/webhooks/{webhook_id}/verify/ |
117
-
157
+ *Pescheck::ScreeningsApi* | [**v2_screenings_list**](docs/ScreeningsApi.md#v2_screenings_list) | **GET** /api/v2/screenings/ |
158
+ *Pescheck::ScreeningsApi* | [**v2_screenings_retrieve**](docs/ScreeningsApi.md#v2_screenings_retrieve) | **GET** /api/v2/screenings/{id}/ |
159
+ *Pescheck::WebhooksApi* | [**create_webhook2**](docs/WebhooksApi.md#create_webhook2) | **POST** /api/v2/webhooks/ |
160
+ *Pescheck::WebhooksApi* | [**delete_webhook2**](docs/WebhooksApi.md#delete_webhook2) | **DELETE** /api/v2/webhooks/{webhook_id}/ |
161
+ *Pescheck::WebhooksApi* | [**list_webhooks2**](docs/WebhooksApi.md#list_webhooks2) | **GET** /api/v2/webhooks/list/ |
162
+ *Pescheck::WebhooksApi* | [**verify_webhook2**](docs/WebhooksApi.md#verify_webhook2) | **POST** /api/v2/webhooks/{webhook_id}/verify/ |
118
163
 
119
164
  ## Documentation for Models
120
165
 
121
- - [Pescheck::CustomTokenObtainPair](docs/CustomTokenObtainPair.md)
166
+ - [Pescheck::AddonPrice](docs/AddonPrice.md)
167
+ - [Pescheck::DisabledDivision](docs/DisabledDivision.md)
122
168
  - [Pescheck::DivisionReadOnly](docs/DivisionReadOnly.md)
123
169
  - [Pescheck::DivisionWrite](docs/DivisionWrite.md)
124
170
  - [Pescheck::JWTGeneration](docs/JWTGeneration.md)
125
171
  - [Pescheck::JWTResponse](docs/JWTResponse.md)
126
172
  - [Pescheck::OAuthApplication](docs/OAuthApplication.md)
127
173
  - [Pescheck::OAuthApplicationResponse](docs/OAuthApplicationResponse.md)
174
+ - [Pescheck::OrganisationAddon](docs/OrganisationAddon.md)
175
+ - [Pescheck::OrganisationAddonUpdate](docs/OrganisationAddonUpdate.md)
176
+ - [Pescheck::OrganisationAddonUpdateResult](docs/OrganisationAddonUpdateResult.md)
128
177
  - [Pescheck::PaginatedDivisionReadOnlyList](docs/PaginatedDivisionReadOnlyList.md)
129
178
  - [Pescheck::PaginatedV2ProfileListItemList](docs/PaginatedV2ProfileListItemList.md)
130
179
  - [Pescheck::PaginatedV2ScreeningListItemList](docs/PaginatedV2ScreeningListItemList.md)
131
180
  - [Pescheck::PatchedDivisionWrite](docs/PatchedDivisionWrite.md)
181
+ - [Pescheck::PatchedOrganisationAddonUpdate](docs/PatchedOrganisationAddonUpdate.md)
132
182
  - [Pescheck::PatchedV2ProfilePartialUpdate](docs/PatchedV2ProfilePartialUpdate.md)
133
183
  - [Pescheck::TokenRefresh](docs/TokenRefresh.md)
134
184
  - [Pescheck::V2Candidate](docs/V2Candidate.md)
@@ -149,7 +199,7 @@ Class | Method | HTTP request | Description
149
199
  - [Pescheck::V2ScreeningCheckListItem](docs/V2ScreeningCheckListItem.md)
150
200
  - [Pescheck::V2ScreeningCreate](docs/V2ScreeningCreate.md)
151
201
  - [Pescheck::V2ScreeningDetail](docs/V2ScreeningDetail.md)
152
- - [Pescheck::V2ScreeningDetailProfile](docs/V2ScreeningDetailProfile.md)
202
+ - [Pescheck::V2ScreeningDetailOrganisation](docs/V2ScreeningDetailOrganisation.md)
153
203
  - [Pescheck::V2ScreeningListItem](docs/V2ScreeningListItem.md)
154
204
  - [Pescheck::V2ScreeningNote](docs/V2ScreeningNote.md)
155
205
  - [Pescheck::V2ScreeningNoteInput](docs/V2ScreeningNoteInput.md)
@@ -157,17 +207,14 @@ Class | Method | HTTP request | Description
157
207
  - [Pescheck::Webhook](docs/Webhook.md)
158
208
  - [Pescheck::WebhookResponse](docs/WebhookResponse.md)
159
209
 
160
-
161
210
  ## Documentation for Authorization
162
211
 
163
-
164
212
  Authentication schemes defined for the API:
165
213
  ### cookieAuth
166
214
 
167
-
168
215
  - **Type**: API key
169
216
  - **API key parameter name**: __Secure-sessionid
170
- - **Location**:
217
+ - **Location**:
171
218
 
172
219
  ### jwtAuth
173
220
 
@@ -175,12 +222,10 @@ Authentication schemes defined for the API:
175
222
 
176
223
  ### oauth2
177
224
 
178
-
179
225
  - **Type**: OAuth
180
226
  - **Flow**: application
181
- - **Authorization URL**:
182
- - **Scopes**:
183
- - read:api: read groups
184
- - create:api: create groups
185
- - update:api: update groups
186
-
227
+ - **Authorization URL**:
228
+ - **Scopes**:
229
+ - read:api: Read access to API
230
+ - create:api: Create access to API
231
+ - update:api: Update access to API
data/docs/AddOnsApi.md ADDED
@@ -0,0 +1,305 @@
1
+ # Pescheck::AddOnsApi
2
+
3
+ All URIs are relative to *https://api.pescheck.io*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**v2_organisations_addons_list**](AddOnsApi.md#v2_organisations_addons_list) | **GET** /api/v2/organisations/addons/ | |
8
+ | [**v2_organisations_addons_partial_update**](AddOnsApi.md#v2_organisations_addons_partial_update) | **PATCH** /api/v2/organisations/addons/{addon}/ | |
9
+ | [**v2_organisations_addons_retrieve**](AddOnsApi.md#v2_organisations_addons_retrieve) | **GET** /api/v2/organisations/addons/{addon}/ | |
10
+ | [**v2_organisations_addons_update**](AddOnsApi.md#v2_organisations_addons_update) | **PUT** /api/v2/organisations/addons/{addon}/ | |
11
+
12
+
13
+ ## v2_organisations_addons_list
14
+
15
+ > <Array<OrganisationAddon>> v2_organisations_addons_list(opts)
16
+
17
+
18
+
19
+ List every add-on with whether it is enabled for the organisation.
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'pescheck-client'
26
+ # setup authorization
27
+ Pescheck.configure do |config|
28
+ # Configure OAuth2 access token for authorization: oauth2
29
+ config.access_token = 'YOUR ACCESS TOKEN'
30
+ end
31
+
32
+ api_instance = Pescheck::AddOnsApi.new
33
+ opts = {
34
+ division_id: 'division_id_example' # String | Act on this division instead of the organisation the token belongs to.
35
+ }
36
+
37
+ begin
38
+
39
+ result = api_instance.v2_organisations_addons_list(opts)
40
+ p result
41
+ rescue Pescheck::ApiError => e
42
+ puts "Error when calling AddOnsApi->v2_organisations_addons_list: #{e}"
43
+ end
44
+ ```
45
+
46
+ #### Using the v2_organisations_addons_list_with_http_info variant
47
+
48
+ This returns an Array which contains the response data, status code and headers.
49
+
50
+ > <Array(<Array<OrganisationAddon>>, Integer, Hash)> v2_organisations_addons_list_with_http_info(opts)
51
+
52
+ ```ruby
53
+ begin
54
+
55
+ data, status_code, headers = api_instance.v2_organisations_addons_list_with_http_info(opts)
56
+ p status_code # => 2xx
57
+ p headers # => { ... }
58
+ p data # => <Array<OrganisationAddon>>
59
+ rescue Pescheck::ApiError => e
60
+ puts "Error when calling AddOnsApi->v2_organisations_addons_list_with_http_info: #{e}"
61
+ end
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ | Name | Type | Description | Notes |
67
+ | ---- | ---- | ----------- | ----- |
68
+ | **division_id** | **String** | Act on this division instead of the organisation the token belongs to. | [optional] |
69
+
70
+ ### Return type
71
+
72
+ [**Array&lt;OrganisationAddon&gt;**](OrganisationAddon.md)
73
+
74
+ ### Authorization
75
+
76
+ [oauth2](../README.md#oauth2)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: Not defined
81
+ - **Accept**: application/json
82
+
83
+
84
+ ## v2_organisations_addons_partial_update
85
+
86
+ > <OrganisationAddonUpdateResult> v2_organisations_addons_partial_update(addon, opts)
87
+
88
+
89
+
90
+ Switch an add-on on or off. Enabling is billed monthly from today.
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'pescheck-client'
97
+ # setup authorization
98
+ Pescheck.configure do |config|
99
+ # Configure OAuth2 access token for authorization: oauth2
100
+ config.access_token = 'YOUR ACCESS TOKEN'
101
+ end
102
+
103
+ api_instance = Pescheck::AddOnsApi.new
104
+ addon = 'api_access' # String | The add-on to act on.
105
+ opts = {
106
+ division_id: 'division_id_example', # String | Act on this division instead of the organisation the token belongs to.
107
+ patched_organisation_addon_update: Pescheck::PatchedOrganisationAddonUpdate.new # PatchedOrganisationAddonUpdate |
108
+ }
109
+
110
+ begin
111
+
112
+ result = api_instance.v2_organisations_addons_partial_update(addon, opts)
113
+ p result
114
+ rescue Pescheck::ApiError => e
115
+ puts "Error when calling AddOnsApi->v2_organisations_addons_partial_update: #{e}"
116
+ end
117
+ ```
118
+
119
+ #### Using the v2_organisations_addons_partial_update_with_http_info variant
120
+
121
+ This returns an Array which contains the response data, status code and headers.
122
+
123
+ > <Array(<OrganisationAddonUpdateResult>, Integer, Hash)> v2_organisations_addons_partial_update_with_http_info(addon, opts)
124
+
125
+ ```ruby
126
+ begin
127
+
128
+ data, status_code, headers = api_instance.v2_organisations_addons_partial_update_with_http_info(addon, opts)
129
+ p status_code # => 2xx
130
+ p headers # => { ... }
131
+ p data # => <OrganisationAddonUpdateResult>
132
+ rescue Pescheck::ApiError => e
133
+ puts "Error when calling AddOnsApi->v2_organisations_addons_partial_update_with_http_info: #{e}"
134
+ end
135
+ ```
136
+
137
+ ### Parameters
138
+
139
+ | Name | Type | Description | Notes |
140
+ | ---- | ---- | ----------- | ----- |
141
+ | **addon** | **String** | The add-on to act on. | |
142
+ | **division_id** | **String** | Act on this division instead of the organisation the token belongs to. | [optional] |
143
+ | **patched_organisation_addon_update** | [**PatchedOrganisationAddonUpdate**](PatchedOrganisationAddonUpdate.md) | | [optional] |
144
+
145
+ ### Return type
146
+
147
+ [**OrganisationAddonUpdateResult**](OrganisationAddonUpdateResult.md)
148
+
149
+ ### Authorization
150
+
151
+ [oauth2](../README.md#oauth2)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: application/json, multipart/form-data
156
+ - **Accept**: application/json
157
+
158
+
159
+ ## v2_organisations_addons_retrieve
160
+
161
+ > <OrganisationAddon> v2_organisations_addons_retrieve(addon, opts)
162
+
163
+
164
+
165
+ Get one add-on's state for the organisation.
166
+
167
+ ### Examples
168
+
169
+ ```ruby
170
+ require 'time'
171
+ require 'pescheck-client'
172
+ # setup authorization
173
+ Pescheck.configure do |config|
174
+ # Configure OAuth2 access token for authorization: oauth2
175
+ config.access_token = 'YOUR ACCESS TOKEN'
176
+ end
177
+
178
+ api_instance = Pescheck::AddOnsApi.new
179
+ addon = 'api_access' # String | The add-on to act on.
180
+ opts = {
181
+ division_id: 'division_id_example' # String | Act on this division instead of the organisation the token belongs to.
182
+ }
183
+
184
+ begin
185
+
186
+ result = api_instance.v2_organisations_addons_retrieve(addon, opts)
187
+ p result
188
+ rescue Pescheck::ApiError => e
189
+ puts "Error when calling AddOnsApi->v2_organisations_addons_retrieve: #{e}"
190
+ end
191
+ ```
192
+
193
+ #### Using the v2_organisations_addons_retrieve_with_http_info variant
194
+
195
+ This returns an Array which contains the response data, status code and headers.
196
+
197
+ > <Array(<OrganisationAddon>, Integer, Hash)> v2_organisations_addons_retrieve_with_http_info(addon, opts)
198
+
199
+ ```ruby
200
+ begin
201
+
202
+ data, status_code, headers = api_instance.v2_organisations_addons_retrieve_with_http_info(addon, opts)
203
+ p status_code # => 2xx
204
+ p headers # => { ... }
205
+ p data # => <OrganisationAddon>
206
+ rescue Pescheck::ApiError => e
207
+ puts "Error when calling AddOnsApi->v2_organisations_addons_retrieve_with_http_info: #{e}"
208
+ end
209
+ ```
210
+
211
+ ### Parameters
212
+
213
+ | Name | Type | Description | Notes |
214
+ | ---- | ---- | ----------- | ----- |
215
+ | **addon** | **String** | The add-on to act on. | |
216
+ | **division_id** | **String** | Act on this division instead of the organisation the token belongs to. | [optional] |
217
+
218
+ ### Return type
219
+
220
+ [**OrganisationAddon**](OrganisationAddon.md)
221
+
222
+ ### Authorization
223
+
224
+ [oauth2](../README.md#oauth2)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: Not defined
229
+ - **Accept**: application/json
230
+
231
+
232
+ ## v2_organisations_addons_update
233
+
234
+ > <OrganisationAddonUpdateResult> v2_organisations_addons_update(addon, organisation_addon_update, opts)
235
+
236
+
237
+
238
+ Switch an add-on on or off. Enabling is billed monthly from today.
239
+
240
+ ### Examples
241
+
242
+ ```ruby
243
+ require 'time'
244
+ require 'pescheck-client'
245
+ # setup authorization
246
+ Pescheck.configure do |config|
247
+ # Configure OAuth2 access token for authorization: oauth2
248
+ config.access_token = 'YOUR ACCESS TOKEN'
249
+ end
250
+
251
+ api_instance = Pescheck::AddOnsApi.new
252
+ addon = 'api_access' # String | The add-on to act on.
253
+ organisation_addon_update = Pescheck::OrganisationAddonUpdate.new({enabled: false}) # OrganisationAddonUpdate |
254
+ opts = {
255
+ division_id: 'division_id_example' # String | Act on this division instead of the organisation the token belongs to.
256
+ }
257
+
258
+ begin
259
+
260
+ result = api_instance.v2_organisations_addons_update(addon, organisation_addon_update, opts)
261
+ p result
262
+ rescue Pescheck::ApiError => e
263
+ puts "Error when calling AddOnsApi->v2_organisations_addons_update: #{e}"
264
+ end
265
+ ```
266
+
267
+ #### Using the v2_organisations_addons_update_with_http_info variant
268
+
269
+ This returns an Array which contains the response data, status code and headers.
270
+
271
+ > <Array(<OrganisationAddonUpdateResult>, Integer, Hash)> v2_organisations_addons_update_with_http_info(addon, organisation_addon_update, opts)
272
+
273
+ ```ruby
274
+ begin
275
+
276
+ data, status_code, headers = api_instance.v2_organisations_addons_update_with_http_info(addon, organisation_addon_update, opts)
277
+ p status_code # => 2xx
278
+ p headers # => { ... }
279
+ p data # => <OrganisationAddonUpdateResult>
280
+ rescue Pescheck::ApiError => e
281
+ puts "Error when calling AddOnsApi->v2_organisations_addons_update_with_http_info: #{e}"
282
+ end
283
+ ```
284
+
285
+ ### Parameters
286
+
287
+ | Name | Type | Description | Notes |
288
+ | ---- | ---- | ----------- | ----- |
289
+ | **addon** | **String** | The add-on to act on. | |
290
+ | **organisation_addon_update** | [**OrganisationAddonUpdate**](OrganisationAddonUpdate.md) | | |
291
+ | **division_id** | **String** | Act on this division instead of the organisation the token belongs to. | [optional] |
292
+
293
+ ### Return type
294
+
295
+ [**OrganisationAddonUpdateResult**](OrganisationAddonUpdateResult.md)
296
+
297
+ ### Authorization
298
+
299
+ [oauth2](../README.md#oauth2)
300
+
301
+ ### HTTP request headers
302
+
303
+ - **Content-Type**: application/json, multipart/form-data
304
+ - **Accept**: application/json
305
+
@@ -0,0 +1,20 @@
1
+ # Pescheck::AddonPrice
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **amount** | **String** | | |
8
+ | **currency** | **String** | ISO 4217 code, e.g. EUR. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pescheck-client'
14
+
15
+ instance = Pescheck::AddonPrice.new(
16
+ amount: null,
17
+ currency: null
18
+ )
19
+ ```
20
+
@@ -5,7 +5,6 @@ All URIs are relative to *https://api.pescheck.io*
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**generate_jwt_token2**](AuthenticationApi.md#generate_jwt_token2) | **POST** /api/v2/jwt/generate/ | |
8
- | [**jwt_create**](AuthenticationApi.md#jwt_create) | **POST** /api/jwt/ | |
9
8
  | [**jwt_refresh_create**](AuthenticationApi.md#jwt_refresh_create) | **POST** /api/jwt/refresh/ | |
10
9
 
11
10
 
@@ -78,75 +77,6 @@ end
78
77
  - **Accept**: application/json
79
78
 
80
79
 
81
- ## jwt_create
82
-
83
- > <CustomTokenObtainPair> jwt_create(custom_token_obtain_pair)
84
-
85
-
86
-
87
- Log in with email + password. Returns a JWT pair scoped to one organization. Pass organization_id to select the organization or division to act for; it is required when your account has access to more than one. Without it, your single organization is used.
88
-
89
- ### Examples
90
-
91
- ```ruby
92
- require 'time'
93
- require 'pescheck-client'
94
- # setup authorization
95
- Pescheck.configure do |config|
96
- # Configure OAuth2 access token for authorization: oauth2
97
- config.access_token = 'YOUR ACCESS TOKEN'
98
- end
99
-
100
- api_instance = Pescheck::AuthenticationApi.new
101
- custom_token_obtain_pair = Pescheck::CustomTokenObtainPair.new({email: 'email_example', password: 'password_example'}) # CustomTokenObtainPair |
102
-
103
- begin
104
-
105
- result = api_instance.jwt_create(custom_token_obtain_pair)
106
- p result
107
- rescue Pescheck::ApiError => e
108
- puts "Error when calling AuthenticationApi->jwt_create: #{e}"
109
- end
110
- ```
111
-
112
- #### Using the jwt_create_with_http_info variant
113
-
114
- This returns an Array which contains the response data, status code and headers.
115
-
116
- > <Array(<CustomTokenObtainPair>, Integer, Hash)> jwt_create_with_http_info(custom_token_obtain_pair)
117
-
118
- ```ruby
119
- begin
120
-
121
- data, status_code, headers = api_instance.jwt_create_with_http_info(custom_token_obtain_pair)
122
- p status_code # => 2xx
123
- p headers # => { ... }
124
- p data # => <CustomTokenObtainPair>
125
- rescue Pescheck::ApiError => e
126
- puts "Error when calling AuthenticationApi->jwt_create_with_http_info: #{e}"
127
- end
128
- ```
129
-
130
- ### Parameters
131
-
132
- | Name | Type | Description | Notes |
133
- | ---- | ---- | ----------- | ----- |
134
- | **custom_token_obtain_pair** | [**CustomTokenObtainPair**](CustomTokenObtainPair.md) | | |
135
-
136
- ### Return type
137
-
138
- [**CustomTokenObtainPair**](CustomTokenObtainPair.md)
139
-
140
- ### Authorization
141
-
142
- [oauth2](../README.md#oauth2)
143
-
144
- ### HTTP request headers
145
-
146
- - **Content-Type**: application/json, multipart/form-data
147
- - **Accept**: application/json
148
-
149
-
150
80
  ## jwt_refresh_create
151
81
 
152
82
  > <TokenRefresh> jwt_refresh_create(token_refresh)
@@ -0,0 +1,20 @@
1
+ # Pescheck::DisabledDivision
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **name** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pescheck-client'
14
+
15
+ instance = Pescheck::DisabledDivision.new(
16
+ id: null,
17
+ name: null
18
+ )
19
+ ```
20
+
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | Name for the OAuth application | |
8
8
  | **client_type** | **String** | Client type (confidential recommended for server-to-server) * &#x60;confidential&#x60; - Confidential * &#x60;public&#x60; - Public | [optional][default to &#39;confidential&#39;] |
9
- | **authorization_grant_type** | **String** | Grant type (client_credentials for API access) * &#x60;authorization-code&#x60; - Authorization code * &#x60;implicit&#x60; - Implicit * &#x60;password&#x60; - Resource owner password-based * &#x60;client-credentials&#x60; - Client credentials * &#x60;openid-hybrid&#x60; - OpenID connect hybrid | [optional][default to &#39;client-credentials&#39;] |
9
+ | **authorization_grant_type** | **String** | Grant type (client_credentials for API access) * &#x60;authorization-code&#x60; - Authorization code * &#x60;urn:ietf:params:oauth:grant-type:device_code&#x60; - Device Code * &#x60;implicit&#x60; - Implicit * &#x60;password&#x60; - Resource owner password-based * &#x60;client-credentials&#x60; - Client credentials * &#x60;openid-hybrid&#x60; - OpenID connect hybrid | [optional][default to &#39;client-credentials&#39;] |
10
10
  | **redirect_uris** | **String** | Space-separated redirect URIs (optional for client_credentials) | [optional] |
11
11
  | **division_id** | **String** | Division ID to create application for (optional) | [optional] |
12
12