feratel-check-api-client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +159 -0
  4. data/Rakefile +10 -0
  5. data/docs/AgeGroup.md +22 -0
  6. data/docs/AgeGroupTranslation.md +20 -0
  7. data/docs/CheckPoint.md +38 -0
  8. data/docs/CheckPointGroup.md +20 -0
  9. data/docs/CheckPointItem.md +26 -0
  10. data/docs/CheckResourcesApi.md +545 -0
  11. data/docs/CheckResult.md +26 -0
  12. data/docs/CheckState.md +20 -0
  13. data/docs/CheckStateEnum.md +15 -0
  14. data/docs/CheckStateTranslation.md +20 -0
  15. data/docs/CheckpointError.md +22 -0
  16. data/docs/Customer.md +24 -0
  17. data/docs/History.md +18 -0
  18. data/docs/HistoryItem.md +24 -0
  19. data/docs/HistoryItemState.md +26 -0
  20. data/docs/Identification.md +36 -0
  21. data/docs/IdentificationStatus.md +15 -0
  22. data/docs/IdentificationType.md +26 -0
  23. data/docs/IdentificationUsage.md +26 -0
  24. data/docs/IdentificationUsageType.md +15 -0
  25. data/docs/Identifier.md +20 -0
  26. data/docs/IdentifierType.md +15 -0
  27. data/docs/ServiceProvider.md +24 -0
  28. data/docs/ServiceType.md +28 -0
  29. data/docs/ServiceTypeAssignment.md +22 -0
  30. data/docs/ServiceTypeTranslation.md +20 -0
  31. data/docs/ServiceUsage.md +36 -0
  32. data/docs/ServiceUsageType.md +15 -0
  33. data/docs/SystemResourcesApi.md +147 -0
  34. data/docs/TransactError.md +22 -0
  35. data/docs/TransactResult.md +34 -0
  36. data/docs/TransactState.md +20 -0
  37. data/docs/TransactStateEnum.md +15 -0
  38. data/docs/TransactStateTranslation.md +20 -0
  39. data/docs/ValidTransactionInfo.md +20 -0
  40. data/docs/Week.md +30 -0
  41. data/feratel-check-api-client.gemspec +39 -0
  42. data/git_push.sh +57 -0
  43. data/lib/feratel-check-api-client/api/check_resources_api.rb +586 -0
  44. data/lib/feratel-check-api-client/api/system_resources_api.rb +148 -0
  45. data/lib/feratel-check-api-client/api_client.rb +394 -0
  46. data/lib/feratel-check-api-client/api_error.rb +58 -0
  47. data/lib/feratel-check-api-client/configuration.rb +308 -0
  48. data/lib/feratel-check-api-client/models/age_group.rb +255 -0
  49. data/lib/feratel-check-api-client/models/age_group_translation.rb +223 -0
  50. data/lib/feratel-check-api-client/models/check_point.rb +327 -0
  51. data/lib/feratel-check-api-client/models/check_point_group.rb +244 -0
  52. data/lib/feratel-check-api-client/models/check_point_item.rb +271 -0
  53. data/lib/feratel-check-api-client/models/check_result.rb +250 -0
  54. data/lib/feratel-check-api-client/models/check_state.rb +247 -0
  55. data/lib/feratel-check-api-client/models/check_state_enum.rb +82 -0
  56. data/lib/feratel-check-api-client/models/check_state_translation.rb +223 -0
  57. data/lib/feratel-check-api-client/models/checkpoint_error.rb +256 -0
  58. data/lib/feratel-check-api-client/models/customer.rb +262 -0
  59. data/lib/feratel-check-api-client/models/history.rb +216 -0
  60. data/lib/feratel-check-api-client/models/history_item.rb +262 -0
  61. data/lib/feratel-check-api-client/models/history_item_state.rb +250 -0
  62. data/lib/feratel-check-api-client/models/identification.rb +338 -0
  63. data/lib/feratel-check-api-client/models/identification_status.rb +43 -0
  64. data/lib/feratel-check-api-client/models/identification_type.rb +271 -0
  65. data/lib/feratel-check-api-client/models/identification_usage.rb +314 -0
  66. data/lib/feratel-check-api-client/models/identification_usage_type.rb +42 -0
  67. data/lib/feratel-check-api-client/models/identifier.rb +245 -0
  68. data/lib/feratel-check-api-client/models/identifier_type.rb +44 -0
  69. data/lib/feratel-check-api-client/models/service_provider.rb +262 -0
  70. data/lib/feratel-check-api-client/models/service_type.rb +282 -0
  71. data/lib/feratel-check-api-client/models/service_type_assignment.rb +253 -0
  72. data/lib/feratel-check-api-client/models/service_type_translation.rb +223 -0
  73. data/lib/feratel-check-api-client/models/service_usage.rb +380 -0
  74. data/lib/feratel-check-api-client/models/service_usage_type.rb +50 -0
  75. data/lib/feratel-check-api-client/models/transact_error.rb +256 -0
  76. data/lib/feratel-check-api-client/models/transact_result.rb +349 -0
  77. data/lib/feratel-check-api-client/models/transact_state.rb +247 -0
  78. data/lib/feratel-check-api-client/models/transact_state_enum.rb +54 -0
  79. data/lib/feratel-check-api-client/models/transact_state_translation.rb +223 -0
  80. data/lib/feratel-check-api-client/models/valid_transaction_info.rb +223 -0
  81. data/lib/feratel-check-api-client/models/week.rb +268 -0
  82. data/lib/feratel-check-api-client/version.rb +15 -0
  83. data/lib/feratel-check-api-client.rb +75 -0
  84. data/spec/api/check_resources_api_spec.rb +137 -0
  85. data/spec/api/system_resources_api_spec.rb +59 -0
  86. data/spec/models/age_group_spec.rb +48 -0
  87. data/spec/models/age_group_translation_spec.rb +42 -0
  88. data/spec/models/check_point_group_spec.rb +42 -0
  89. data/spec/models/check_point_item_spec.rb +60 -0
  90. data/spec/models/check_point_spec.rb +96 -0
  91. data/spec/models/check_result_spec.rb +60 -0
  92. data/spec/models/check_state_enum_spec.rb +30 -0
  93. data/spec/models/check_state_spec.rb +42 -0
  94. data/spec/models/check_state_translation_spec.rb +42 -0
  95. data/spec/models/checkpoint_error_spec.rb +48 -0
  96. data/spec/models/customer_spec.rb +54 -0
  97. data/spec/models/history_item_spec.rb +54 -0
  98. data/spec/models/history_item_state_spec.rb +60 -0
  99. data/spec/models/history_spec.rb +36 -0
  100. data/spec/models/identification_spec.rb +90 -0
  101. data/spec/models/identification_status_spec.rb +30 -0
  102. data/spec/models/identification_type_spec.rb +60 -0
  103. data/spec/models/identification_usage_spec.rb +60 -0
  104. data/spec/models/identification_usage_type_spec.rb +30 -0
  105. data/spec/models/identifier_spec.rb +42 -0
  106. data/spec/models/identifier_type_spec.rb +30 -0
  107. data/spec/models/service_provider_spec.rb +54 -0
  108. data/spec/models/service_type_assignment_spec.rb +48 -0
  109. data/spec/models/service_type_spec.rb +66 -0
  110. data/spec/models/service_type_translation_spec.rb +42 -0
  111. data/spec/models/service_usage_spec.rb +90 -0
  112. data/spec/models/service_usage_type_spec.rb +30 -0
  113. data/spec/models/transact_error_spec.rb +48 -0
  114. data/spec/models/transact_result_spec.rb +84 -0
  115. data/spec/models/transact_state_enum_spec.rb +30 -0
  116. data/spec/models/transact_state_spec.rb +42 -0
  117. data/spec/models/transact_state_translation_spec.rb +42 -0
  118. data/spec/models/valid_transaction_info_spec.rb +42 -0
  119. data/spec/models/week_spec.rb +72 -0
  120. data/spec/spec_helper.rb +111 -0
  121. metadata +255 -0
