feratel-check-api-client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +159 -0
- data/Rakefile +10 -0
- data/docs/AgeGroup.md +22 -0
- data/docs/AgeGroupTranslation.md +20 -0
- data/docs/CheckPoint.md +38 -0
- data/docs/CheckPointGroup.md +20 -0
- data/docs/CheckPointItem.md +26 -0
- data/docs/CheckResourcesApi.md +545 -0
- data/docs/CheckResult.md +26 -0
- data/docs/CheckState.md +20 -0
- data/docs/CheckStateEnum.md +15 -0
- data/docs/CheckStateTranslation.md +20 -0
- data/docs/CheckpointError.md +22 -0
- data/docs/Customer.md +24 -0
- data/docs/History.md +18 -0
- data/docs/HistoryItem.md +24 -0
- data/docs/HistoryItemState.md +26 -0
- data/docs/Identification.md +36 -0
- data/docs/IdentificationStatus.md +15 -0
- data/docs/IdentificationType.md +26 -0
- data/docs/IdentificationUsage.md +26 -0
- data/docs/IdentificationUsageType.md +15 -0
- data/docs/Identifier.md +20 -0
- data/docs/IdentifierType.md +15 -0
- data/docs/ServiceProvider.md +24 -0
- data/docs/ServiceType.md +28 -0
- data/docs/ServiceTypeAssignment.md +22 -0
- data/docs/ServiceTypeTranslation.md +20 -0
- data/docs/ServiceUsage.md +36 -0
- data/docs/ServiceUsageType.md +15 -0
- data/docs/SystemResourcesApi.md +147 -0
- data/docs/TransactError.md +22 -0
- data/docs/TransactResult.md +34 -0
- data/docs/TransactState.md +20 -0
- data/docs/TransactStateEnum.md +15 -0
- data/docs/TransactStateTranslation.md +20 -0
- data/docs/ValidTransactionInfo.md +20 -0
- data/docs/Week.md +30 -0
- data/feratel-check-api-client.gemspec +39 -0
- data/git_push.sh +57 -0
- data/lib/feratel-check-api-client/api/check_resources_api.rb +586 -0
- data/lib/feratel-check-api-client/api/system_resources_api.rb +148 -0
- data/lib/feratel-check-api-client/api_client.rb +394 -0
- data/lib/feratel-check-api-client/api_error.rb +58 -0
- data/lib/feratel-check-api-client/configuration.rb +308 -0
- data/lib/feratel-check-api-client/models/age_group.rb +255 -0
- data/lib/feratel-check-api-client/models/age_group_translation.rb +223 -0
- data/lib/feratel-check-api-client/models/check_point.rb +327 -0
- data/lib/feratel-check-api-client/models/check_point_group.rb +244 -0
- data/lib/feratel-check-api-client/models/check_point_item.rb +271 -0
- data/lib/feratel-check-api-client/models/check_result.rb +250 -0
- data/lib/feratel-check-api-client/models/check_state.rb +247 -0
- data/lib/feratel-check-api-client/models/check_state_enum.rb +82 -0
- data/lib/feratel-check-api-client/models/check_state_translation.rb +223 -0
- data/lib/feratel-check-api-client/models/checkpoint_error.rb +256 -0
- data/lib/feratel-check-api-client/models/customer.rb +262 -0
- data/lib/feratel-check-api-client/models/history.rb +216 -0
- data/lib/feratel-check-api-client/models/history_item.rb +262 -0
- data/lib/feratel-check-api-client/models/history_item_state.rb +250 -0
- data/lib/feratel-check-api-client/models/identification.rb +338 -0
- data/lib/feratel-check-api-client/models/identification_status.rb +43 -0
- data/lib/feratel-check-api-client/models/identification_type.rb +271 -0
- data/lib/feratel-check-api-client/models/identification_usage.rb +314 -0
- data/lib/feratel-check-api-client/models/identification_usage_type.rb +42 -0
- data/lib/feratel-check-api-client/models/identifier.rb +245 -0
- data/lib/feratel-check-api-client/models/identifier_type.rb +44 -0
- data/lib/feratel-check-api-client/models/service_provider.rb +262 -0
- data/lib/feratel-check-api-client/models/service_type.rb +282 -0
- data/lib/feratel-check-api-client/models/service_type_assignment.rb +253 -0
- data/lib/feratel-check-api-client/models/service_type_translation.rb +223 -0
- data/lib/feratel-check-api-client/models/service_usage.rb +380 -0
- data/lib/feratel-check-api-client/models/service_usage_type.rb +50 -0
- data/lib/feratel-check-api-client/models/transact_error.rb +256 -0
- data/lib/feratel-check-api-client/models/transact_result.rb +349 -0
- data/lib/feratel-check-api-client/models/transact_state.rb +247 -0
- data/lib/feratel-check-api-client/models/transact_state_enum.rb +54 -0
- data/lib/feratel-check-api-client/models/transact_state_translation.rb +223 -0
- data/lib/feratel-check-api-client/models/valid_transaction_info.rb +223 -0
- data/lib/feratel-check-api-client/models/week.rb +268 -0
- data/lib/feratel-check-api-client/version.rb +15 -0
- data/lib/feratel-check-api-client.rb +75 -0
- data/spec/api/check_resources_api_spec.rb +137 -0
- data/spec/api/system_resources_api_spec.rb +59 -0
- data/spec/models/age_group_spec.rb +48 -0
- data/spec/models/age_group_translation_spec.rb +42 -0
- data/spec/models/check_point_group_spec.rb +42 -0
- data/spec/models/check_point_item_spec.rb +60 -0
- data/spec/models/check_point_spec.rb +96 -0
- data/spec/models/check_result_spec.rb +60 -0
- data/spec/models/check_state_enum_spec.rb +30 -0
- data/spec/models/check_state_spec.rb +42 -0
- data/spec/models/check_state_translation_spec.rb +42 -0
- data/spec/models/checkpoint_error_spec.rb +48 -0
- data/spec/models/customer_spec.rb +54 -0
- data/spec/models/history_item_spec.rb +54 -0
- data/spec/models/history_item_state_spec.rb +60 -0
- data/spec/models/history_spec.rb +36 -0
- data/spec/models/identification_spec.rb +90 -0
- data/spec/models/identification_status_spec.rb +30 -0
- data/spec/models/identification_type_spec.rb +60 -0
- data/spec/models/identification_usage_spec.rb +60 -0
- data/spec/models/identification_usage_type_spec.rb +30 -0
- data/spec/models/identifier_spec.rb +42 -0
- data/spec/models/identifier_type_spec.rb +30 -0
- data/spec/models/service_provider_spec.rb +54 -0
- data/spec/models/service_type_assignment_spec.rb +48 -0
- data/spec/models/service_type_spec.rb +66 -0
- data/spec/models/service_type_translation_spec.rb +42 -0
- data/spec/models/service_usage_spec.rb +90 -0
- data/spec/models/service_usage_type_spec.rb +30 -0
- data/spec/models/transact_error_spec.rb +48 -0
- data/spec/models/transact_result_spec.rb +84 -0
- data/spec/models/transact_state_enum_spec.rb +30 -0
- data/spec/models/transact_state_spec.rb +42 -0
- data/spec/models/transact_state_translation_spec.rb +42 -0
- data/spec/models/valid_transaction_info_spec.rb +42 -0
- data/spec/models/week_spec.rb +72 -0
- data/spec/spec_helper.rb +111 -0
- metadata +255 -0
@@ -0,0 +1,268 @@
|
|
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 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module FeratelCheckApiClient
|
17
|
+
class Week
|
18
|
+
attr_accessor :monday
|
19
|
+
|
20
|
+
attr_accessor :tuesday
|
21
|
+
|
22
|
+
attr_accessor :wednesday
|
23
|
+
|
24
|
+
attr_accessor :thursday
|
25
|
+
|
26
|
+
attr_accessor :friday
|
27
|
+
|
28
|
+
attr_accessor :saturday
|
29
|
+
|
30
|
+
attr_accessor :sunday
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'monday' => :'monday',
|
36
|
+
:'tuesday' => :'tuesday',
|
37
|
+
:'wednesday' => :'wednesday',
|
38
|
+
:'thursday' => :'thursday',
|
39
|
+
:'friday' => :'friday',
|
40
|
+
:'saturday' => :'saturday',
|
41
|
+
:'sunday' => :'sunday'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Returns all the JSON keys this model knows about
|
46
|
+
def self.acceptable_attributes
|
47
|
+
attribute_map.values
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute type mapping.
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'monday' => :'Boolean',
|
54
|
+
:'tuesday' => :'Boolean',
|
55
|
+
:'wednesday' => :'Boolean',
|
56
|
+
:'thursday' => :'Boolean',
|
57
|
+
:'friday' => :'Boolean',
|
58
|
+
:'saturday' => :'Boolean',
|
59
|
+
:'sunday' => :'Boolean'
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
# List of attributes with nullable: true
|
64
|
+
def self.openapi_nullable
|
65
|
+
Set.new([
|
66
|
+
])
|
67
|
+
end
|
68
|
+
|
69
|
+
# Initializes the object
|
70
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
71
|
+
def initialize(attributes = {})
|
72
|
+
if (!attributes.is_a?(Hash))
|
73
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FeratelCheckApiClient::Week` initialize method"
|
74
|
+
end
|
75
|
+
|
76
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
77
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
78
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
79
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FeratelCheckApiClient::Week`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
80
|
+
end
|
81
|
+
h[k.to_sym] = v
|
82
|
+
}
|
83
|
+
|
84
|
+
if attributes.key?(:'monday')
|
85
|
+
self.monday = attributes[:'monday']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'tuesday')
|
89
|
+
self.tuesday = attributes[:'tuesday']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'wednesday')
|
93
|
+
self.wednesday = attributes[:'wednesday']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'thursday')
|
97
|
+
self.thursday = attributes[:'thursday']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'friday')
|
101
|
+
self.friday = attributes[:'friday']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'saturday')
|
105
|
+
self.saturday = attributes[:'saturday']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'sunday')
|
109
|
+
self.sunday = attributes[:'sunday']
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
114
|
+
# @return Array for valid properties with the reasons
|
115
|
+
def list_invalid_properties
|
116
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
117
|
+
invalid_properties = Array.new
|
118
|
+
invalid_properties
|
119
|
+
end
|
120
|
+
|
121
|
+
# Check to see if the all the properties in the model are valid
|
122
|
+
# @return true if the model is valid
|
123
|
+
def valid?
|
124
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
125
|
+
true
|
126
|
+
end
|
127
|
+
|
128
|
+
# Checks equality by comparing each attribute.
|
129
|
+
# @param [Object] Object to be compared
|
130
|
+
def ==(o)
|
131
|
+
return true if self.equal?(o)
|
132
|
+
self.class == o.class &&
|
133
|
+
monday == o.monday &&
|
134
|
+
tuesday == o.tuesday &&
|
135
|
+
wednesday == o.wednesday &&
|
136
|
+
thursday == o.thursday &&
|
137
|
+
friday == o.friday &&
|
138
|
+
saturday == o.saturday &&
|
139
|
+
sunday == o.sunday
|
140
|
+
end
|
141
|
+
|
142
|
+
# @see the `==` method
|
143
|
+
# @param [Object] Object to be compared
|
144
|
+
def eql?(o)
|
145
|
+
self == o
|
146
|
+
end
|
147
|
+
|
148
|
+
# Calculates hash code according to all attributes.
|
149
|
+
# @return [Integer] Hash code
|
150
|
+
def hash
|
151
|
+
[monday, tuesday, wednesday, thursday, friday, saturday, sunday].hash
|
152
|
+
end
|
153
|
+
|
154
|
+
# Builds the object from hash
|
155
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
156
|
+
# @return [Object] Returns the model itself
|
157
|
+
def self.build_from_hash(attributes)
|
158
|
+
return nil unless attributes.is_a?(Hash)
|
159
|
+
attributes = attributes.transform_keys(&:to_sym)
|
160
|
+
transformed_hash = {}
|
161
|
+
openapi_types.each_pair do |key, type|
|
162
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
163
|
+
transformed_hash["#{key}"] = nil
|
164
|
+
elsif type =~ /\AArray<(.*)>/i
|
165
|
+
# check to ensure the input is an array given that the attribute
|
166
|
+
# is documented as an array but the input is not
|
167
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
168
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
169
|
+
end
|
170
|
+
elsif !attributes[attribute_map[key]].nil?
|
171
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
172
|
+
end
|
173
|
+
end
|
174
|
+
new(transformed_hash)
|
175
|
+
end
|
176
|
+
|
177
|
+
# Deserializes the data based on type
|
178
|
+
# @param string type Data type
|
179
|
+
# @param string value Value to be deserialized
|
180
|
+
# @return [Object] Deserialized data
|
181
|
+
def self._deserialize(type, value)
|
182
|
+
case type.to_sym
|
183
|
+
when :Time
|
184
|
+
Time.parse(value)
|
185
|
+
when :Date
|
186
|
+
Date.parse(value)
|
187
|
+
when :String
|
188
|
+
value.to_s
|
189
|
+
when :Integer
|
190
|
+
value.to_i
|
191
|
+
when :Float
|
192
|
+
value.to_f
|
193
|
+
when :Boolean
|
194
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
195
|
+
true
|
196
|
+
else
|
197
|
+
false
|
198
|
+
end
|
199
|
+
when :Object
|
200
|
+
# generic object (usually a Hash), return directly
|
201
|
+
value
|
202
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
203
|
+
inner_type = Regexp.last_match[:inner_type]
|
204
|
+
value.map { |v| _deserialize(inner_type, v) }
|
205
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
206
|
+
k_type = Regexp.last_match[:k_type]
|
207
|
+
v_type = Regexp.last_match[:v_type]
|
208
|
+
{}.tap do |hash|
|
209
|
+
value.each do |k, v|
|
210
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
211
|
+
end
|
212
|
+
end
|
213
|
+
else # model
|
214
|
+
# models (e.g. Pet) or oneOf
|
215
|
+
klass = FeratelCheckApiClient.const_get(type)
|
216
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
# Returns the string representation of the object
|
221
|
+
# @return [String] String presentation of the object
|
222
|
+
def to_s
|
223
|
+
to_hash.to_s
|
224
|
+
end
|
225
|
+
|
226
|
+
# to_body is an alias to to_hash (backward compatibility)
|
227
|
+
# @return [Hash] Returns the object in the form of hash
|
228
|
+
def to_body
|
229
|
+
to_hash
|
230
|
+
end
|
231
|
+
|
232
|
+
# Returns the object in the form of hash
|
233
|
+
# @return [Hash] Returns the object in the form of hash
|
234
|
+
def to_hash
|
235
|
+
hash = {}
|
236
|
+
self.class.attribute_map.each_pair do |attr, param|
|
237
|
+
value = self.send(attr)
|
238
|
+
if value.nil?
|
239
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
240
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
241
|
+
end
|
242
|
+
|
243
|
+
hash[param] = _to_hash(value)
|
244
|
+
end
|
245
|
+
hash
|
246
|
+
end
|
247
|
+
|
248
|
+
# Outputs non-array value in the form of hash
|
249
|
+
# For object, use to_hash. Otherwise, just return the value
|
250
|
+
# @param [Object] value Any valid value
|
251
|
+
# @return [Hash] Returns the value in the form of hash
|
252
|
+
def _to_hash(value)
|
253
|
+
if value.is_a?(Array)
|
254
|
+
value.compact.map { |v| _to_hash(v) }
|
255
|
+
elsif value.is_a?(Hash)
|
256
|
+
{}.tap do |hash|
|
257
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
258
|
+
end
|
259
|
+
elsif value.respond_to? :to_hash
|
260
|
+
value.to_hash
|
261
|
+
else
|
262
|
+
value
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
end
|
267
|
+
|
268
|
+
end
|
@@ -0,0 +1,15 @@
|
|
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
|
+
module FeratelCheckApiClient
|
14
|
+
VERSION = '1.0.0'
|
15
|
+
end
|
@@ -0,0 +1,75 @@
|
|
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
|
+
# Common files
|
14
|
+
require 'feratel-check-api-client/api_client'
|
15
|
+
require 'feratel-check-api-client/api_error'
|
16
|
+
require 'feratel-check-api-client/version'
|
17
|
+
require 'feratel-check-api-client/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'feratel-check-api-client/models/age_group'
|
21
|
+
require 'feratel-check-api-client/models/age_group_translation'
|
22
|
+
require 'feratel-check-api-client/models/check_point'
|
23
|
+
require 'feratel-check-api-client/models/check_point_group'
|
24
|
+
require 'feratel-check-api-client/models/check_point_item'
|
25
|
+
require 'feratel-check-api-client/models/check_result'
|
26
|
+
require 'feratel-check-api-client/models/check_state'
|
27
|
+
require 'feratel-check-api-client/models/check_state_enum'
|
28
|
+
require 'feratel-check-api-client/models/check_state_translation'
|
29
|
+
require 'feratel-check-api-client/models/checkpoint_error'
|
30
|
+
require 'feratel-check-api-client/models/customer'
|
31
|
+
require 'feratel-check-api-client/models/history'
|
32
|
+
require 'feratel-check-api-client/models/history_item'
|
33
|
+
require 'feratel-check-api-client/models/history_item_state'
|
34
|
+
require 'feratel-check-api-client/models/identification'
|
35
|
+
require 'feratel-check-api-client/models/identification_status'
|
36
|
+
require 'feratel-check-api-client/models/identification_type'
|
37
|
+
require 'feratel-check-api-client/models/identification_usage'
|
38
|
+
require 'feratel-check-api-client/models/identification_usage_type'
|
39
|
+
require 'feratel-check-api-client/models/identifier'
|
40
|
+
require 'feratel-check-api-client/models/identifier_type'
|
41
|
+
require 'feratel-check-api-client/models/service_provider'
|
42
|
+
require 'feratel-check-api-client/models/service_type'
|
43
|
+
require 'feratel-check-api-client/models/service_type_assignment'
|
44
|
+
require 'feratel-check-api-client/models/service_type_translation'
|
45
|
+
require 'feratel-check-api-client/models/service_usage'
|
46
|
+
require 'feratel-check-api-client/models/service_usage_type'
|
47
|
+
require 'feratel-check-api-client/models/transact_error'
|
48
|
+
require 'feratel-check-api-client/models/transact_result'
|
49
|
+
require 'feratel-check-api-client/models/transact_state'
|
50
|
+
require 'feratel-check-api-client/models/transact_state_enum'
|
51
|
+
require 'feratel-check-api-client/models/transact_state_translation'
|
52
|
+
require 'feratel-check-api-client/models/valid_transaction_info'
|
53
|
+
require 'feratel-check-api-client/models/week'
|
54
|
+
|
55
|
+
# APIs
|
56
|
+
require 'feratel-check-api-client/api/check_resources_api'
|
57
|
+
require 'feratel-check-api-client/api/system_resources_api'
|
58
|
+
|
59
|
+
module FeratelCheckApiClient
|
60
|
+
class << self
|
61
|
+
# Customize default settings for the SDK using block.
|
62
|
+
# FeratelCheckApiClient.configure do |config|
|
63
|
+
# config.username = "xxx"
|
64
|
+
# config.password = "xxx"
|
65
|
+
# end
|
66
|
+
# If no block given, return the default Configuration object.
|
67
|
+
def configure
|
68
|
+
if block_given?
|
69
|
+
yield(Configuration.default)
|
70
|
+
else
|
71
|
+
Configuration.default
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,137 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for FeratelCheckApiClient::CheckResourcesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CheckResourcesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = FeratelCheckApiClient::CheckResourcesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of CheckResourcesApi' do
|
30
|
+
it 'should create an instance of CheckResourcesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(FeratelCheckApiClient::CheckResourcesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for v1_tenant_id_secure_checkpoints_check_point_id_check_get
|
36
|
+
# check
|
37
|
+
# 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.
|
38
|
+
# @param tenant_id Code of target tenant
|
39
|
+
# @param check_point_id ID of CheckPoint
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [String] :identifier The Identifier is part of the customer's QR-code / barcode.<br>After scanning this code, provide the complete code-content without trimming!
|
42
|
+
# @return [CheckResult]
|
43
|
+
describe 'v1_tenant_id_secure_checkpoints_check_point_id_check_get 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
|
+
# unit tests for v1_tenant_id_secure_checkpoints_check_point_id_check_post
|
50
|
+
# check and transaction
|
51
|
+
# 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.
|
52
|
+
# @param tenant_id Code of target tenant
|
53
|
+
# @param check_point_id ID of CheckPoint
|
54
|
+
# @param [Hash] opts the optional parameters
|
55
|
+
# @option opts [String] :identifier The Identifier is part of the customer's QR-code / barcode.<br>After scanning this code, provide the complete code-content without trimming!
|
56
|
+
# @return [TransactResult]
|
57
|
+
describe 'v1_tenant_id_secure_checkpoints_check_point_id_check_post test' do
|
58
|
+
it 'should work' do
|
59
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# unit tests for v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get
|
64
|
+
# check based on service
|
65
|
+
# 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.
|
66
|
+
# @param tenant_id Code of target tenant
|
67
|
+
# @param check_point_id ID of CheckPoint
|
68
|
+
# @param service_type_id ID of Service
|
69
|
+
# @param [Hash] opts the optional parameters
|
70
|
+
# @option opts [String] :identifier The Identifier is part of the customer's QR-code / barcode.<br>After scanning this code, provide the complete code-content without trimming!
|
71
|
+
# @return [CheckResult]
|
72
|
+
describe 'v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_get test' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# unit tests for v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post
|
79
|
+
# check based on service and transaction
|
80
|
+
# 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.
|
81
|
+
# @param tenant_id Code of target tenant
|
82
|
+
# @param check_point_id
|
83
|
+
# @param service_type_id
|
84
|
+
# @param [Hash] opts the optional parameters
|
85
|
+
# @option opts [String] :identifier The Identifier is part of the customer's QR-code / barcode.<br>After scanning this code, provide the complete code-content without trimming!
|
86
|
+
# @return [TransactResult]
|
87
|
+
describe 'v1_tenant_id_secure_checkpoints_check_point_id_check_service_type_id_post test' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# unit tests for v1_tenant_id_secure_checkpoints_check_point_id_get
|
94
|
+
# checkpoint details
|
95
|
+
# 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\").
|
96
|
+
# @param tenant_id Code of target tenant
|
97
|
+
# @param check_point_id ID of CheckPoint
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [CheckPoint]
|
100
|
+
describe 'v1_tenant_id_secure_checkpoints_check_point_id_get test' do
|
101
|
+
it 'should work' do
|
102
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# unit tests for v1_tenant_id_secure_checkpoints_check_point_id_history_get
|
107
|
+
# transaction history
|
108
|
+
# Get the last 5 checks (transactions) of a specific checkpoint.
|
109
|
+
# @param tenant_id Code of target tenant
|
110
|
+
# @param check_point_id ID of CheckPoint
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @option opts [Integer] :page start page index
|
113
|
+
# @option opts [String] :service_id ID of Service
|
114
|
+
# @option opts [Integer] :size max. delivered pages
|
115
|
+
# @return [History]
|
116
|
+
describe 'v1_tenant_id_secure_checkpoints_check_point_id_history_get test' do
|
117
|
+
it 'should work' do
|
118
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# unit tests for v1_tenant_id_secure_checkpoints_get
|
123
|
+
# list of checkpoints
|
124
|
+
# 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).
|
125
|
+
# @param tenant_id Code of target tenant
|
126
|
+
# @param [Hash] opts the optional parameters
|
127
|
+
# @option opts [Boolean] :active If true only active checkpoints
|
128
|
+
# @option opts [Integer] :page Index of start page
|
129
|
+
# @option opts [Integer] :size Number of max delivered pages
|
130
|
+
# @return [Array<CheckPointItem>]
|
131
|
+
describe 'v1_tenant_id_secure_checkpoints_get 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
|
+
end
|
@@ -0,0 +1,59 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for FeratelCheckApiClient::SystemResourcesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'SystemResourcesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = FeratelCheckApiClient::SystemResourcesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of SystemResourcesApi' do
|
30
|
+
it 'should create an instance of SystemResourcesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(FeratelCheckApiClient::SystemResourcesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for v1_tenant_id_secure_system_checkpoint_errors_get
|
36
|
+
# provides all errors related to the CheckAPI
|
37
|
+
# Get all possible checkErrors.(checkstate,valid or not and all translations).
|
38
|
+
# @param tenant_id
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Array<CheckpointError>]
|
41
|
+
describe 'v1_tenant_id_secure_system_checkpoint_errors_get 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 v1_tenant_id_secure_system_transact_errors_get
|
48
|
+
# provides all transactErrors related to the CheckAPI
|
49
|
+
# Get all possible transactErrors.(transactState,translations and valid).
|
50
|
+
# @param tenant_id
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [Array<TransactError>]
|
53
|
+
describe 'v1_tenant_id_secure_system_transact_errors_get 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
|
+
end
|
@@ -0,0 +1,48 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for FeratelCheckApiClient::AgeGroup
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FeratelCheckApiClient::AgeGroup do
|
21
|
+
let(:instance) { FeratelCheckApiClient::AgeGroup.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AgeGroup' do
|
24
|
+
it 'should create an instance of AgeGroup' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(FeratelCheckApiClient::AgeGroup)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "id"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "name"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "translations"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -0,0 +1,42 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for FeratelCheckApiClient::AgeGroupTranslation
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe FeratelCheckApiClient::AgeGroupTranslation do
|
21
|
+
let(:instance) { FeratelCheckApiClient::AgeGroupTranslation.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AgeGroupTranslation' do
|
24
|
+
it 'should create an instance of AgeGroupTranslation' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(FeratelCheckApiClient::AgeGroupTranslation)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "code"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "language"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|