korona-entry-client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +128 -0
  4. data/Rakefile +10 -0
  5. data/docs/BadRequestError.md +19 -0
  6. data/docs/EntryResponse.md +21 -0
  7. data/docs/ExternalTicketConfiguration.md +29 -0
  8. data/docs/ExternalTicketConfigurationList.md +17 -0
  9. data/docs/ExternalTicketConfigurationsApi.md +247 -0
  10. data/docs/ModelReference.md +23 -0
  11. data/docs/NotAcceptableError.md +19 -0
  12. data/docs/OrganizationalUnit.md +27 -0
  13. data/docs/OrganizationalUnitList.md +17 -0
  14. data/docs/OrganizationalUnitsApi.md +247 -0
  15. data/docs/Ticket.md +35 -0
  16. data/docs/TicketEntry.md +49 -0
  17. data/docs/TicketEntryLog.md +39 -0
  18. data/docs/TicketEntryLogList.md +17 -0
  19. data/docs/TicketImage.md +17 -0
  20. data/docs/TicketInformation.md +27 -0
  21. data/docs/TicketList.md +17 -0
  22. data/docs/TicketPersonalization.md +21 -0
  23. data/docs/TicketsApi.md +654 -0
  24. data/git_push.sh +58 -0
  25. data/korona-entry-client.gemspec +39 -0
  26. data/lib/korona-entry-client.rb +58 -0
  27. data/lib/korona-entry-client/api/external_ticket_configurations_api.rb +356 -0
  28. data/lib/korona-entry-client/api/organizational_units_api.rb +356 -0
  29. data/lib/korona-entry-client/api/tickets_api.rb +854 -0
  30. data/lib/korona-entry-client/api_client.rb +386 -0
  31. data/lib/korona-entry-client/api_error.rb +57 -0
  32. data/lib/korona-entry-client/configuration.rb +248 -0
  33. data/lib/korona-entry-client/models/bad_request_error.rb +217 -0
  34. data/lib/korona-entry-client/models/entry_response.rb +226 -0
  35. data/lib/korona-entry-client/models/external_ticket_configuration.rb +304 -0
  36. data/lib/korona-entry-client/models/external_ticket_configuration_list.rb +214 -0
  37. data/lib/korona-entry-client/models/model_reference.rb +238 -0
  38. data/lib/korona-entry-client/models/not_acceptable_error.rb +250 -0
  39. data/lib/korona-entry-client/models/organizational_unit.rb +257 -0
  40. data/lib/korona-entry-client/models/organizational_unit_list.rb +214 -0
  41. data/lib/korona-entry-client/models/ticket.rb +299 -0
  42. data/lib/korona-entry-client/models/ticket_entry.rb +403 -0
  43. data/lib/korona-entry-client/models/ticket_entry_log.rb +374 -0
  44. data/lib/korona-entry-client/models/ticket_entry_log_list.rb +214 -0
  45. data/lib/korona-entry-client/models/ticket_image.rb +215 -0
  46. data/lib/korona-entry-client/models/ticket_information.rb +258 -0
  47. data/lib/korona-entry-client/models/ticket_list.rb +214 -0
  48. data/lib/korona-entry-client/models/ticket_personalization.rb +228 -0
  49. data/lib/korona-entry-client/version.rb +15 -0
  50. data/spec/api/external_ticket_configurations_api_spec.rb +95 -0
  51. data/spec/api/organizational_units_api_spec.rb +95 -0
  52. data/spec/api/tickets_api_spec.rb +191 -0
  53. data/spec/api_client_spec.rb +226 -0
  54. data/spec/configuration_spec.rb +42 -0
  55. data/spec/models/bad_request_error_spec.rb +47 -0
  56. data/spec/models/entry_response_spec.rb +53 -0
  57. data/spec/models/external_ticket_configuration_list_spec.rb +41 -0
  58. data/spec/models/external_ticket_configuration_spec.rb +77 -0
  59. data/spec/models/model_reference_spec.rb +59 -0
  60. data/spec/models/not_acceptable_error_spec.rb +51 -0
  61. data/spec/models/organizational_unit_list_spec.rb +41 -0
  62. data/spec/models/organizational_unit_spec.rb +71 -0
  63. data/spec/models/ticket_entry_log_list_spec.rb +41 -0
  64. data/spec/models/ticket_entry_log_spec.rb +119 -0
  65. data/spec/models/ticket_entry_spec.rb +137 -0
  66. data/spec/models/ticket_image_spec.rb +41 -0
  67. data/spec/models/ticket_information_spec.rb +71 -0
  68. data/spec/models/ticket_list_spec.rb +41 -0
  69. data/spec/models/ticket_personalization_spec.rb +53 -0
  70. data/spec/models/ticket_spec.rb +95 -0
  71. data/spec/spec_helper.rb +111 -0
  72. metadata +196 -0