@@ -0,0 +1,586 @@
1
+ =begin
2
+ #CheckAPI Standard
3
+
4
+ #This documentation describes your available CheckAPI REST services: Get your checkpoints and their details, check the permission of a customer's ID, take a look at your checkpoint's history - everything a checkpoint needs can be found here in one place. Please look at the descriptions in each service below. <div id=\"authorize-information-wrap\"><h1>Authorize</h1><p>You can use this automated authentication to try out your activated methods - just click „Authorize“, enter CardAPI credentials and have a try! You received the CardAPI username and password via e-mail – credentials are different from your developer-portal credentials. Authentication is based on OAUTH2 (implicit grant flow) and needs to be implemented and called prior to using any API method. <b>CLIENT_ID</b><br>The client ID is pre-filled automatically according to the chosen application. You can find your available client IDs in the \"Applications\" - Area. <b>GRANT_TYPE</b><br>With grant_type=password you get an access-token and a refresh-token for your request. The received access token can be used for 10 minutes, there are two ways to renew it. Either you can send the same request again or you can use the grant_type=refresh_token. The refresh token needs to be used every 30 minutes and can provide new access tokens for 10 hours without using your credentials.</p></div>
5
+
6
+ The version of the OpenAPI document: 1.17.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.8.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module FeratelCheckApiClient
16
+ class CheckResourcesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # check
23
+ # Check, if an identification is permitted at the time of the request or not.<br>The HTTP method GET performs a check only - no transaction will be written.
24
+ # @param tenant_id [String] Code of target tenant
25
+ # @param check_point_id [String] ID of CheckPoint
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :identifier The Identifier is part of the customer&#39;s QR-code / barcode.&lt;br&gt;After scanning this code, provide the complete code-content without trimming!
28
+ # @return [CheckResult]
29
+ def v1_tenant_id_secure_checkpoints_check_point_id_check_get(tenant_id, check_point_id, opts = {})
30
+ data, _status_code, _headers = v1_tenant_id_secure_checkpoints_check_point_id_check_get_with_http_info(tenant_id, check_point_id, opts)
31
+ data
32
+ end
33
+
34
+ # check
35
+ # Check, if an identification is permitted at the time of the request or not.&lt;br&gt;The HTTP method GET performs a check only - no transaction will be written.
36
+ # @param tenant_id [String] Code of target tenant
37
+ # @param check_point_id [String] ID of CheckPoint
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :identifier The Identifier is part of the customer&#39;s QR-code / barcode.&lt;br&gt;After scanning this code, provide the complete code-content without trimming!
40
+ # @return [Array<(CheckResult, Integer, Hash)>] CheckResult data, response status code and response headers
41
+ def v1_tenant_id_secure_checkpoints_check_point_id_check_get_with_http_info(tenant_id, check_point_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_get ...'
44
+ end
45
+ # verify the required parameter 'tenant_id' is set
46
+ if @api_client.config.client_side_validation && tenant_id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_get"
48
+ end
49
+ # verify the required parameter 'check_point_id' is set
50
+ if @api_client.config.client_side_validation && check_point_id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'check_point_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_get"
52
+ end
53
+ pattern = Regexp.new(/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/)
54
+ if @api_client.config.client_side_validation && check_point_id !~ pattern
55
+ fail ArgumentError, "invalid value for 'check_point_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_get, must conform to the pattern #{pattern}."
56
+ end
57
+
58
+ # resource path
59
+ local_var_path = '/v1/{tenantId}/secure/checkpoints/{checkPointId}/check'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'checkPointId' + '}', CGI.escape(check_point_id.to_s))
60
+
61
+ # query parameters
62
+ query_params = opts[:query_params] || {}
63
+ query_params[:'identifier'] = opts[:'identifier'] if !opts[:'identifier'].nil?
64
+
65
+ # header parameters
66
+ header_params = opts[:header_params] || {}
67
+ # HTTP header 'Accept' (if needed)
68
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
69
+
70
+ # form parameters
71
+ form_params = opts[:form_params] || {}
72
+
73
+ # http body (model)
74
+ post_body = opts[:debug_body]
75
+
76
+ # return_type
77
+ return_type = opts[:debug_return_type] || 'CheckResult'
78
+
79
+ # auth_names
80
+ auth_names = opts[:debug_auth_names] || ['oauth']
81
+
82
+ new_options = opts.merge(
83
+ :operation => :"CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_get",
84
+ :header_params => header_params,
85
+ :query_params => query_params,
86
+ :form_params => form_params,
87
+ :body => post_body,
88
+ :auth_names => auth_names,
89
+ :return_type => return_type
90
+ )
91
+
92
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
93
+ if @api_client.config.debugging
94
+ @api_client.config.logger.debug "API called: CheckResourcesApi#v1_tenant_id_secure_checkpoints_check_point_id_check_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
95
+ end
96
+ return data, status_code, headers
97
+ end
98
+
99
+ # check and transaction
100
+ # Check, if an identification is permitted at the time of the request or not.<br>The HTTP method POST performs a check with a persistent transaction.
101
+ # @param tenant_id [String] Code of target tenant
102
+ # @param check_point_id [String] ID of CheckPoint
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [String] :identifier The Identifier is part of the customer&#39;s QR-code / barcode.&lt;br&gt;After scanning this code, provide the complete code-content without trimming!
105
+ # @return [TransactResult]
106
+ def v1_tenant_id_secure_checkpoints_check_point_id_check_post(tenant_id, check_point_id, opts = {})
107
+ data, _status_code, _headers = v1_tenant_id_secure_checkpoints_check_point_id_check_post_with_http_info(tenant_id, check_point_id, opts)
108
+ data
109
+ end
110
+
111
+ # check and transaction
112
+ # Check, if an identification is permitted at the time of the request or not.&lt;br&gt;The HTTP method POST performs a check with a persistent transaction.
113
+ # @param tenant_id [String] Code of target tenant
114
+ # @param check_point_id [String] ID of CheckPoint
115
+ # @param [Hash] opts the optional parameters
116
+ # @option opts [String] :identifier The Identifier is part of the customer&#39;s QR-code / barcode.&lt;br&gt;After scanning this code, provide the complete code-content without trimming!
117
+ # @return [Array<(TransactResult, Integer, Hash)>] TransactResult data, response status code and response headers
118
+ def v1_tenant_id_secure_checkpoints_check_point_id_check_post_with_http_info(tenant_id, check_point_id, opts = {})
119
+ if @api_client.config.debugging
120
+ @api_client.config.logger.debug 'Calling API: CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_post ...'
121
+ end
122
+ # verify the required parameter 'tenant_id' is set
123
+ if @api_client.config.client_side_validation && tenant_id.nil?
124
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_post"
125
+ end
126
+ # verify the required parameter 'check_point_id' is set
127
+ if @api_client.config.client_side_validation && check_point_id.nil?
128
+ fail ArgumentError, "Missing the required parameter 'check_point_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_post"
129
+ end
130
+ pattern = Regexp.new(/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/)
131
+ if @api_client.config.client_side_validation && check_point_id !~ pattern
132
+ fail ArgumentError, "invalid value for 'check_point_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_post, must conform to the pattern #{pattern}."
133
+ end
134
+
135
+ # resource path
136
+ local_var_path = '/v1/{tenantId}/secure/checkpoints/{checkPointId}/check'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'checkPointId' + '}', CGI.escape(check_point_id.to_s))
137
+
138
+ # query parameters
139
+ query_params = opts[:query_params] || {}
140
+ query_params[:'identifier'] = opts[:'identifier'] if !opts[:'identifier'].nil?
141
+
142
+ # header parameters
143
+ header_params = opts[:header_params] || {}
144
+ # HTTP header 'Accept' (if needed)
145
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
146
+
147
+ # form parameters
148
+ form_params = opts[:form_params] || {}
149
+
150
+ # http body (model)
151
+ post_body = opts[:debug_body]
152
+
153
+ # return_type
154
+ return_type = opts[:debug_return_type] || 'TransactResult'
155
+
156
+ # auth_names
157
+ auth_names = opts[:debug_auth_names] || ['oauth']
158
+
159
+ new_options = opts.merge(
160
+ :operation => :"CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_post",
161
+ :header_params => header_params,
162
+ :query_params => query_params,
163
+ :form_params => form_params,
164
+ :body => post_body,
165
+ :auth_names => auth_names,
166
+ :return_type => return_type
167
+ )
168
+
169
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
170
+ if @api_client.config.debugging
171
+ @api_client.config.logger.debug "API called: CheckResourcesApi#v1_tenant_id_secure_checkpoints_check_point_id_check_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
172
+ end
173
+ return data, status_code, headers
174
+ end
175
+
176
+ # check based on service
177
+ # Check, if an identification is permitted for a specific serviceType at the time of the request or not.<br>The HTTP method GET performs a check only - no transaction will be written.
178
+ # @param tenant_id [String] Code of target tenant
179
+ # @param check_point_id [String] ID of CheckPoint
180
+ # @param service_type_id [String] ID of Service
181
+ # @param [Hash] opts the optional parameters
182
+ # @option opts [String] :identifier The Identifier is part of the customer&#39;s QR-code / barcode.&lt;br&gt;After scanning this code, provide the complete code-content without trimming!
183
+ # @return [CheckResult]
184
+ def v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get(tenant_id, check_point_id, service_type_id, opts = {})
185
+ data, _status_code, _headers = v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get_with_http_info(tenant_id, check_point_id, service_type_id, opts)
186
+ data
187
+ end
188
+
189
+ # check based on service
190
+ # Check, if an identification is permitted for a specific serviceType at the time of the request or not.&lt;br&gt;The HTTP method GET performs a check only - no transaction will be written.
191
+ # @param tenant_id [String] Code of target tenant
192
+ # @param check_point_id [String] ID of CheckPoint
193
+ # @param service_type_id [String] ID of Service
194
+ # @param [Hash] opts the optional parameters
195
+ # @option opts [String] :identifier The Identifier is part of the customer&#39;s QR-code / barcode.&lt;br&gt;After scanning this code, provide the complete code-content without trimming!
196
+ # @return [Array<(CheckResult, Integer, Hash)>] CheckResult data, response status code and response headers
197
+ def v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get_with_http_info(tenant_id, check_point_id, service_type_id, opts = {})
198
+ if @api_client.config.debugging
199
+ @api_client.config.logger.debug 'Calling API: CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get ...'
200
+ end
201
+ # verify the required parameter 'tenant_id' is set
202
+ if @api_client.config.client_side_validation && tenant_id.nil?
203
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get"
204
+ end
205
+ # verify the required parameter 'check_point_id' is set
206
+ if @api_client.config.client_side_validation && check_point_id.nil?
207
+ fail ArgumentError, "Missing the required parameter 'check_point_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get"
208
+ end
209
+ pattern = Regexp.new(/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/)
210
+ if @api_client.config.client_side_validation && check_point_id !~ pattern
211
+ fail ArgumentError, "invalid value for 'check_point_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get, must conform to the pattern #{pattern}."
212
+ end
213
+
214
+ # verify the required parameter 'service_type_id' is set
215
+ if @api_client.config.client_side_validation && service_type_id.nil?
216
+ fail ArgumentError, "Missing the required parameter 'service_type_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get"
217
+ end
218
+ pattern = Regexp.new(/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/)
219
+ if @api_client.config.client_side_validation && service_type_id !~ pattern
220
+ fail ArgumentError, "invalid value for 'service_type_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get, must conform to the pattern #{pattern}."
221
+ end
222
+
223
+ # resource path
224
+ local_var_path = '/v1/{tenantId}/secure/checkpoints/{checkPointId}/check/{serviceTypeId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'checkPointId' + '}', CGI.escape(check_point_id.to_s)).sub('{' + 'serviceTypeId' + '}', CGI.escape(service_type_id.to_s))
225
+
226
+ # query parameters
227
+ query_params = opts[:query_params] || {}
228
+ query_params[:'identifier'] = opts[:'identifier'] if !opts[:'identifier'].nil?
229
+
230
+ # header parameters
231
+ header_params = opts[:header_params] || {}
232
+ # HTTP header 'Accept' (if needed)
233
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
234
+
235
+ # form parameters
236
+ form_params = opts[:form_params] || {}
237
+
238
+ # http body (model)
239
+ post_body = opts[:debug_body]
240
+
241
+ # return_type
242
+ return_type = opts[:debug_return_type] || 'CheckResult'
243
+
244
+ # auth_names
245
+ auth_names = opts[:debug_auth_names] || ['oauth']
246
+
247
+ new_options = opts.merge(
248
+ :operation => :"CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get",
249
+ :header_params => header_params,
250
+ :query_params => query_params,
251
+ :form_params => form_params,
252
+ :body => post_body,
253
+ :auth_names => auth_names,
254
+ :return_type => return_type
255
+ )
256
+
257
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
258
+ if @api_client.config.debugging
259
+ @api_client.config.logger.debug "API called: CheckResourcesApi#v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
260
+ end
261
+ return data, status_code, headers
262
+ end
263
+
264
+ # check based on service and transaction
265
+ # Check, if an identification is permitted for a specific serviceType at the time of the request or not.<br>The HTTP method POST performs a check with a persistent transaction.
266
+ # @param tenant_id [String] Code of target tenant
267
+ # @param check_point_id [String]
268
+ # @param service_type_id [String]
269
+ # @param [Hash] opts the optional parameters
270
+ # @option opts [String] :identifier The Identifier is part of the customer&#39;s QR-code / barcode.&lt;br&gt;After scanning this code, provide the complete code-content without trimming!
271
+ # @return [TransactResult]
272
+ def v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post(tenant_id, check_point_id, service_type_id, opts = {})
273
+ data, _status_code, _headers = v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post_with_http_info(tenant_id, check_point_id, service_type_id, opts)
274
+ data
275
+ end
276
+
277
+ # check based on service and transaction
278
+ # Check, if an identification is permitted for a specific serviceType at the time of the request or not.&lt;br&gt;The HTTP method POST performs a check with a persistent transaction.
279
+ # @param tenant_id [String] Code of target tenant
280
+ # @param check_point_id [String]
281
+ # @param service_type_id [String]
282
+ # @param [Hash] opts the optional parameters
283
+ # @option opts [String] :identifier The Identifier is part of the customer&#39;s QR-code / barcode.&lt;br&gt;After scanning this code, provide the complete code-content without trimming!
284
+ # @return [Array<(TransactResult, Integer, Hash)>] TransactResult data, response status code and response headers
285
+ def v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post_with_http_info(tenant_id, check_point_id, service_type_id, opts = {})
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug 'Calling API: CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post ...'
288
+ end
289
+ # verify the required parameter 'tenant_id' is set
290
+ if @api_client.config.client_side_validation && tenant_id.nil?
291
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post"
292
+ end
293
+ # verify the required parameter 'check_point_id' is set
294
+ if @api_client.config.client_side_validation && check_point_id.nil?
295
+ fail ArgumentError, "Missing the required parameter 'check_point_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post"
296
+ end
297
+ pattern = Regexp.new(/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/)
298
+ if @api_client.config.client_side_validation && check_point_id !~ pattern
299
+ fail ArgumentError, "invalid value for 'check_point_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post, must conform to the pattern #{pattern}."
300
+ end
301
+
302
+ # verify the required parameter 'service_type_id' is set
303
+ if @api_client.config.client_side_validation && service_type_id.nil?
304
+ fail ArgumentError, "Missing the required parameter 'service_type_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post"
305
+ end
306
+ pattern = Regexp.new(/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/)
307
+ if @api_client.config.client_side_validation && service_type_id !~ pattern
308
+ fail ArgumentError, "invalid value for 'service_type_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post, must conform to the pattern #{pattern}."
309
+ end
310
+
311
+ # resource path
312
+ local_var_path = '/v1/{tenantId}/secure/checkpoints/{checkPointId}/check/{serviceTypeId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'checkPointId' + '}', CGI.escape(check_point_id.to_s)).sub('{' + 'serviceTypeId' + '}', CGI.escape(service_type_id.to_s))
313
+
314
+ # query parameters
315
+ query_params = opts[:query_params] || {}
316
+ query_params[:'identifier'] = opts[:'identifier'] if !opts[:'identifier'].nil?
317
+
318
+ # header parameters
319
+ header_params = opts[:header_params] || {}
320
+ # HTTP header 'Accept' (if needed)
321
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
322
+
323
+ # form parameters
324
+ form_params = opts[:form_params] || {}
325
+
326
+ # http body (model)
327
+ post_body = opts[:debug_body]
328
+
329
+ # return_type
330
+ return_type = opts[:debug_return_type] || 'TransactResult'
331
+
332
+ # auth_names
333
+ auth_names = opts[:debug_auth_names] || ['oauth']
334
+
335
+ new_options = opts.merge(
336
+ :operation => :"CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post",
337
+ :header_params => header_params,
338
+ :query_params => query_params,
339
+ :form_params => form_params,
340
+ :body => post_body,
341
+ :auth_names => auth_names,
342
+ :return_type => return_type
343
+ )
344
+
345
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
346
+ if @api_client.config.debugging
347
+ @api_client.config.logger.debug "API called: CheckResourcesApi#v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
348
+ end
349
+ return data, status_code, headers
350
+ end
351
+
352
+ # checkpoint details
353
+ # Get all service and usage details of a specific checkpoint.<br>The ServiceTypeId (type:id) contained in the response is required to check an identification based on a service (method \"check/serviceTypeId\").
354
+ # @param tenant_id [String] Code of target tenant
355
+ # @param check_point_id [String] ID of CheckPoint
356
+ # @param [Hash] opts the optional parameters
357
+ # @return [CheckPoint]
358
+ def v1_tenant_id_secure_checkpoints_check_point_id_get(tenant_id, check_point_id, opts = {})
359
+ data, _status_code, _headers = v1_tenant_id_secure_checkpoints_check_point_id_get_with_http_info(tenant_id, check_point_id, opts)
360
+ data
361
+ end
362
+
363
+ # checkpoint details
364
+ # Get all service and usage details of a specific checkpoint.&lt;br&gt;The ServiceTypeId (type:id) contained in the response is required to check an identification based on a service (method \&quot;check/serviceTypeId\&quot;).
365
+ # @param tenant_id [String] Code of target tenant
366
+ # @param check_point_id [String] ID of CheckPoint
367
+ # @param [Hash] opts the optional parameters
368
+ # @return [Array<(CheckPoint, Integer, Hash)>] CheckPoint data, response status code and response headers
369
+ def v1_tenant_id_secure_checkpoints_check_point_id_get_with_http_info(tenant_id, check_point_id, opts = {})
370
+ if @api_client.config.debugging
371
+ @api_client.config.logger.debug 'Calling API: CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_get ...'
372
+ end
373
+ # verify the required parameter 'tenant_id' is set
374
+ if @api_client.config.client_side_validation && tenant_id.nil?
375
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_get"
376
+ end
377
+ # verify the required parameter 'check_point_id' is set
378
+ if @api_client.config.client_side_validation && check_point_id.nil?
379
+ fail ArgumentError, "Missing the required parameter 'check_point_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_get"
380
+ end
381
+ pattern = Regexp.new(/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/)
382
+ if @api_client.config.client_side_validation && check_point_id !~ pattern
383
+ fail ArgumentError, "invalid value for 'check_point_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_get, must conform to the pattern #{pattern}."
384
+ end
385
+
386
+ # resource path
387
+ local_var_path = '/v1/{tenantId}/secure/checkpoints/{checkPointId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'checkPointId' + '}', CGI.escape(check_point_id.to_s))
388
+
389
+ # query parameters
390
+ query_params = opts[:query_params] || {}
391
+
392
+ # header parameters
393
+ header_params = opts[:header_params] || {}
394
+ # HTTP header 'Accept' (if needed)
395
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
396
+
397
+ # form parameters
398
+ form_params = opts[:form_params] || {}
399
+
400
+ # http body (model)
401
+ post_body = opts[:debug_body]
402
+
403
+ # return_type
404
+ return_type = opts[:debug_return_type] || 'CheckPoint'
405
+
406
+ # auth_names
407
+ auth_names = opts[:debug_auth_names] || ['oauth']
408
+
409
+ new_options = opts.merge(
410
+ :operation => :"CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_get",
411
+ :header_params => header_params,
412
+ :query_params => query_params,
413
+ :form_params => form_params,
414
+ :body => post_body,
415
+ :auth_names => auth_names,
416
+ :return_type => return_type
417
+ )
418
+
419
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
420
+ if @api_client.config.debugging
421
+ @api_client.config.logger.debug "API called: CheckResourcesApi#v1_tenant_id_secure_checkpoints_check_point_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
422
+ end
423
+ return data, status_code, headers
424
+ end
425
+
426
+ # transaction history
427
+ # Get the last 5 checks (transactions) of a specific checkpoint.
428
+ # @param tenant_id [String] Code of target tenant
429
+ # @param check_point_id [String] ID of CheckPoint
430
+ # @param [Hash] opts the optional parameters
431
+ # @option opts [Integer] :page start page index (default to 0)
432
+ # @option opts [String] :service_id ID of Service
433
+ # @option opts [Integer] :size max. delivered pages (default to 5)
434
+ # @return [History]
435
+ def v1_tenant_id_secure_checkpoints_check_point_id_history_get(tenant_id, check_point_id, opts = {})
436
+ data, _status_code, _headers = v1_tenant_id_secure_checkpoints_check_point_id_history_get_with_http_info(tenant_id, check_point_id, opts)
437
+ data
438
+ end
439
+
440
+ # transaction history
441
+ # Get the last 5 checks (transactions) of a specific checkpoint.
442
+ # @param tenant_id [String] Code of target tenant
443
+ # @param check_point_id [String] ID of CheckPoint
444
+ # @param [Hash] opts the optional parameters
445
+ # @option opts [Integer] :page start page index (default to 0)
446
+ # @option opts [String] :service_id ID of Service
447
+ # @option opts [Integer] :size max. delivered pages (default to 5)
448
+ # @return [Array<(History, Integer, Hash)>] History data, response status code and response headers
449
+ def v1_tenant_id_secure_checkpoints_check_point_id_history_get_with_http_info(tenant_id, check_point_id, opts = {})
450
+ if @api_client.config.debugging
451
+ @api_client.config.logger.debug 'Calling API: CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_history_get ...'
452
+ end
453
+ # verify the required parameter 'tenant_id' is set
454
+ if @api_client.config.client_side_validation && tenant_id.nil?
455
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_history_get"
456
+ end
457
+ # verify the required parameter 'check_point_id' is set
458
+ if @api_client.config.client_side_validation && check_point_id.nil?
459
+ fail ArgumentError, "Missing the required parameter 'check_point_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_history_get"
460
+ end
461
+ pattern = Regexp.new(/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/)
462
+ if @api_client.config.client_side_validation && check_point_id !~ pattern
463
+ fail ArgumentError, "invalid value for 'check_point_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_history_get, must conform to the pattern #{pattern}."
464
+ end
465
+
466
+ pattern = Regexp.new(/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/)
467
+ if @api_client.config.client_side_validation && !opts[:'service_id'].nil? && opts[:'service_id'] !~ pattern
468
+ fail ArgumentError, "invalid value for 'opts[:\"service_id\"]' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_history_get, must conform to the pattern #{pattern}."
469
+ end
470
+
471
+ # resource path
472
+ local_var_path = '/v1/{tenantId}/secure/checkpoints/{checkPointId}/history'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'checkPointId' + '}', CGI.escape(check_point_id.to_s))
473
+
474
+ # query parameters
475
+ query_params = opts[:query_params] || {}
476
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
477
+ query_params[:'serviceID'] = opts[:'service_id'] if !opts[:'service_id'].nil?
478
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
479
+
480
+ # header parameters
481
+ header_params = opts[:header_params] || {}
482
+ # HTTP header 'Accept' (if needed)
483
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
484
+
485
+ # form parameters
486
+ form_params = opts[:form_params] || {}
487
+
488
+ # http body (model)
489
+ post_body = opts[:debug_body]
490
+
491
+ # return_type
492
+ return_type = opts[:debug_return_type] || 'History'
493
+
494
+ # auth_names
495
+ auth_names = opts[:debug_auth_names] || ['oauth']
496
+
497
+ new_options = opts.merge(
498
+ :operation => :"CheckResourcesApi.v1_tenant_id_secure_checkpoints_check_point_id_history_get",
499
+ :header_params => header_params,
500
+ :query_params => query_params,
501
+ :form_params => form_params,
502
+ :body => post_body,
503
+ :auth_names => auth_names,
504
+ :return_type => return_type
505
+ )
506
+
507
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
508
+ if @api_client.config.debugging
509
+ @api_client.config.logger.debug "API called: CheckResourcesApi#v1_tenant_id_secure_checkpoints_check_point_id_history_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
510
+ end
511
+ return data, status_code, headers
512
+ end
513
+
514
+ # list of checkpoints
515
+ # Get all your user-assigned checkpoints in the selected card-project (tenant).<br>Use the corresponding checkpointid to \"check\" the permission of an identification (f.e. Card ID).
516
+ # @param tenant_id [String] Code of target tenant
517
+ # @param [Hash] opts the optional parameters
518
+ # @option opts [Boolean] :active If true only active checkpoints
519
+ # @option opts [Integer] :page Index of start page (default to 0)
520
+ # @option opts [Integer] :size Number of max delivered pages (default to 100)
521
+ # @return [Array<CheckPointItem>]
522
+ def v1_tenant_id_secure_checkpoints_get(tenant_id, opts = {})
523
+ data, _status_code, _headers = v1_tenant_id_secure_checkpoints_get_with_http_info(tenant_id, opts)
524
+ data
525
+ end
526
+
527
+ # list of checkpoints
528
+ # Get all your user-assigned checkpoints in the selected card-project (tenant).&lt;br&gt;Use the corresponding checkpointid to \&quot;check\&quot; the permission of an identification (f.e. Card ID).
529
+ # @param tenant_id [String] Code of target tenant
530
+ # @param [Hash] opts the optional parameters
531
+ # @option opts [Boolean] :active If true only active checkpoints
532
+ # @option opts [Integer] :page Index of start page (default to 0)
533
+ # @option opts [Integer] :size Number of max delivered pages (default to 100)
534
+ # @return [Array<(Array<CheckPointItem>, Integer, Hash)>] Array<CheckPointItem> data, response status code and response headers
535
+ def v1_tenant_id_secure_checkpoints_get_with_http_info(tenant_id, opts = {})
536
+ if @api_client.config.debugging
537
+ @api_client.config.logger.debug 'Calling API: CheckResourcesApi.v1_tenant_id_secure_checkpoints_get ...'
538
+ end
539
+ # verify the required parameter 'tenant_id' is set
540
+ if @api_client.config.client_side_validation && tenant_id.nil?
541
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling CheckResourcesApi.v1_tenant_id_secure_checkpoints_get"
542
+ end
543
+ # resource path
544
+ local_var_path = '/v1/{tenantId}/secure/checkpoints'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
545
+
546
+ # query parameters
547
+ query_params = opts[:query_params] || {}
548
+ query_params[:'active'] = opts[:'active'] if !opts[:'active'].nil?
549
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
550
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
551
+
552
+ # header parameters
553
+ header_params = opts[:header_params] || {}
554
+ # HTTP header 'Accept' (if needed)
555
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
556
+
557
+ # form parameters
558
+ form_params = opts[:form_params] || {}
559
+
560
+ # http body (model)
561
+ post_body = opts[:debug_body]
562
+
563
+ # return_type
564
+ return_type = opts[:debug_return_type] || 'Array<CheckPointItem>'
565
+
566
+ # auth_names
567
+ auth_names = opts[:debug_auth_names] || ['oauth']
568
+
569
+ new_options = opts.merge(
570
+ :operation => :"CheckResourcesApi.v1_tenant_id_secure_checkpoints_get",
571
+ :header_params => header_params,
572
+ :query_params => query_params,
573
+ :form_params => form_params,
574
+ :body => post_body,
575
+ :auth_names => auth_names,
576
+ :return_type => return_type
577
+ )
578
+
579
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
580
+ if @api_client.config.debugging
581
+ @api_client.config.logger.debug "API called: CheckResourcesApi#v1_tenant_id_secure_checkpoints_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
582
+ end
583
+ return data, status_code, headers
584
+ end
585
+ end
586
+ end