doorflow 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +222 -316
- data/bin/post-generate +3 -1
- data/doorflow.gemspec +1 -1
- data/lib/doorflow-api/api/accounts_api.rb +1 -1
- data/lib/doorflow-api/api/admission_requests_api.rb +2 -2
- data/lib/doorflow-api/api/card_designs_api.rb +347 -0
- data/lib/doorflow-api/api/card_template_types_api.rb +350 -0
- data/lib/doorflow-api/api/card_templates_api.rb +811 -0
- data/lib/doorflow-api/api/channels_api.rb +11 -11
- data/lib/doorflow-api/api/credential_types_api.rb +1 -1
- data/lib/doorflow-api/api/credentials_api.rb +6 -6
- data/lib/doorflow-api/api/element_sessions_api.rb +90 -0
- data/lib/doorflow-api/api/events_api.rb +2 -2
- data/lib/doorflow-api/api/group_reservations_api.rb +68 -5
- data/lib/doorflow-api/api/groups_api.rb +1 -1
- data/lib/doorflow-api/api/notification_rules_api.rb +7 -7
- data/lib/doorflow-api/api/oauth_api.rb +1 -1
- data/lib/doorflow-api/api/people_api.rb +7 -7
- data/lib/doorflow-api/api/reservations_api.rb +5 -5
- data/lib/doorflow-api/api/roles_api.rb +1 -1
- data/lib/doorflow-api/api/sites_api.rb +1 -1
- data/lib/doorflow-api/api/sync_api.rb +4 -4
- data/lib/doorflow-api/api_client.rb +8 -4
- data/lib/doorflow-api/api_error.rb +9 -14
- data/lib/doorflow-api/api_model_base.rb +1 -1
- data/lib/doorflow-api/configuration.rb +1 -1
- data/lib/doorflow-api/models/account.rb +1 -1
- data/lib/doorflow-api/models/account_passport.rb +1 -1
- data/lib/doorflow-api/models/account_reseller.rb +1 -1
- data/lib/doorflow-api/models/account_sync.rb +1 -1
- data/lib/doorflow-api/models/account_user.rb +1 -1
- data/lib/doorflow-api/models/admission_request.rb +1 -1
- data/lib/doorflow-api/models/admission_request_door_controller.rb +1 -1
- data/lib/doorflow-api/models/admission_request_person.rb +1 -1
- data/lib/doorflow-api/models/admit_channel202_response.rb +1 -1
- data/lib/doorflow-api/models/admit_person202_response.rb +1 -1
- data/lib/doorflow-api/models/admit_person403_response.rb +1 -1
- data/lib/doorflow-api/models/admit_person_request.rb +1 -1
- data/lib/doorflow-api/models/auto_unlock_channel400_response.rb +1 -1
- data/lib/doorflow-api/models/auto_unlock_channel_request.rb +1 -1
- data/lib/doorflow-api/models/card_design.rb +243 -0
- data/lib/doorflow-api/models/card_design_image_back.rb +179 -0
- data/lib/doorflow-api/models/card_design_image_front.rb +179 -0
- data/lib/doorflow-api/models/card_design_input.rb +181 -0
- data/lib/doorflow-api/models/card_template.rb +475 -0
- data/lib/doorflow-api/models/card_template_input.rb +147 -0
- data/lib/doorflow-api/models/card_template_input_card_template.rb +347 -0
- data/lib/doorflow-api/models/card_template_type.rb +321 -0
- data/lib/doorflow-api/models/card_template_type_input.rb +147 -0
- data/lib/doorflow-api/models/card_template_type_input_card_template_type.rb +251 -0
- data/lib/doorflow-api/models/card_template_type_input_card_template_type_non_printable_zones_inner.rb +183 -0
- data/lib/doorflow-api/models/card_template_type_non_printable_zones_inner.rb +188 -0
- data/lib/doorflow-api/models/channel.rb +1 -1
- data/lib/doorflow-api/models/channel_auto_unlock.rb +1 -1
- data/lib/doorflow-api/models/channel_lockdown.rb +1 -1
- data/lib/doorflow-api/models/channel_lockdown_aux_lockdown.rb +1 -1
- data/lib/doorflow-api/models/channel_lockdown_card_lockdown.rb +1 -1
- data/lib/doorflow-api/models/channel_lockdown_rex_lockdown.rb +1 -1
- data/lib/doorflow-api/models/channel_mode.rb +1 -1
- data/lib/doorflow-api/models/channel_sync.rb +5 -2
- data/lib/doorflow-api/models/{create_credential422_response.rb → create_card_design422_response.rb} +5 -5
- data/lib/doorflow-api/models/{create_credential422_response_errors.rb → create_card_design422_response_errors.rb} +4 -4
- data/lib/doorflow-api/models/credential.rb +4 -4
- data/lib/doorflow-api/models/credential_input.rb +1 -1
- data/lib/doorflow-api/models/credential_input_person_credential.rb +1 -1
- data/lib/doorflow-api/models/credential_type.rb +1 -1
- data/lib/doorflow-api/models/credential_update_input.rb +1 -1
- data/lib/doorflow-api/models/credential_update_input_person_credential.rb +1 -1
- data/lib/doorflow-api/models/{delete_group_reservation200_response.rb → delete_card_design200_response.rb} +4 -4
- data/lib/doorflow-api/models/delete_card_template_type409_response.rb +147 -0
- data/lib/doorflow-api/models/element_session.rb +192 -0
- data/lib/doorflow-api/models/element_session_config.rb +265 -0
- data/lib/doorflow-api/models/element_session_error.rb +199 -0
- data/lib/doorflow-api/models/element_session_input.rb +271 -0
- data/lib/doorflow-api/models/element_session_member.rb +186 -0
- data/lib/doorflow-api/models/error.rb +1 -1
- data/lib/doorflow-api/models/event.rb +1 -1
- data/lib/doorflow-api/models/get_access_token200_response.rb +1 -1
- data/lib/doorflow-api/models/get_access_token400_response.rb +1 -1
- data/lib/doorflow-api/models/get_access_token401_response.rb +1 -1
- data/lib/doorflow-api/models/get_admission_request401_response.rb +1 -1
- data/lib/doorflow-api/models/get_admission_request403_response.rb +1 -1
- data/lib/doorflow-api/models/get_admission_request404_response.rb +1 -1
- data/lib/doorflow-api/models/get_admission_request500_response.rb +1 -1
- data/lib/doorflow-api/models/get_token_info200_response.rb +1 -1
- data/lib/doorflow-api/models/get_token_info200_response_application.rb +1 -1
- data/lib/doorflow-api/models/get_token_info401_response.rb +1 -1
- data/lib/doorflow-api/models/group.rb +1 -1
- data/lib/doorflow-api/models/group_reservation.rb +1 -1
- data/lib/doorflow-api/models/group_reservation_input.rb +1 -1
- data/lib/doorflow-api/models/group_reservation_input_group_reservation.rb +1 -1
- data/lib/doorflow-api/models/initiate_sync429_response.rb +1 -1
- data/lib/doorflow-api/models/linked_file.rb +217 -0
- data/lib/doorflow-api/models/list_events400_response.rb +1 -1
- data/lib/doorflow-api/models/lockdown_channel_request.rb +1 -1
- data/lib/doorflow-api/models/notification_rule.rb +1 -1
- data/lib/doorflow-api/models/notification_rule_actions_inner.rb +1 -1
- data/lib/doorflow-api/models/notification_rule_conditions_inner.rb +1 -1
- data/lib/doorflow-api/models/notification_rule_events_inner.rb +1 -1
- data/lib/doorflow-api/models/notification_rule_input.rb +1 -1
- data/lib/doorflow-api/models/person.rb +30 -8
- data/lib/doorflow-api/models/person_input.rb +1 -1
- data/lib/doorflow-api/models/reservation.rb +1 -1
- data/lib/doorflow-api/models/reservation_input.rb +1 -1
- data/lib/doorflow-api/models/revoke_token403_response.rb +1 -1
- data/lib/doorflow-api/models/role.rb +1 -1
- data/lib/doorflow-api/models/site.rb +1 -1
- data/lib/doorflow-api/models/site_site_ips_inner.rb +1 -1
- data/lib/doorflow-api/models/unlock_channel_request.rb +1 -1
- data/lib/doorflow-api/version.rb +2 -2
- data/lib/doorflow-api.rb +28 -9
- data/lib/doorflow.rb +7 -2
- metadata +43 -164
- data/spec/api/admission_requests_api_spec.rb +0 -47
- data/spec/api/channels_api_spec.rb +0 -174
- data/spec/api/credential_types_api_spec.rb +0 -49
- data/spec/api/group_reservations_api_spec.rb +0 -75
- data/spec/api/oauth_api_spec.rb +0 -97
- data/spec/doorflow/client_spec.rb +0 -109
- data/spec/doorflow/webhooks/event_spec.rb +0 -117
- data/spec/doorflow/webhooks/handler_spec.rb +0 -154
- data/spec/doorflow/webhooks/signature_verifier_spec.rb +0 -210
- data/spec/doorflow/webhooks/support.rb +0 -18
- data/spec/doorflow_spec.rb +0 -22
- data/spec/fixtures/vcr_cassettes/channel/list.yml +0 -70
- data/spec/fixtures/vcr_cassettes/channel/retrieve.yml +0 -131
- data/spec/fixtures/vcr_cassettes/person/auto_pagination.yml +0 -87
- data/spec/fixtures/vcr_cassettes/person/create.yml +0 -64
- data/spec/fixtures/vcr_cassettes/person/delete.yml +0 -125
- data/spec/fixtures/vcr_cassettes/person/list.yml +0 -90
- data/spec/fixtures/vcr_cassettes/person/not_found.yml +0 -62
- data/spec/fixtures/vcr_cassettes/person/retrieve.yml +0 -136
- data/spec/fixtures/vcr_cassettes/person/update.yml +0 -260
- data/spec/fixtures/vcr_cassettes/person/validation_error.yml +0 -62
- data/spec/integration/channel_spec.rb +0 -88
- data/spec/integration/person_spec.rb +0 -99
- data/spec/models/account_passport_spec.rb +0 -42
- data/spec/models/account_reseller_spec.rb +0 -60
- data/spec/models/account_sync_spec.rb +0 -52
- data/spec/models/account_user_spec.rb +0 -54
- data/spec/models/admission_request_door_controller_spec.rb +0 -42
- data/spec/models/admission_request_person_spec.rb +0 -42
- data/spec/models/admission_request_spec.rb +0 -82
- data/spec/models/admit_channel202_response_spec.rb +0 -46
- data/spec/models/admit_person202_response_spec.rb +0 -46
- data/spec/models/admit_person403_response_spec.rb +0 -42
- data/spec/models/admit_person_request_spec.rb +0 -36
- data/spec/models/auto_unlock_channel400_response_spec.rb +0 -42
- data/spec/models/auto_unlock_channel_request_spec.rb +0 -36
- data/spec/models/channel_auto_unlock_spec.rb +0 -42
- data/spec/models/channel_lockdown_aux_lockdown_spec.rb +0 -36
- data/spec/models/channel_lockdown_card_lockdown_spec.rb +0 -36
- data/spec/models/channel_lockdown_rex_lockdown_spec.rb +0 -36
- data/spec/models/channel_lockdown_spec.rb +0 -54
- data/spec/models/channel_mode_spec.rb +0 -52
- data/spec/models/channel_sync_spec.rb +0 -46
- data/spec/models/create_credential422_response_errors_spec.rb +0 -48
- data/spec/models/create_credential422_response_spec.rb +0 -42
- data/spec/models/credential_input_person_credential_spec.rb +0 -48
- data/spec/models/credential_input_spec.rb +0 -36
- data/spec/models/credential_spec.rb +0 -86
- data/spec/models/credential_update_input_person_credential_spec.rb +0 -36
- data/spec/models/credential_update_input_spec.rb +0 -36
- data/spec/models/delete_group_reservation200_response_spec.rb +0 -36
- data/spec/models/error_spec.rb +0 -42
- data/spec/models/get_access_token200_response_spec.rb +0 -66
- data/spec/models/get_access_token400_response_spec.rb +0 -46
- data/spec/models/get_access_token401_response_spec.rb +0 -42
- data/spec/models/get_admission_request401_response_spec.rb +0 -42
- data/spec/models/get_admission_request403_response_spec.rb +0 -42
- data/spec/models/get_admission_request404_response_spec.rb +0 -42
- data/spec/models/get_admission_request500_response_spec.rb +0 -42
- data/spec/models/get_token_info200_response_application_spec.rb +0 -36
- data/spec/models/get_token_info200_response_spec.rb +0 -66
- data/spec/models/get_token_info401_response_spec.rb +0 -42
- data/spec/models/group_reservation_input_group_reservation_spec.rb +0 -54
- data/spec/models/group_reservation_input_spec.rb +0 -36
- data/spec/models/group_reservation_spec.rb +0 -82
- data/spec/models/initiate_sync429_response_spec.rb +0 -52
- data/spec/models/list_events400_response_spec.rb +0 -42
- data/spec/models/lockdown_channel_request_spec.rb +0 -48
- data/spec/models/notification_rule_actions_inner_spec.rb +0 -48
- data/spec/models/notification_rule_conditions_inner_spec.rb +0 -48
- data/spec/models/notification_rule_events_inner_spec.rb +0 -42
- data/spec/models/notification_rule_input_spec.rb +0 -60
- data/spec/models/person_input_spec.rb +0 -180
- data/spec/models/reservation_input_spec.rb +0 -60
- data/spec/models/revoke_token403_response_spec.rb +0 -42
- data/spec/models/site_site_ips_inner_spec.rb +0 -36
- data/spec/models/unlock_channel_request_spec.rb +0 -36
- data/spec/resources/credential_bugs_spec.rb +0 -115
- data/spec/spec_helper.rb +0 -160
metadata
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: doorflow
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- NetNodes Ltd
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-07-24 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: base64
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0.2'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '0.2'
|
|
12
26
|
- !ruby/object:Gem::Dependency
|
|
13
27
|
name: faraday
|
|
14
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -190,9 +204,13 @@ files:
|
|
|
190
204
|
- lib/doorflow-api.rb
|
|
191
205
|
- lib/doorflow-api/api/accounts_api.rb
|
|
192
206
|
- lib/doorflow-api/api/admission_requests_api.rb
|
|
207
|
+
- lib/doorflow-api/api/card_designs_api.rb
|
|
208
|
+
- lib/doorflow-api/api/card_template_types_api.rb
|
|
209
|
+
- lib/doorflow-api/api/card_templates_api.rb
|
|
193
210
|
- lib/doorflow-api/api/channels_api.rb
|
|
194
211
|
- lib/doorflow-api/api/credential_types_api.rb
|
|
195
212
|
- lib/doorflow-api/api/credentials_api.rb
|
|
213
|
+
- lib/doorflow-api/api/element_sessions_api.rb
|
|
196
214
|
- lib/doorflow-api/api/events_api.rb
|
|
197
215
|
- lib/doorflow-api/api/group_reservations_api.rb
|
|
198
216
|
- lib/doorflow-api/api/groups_api.rb
|
|
@@ -221,6 +239,18 @@ files:
|
|
|
221
239
|
- lib/doorflow-api/models/admit_person_request.rb
|
|
222
240
|
- lib/doorflow-api/models/auto_unlock_channel400_response.rb
|
|
223
241
|
- lib/doorflow-api/models/auto_unlock_channel_request.rb
|
|
242
|
+
- lib/doorflow-api/models/card_design.rb
|
|
243
|
+
- lib/doorflow-api/models/card_design_image_back.rb
|
|
244
|
+
- lib/doorflow-api/models/card_design_image_front.rb
|
|
245
|
+
- lib/doorflow-api/models/card_design_input.rb
|
|
246
|
+
- lib/doorflow-api/models/card_template.rb
|
|
247
|
+
- lib/doorflow-api/models/card_template_input.rb
|
|
248
|
+
- lib/doorflow-api/models/card_template_input_card_template.rb
|
|
249
|
+
- lib/doorflow-api/models/card_template_type.rb
|
|
250
|
+
- lib/doorflow-api/models/card_template_type_input.rb
|
|
251
|
+
- lib/doorflow-api/models/card_template_type_input_card_template_type.rb
|
|
252
|
+
- lib/doorflow-api/models/card_template_type_input_card_template_type_non_printable_zones_inner.rb
|
|
253
|
+
- lib/doorflow-api/models/card_template_type_non_printable_zones_inner.rb
|
|
224
254
|
- lib/doorflow-api/models/channel.rb
|
|
225
255
|
- lib/doorflow-api/models/channel_auto_unlock.rb
|
|
226
256
|
- lib/doorflow-api/models/channel_lockdown.rb
|
|
@@ -229,15 +259,21 @@ files:
|
|
|
229
259
|
- lib/doorflow-api/models/channel_lockdown_rex_lockdown.rb
|
|
230
260
|
- lib/doorflow-api/models/channel_mode.rb
|
|
231
261
|
- lib/doorflow-api/models/channel_sync.rb
|
|
232
|
-
- lib/doorflow-api/models/
|
|
233
|
-
- lib/doorflow-api/models/
|
|
262
|
+
- lib/doorflow-api/models/create_card_design422_response.rb
|
|
263
|
+
- lib/doorflow-api/models/create_card_design422_response_errors.rb
|
|
234
264
|
- lib/doorflow-api/models/credential.rb
|
|
235
265
|
- lib/doorflow-api/models/credential_input.rb
|
|
236
266
|
- lib/doorflow-api/models/credential_input_person_credential.rb
|
|
237
267
|
- lib/doorflow-api/models/credential_type.rb
|
|
238
268
|
- lib/doorflow-api/models/credential_update_input.rb
|
|
239
269
|
- lib/doorflow-api/models/credential_update_input_person_credential.rb
|
|
240
|
-
- lib/doorflow-api/models/
|
|
270
|
+
- lib/doorflow-api/models/delete_card_design200_response.rb
|
|
271
|
+
- lib/doorflow-api/models/delete_card_template_type409_response.rb
|
|
272
|
+
- lib/doorflow-api/models/element_session.rb
|
|
273
|
+
- lib/doorflow-api/models/element_session_config.rb
|
|
274
|
+
- lib/doorflow-api/models/element_session_error.rb
|
|
275
|
+
- lib/doorflow-api/models/element_session_input.rb
|
|
276
|
+
- lib/doorflow-api/models/element_session_member.rb
|
|
241
277
|
- lib/doorflow-api/models/error.rb
|
|
242
278
|
- lib/doorflow-api/models/event.rb
|
|
243
279
|
- lib/doorflow-api/models/get_access_token200_response.rb
|
|
@@ -255,6 +291,7 @@ files:
|
|
|
255
291
|
- lib/doorflow-api/models/group_reservation_input.rb
|
|
256
292
|
- lib/doorflow-api/models/group_reservation_input_group_reservation.rb
|
|
257
293
|
- lib/doorflow-api/models/initiate_sync429_response.rb
|
|
294
|
+
- lib/doorflow-api/models/linked_file.rb
|
|
258
295
|
- lib/doorflow-api/models/list_events400_response.rb
|
|
259
296
|
- lib/doorflow-api/models/lockdown_channel_request.rb
|
|
260
297
|
- lib/doorflow-api/models/notification_rule.rb
|
|
@@ -319,85 +356,6 @@ files:
|
|
|
319
356
|
- lib/doorflow/webhooks/event.rb
|
|
320
357
|
- lib/doorflow/webhooks/handler.rb
|
|
321
358
|
- lib/doorflow/webhooks/signature_verifier.rb
|
|
322
|
-
- spec/api/admission_requests_api_spec.rb
|
|
323
|
-
- spec/api/channels_api_spec.rb
|
|
324
|
-
- spec/api/credential_types_api_spec.rb
|
|
325
|
-
- spec/api/group_reservations_api_spec.rb
|
|
326
|
-
- spec/api/oauth_api_spec.rb
|
|
327
|
-
- spec/doorflow/client_spec.rb
|
|
328
|
-
- spec/doorflow/webhooks/event_spec.rb
|
|
329
|
-
- spec/doorflow/webhooks/handler_spec.rb
|
|
330
|
-
- spec/doorflow/webhooks/signature_verifier_spec.rb
|
|
331
|
-
- spec/doorflow/webhooks/support.rb
|
|
332
|
-
- spec/doorflow_spec.rb
|
|
333
|
-
- spec/fixtures/vcr_cassettes/channel/list.yml
|
|
334
|
-
- spec/fixtures/vcr_cassettes/channel/retrieve.yml
|
|
335
|
-
- spec/fixtures/vcr_cassettes/person/auto_pagination.yml
|
|
336
|
-
- spec/fixtures/vcr_cassettes/person/create.yml
|
|
337
|
-
- spec/fixtures/vcr_cassettes/person/delete.yml
|
|
338
|
-
- spec/fixtures/vcr_cassettes/person/list.yml
|
|
339
|
-
- spec/fixtures/vcr_cassettes/person/not_found.yml
|
|
340
|
-
- spec/fixtures/vcr_cassettes/person/retrieve.yml
|
|
341
|
-
- spec/fixtures/vcr_cassettes/person/update.yml
|
|
342
|
-
- spec/fixtures/vcr_cassettes/person/validation_error.yml
|
|
343
|
-
- spec/integration/channel_spec.rb
|
|
344
|
-
- spec/integration/person_spec.rb
|
|
345
|
-
- spec/models/account_passport_spec.rb
|
|
346
|
-
- spec/models/account_reseller_spec.rb
|
|
347
|
-
- spec/models/account_sync_spec.rb
|
|
348
|
-
- spec/models/account_user_spec.rb
|
|
349
|
-
- spec/models/admission_request_door_controller_spec.rb
|
|
350
|
-
- spec/models/admission_request_person_spec.rb
|
|
351
|
-
- spec/models/admission_request_spec.rb
|
|
352
|
-
- spec/models/admit_channel202_response_spec.rb
|
|
353
|
-
- spec/models/admit_person202_response_spec.rb
|
|
354
|
-
- spec/models/admit_person403_response_spec.rb
|
|
355
|
-
- spec/models/admit_person_request_spec.rb
|
|
356
|
-
- spec/models/auto_unlock_channel400_response_spec.rb
|
|
357
|
-
- spec/models/auto_unlock_channel_request_spec.rb
|
|
358
|
-
- spec/models/channel_auto_unlock_spec.rb
|
|
359
|
-
- spec/models/channel_lockdown_aux_lockdown_spec.rb
|
|
360
|
-
- spec/models/channel_lockdown_card_lockdown_spec.rb
|
|
361
|
-
- spec/models/channel_lockdown_rex_lockdown_spec.rb
|
|
362
|
-
- spec/models/channel_lockdown_spec.rb
|
|
363
|
-
- spec/models/channel_mode_spec.rb
|
|
364
|
-
- spec/models/channel_sync_spec.rb
|
|
365
|
-
- spec/models/create_credential422_response_errors_spec.rb
|
|
366
|
-
- spec/models/create_credential422_response_spec.rb
|
|
367
|
-
- spec/models/credential_input_person_credential_spec.rb
|
|
368
|
-
- spec/models/credential_input_spec.rb
|
|
369
|
-
- spec/models/credential_spec.rb
|
|
370
|
-
- spec/models/credential_update_input_person_credential_spec.rb
|
|
371
|
-
- spec/models/credential_update_input_spec.rb
|
|
372
|
-
- spec/models/delete_group_reservation200_response_spec.rb
|
|
373
|
-
- spec/models/error_spec.rb
|
|
374
|
-
- spec/models/get_access_token200_response_spec.rb
|
|
375
|
-
- spec/models/get_access_token400_response_spec.rb
|
|
376
|
-
- spec/models/get_access_token401_response_spec.rb
|
|
377
|
-
- spec/models/get_admission_request401_response_spec.rb
|
|
378
|
-
- spec/models/get_admission_request403_response_spec.rb
|
|
379
|
-
- spec/models/get_admission_request404_response_spec.rb
|
|
380
|
-
- spec/models/get_admission_request500_response_spec.rb
|
|
381
|
-
- spec/models/get_token_info200_response_application_spec.rb
|
|
382
|
-
- spec/models/get_token_info200_response_spec.rb
|
|
383
|
-
- spec/models/get_token_info401_response_spec.rb
|
|
384
|
-
- spec/models/group_reservation_input_group_reservation_spec.rb
|
|
385
|
-
- spec/models/group_reservation_input_spec.rb
|
|
386
|
-
- spec/models/group_reservation_spec.rb
|
|
387
|
-
- spec/models/initiate_sync429_response_spec.rb
|
|
388
|
-
- spec/models/list_events400_response_spec.rb
|
|
389
|
-
- spec/models/lockdown_channel_request_spec.rb
|
|
390
|
-
- spec/models/notification_rule_actions_inner_spec.rb
|
|
391
|
-
- spec/models/notification_rule_conditions_inner_spec.rb
|
|
392
|
-
- spec/models/notification_rule_events_inner_spec.rb
|
|
393
|
-
- spec/models/notification_rule_input_spec.rb
|
|
394
|
-
- spec/models/person_input_spec.rb
|
|
395
|
-
- spec/models/reservation_input_spec.rb
|
|
396
|
-
- spec/models/revoke_token403_response_spec.rb
|
|
397
|
-
- spec/models/site_site_ips_inner_spec.rb
|
|
398
|
-
- spec/models/unlock_channel_request_spec.rb
|
|
399
|
-
- spec/resources/credential_bugs_spec.rb
|
|
400
|
-
- spec/spec_helper.rb
|
|
401
359
|
homepage: https://www.doorflow.com
|
|
402
360
|
licenses:
|
|
403
361
|
- MIT
|
|
@@ -425,83 +383,4 @@ requirements: []
|
|
|
425
383
|
rubygems_version: 3.6.6
|
|
426
384
|
specification_version: 4
|
|
427
385
|
summary: Official Ruby client for DoorFlow API v3
|
|
428
|
-
test_files:
|
|
429
|
-
- spec/api/admission_requests_api_spec.rb
|
|
430
|
-
- spec/api/channels_api_spec.rb
|
|
431
|
-
- spec/api/credential_types_api_spec.rb
|
|
432
|
-
- spec/api/group_reservations_api_spec.rb
|
|
433
|
-
- spec/api/oauth_api_spec.rb
|
|
434
|
-
- spec/doorflow/client_spec.rb
|
|
435
|
-
- spec/doorflow/webhooks/event_spec.rb
|
|
436
|
-
- spec/doorflow/webhooks/handler_spec.rb
|
|
437
|
-
- spec/doorflow/webhooks/signature_verifier_spec.rb
|
|
438
|
-
- spec/doorflow/webhooks/support.rb
|
|
439
|
-
- spec/doorflow_spec.rb
|
|
440
|
-
- spec/fixtures/vcr_cassettes/channel/list.yml
|
|
441
|
-
- spec/fixtures/vcr_cassettes/channel/retrieve.yml
|
|
442
|
-
- spec/fixtures/vcr_cassettes/person/auto_pagination.yml
|
|
443
|
-
- spec/fixtures/vcr_cassettes/person/create.yml
|
|
444
|
-
- spec/fixtures/vcr_cassettes/person/delete.yml
|
|
445
|
-
- spec/fixtures/vcr_cassettes/person/list.yml
|
|
446
|
-
- spec/fixtures/vcr_cassettes/person/not_found.yml
|
|
447
|
-
- spec/fixtures/vcr_cassettes/person/retrieve.yml
|
|
448
|
-
- spec/fixtures/vcr_cassettes/person/update.yml
|
|
449
|
-
- spec/fixtures/vcr_cassettes/person/validation_error.yml
|
|
450
|
-
- spec/integration/channel_spec.rb
|
|
451
|
-
- spec/integration/person_spec.rb
|
|
452
|
-
- spec/models/account_passport_spec.rb
|
|
453
|
-
- spec/models/account_reseller_spec.rb
|
|
454
|
-
- spec/models/account_sync_spec.rb
|
|
455
|
-
- spec/models/account_user_spec.rb
|
|
456
|
-
- spec/models/admission_request_door_controller_spec.rb
|
|
457
|
-
- spec/models/admission_request_person_spec.rb
|
|
458
|
-
- spec/models/admission_request_spec.rb
|
|
459
|
-
- spec/models/admit_channel202_response_spec.rb
|
|
460
|
-
- spec/models/admit_person202_response_spec.rb
|
|
461
|
-
- spec/models/admit_person403_response_spec.rb
|
|
462
|
-
- spec/models/admit_person_request_spec.rb
|
|
463
|
-
- spec/models/auto_unlock_channel400_response_spec.rb
|
|
464
|
-
- spec/models/auto_unlock_channel_request_spec.rb
|
|
465
|
-
- spec/models/channel_auto_unlock_spec.rb
|
|
466
|
-
- spec/models/channel_lockdown_aux_lockdown_spec.rb
|
|
467
|
-
- spec/models/channel_lockdown_card_lockdown_spec.rb
|
|
468
|
-
- spec/models/channel_lockdown_rex_lockdown_spec.rb
|
|
469
|
-
- spec/models/channel_lockdown_spec.rb
|
|
470
|
-
- spec/models/channel_mode_spec.rb
|
|
471
|
-
- spec/models/channel_sync_spec.rb
|
|
472
|
-
- spec/models/create_credential422_response_errors_spec.rb
|
|
473
|
-
- spec/models/create_credential422_response_spec.rb
|
|
474
|
-
- spec/models/credential_input_person_credential_spec.rb
|
|
475
|
-
- spec/models/credential_input_spec.rb
|
|
476
|
-
- spec/models/credential_spec.rb
|
|
477
|
-
- spec/models/credential_update_input_person_credential_spec.rb
|
|
478
|
-
- spec/models/credential_update_input_spec.rb
|
|
479
|
-
- spec/models/delete_group_reservation200_response_spec.rb
|
|
480
|
-
- spec/models/error_spec.rb
|
|
481
|
-
- spec/models/get_access_token200_response_spec.rb
|
|
482
|
-
- spec/models/get_access_token400_response_spec.rb
|
|
483
|
-
- spec/models/get_access_token401_response_spec.rb
|
|
484
|
-
- spec/models/get_admission_request401_response_spec.rb
|
|
485
|
-
- spec/models/get_admission_request403_response_spec.rb
|
|
486
|
-
- spec/models/get_admission_request404_response_spec.rb
|
|
487
|
-
- spec/models/get_admission_request500_response_spec.rb
|
|
488
|
-
- spec/models/get_token_info200_response_application_spec.rb
|
|
489
|
-
- spec/models/get_token_info200_response_spec.rb
|
|
490
|
-
- spec/models/get_token_info401_response_spec.rb
|
|
491
|
-
- spec/models/group_reservation_input_group_reservation_spec.rb
|
|
492
|
-
- spec/models/group_reservation_input_spec.rb
|
|
493
|
-
- spec/models/group_reservation_spec.rb
|
|
494
|
-
- spec/models/initiate_sync429_response_spec.rb
|
|
495
|
-
- spec/models/list_events400_response_spec.rb
|
|
496
|
-
- spec/models/lockdown_channel_request_spec.rb
|
|
497
|
-
- spec/models/notification_rule_actions_inner_spec.rb
|
|
498
|
-
- spec/models/notification_rule_conditions_inner_spec.rb
|
|
499
|
-
- spec/models/notification_rule_events_inner_spec.rb
|
|
500
|
-
- spec/models/notification_rule_input_spec.rb
|
|
501
|
-
- spec/models/person_input_spec.rb
|
|
502
|
-
- spec/models/reservation_input_spec.rb
|
|
503
|
-
- spec/models/revoke_token403_response_spec.rb
|
|
504
|
-
- spec/models/site_site_ips_inner_spec.rb
|
|
505
|
-
- spec/models/unlock_channel_request_spec.rb
|
|
506
|
-
- spec/resources/credential_bugs_spec.rb
|
|
507
|
-
- spec/spec_helper.rb
|
|
386
|
+
test_files: []
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#DoorFlow API
|
|
3
|
-
|
|
4
|
-
#Access control and door management API for DoorFlow
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.18.0-SNAPSHOT
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
|
|
16
|
-
# Unit tests for DoorFlow::AdmissionRequestsApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'AdmissionRequestsApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = DoorFlow::AdmissionRequestsApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of AdmissionRequestsApi' do
|
|
30
|
-
it 'should create an instance of AdmissionRequestsApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(DoorFlow::AdmissionRequestsApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for get_admission_request
|
|
36
|
-
# Get admission request status
|
|
37
|
-
# Returns the status of an admission request created via POST /api/3/channels/:id/admit or POST /api/3/channels/:id/admit_person. Use this to track whether the admission was successful, denied, or is still pending a response from the door controller.
|
|
38
|
-
# @param id Admission request ID (Event ID returned from admit/admit_person endpoints)
|
|
39
|
-
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [AdmissionRequest]
|
|
41
|
-
describe 'get_admission_request 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
|
-
|
|
47
|
-
end
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#DoorFlow API
|
|
3
|
-
|
|
4
|
-
#Access control and door management API for DoorFlow
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.18.0-SNAPSHOT
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
|
|
16
|
-
# Unit tests for DoorFlow::ChannelsApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'ChannelsApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = DoorFlow::ChannelsApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of ChannelsApi' do
|
|
30
|
-
it 'should create an instance of ChannelsApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(DoorFlow::ChannelsApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for admit_channel
|
|
36
|
-
# Admit through channel (any person)
|
|
37
|
-
# Requests immediate admission through a channel without specifying a person. This creates an admission request that momentarily unlocks the door. Returns an admission_request_id that can be used to track the status via GET /api/3/admission_requests/:id. Only works when the channel is in normal mode (not in unlock mode).
|
|
38
|
-
# @param id Channel ID
|
|
39
|
-
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [AdmitChannel202Response]
|
|
41
|
-
describe 'admit_channel 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
|
-
|
|
47
|
-
# unit tests for admit_person
|
|
48
|
-
# Admit specific person through channel
|
|
49
|
-
# Requests admission for a specific person through a channel. This checks if the person has valid credentials and access rights before admitting. Returns an admission_request_id for tracking via GET /api/3/admission_requests/:id.
|
|
50
|
-
# @param id Channel ID
|
|
51
|
-
# @param admit_person_request
|
|
52
|
-
# @param [Hash] opts the optional parameters
|
|
53
|
-
# @return [AdmitPerson202Response]
|
|
54
|
-
describe 'admit_person test' 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
|
-
# unit tests for auto_unlock_channel
|
|
61
|
-
# Set auto-unlock shift
|
|
62
|
-
# Configures a shift during which the channel automatically unlocks. Provide a shift_id to enable auto-unlock, or omit it to disable.
|
|
63
|
-
# @param id Channel ID
|
|
64
|
-
# @param [Hash] opts the optional parameters
|
|
65
|
-
# @option opts [AutoUnlockChannelRequest] :auto_unlock_channel_request
|
|
66
|
-
# @return [Channel]
|
|
67
|
-
describe 'auto_unlock_channel test' do
|
|
68
|
-
it 'should work' do
|
|
69
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
# unit tests for get_channel
|
|
74
|
-
# Get channel details
|
|
75
|
-
# Returns details for a specific channel (door controller)
|
|
76
|
-
# @param id Channel ID
|
|
77
|
-
# @param [Hash] opts the optional parameters
|
|
78
|
-
# @return [Channel]
|
|
79
|
-
describe 'get_channel test' do
|
|
80
|
-
it 'should work' do
|
|
81
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
# unit tests for list_channels
|
|
86
|
-
# List channels (door controllers)
|
|
87
|
-
# Returns a paginated list of channels (door controllers) accessible to the authenticated user
|
|
88
|
-
# @param [Hash] opts the optional parameters
|
|
89
|
-
# @option opts [Integer] :site_id Filter channels by site ID
|
|
90
|
-
# @option opts [Integer] :per_page Number of results per page
|
|
91
|
-
# @option opts [Integer] :page Page number for pagination
|
|
92
|
-
# @option opts [Boolean] :skip_pagination Skip pagination and return all results
|
|
93
|
-
# @return [Array<Channel>]
|
|
94
|
-
describe 'list_channels test' do
|
|
95
|
-
it 'should work' do
|
|
96
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
# unit tests for lockdown_channel
|
|
101
|
-
# Enable lockdown mode
|
|
102
|
-
# Puts a channel into lockdown mode, restricting various types of access. You can selectively lock down card access, REX (Request to Exit), and AUX inputs.
|
|
103
|
-
# @param id Channel ID
|
|
104
|
-
# @param [Hash] opts the optional parameters
|
|
105
|
-
# @option opts [LockdownChannelRequest] :lockdown_channel_request
|
|
106
|
-
# @return [Channel]
|
|
107
|
-
describe 'lockdown_channel test' do
|
|
108
|
-
it 'should work' do
|
|
109
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
# unit tests for normal_channel
|
|
114
|
-
# Return channel to normal mode
|
|
115
|
-
# Cancels unlock mode and returns the channel to normal access control mode
|
|
116
|
-
# @param id Channel ID
|
|
117
|
-
# @param [Hash] opts the optional parameters
|
|
118
|
-
# @return [Channel]
|
|
119
|
-
describe 'normal_channel test' do
|
|
120
|
-
it 'should work' do
|
|
121
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
122
|
-
end
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
# unit tests for regenerate_encryption_key
|
|
126
|
-
# Regenerate encryption key
|
|
127
|
-
# Generates a new encryption key for secure communication with the channel
|
|
128
|
-
# @param id Channel ID
|
|
129
|
-
# @param [Hash] opts the optional parameters
|
|
130
|
-
# @return [Channel]
|
|
131
|
-
describe 'regenerate_encryption_key test' do
|
|
132
|
-
it 'should work' do
|
|
133
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
134
|
-
end
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
# unit tests for remove_encryption_key
|
|
138
|
-
# Remove encryption key
|
|
139
|
-
# Removes the encryption key, disabling encrypted communication with the channel
|
|
140
|
-
# @param id Channel ID
|
|
141
|
-
# @param [Hash] opts the optional parameters
|
|
142
|
-
# @return [Channel]
|
|
143
|
-
describe 'remove_encryption_key test' do
|
|
144
|
-
it 'should work' do
|
|
145
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
146
|
-
end
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
# unit tests for unlock_channel
|
|
150
|
-
# Unlock channel (unlock mode)
|
|
151
|
-
# Puts a channel into unlock mode, where the door remains unlocked until a specified time. If no relock_at time is provided, the door remains unlocked until normal mode is restored.
|
|
152
|
-
# @param id Channel ID
|
|
153
|
-
# @param [Hash] opts the optional parameters
|
|
154
|
-
# @option opts [UnlockChannelRequest] :unlock_channel_request
|
|
155
|
-
# @return [Channel]
|
|
156
|
-
describe 'unlock_channel test' do
|
|
157
|
-
it 'should work' do
|
|
158
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
159
|
-
end
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
# unit tests for unlockdown_channel
|
|
163
|
-
# Disable lockdown mode
|
|
164
|
-
# Removes lockdown mode from a channel, restoring normal access control
|
|
165
|
-
# @param id Channel ID
|
|
166
|
-
# @param [Hash] opts the optional parameters
|
|
167
|
-
# @return [Channel]
|
|
168
|
-
describe 'unlockdown_channel test' do
|
|
169
|
-
it 'should work' do
|
|
170
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
end
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#DoorFlow API
|
|
3
|
-
|
|
4
|
-
#Access control and door management API for DoorFlow
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.18.0-SNAPSHOT
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
|
|
16
|
-
# Unit tests for DoorFlow::CredentialTypesApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'CredentialTypesApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = DoorFlow::CredentialTypesApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of CredentialTypesApi' do
|
|
30
|
-
it 'should create an instance of CredentialTypesApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(DoorFlow::CredentialTypesApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for list_credential_types
|
|
36
|
-
# List credential types
|
|
37
|
-
# Returns a paginated list of credential types configured for the authenticated user's account. Credential types define the formats and types of credentials (cards, PINs, mobile access, etc.) that can be used. Each credential type is based on a global credential type and can be customized per account.
|
|
38
|
-
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @option opts [Integer] :per_page Number of results per page
|
|
40
|
-
# @option opts [Integer] :page Page number for pagination
|
|
41
|
-
# @option opts [Boolean] :skip_pagination Skip pagination and return all results
|
|
42
|
-
# @return [Array<CredentialType>]
|
|
43
|
-
describe 'list_credential_types test' do
|
|
44
|
-
it 'should work' do
|
|
45
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
end
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#DoorFlow API
|
|
3
|
-
|
|
4
|
-
#Access control and door management API for DoorFlow
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 3.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.18.0-SNAPSHOT
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
|
|
16
|
-
# Unit tests for DoorFlow::GroupReservationsApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'GroupReservationsApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = DoorFlow::GroupReservationsApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of GroupReservationsApi' do
|
|
30
|
-
it 'should create an instance of GroupReservationsApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(DoorFlow::GroupReservationsApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for create_group_reservation
|
|
36
|
-
# Create group reservation
|
|
37
|
-
# Creates a new group reservation to temporarily assign a person to one or more groups. The person will be automatically added to the specified groups during the reservation period.
|
|
38
|
-
# @param group_reservation_input
|
|
39
|
-
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [GroupReservation]
|
|
41
|
-
describe 'create_group_reservation 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
|
-
|
|
47
|
-
# unit tests for delete_group_reservation
|
|
48
|
-
# Delete group reservation
|
|
49
|
-
# Deletes or deactivates a group reservation. If the reservation is pending (not yet started), it will be permanently deleted. If it's already active, it will be deactivated and the person will be removed from the assigned groups.
|
|
50
|
-
# @param id Group reservation ID
|
|
51
|
-
# @param [Hash] opts the optional parameters
|
|
52
|
-
# @return [DeleteGroupReservation200Response]
|
|
53
|
-
describe 'delete_group_reservation 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 list_group_reservations
|
|
60
|
-
# List group reservations
|
|
61
|
-
# Returns a paginated list of present and future group reservations. Group reservations temporarily assign people to groups for a specified time period. Supports incremental sync via `since` or `since_utc` parameters.
|
|
62
|
-
# @param [Hash] opts the optional parameters
|
|
63
|
-
# @option opts [Time] :since Return only group reservations updated since this timestamp (local time)
|
|
64
|
-
# @option opts [Time] :since_utc Return only group reservations updated since this timestamp (UTC)
|
|
65
|
-
# @option opts [Integer] :per_page Number of results per page
|
|
66
|
-
# @option opts [Integer] :page Page number for pagination
|
|
67
|
-
# @option opts [Boolean] :skip_pagination Skip pagination and return all results
|
|
68
|
-
# @return [Array<GroupReservation>]
|
|
69
|
-
describe 'list_group_reservations test' do
|
|
70
|
-
it 'should work' do
|
|
71
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
end
|