gbizinfo 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/.openapi-generator/FILES +48 -0
  3. data/.openapi-generator/VERSION +1 -0
  4. data/.openapi-generator-ignore +30 -0
  5. data/.rspec +3 -0
  6. data/.rubocop.yml +13 -0
  7. data/CHANGELOG.md +3 -0
  8. data/CODE_OF_CONDUCT.md +84 -0
  9. data/Gemfile +12 -0
  10. data/Gemfile.lock +64 -0
  11. data/LICENSE.txt +21 -0
  12. data/README.md +121 -0
  13. data/Rakefile +12 -0
  14. data/bin/console +15 -0
  15. data/bin/setup +8 -0
  16. data/docs/ApiError.md +20 -0
  17. data/docs/CertificationInfo.md +30 -0
  18. data/docs/CommendationInfo.md +26 -0
  19. data/docs/CompatibilityOfChildcareAndWork.md +24 -0
  20. data/docs/Finance.md +24 -0
  21. data/docs/GBizINFORESTAPIApi.md +678 -0
  22. data/docs/GBizINFORESTAPIPeriodSpecifiedSearchApi.md +591 -0
  23. data/docs/HojinInfo.md +76 -0
  24. data/docs/HojinInfoResponse.md +24 -0
  25. data/docs/HojinInfoUpdateInfoResponse.md +30 -0
  26. data/docs/MajorShareholders.md +20 -0
  27. data/docs/ManagementIndex.md +66 -0
  28. data/docs/PatentInfo.md +26 -0
  29. data/docs/ProcurementInfo.md +26 -0
  30. data/docs/SubsidyInfo.md +32 -0
  31. data/docs/WomenActivityInfos.md +28 -0
  32. data/docs/WorkplaceBaseInfos.md +28 -0
  33. data/docs/WorkplaceInfoBean.md +22 -0
  34. data/gbizinfo.gemspec +37 -0
  35. data/git_push.sh +57 -0
  36. data/lib/gbizinfo/api/g_biz_inforestapi_api.rb +748 -0
  37. data/lib/gbizinfo/api/g_biz_inforestapi_period_specified_search_api.rb +670 -0
  38. data/lib/gbizinfo/api_client.rb +391 -0
  39. data/lib/gbizinfo/api_error.rb +58 -0
  40. data/lib/gbizinfo/configuration.rb +290 -0
  41. data/lib/gbizinfo/models/api_error.rb +225 -0
  42. data/lib/gbizinfo/models/certification_info.rb +275 -0
  43. data/lib/gbizinfo/models/commendation_info.rb +255 -0
  44. data/lib/gbizinfo/models/compatibility_of_childcare_and_work.rb +245 -0
  45. data/lib/gbizinfo/models/finance.rb +249 -0
  46. data/lib/gbizinfo/models/hojin_info.rb +515 -0
  47. data/lib/gbizinfo/models/hojin_info_response.rb +249 -0
  48. data/lib/gbizinfo/models/hojin_info_update_info_response.rb +279 -0
  49. data/lib/gbizinfo/models/major_shareholders.rb +225 -0
  50. data/lib/gbizinfo/models/management_index.rb +455 -0
  51. data/lib/gbizinfo/models/patent_info.rb +257 -0
  52. data/lib/gbizinfo/models/procurement_info.rb +257 -0
  53. data/lib/gbizinfo/models/subsidy_info.rb +287 -0
  54. data/lib/gbizinfo/models/women_activity_infos.rb +265 -0
  55. data/lib/gbizinfo/models/workplace_base_infos.rb +265 -0
  56. data/lib/gbizinfo/models/workplace_info_bean.rb +232 -0
  57. data/lib/gbizinfo/version.rb +15 -0
  58. data/lib/gbizinfo.rb +57 -0
  59. data/openapi/root.yaml +1377 -0
  60. data/sig/gbizinfo.rbs +4 -0
  61. metadata +105 -0
