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,39 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#CheckAPI Standard
|
5
|
+
|
6
|
+
#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>
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.17.0
|
9
|
+
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
Generator version: 7.8.0
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "feratel-check-api-client/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "feratel-check-api-client"
|
20
|
+
s.version = FeratelCheckApiClient::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["OpenAPI-Generator"]
|
23
|
+
s.email = [""]
|
24
|
+
s.homepage = "https://openapi-generator.tech"
|
25
|
+
s.summary = "CheckAPI Standard Ruby Gem"
|
26
|
+
s.description = "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>"
|
27
|
+
s.license = "Unlicense"
|
28
|
+
s.required_ruby_version = ">= 2.7"
|
29
|
+
s.metadata = {}
|
30
|
+
|
31
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
|
35
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
36
|
+
s.test_files = `find spec/*`.split("\n")
|
37
|
+
s.executables = []
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
end
|
data/git_push.sh
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=$(git remote)
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|