@@ -0,0 +1,23 @@
1
+ # KoronaEntryClient::ModelReference
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **Integer** | Global object ID. Recommanded to use for linking purposes. Will never change. | [optional]
8
+ **name** | **String** | Name of object, insofar as available. | [optional]
9
+ **number** | **String** | Number of object, insofar as available. | [optional]
10
+ **href** | **String** | Link to object. | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'KoronaEntryClient'
16
+
17
+ instance = KoronaEntryClient::ModelReference.new(id: null,
18
+ name: null,
19
+ number: null,
20
+ href: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,19 @@
1
+ # KoronaEntryClient::NotAcceptableError
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **message** | **String** | A short description of the error in english. | [optional]
8
+ **response** | **String** | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'KoronaEntryClient'
14
+
15
+ instance = KoronaEntryClient::NotAcceptableError.new(message: null,
16
+ response: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,27 @@
1
+ # KoronaEntryClient::OrganizationalUnit
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **Integer** | Objects ID. | [optional]
8
+ **number** | **String** | Number of organizational unit. | [optional]
9
+ **name** | **String** | Name of organizational unit. | [optional]
10
+ **entry_gate** | **Boolean** | *True*, if this organizational unit is an entry gate. | [optional]
11
+ **has_children** | **Boolean** | *True*, if this organizational unit has children. | [optional]
12
+ **parent** | [**ModelReference**](ModelReference.md) | | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'KoronaEntryClient'
18
+
19
+ instance = KoronaEntryClient::OrganizationalUnit.new(id: null,
20
+ number: null,
21
+ name: null,
22
+ entry_gate: null,
23
+ has_children: null,
24
+ parent: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,17 @@
1
+ # KoronaEntryClient::OrganizationalUnitList
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **organizational_units** | [**Array<OrganizationalUnit>**](OrganizationalUnit.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'KoronaEntryClient'
13
+
14
+ instance = KoronaEntryClient::OrganizationalUnitList.new(organizational_units: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,247 @@
1
+ # KoronaEntryClient::OrganizationalUnitsApi
2
+
3
+ All URIs are relative to *https://YourLocalInstance.com/korona.entry_server/services/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_organizational_unit**](OrganizationalUnitsApi.md#create_organizational_unit) | **POST** /{client}/organizationalUnits | Creates a new organizational unit.
8
+ [**delete_organizational_unit**](OrganizationalUnitsApi.md#delete_organizational_unit) | **DELETE** /{client}/organizationalUnits/{organizationalUnitId} | Deletes the single organizational unit.
9
+ [**get_organizational_unit**](OrganizationalUnitsApi.md#get_organizational_unit) | **GET** /{client}/organizationalUnits/{organizationalUnitId} | Returns the single organizational unit.
10
+ [**get_organizational_units**](OrganizationalUnitsApi.md#get_organizational_units) | **GET** /{client}/organizationalUnits | Returns all organizational unit
11
+ [**update_organizational_unit**](OrganizationalUnitsApi.md#update_organizational_unit) | **PATCH** /{client}/organizationalUnits/{organizationalUnitId} | Updates the single organizational unit.
12
+
13
+
14
+
15
+ ## create_organizational_unit
16
+
17
+ > ModelReference create_organizational_unit(client, body)
18
+
19
+ Creates a new organizational unit.
20
+
21
+ ### Example
22
+
23
+ ```ruby
24
+ # load the gem
25
+ require 'korona-entry-client'
26
+
27
+ api_instance = KoronaEntryClient::OrganizationalUnitsApi.new
28
+ client = 'client_example' # String | Identification of executing client.
29
+ body = KoronaEntryClient::OrganizationalUnit.new # OrganizationalUnit | Properties to update of the organizational unit.
30
+
31
+ begin
32
+ #Creates a new organizational unit.
33
+ result = api_instance.create_organizational_unit(client, body)
34
+ p result
35
+ rescue KoronaEntryClient::ApiError => e
36
+ puts "Exception when calling OrganizationalUnitsApi->create_organizational_unit: #{e}"
37
+ end
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **client** | **String**| Identification of executing client. |
46
+ **body** | [**OrganizationalUnit**](OrganizationalUnit.md)| Properties to update of the organizational unit. |
47
+
48
+ ### Return type
49
+
50
+ [**ModelReference**](ModelReference.md)
51
+
52
+ ### Authorization
53
+
54
+ No authorization required
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json
59
+ - **Accept**: application/json
60
+
61
+
62
+ ## delete_organizational_unit
63
+
64
+ > delete_organizational_unit(client, organizational_unit_id)
65
+
66
+ Deletes the single organizational unit.
67
+
68
+ ### Example
69
+
70
+ ```ruby
71
+ # load the gem
72
+ require 'korona-entry-client'
73
+
74
+ api_instance = KoronaEntryClient::OrganizationalUnitsApi.new
75
+ client = 'client_example' # String | Identification of executing client.
76
+ organizational_unit_id = 56 # Integer | ID to identify the organizational unit.
77
+
78
+ begin
79
+ #Deletes the single organizational unit.
80
+ api_instance.delete_organizational_unit(client, organizational_unit_id)
81
+ rescue KoronaEntryClient::ApiError => e
82
+ puts "Exception when calling OrganizationalUnitsApi->delete_organizational_unit: #{e}"
83
+ end
84
+ ```
85
+
86
+ ### Parameters
87
+
88
+
89
+ Name | Type | Description | Notes
90
+ ------------- | ------------- | ------------- | -------------
91
+ **client** | **String**| Identification of executing client. |
92
+ **organizational_unit_id** | **Integer**| ID to identify the organizational unit. |
93
+
94
+ ### Return type
95
+
96
+ nil (empty response body)
97
+
98
+ ### Authorization
99
+
100
+ No authorization required
101
+
102
+ ### HTTP request headers
103
+
104
+ - **Content-Type**: Not defined
105
+ - **Accept**: application/json
106
+
107
+
108
+ ## get_organizational_unit
109
+
110
+ > OrganizationalUnit get_organizational_unit(client, organizational_unit_id)
111
+
112
+ Returns the single organizational unit.
113
+
114
+ ### Example
115
+
116
+ ```ruby
117
+ # load the gem
118
+ require 'korona-entry-client'
119
+
120
+ api_instance = KoronaEntryClient::OrganizationalUnitsApi.new
121
+ client = 'client_example' # String | Identification of executing client.
122
+ organizational_unit_id = 56 # Integer | ID to identify the organizational unit.
123
+
124
+ begin
125
+ #Returns the single organizational unit.
126
+ result = api_instance.get_organizational_unit(client, organizational_unit_id)
127
+ p result
128
+ rescue KoronaEntryClient::ApiError => e
129
+ puts "Exception when calling OrganizationalUnitsApi->get_organizational_unit: #{e}"
130
+ end
131
+ ```
132
+
133
+ ### Parameters
134
+
135
+
136
+ Name | Type | Description | Notes
137
+ ------------- | ------------- | ------------- | -------------
138
+ **client** | **String**| Identification of executing client. |
139
+ **organizational_unit_id** | **Integer**| ID to identify the organizational unit. |
140
+
141
+ ### Return type
142
+
143
+ [**OrganizationalUnit**](OrganizationalUnit.md)
144
+
145
+ ### Authorization
146
+
147
+ No authorization required
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: Not defined
152
+ - **Accept**: application/json
153
+
154
+
155
+ ## get_organizational_units
156
+
157
+ > OrganizationalUnitList get_organizational_units(client)
158
+
159
+ Returns all organizational unit
160
+
161
+ ### Example
162
+
163
+ ```ruby
164
+ # load the gem
165
+ require 'korona-entry-client'
166
+
167
+ api_instance = KoronaEntryClient::OrganizationalUnitsApi.new
168
+ client = 'client_example' # String | Identification of executing client.
169
+
170
+ begin
171
+ #Returns all organizational unit
172
+ result = api_instance.get_organizational_units(client)
173
+ p result
174
+ rescue KoronaEntryClient::ApiError => e
175
+ puts "Exception when calling OrganizationalUnitsApi->get_organizational_units: #{e}"
176
+ end
177
+ ```
178
+
179
+ ### Parameters
180
+
181
+
182
+ Name | Type | Description | Notes
183
+ ------------- | ------------- | ------------- | -------------
184
+ **client** | **String**| Identification of executing client. |
185
+
186
+ ### Return type
187
+
188
+ [**OrganizationalUnitList**](OrganizationalUnitList.md)
189
+
190
+ ### Authorization
191
+
192
+ No authorization required
193
+
194
+ ### HTTP request headers
195
+
196
+ - **Content-Type**: Not defined
197
+ - **Accept**: application/json
198
+
199
+
200
+ ## update_organizational_unit
201
+
202
+ > ModelReference update_organizational_unit(client, organizational_unit_id, body)
203
+
204
+ Updates the single organizational unit.
205
+
206
+ ### Example
207
+
208
+ ```ruby
209
+ # load the gem
210
+ require 'korona-entry-client'
211
+
212
+ api_instance = KoronaEntryClient::OrganizationalUnitsApi.new
213
+ client = 'client_example' # String | Identification of executing client.
214
+ organizational_unit_id = 56 # Integer | ID to identify the organizational unit.
215
+ body = KoronaEntryClient::OrganizationalUnit.new # OrganizationalUnit | Properties to update of the organizational unit.
216
+
217
+ begin
218
+ #Updates the single organizational unit.
219
+ result = api_instance.update_organizational_unit(client, organizational_unit_id, body)
220
+ p result
221
+ rescue KoronaEntryClient::ApiError => e
222
+ puts "Exception when calling OrganizationalUnitsApi->update_organizational_unit: #{e}"
223
+ end
224
+ ```
225
+
226
+ ### Parameters
227
+
228
+
229
+ Name | Type | Description | Notes
230
+ ------------- | ------------- | ------------- | -------------
231
+ **client** | **String**| Identification of executing client. |
232
+ **organizational_unit_id** | **Integer**| ID to identify the organizational unit. |
233
+ **body** | [**OrganizationalUnit**](OrganizationalUnit.md)| Properties to update of the organizational unit. |
234
+
235
+ ### Return type
236
+
237
+ [**ModelReference**](ModelReference.md)
238
+
239
+ ### Authorization
240
+
241
+ No authorization required
242
+
243
+ ### HTTP request headers
244
+
245
+ - **Content-Type**: application/json
246
+ - **Accept**: application/json
247
+
data/docs/Ticket.md ADDED
@@ -0,0 +1,35 @@
1
+ # KoronaEntryClient::Ticket
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **Integer** | Objects ID. | [optional]
8
+ **number** | **String** | Tickets number. If null, number will be generated. | [optional]
9
+ **locked** | **Boolean** | *True*, if ticket is generally locked. | [optional]
10
+ **locked_to** | **DateTime** | Set, if ticket is temporarily locked until the specified date. Indiependent of *locked* property. | [optional]
11
+ **create_date** | **DateTime** | Date of creation. | [optional] [readonly]
12
+ **ticket_entries** | [**Array<TicketEntry>**](TicketEntry.md) | Validities for this ticket. | [optional]
13
+ **personalization** | [**TicketPersonalization**](TicketPersonalization.md) | | [optional]
14
+ **active** | **Boolean** | Indicates whether the object is active for use or not. | [optional] [readonly]
15
+ **deactivation_date** | **DateTime** | Date of deactivation. | [optional] [readonly]
16
+ **external_ticket** | **Boolean** | Indicates whether the ticket is created by external ticket configuration. | [optional] [readonly]
17
+
18
+ ## Code Sample
19
+
20
+ ```ruby
21
+ require 'KoronaEntryClient'
22
+
23
+ instance = KoronaEntryClient::Ticket.new(id: null,
24
+ number: null,
25
+ locked: null,
26
+ locked_to: null,
27
+ create_date: null,
28
+ ticket_entries: null,
29
+ personalization: null,
30
+ active: null,
31
+ deactivation_date: null,
32
+ external_ticket: null)
33
+ ```
34
+
35
+
@@ -0,0 +1,49 @@
1
+ # KoronaEntryClient::TicketEntry
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **Integer** | Objects ID. | [optional]
8
+ **create_date** | **DateTime** | Date of creation. | [optional] [readonly]
9
+ **used_up** | **Boolean** | *True*, if the ticket is used up. | [optional]
10
+ **first_use** | **DateTime** | Date of first use. | [optional] [readonly]
11
+ **last_use** | **DateTime** | Date of last use (not exiting). | [optional] [readonly]
12
+ **last_exit** | **DateTime** | Date of last exiting. | [optional] [readonly]
13
+ **uses** | **Integer** | Number of entries already made. | [optional] [readonly]
14
+ **uses_max** | **Integer** | Optional maximum number of possible entries. | [optional]
15
+ **valid_from** | **DateTime** | When the ticket becomes valid. | [optional]
16
+ **valid_to** | **DateTime** | Optional fixed date until which the ticket is valid. | [optional]
17
+ **valid_from_time** | **String** | Time from which the ticket becomes valid within a day. Format: HH:ii:ss | [optional]
18
+ **valid_to_time** | **String** | Time until which the ticket becomes valid within a day. Format: HH:ii:ss | [optional]
19
+ **lock_after_use** | **Integer** | Specifies the number of days after which the ticket is locked from the first use. | [optional]
20
+ **entry_gates** | **Array<String>** | Number of access points to which this validity applies. | [optional]
21
+ **information** | [**TicketInformation**](TicketInformation.md) | | [optional]
22
+ **locked_to** | **DateTime** | Date until which the ticketEntry is locked. | [optional]
23
+ **re_entry_lock** | **Integer** | Specifies how many seconds the ticket should be locked after a successful entry. | [optional]
24
+
25
+ ## Code Sample
26
+
27
+ ```ruby
28
+ require 'KoronaEntryClient'
29
+
30
+ instance = KoronaEntryClient::TicketEntry.new(id: null,
31
+ create_date: null,
32
+ used_up: null,
33
+ first_use: null,
34
+ last_use: null,
35
+ last_exit: null,
36
+ uses: null,
37
+ uses_max: null,
38
+ valid_from: null,
39
+ valid_to: null,
40
+ valid_from_time: null,
41
+ valid_to_time: null,
42
+ lock_after_use: null,
43
+ entry_gates: null,
44
+ information: null,
45
+ locked_to: null,
46
+ re_entry_lock: null)
47
+ ```
48
+
49
+
@@ -0,0 +1,39 @@
1
+ # KoronaEntryClient::TicketEntryLog
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **Integer** | Objects ID. | [optional]
8
+ **comment** | **String** | Short comment for this action. | [optional]
9
+ **ticket** | [**ModelReference**](ModelReference.md) | | [optional]
10
+ **ticket_entry** | [**ModelReference**](ModelReference.md) | | [optional]
11
+ **log_type** | **String** | Identification of action type. | [optional]
12
+ **response** | **String** | Identification of response type. | [optional]
13
+ **time** | **DateTime** | Time of action. | [optional]
14
+ **organizational_unit_number** | **String** | Number of the organizational unit concerned. | [optional]
15
+ **client** | **String** | Client concerned. | [optional]
16
+ **number_of_uses** | **Integer** | Number of uses if its an entry action. | [optional]
17
+ **commit_type** | **String** | Identification of commit type. | [optional]
18
+ **test_time** | **DateTime** | Time of testing. | [optional]
19
+
20
+ ## Code Sample
21
+
22
+ ```ruby
23
+ require 'KoronaEntryClient'
24
+
25
+ instance = KoronaEntryClient::TicketEntryLog.new(id: null,
26
+ comment: null,
27
+ ticket: null,
28
+ ticket_entry: null,
29
+ log_type: null,
30
+ response: null,
31
+ time: null,
32
+ organizational_unit_number: null,
33
+ client: null,
34
+ number_of_uses: null,
35
+ commit_type: null,
36
+ test_time: null)
37
+ ```
38
+
39
+