@@ -0,0 +1,30 @@
1
+ # Gbizinfo::HojinInfoUpdateInfoResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **errors** | [**Array<ApiError>**](ApiError.md) | エラー情報(エラーがある場合に出力します。) | [optional] |
8
+ | **hojin_infos** | [**Array<HojinInfo>**](HojinInfo.md) | gBizINFOデータ | [optional] |
9
+ | **id** | **String** | リクエストid | [optional] |
10
+ | **message** | **String** | メッセージ | [optional] |
11
+ | **page_number** | **String** | ページ番号 | [optional] |
12
+ | **total_count** | **String** | 総件数 | [optional] |
13
+ | **total_page** | **String** | 総ページ数 | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'gbizinfo'
19
+
20
+ instance = Gbizinfo::HojinInfoUpdateInfoResponse.new(
21
+ errors: null,
22
+ hojin_infos: null,
23
+ id: null,
24
+ message: null,
25
+ page_number: null,
26
+ total_count: null,
27
+ total_page: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,20 @@
1
+ # Gbizinfo::MajorShareholders
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name_major_shareholders** | **String** | 企業名もしくは出資者 | [optional] |
8
+ | **shareholding_ratio** | **Float** | 出資比率 | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'gbizinfo'
14
+
15
+ instance = Gbizinfo::MajorShareholders.new(
16
+ name_major_shareholders: null,
17
+ shareholding_ratio: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,66 @@
1
+ # Gbizinfo::ManagementIndex
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **capital_stock_summary_of_business_results** | **Integer** | 資本金 | [optional] |
8
+ | **capital_stock_summary_of_business_results_unit_ref** | **String** | 資本金(単位) | [optional] |
9
+ | **gross_operating_revenue_summary_of_business_results** | **Integer** | 営業総収入 | [optional] |
10
+ | **gross_operating_revenue_summary_of_business_results_unit_ref** | **String** | 営業総収入(単位) | [optional] |
11
+ | **net_assets_summary_of_business_results** | **Integer** | 純資産額 | [optional] |
12
+ | **net_assets_summary_of_business_results_unit_ref** | **String** | 純資産額(単位) | [optional] |
13
+ | **net_income_loss_summary_of_business_results** | **Integer** | 当期純利益又は当期純損失(△) | [optional] |
14
+ | **net_income_loss_summary_of_business_results_unit_ref** | **String** | 当期純利益又は当期純損失(△)(単位) | [optional] |
15
+ | **net_premiums_written_summary_of_business_results_ins** | **Integer** | 正味収入保険料 | [optional] |
16
+ | **net_premiums_written_summary_of_business_results_ins_unit_ref** | **String** | 正味収入保険料(単位) | [optional] |
17
+ | **net_sales_summary_of_business_results** | **Integer** | 売上高 | [optional] |
18
+ | **net_sales_summary_of_business_results_unit_ref** | **String** | 売上高(単位) | [optional] |
19
+ | **number_of_employees** | **Integer** | 従業員数 | [optional] |
20
+ | **number_of_employees_unit_ref** | **String** | 従業員数(単位) | [optional] |
21
+ | **operating_revenue1_summary_of_business_results** | **Integer** | 営業収益 | [optional] |
22
+ | **operating_revenue1_summary_of_business_results_unit_ref** | **String** | 営業収益(単位) | [optional] |
23
+ | **operating_revenue2_summary_of_business_results** | **Integer** | 営業収入 | [optional] |
24
+ | **operating_revenue2_summary_of_business_results_unit_ref** | **String** | 営業収入(単位) | [optional] |
25
+ | **ordinary_income_loss_summary_of_business_results** | **Integer** | 経常利益又は経常損失(△) | [optional] |
26
+ | **ordinary_income_loss_summary_of_business_results_unit_ref** | **String** | 経常利益又は経常損失(△)(単位) | [optional] |
27
+ | **ordinary_income_summary_of_business_results** | **Integer** | 経常収益 | [optional] |
28
+ | **ordinary_income_summary_of_business_results_unit_ref** | **String** | 経常収益(単位) | [optional] |
29
+ | **period** | **String** | 回次 | [optional] |
30
+ | **total_assets_summary_of_business_results** | **Integer** | 総資産額 | [optional] |
31
+ | **total_assets_summary_of_business_results_unit_ref** | **String** | 総資産額(単位) | [optional] |
32
+
33
+ ## Example
34
+
35
+ ```ruby
36
+ require 'gbizinfo'
37
+
38
+ instance = Gbizinfo::ManagementIndex.new(
39
+ capital_stock_summary_of_business_results: null,
40
+ capital_stock_summary_of_business_results_unit_ref: null,
41
+ gross_operating_revenue_summary_of_business_results: null,
42
+ gross_operating_revenue_summary_of_business_results_unit_ref: null,
43
+ net_assets_summary_of_business_results: null,
44
+ net_assets_summary_of_business_results_unit_ref: null,
45
+ net_income_loss_summary_of_business_results: null,
46
+ net_income_loss_summary_of_business_results_unit_ref: null,
47
+ net_premiums_written_summary_of_business_results_ins: null,
48
+ net_premiums_written_summary_of_business_results_ins_unit_ref: null,
49
+ net_sales_summary_of_business_results: null,
50
+ net_sales_summary_of_business_results_unit_ref: null,
51
+ number_of_employees: null,
52
+ number_of_employees_unit_ref: null,
53
+ operating_revenue1_summary_of_business_results: null,
54
+ operating_revenue1_summary_of_business_results_unit_ref: null,
55
+ operating_revenue2_summary_of_business_results: null,
56
+ operating_revenue2_summary_of_business_results_unit_ref: null,
57
+ ordinary_income_loss_summary_of_business_results: null,
58
+ ordinary_income_loss_summary_of_business_results_unit_ref: null,
59
+ ordinary_income_summary_of_business_results: null,
60
+ ordinary_income_summary_of_business_results_unit_ref: null,
61
+ period: null,
62
+ total_assets_summary_of_business_results: null,
63
+ total_assets_summary_of_business_results_unit_ref: null
64
+ )
65
+ ```
66
+
@@ -0,0 +1,26 @@
1
+ # Gbizinfo::PatentInfo
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **application_date** | **String** | 出願年月日 | [optional] |
8
+ | **application_number** | **String** | 出願番号 | [optional] |
9
+ | **classifications** | **Array<Hash>** | 分類 | [optional] |
10
+ | **patent_type** | **String** | 特許/意匠/商標 | [optional] |
11
+ | **title** | **String** | 発明の名称(等)/意匠に係る物品/表示用商標 | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'gbizinfo'
17
+
18
+ instance = Gbizinfo::PatentInfo.new(
19
+ application_date: null,
20
+ application_number: null,
21
+ classifications: null,
22
+ patent_type: null,
23
+ title: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,26 @@
1
+ # Gbizinfo::ProcurementInfo
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **amount** | **Integer** | 金額 | [optional] |
8
+ | **date_of_order** | **String** | 受注日 | [optional] |
9
+ | **government_departments** | **String** | 府省 | [optional] |
10
+ | **joint_signatures** | **Array<String>** | 連名 | [optional] |
11
+ | **title** | **String** | 事業名 | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'gbizinfo'
17
+
18
+ instance = Gbizinfo::ProcurementInfo.new(
19
+ amount: null,
20
+ date_of_order: null,
21
+ government_departments: null,
22
+ joint_signatures: null,
23
+ title: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,32 @@
1
+ # Gbizinfo::SubsidyInfo
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **amount** | **String** | 金額 | [optional] |
8
+ | **date_of_approval** | **String** | 認定日 | [optional] |
9
+ | **government_departments** | **String** | 府省 | [optional] |
10
+ | **joint_signatures** | **Array<String>** | 連名 | [optional] |
11
+ | **note** | **String** | 備考 | [optional] |
12
+ | **subsidy_resource** | **String** | 補助金財源 | [optional] |
13
+ | **target** | **String** | 対象 | [optional] |
14
+ | **title** | **String** | 補助金等 | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'gbizinfo'
20
+
21
+ instance = Gbizinfo::SubsidyInfo.new(
22
+ amount: null,
23
+ date_of_approval: null,
24
+ government_departments: null,
25
+ joint_signatures: null,
26
+ note: null,
27
+ subsidy_resource: null,
28
+ target: null,
29
+ title: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,28 @@
1
+ # Gbizinfo::WomenActivityInfos
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **female_share_of_manager** | **Integer** | 女性管理職人数 | [optional] |
8
+ | **female_share_of_officers** | **Integer** | 女性役員人数 | [optional] |
9
+ | **female_workers_proportion** | **Float** | 労働者に占める女性労働者の割合 | [optional] |
10
+ | **female_workers_proportion_type** | **String** | 労働者に占める女性労働者の割合種別 | [optional] |
11
+ | **gender_total_of_manager** | **Integer** | 管理職に占める女性の割合 | [optional] |
12
+ | **gender_total_of_officers** | **Integer** | 役員全体人数(男女計) | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'gbizinfo'
18
+
19
+ instance = Gbizinfo::WomenActivityInfos.new(
20
+ female_share_of_manager: null,
21
+ female_share_of_officers: null,
22
+ female_workers_proportion: null,
23
+ female_workers_proportion_type: null,
24
+ gender_total_of_manager: null,
25
+ gender_total_of_officers: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,28 @@
1
+ # Gbizinfo::WorkplaceBaseInfos
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **average_age** | **Float** | 従業員の平均年齢 | [optional] |
8
+ | **average_continuous_service_years** | **Float** | 正社員の平均継続勤務年数 | [optional] |
9
+ | **average_continuous_service_years_female** | **Float** | 平均継続勤務年数-女性 | [optional] |
10
+ | **average_continuous_service_years_male** | **Float** | 平均継続勤務年数-男性 | [optional] |
11
+ | **average_continuous_service_years_type** | **String** | 平均継続勤務年数種別 | [optional] |
12
+ | **month_average_predetermined_overtime_hours** | **Float** | 月平均所定外労働時間 | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'gbizinfo'
18
+
19
+ instance = Gbizinfo::WorkplaceBaseInfos.new(
20
+ average_age: null,
21
+ average_continuous_service_years: null,
22
+ average_continuous_service_years_female: null,
23
+ average_continuous_service_years_male: null,
24
+ average_continuous_service_years_type: null,
25
+ month_average_predetermined_overtime_hours: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,22 @@
1
+ # Gbizinfo::WorkplaceInfoBean
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **base_infos** | [**WorkplaceBaseInfos**](WorkplaceBaseInfos.md) | | [optional] |
8
+ | **compatibility_of_childcare_and_work** | [**CompatibilityOfChildcareAndWork**](CompatibilityOfChildcareAndWork.md) | | [optional] |
9
+ | **women_activity_infos** | [**WomenActivityInfos**](WomenActivityInfos.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'gbizinfo'
15
+
16
+ instance = Gbizinfo::WorkplaceInfoBean.new(
17
+ base_infos: null,
18
+ compatibility_of_childcare_and_work: null,
19
+ women_activity_infos: null
20
+ )
21
+ ```
22
+
data/gbizinfo.gemspec ADDED
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/gbizinfo/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "gbizinfo"
7
+ spec.version = Gbizinfo::VERSION
8
+ spec.authors = ["uichi"]
9
+ spec.email = ["37263474+uichi@users.noreply.github.com"]
10
+
11
+ spec.summary = "gBizInfoのRuby SDK"
12
+ spec.description = "経済産業省が提供するgBizInfoのRuby製クライアントAPI"
13
+ spec.homepage = "https://github.com/uichi/gbizinfo"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/uichi/gbizinfo"
19
+ spec.metadata["changelog_uri"] = "https://github.com/uichi/gbizinfo/blob/main/CHANGELOG.md"
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26
+ end
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ # Uncomment to register a new dependency of your gem
33
+ # spec.add_dependency "example-gem", "~> 1.0"
34
+
35
+ # For more information and examples about making a new gem, check out our
36
+ # guide at: https://bundler.io/guides/creating_gem.html
37
+ 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="uichi"
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="gbizinfo"
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'