cns_openapi_ruby_client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +81 -0
  4. data/README.md +123 -0
  5. data/Rakefile +10 -0
  6. data/cns_openapi_ruby_client.gemspec +39 -0
  7. data/docs/CorporateType.md +15 -0
  8. data/docs/Corporation.md +76 -0
  9. data/docs/CorporationsApi.md +101 -0
  10. data/docs/CorrectCodeType.md +15 -0
  11. data/docs/ProcessCodeType.md +15 -0
  12. data/docs/Response.md +26 -0
  13. data/docs/ResponseWrapper.md +18 -0
  14. data/git_push.sh +58 -0
  15. data/lib/cns_openapi_ruby_client.rb +46 -0
  16. data/lib/cns_openapi_ruby_client/api/corporations_api.rb +168 -0
  17. data/lib/cns_openapi_ruby_client/api_client.rb +383 -0
  18. data/lib/cns_openapi_ruby_client/api_error.rb +57 -0
  19. data/lib/cns_openapi_ruby_client/configuration.rb +277 -0
  20. data/lib/cns_openapi_ruby_client/models/corporate_type.rb +45 -0
  21. data/lib/cns_openapi_ruby_client/models/corporation.rb +606 -0
  22. data/lib/cns_openapi_ruby_client/models/correct_code_type.rb +37 -0
  23. data/lib/cns_openapi_ruby_client/models/process_code_type.rb +45 -0
  24. data/lib/cns_openapi_ruby_client/models/response.rb +286 -0
  25. data/lib/cns_openapi_ruby_client/models/response_wrapper.rb +223 -0
  26. data/lib/cns_openapi_ruby_client/version.rb +15 -0
  27. data/spec/api/corporations_api_spec.rb +57 -0
  28. data/spec/api_client_spec.rb +197 -0
  29. data/spec/configuration_spec.rb +42 -0
  30. data/spec/models/corporate_type_spec.rb +28 -0
  31. data/spec/models/corporation_spec.rb +220 -0
  32. data/spec/models/correct_code_type_spec.rb +28 -0
  33. data/spec/models/process_code_type_spec.rb +28 -0
  34. data/spec/models/response_spec.rb +58 -0
  35. data/spec/models/response_wrapper_spec.rb +34 -0
  36. data/spec/spec_helper.rb +111 -0
  37. metadata +148 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: afdbb397204185ca3fae12dc02cf31dc2c2df7281cef412deebe46b5e395c9e5
4
+ data.tar.gz: 7f82082555cae5f9c018fc4f09f1d27abb7ad8cbb02201683315bc622b737939
5
+ SHA512:
6
+ metadata.gz: 4fe828991fb579c9a18e66e2a1d4ef6c1e98c05fb1f81542bb0af0b1899d07838f3aea090a28619cfe03f362e0d01c22d3e8e5cfc621c6e9049e40eba7201ba5
7
+ data.tar.gz: cacf300540fa87e2e86d34340186aae571fa559e917d8bf408aa5ca399e1a8e4fa2c4fefba9c716077e72c05d9d34587bf6721bf19abab66ad8deabd9cd19bbf
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,81 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cns_openapi_ruby_client (1.0.0)
5
+ activesupport (~> 4.2, >= 4.2.11)
6
+ typhoeus (~> 1.0, >= 1.0.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activesupport (4.2.11.3)
12
+ i18n (~> 0.7)
13
+ minitest (~> 5.1)
14
+ thread_safe (~> 0.3, >= 0.3.4)
15
+ tzinfo (~> 1.1)
16
+ ast (2.4.2)
17
+ byebug (11.1.3)
18
+ coderay (1.1.3)
19
+ concurrent-ruby (1.1.8)
20
+ diff-lcs (1.4.4)
21
+ ethon (0.12.0)
22
+ ffi (>= 1.3.0)
23
+ ffi (1.15.0)
24
+ i18n (0.9.5)
25
+ concurrent-ruby (~> 1.0)
26
+ jaro_winkler (1.5.4)
27
+ method_source (1.0.0)
28
+ minitest (5.14.4)
29
+ parallel (1.20.1)
30
+ parser (3.0.0.0)
31
+ ast (~> 2.4.1)
32
+ pry (0.13.1)
33
+ coderay (~> 1.1)
34
+ method_source (~> 1.0)
35
+ pry-byebug (3.9.0)
36
+ byebug (~> 11.0)
37
+ pry (~> 0.13.0)
38
+ psych (3.3.1)
39
+ rainbow (3.0.0)
40
+ rake (13.0.3)
41
+ rspec (3.10.0)
42
+ rspec-core (~> 3.10.0)
43
+ rspec-expectations (~> 3.10.0)
44
+ rspec-mocks (~> 3.10.0)
45
+ rspec-core (3.10.1)
46
+ rspec-support (~> 3.10.0)
47
+ rspec-expectations (3.10.1)
48
+ diff-lcs (>= 1.2.0, < 2.0)
49
+ rspec-support (~> 3.10.0)
50
+ rspec-mocks (3.10.2)
51
+ diff-lcs (>= 1.2.0, < 2.0)
52
+ rspec-support (~> 3.10.0)
53
+ rspec-support (3.10.2)
54
+ rubocop (0.66.0)
55
+ jaro_winkler (~> 1.5.1)
56
+ parallel (~> 1.10)
57
+ parser (>= 2.5, != 2.5.1.1)
58
+ psych (>= 3.1.0)
59
+ rainbow (>= 2.2.2, < 4.0)
60
+ ruby-progressbar (~> 1.7)
61
+ unicode-display_width (>= 1.4.0, < 1.6)
62
+ ruby-progressbar (1.11.0)
63
+ thread_safe (0.3.6)
64
+ typhoeus (1.4.0)
65
+ ethon (>= 0.9.0)
66
+ tzinfo (1.2.9)
67
+ thread_safe (~> 0.1)
68
+ unicode-display_width (1.5.0)
69
+
70
+ PLATFORMS
71
+ ruby
72
+
73
+ DEPENDENCIES
74
+ cns_openapi_ruby_client!
75
+ pry-byebug
76
+ rake (~> 13.0.1)
77
+ rspec (~> 3.6, >= 3.6.0)
78
+ rubocop (~> 0.66.0)
79
+
80
+ BUNDLED WITH
81
+ 2.1.4
data/README.md ADDED
@@ -0,0 +1,123 @@
1
+ # cns_openapi_ruby_client
2
+
3
+ OpenApiGenerator generates base code. Some code customized to parse xml.
4
+
5
+ CnsOpenapiRubyClient - the Ruby gem for the Corporate number system API v4
6
+
7
+ Corporate number system API v4
8
+
9
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
10
+
11
+ - API version: 1.0.0
12
+ - Package version: 1.0.0
13
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
14
+ For more information, please visit [https://www.houjin-bangou.nta.go.jp/webapi/toiawase/](https://www.houjin-bangou.nta.go.jp/webapi/toiawase/)
15
+
16
+ ## Installation
17
+
18
+ ### Build a gem
19
+
20
+ To build the Ruby code into a gem:
21
+
22
+ ```shell
23
+ gem build cns_openapi_ruby_client.gemspec
24
+ ```
25
+
26
+ Then either install the gem locally:
27
+
28
+ ```shell
29
+ gem install ./cns_openapi_ruby_client-1.0.0.gem
30
+ ```
31
+
32
+ (for development, run `gem install --dev ./cns_openapi_ruby_client-1.0.0.gem` to install the development dependencies)
33
+
34
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
35
+
36
+ Finally add this to the Gemfile:
37
+
38
+ gem 'cns_openapi_ruby_client', '~> 1.0.0'
39
+
40
+ ### Install from Git
41
+
42
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
43
+
44
+ gem 'cns_openapi_ruby_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
45
+
46
+ ### Include the Ruby code directly
47
+
48
+ Include the Ruby code directly using `-I` as follows:
49
+
50
+ ```shell
51
+ ruby -Ilib script.rb
52
+ ```
53
+
54
+ ## Getting Started
55
+
56
+ Please follow the [installation](#installation) procedure and then run the following code:
57
+
58
+ ```ruby
59
+ # Load the gem
60
+ require 'cns_openapi_ruby_client'
61
+
62
+ # Setup authorization
63
+ CnsOpenapiRubyClient.configure do |config|
64
+ # Configure API key authorization: id
65
+ config.api_key['id'] = 'YOUR API KEY'
66
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
67
+ # config.api_key_prefix['id'] = 'Bearer'
68
+ end
69
+
70
+ api_instance = CnsOpenapiRubyClient::CorporationsApi.new
71
+ name = 'name_example' # String | 取得の対象とする法人名を URL エンコード(UTF-8)した値をセットします。
72
+ type = '12' # String | リクエストに対して応答するデータのファイル形式と文字コードを指定します。
73
+ opts = {
74
+ mode: 1, # Integer | 検索方式を指定できます。 指定しない場合は、「1」(前方一致検索)で処理します。
75
+ target: 1, # Integer | 検索対象を指定できます。 指定しない場合は、「1」(JIS 第一・第二水準)で処理します。
76
+ address: 'address_example', # String | 国内所在地の都道府県コード又は 都道府県コードと市区町村コードを組み合わせたコードのいずれかを指定できます。 市区町村コードのみではエラー(エラーコード 051)となります。
77
+ kind: '01', # String | 法人種別を指定できます。
78
+ change: 0, # Integer | 法人名や所在地の変更があった法人等に ついて過去の情報を含めて検索するかどうかを指定できます。
79
+ close: 0, # Integer | 登記記録の閉鎖等があった法人等の情報を取得するかどうかを指定できます。
80
+ from: 'from_example', # String | 取得の対象とする法人番号指定年月日の開始日を指定できます。
81
+ to: 'to_example', # String | 取得の対象とする法人番号指定年月日の終了日を指定できます。
82
+ divide: 56 # Integer | 分割番号を指定できます。 指定しない場合は、「1」で処理します。
83
+ }
84
+
85
+ begin
86
+ #法人名を指定しリクエストすることで、指定した法人名の基本3情報及び付随する情報を取得することができます。
87
+ result = api_instance.get_corporations(name, type, opts)
88
+ p result
89
+ rescue CnsOpenapiRubyClient::ApiError => e
90
+ puts "Exception when calling CorporationsApi->get_corporations: #{e}"
91
+ end
92
+
93
+ ```
94
+
95
+ ## Documentation for API Endpoints
96
+
97
+ All URIs are relative to *https://api.houjin-bangou.nta.go.jp/4*
98
+
99
+ Class | Method | HTTP request | Description
100
+ ------------ | ------------- | ------------- | -------------
101
+ *CnsOpenapiRubyClient::CorporationsApi* | [**get_corporations**](docs/CorporationsApi.md#get_corporations) | **GET** /name | 法人名を指定しリクエストすることで、指定した法人名の基本3情報及び付随する情報を取得することができます。
102
+
103
+
104
+ ## Documentation for Models
105
+
106
+ - [CnsOpenapiRubyClient::CorporateType](docs/CorporateType.md)
107
+ - [CnsOpenapiRubyClient::Corporation](docs/Corporation.md)
108
+ - [CnsOpenapiRubyClient::CorrectCodeType](docs/CorrectCodeType.md)
109
+ - [CnsOpenapiRubyClient::ProcessCodeType](docs/ProcessCodeType.md)
110
+ - [CnsOpenapiRubyClient::Response](docs/Response.md)
111
+ - [CnsOpenapiRubyClient::ResponseWrapper](docs/ResponseWrapper.md)
112
+
113
+
114
+ ## Documentation for Authorization
115
+
116
+
117
+ ### id
118
+
119
+
120
+ - **Type**: API key
121
+ - **API key parameter name**: id
122
+ - **Location**: URL query string
123
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,39 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Corporate number system API v4
5
+
6
+ #Corporate number system API v4
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 5.0.1
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "cns_openapi_ruby_client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "cns_openapi_ruby_client"
20
+ s.version = CnsOpenapiRubyClient::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 = "Corporate number system API v4 Ruby Gem"
26
+ s.description = "Corporate number system API v4"
27
+ s.license = "Unlicense"
28
+ s.required_ruby_version = ">= 2.4"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'activesupport', '~> 4.2', '>= 4.2.11'
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
@@ -0,0 +1,15 @@
1
+ # CnsOpenapiRubyClient::CorporateType
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'cns_openapi_ruby_client'
12
+
13
+ instance = CnsOpenapiRubyClient::CorporateType.new()
14
+ ```
15
+
@@ -0,0 +1,76 @@
1
+ # CnsOpenapiRubyClient::Corporation
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **sequence_number** | **Integer** | 一連番号 | [optional] |
8
+ | **corporate_number** | **Integer** | 法人番号の指定を受けた者(以下「法人番号保有者」という。)の 法人番号を示すデータ項目。 | [optional] |
9
+ | **process** | [**ProcessCodeType**](ProcessCodeType.md) | | [optional] |
10
+ | **correct** | [**CorrectCodeType**](CorrectCodeType.md) | | [optional] |
11
+ | **update_date** | **Date** | 法務省等からデータを受け取り、当庁でデータを更新した日付を表す。 | [optional] |
12
+ | **change_date** | **Date** | 事由が発生した日付を表すデータ項目。 | [optional] |
13
+ | **name** | **String** | 法人番号保有者の商号又は名称を示すデータ項目。 | [optional] |
14
+ | **name_image_id** | **Integer** | 商号又は名称イメージIDは、 イメージファイルを閲覧するために指定する値(情報)。 | [optional] |
15
+ | **kind** | [**CorporateType**](CorporateType.md) | | [optional] |
16
+ | **prefecture_name** | **String** | 法人番号保有者の本店又は主たる事務所の所在地の都道府県名。 | [optional] |
17
+ | **city_name** | **String** | 法人番号保有者の本店又は主たる事務所の所在地の市区町村名。 | [optional] |
18
+ | **street_number** | **String** | 法人番号保有者の本店又は主たる事務所の所在地の丁目番地等。 | [optional] |
19
+ | **address_image_id** | **Integer** | 国内所在地イメージIDは、 イメージファイルを閲覧するために指定する値(情報)。 | [optional] |
20
+ | **prefecture_code** | **Integer** | 都道府県コード。データを取り込み、名寄せ作業や不要なデータを識別する際、 当該コードを活用することにより、効率的な作業を行うことができる。 | [optional] |
21
+ | **city_code** | **Integer** | 市区町村コード | [optional] |
22
+ | **post_code** | **Integer** | 国内所在地の文字情報を基に設定した郵便番号。 | [optional] |
23
+ | **address_outside** | **String** | 本店又は主たる事務所の所在地が国外にある法人番号保有者の 国外における本店又は主たる事務所の所在地を示すデータ項目。 | [optional] |
24
+ | **address_outside_image_id** | **Integer** | 国外所在地イメージIDは、 イメージファイルを閲覧するために指定する値(情報)。 | [optional] |
25
+ | **close_date** | **Date** | 登記記録の閉鎖等の事由が生じた年月日を表す。 | [optional] |
26
+ | **close_cause** | **String** | 閉鎖の事由は、登記記録の閉鎖等が生じた事由を表すデータ項目。 | [optional] |
27
+ | **successor_corporate_number** | **Integer** | 合併等による事業承継があったことにより 登記記録が閉鎖された場合の存続する法人の法人番号。 | [optional] |
28
+ | **change_cause** | **String** | 合併等による事業承継があった場合の事業承継内容を示すデータ項目。 | [optional] |
29
+ | **assignment_date** | **Date** | 法人番号指定年月日は、法人番号が指定された年月日を表す。 | [optional] |
30
+ | **latest** | **Integer** | 応答結果のデータが、最新の情報か過去の情報かを表す。 | [optional] |
31
+ | **en_name** | **String** | 法人番号保有者が登録した商号又は名称(英語表記)。 | [optional] |
32
+ | **en_prefecture_name** | **String** | 法人番号保有者が登録した本店又は主たる事務所の 所在地の都道府県名(英語表記)。 | [optional] |
33
+ | **en_city_name** | **String** | 法人番号保有者が登録した本店又は主たる事務所の 所在地の丁目番地等(英語表記)。 | [optional] |
34
+ | **en_address_outside** | **String** | 本店又は主たる事務所の所在地が国外にある法人番号保有者が 登録した国外における本店又は主たる事務所の所在地(英語表記)。 | [optional] |
35
+ | **furigana** | **String** | 法人番号保有者の商号又は名称に対するフリガナ情報を示すデータ項目。 | [optional] |
36
+ | **hihyoji** | **Integer** | 設立登記法人のうち、登記上の所在地が、住居表示の実施や区画整理等で 既に廃止されており、現在では存在しない住所表記となっていることが 確認できた法人について、検索対象から除外していることを示すデータ項目。 | [optional] |
37
+
38
+ ## Example
39
+
40
+ ```ruby
41
+ require 'cns_openapi_ruby_client'
42
+
43
+ instance = CnsOpenapiRubyClient::Corporation.new(
44
+ sequence_number: 11111111,
45
+ corporate_number: 9999999999999,
46
+ process: null,
47
+ correct: null,
48
+ update_date: Mon Apr 02 00:00:00 GMT 2018,
49
+ change_date: Mon Oct 05 00:00:00 GMT 2015,
50
+ name: 株式会社foo,
51
+ name_image_id: 99999999,
52
+ kind: null,
53
+ prefecture_name: 北海道,
54
+ city_name: 旭川市,
55
+ street_number: 大字下白銀町7,
56
+ address_image_id: 87308,
57
+ prefecture_code: 1,
58
+ city_code: 111,
59
+ post_code: 7777777,
60
+ address_outside: ニューヨーク州ブロンクス区西263丁目1番地,
61
+ address_outside_image_id: 1,
62
+ close_date: Fri Mar 31 00:00:00 GMT 2017,
63
+ close_cause: 01,
64
+ successor_corporate_number: 1,
65
+ change_cause: 不本意ながら吸収合併されたため。,
66
+ assignment_date: Fri Jan 01 00:00:00 GMT 2010,
67
+ latest: 0,
68
+ en_name: Netflix,
69
+ en_prefecture_name: Hokkaido,
70
+ en_city_name: null,
71
+ en_address_outside: 47 W 13th St, New York, NY 10011, USA,
72
+ furigana: ワッツマンリサーチ,
73
+ hihyoji: 0
74
+ )
75
+ ```
76
+
@@ -0,0 +1,101 @@
1
+ # CnsOpenapiRubyClient::CorporationsApi
2
+
3
+ All URIs are relative to *https://api.houjin-bangou.nta.go.jp/4*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_corporations**](CorporationsApi.md#get_corporations) | **GET** /name | 法人名を指定しリクエストすることで、指定した法人名の基本3情報及び付随する情報を取得することができます。 |
8
+
9
+
10
+ ## get_corporations
11
+
12
+ > <ResponseWrapper> get_corporations(name, type, opts)
13
+
14
+ 法人名を指定しリクエストすることで、指定した法人名の基本3情報及び付随する情報を取得することができます。
15
+
16
+ 法人名による法人情報の取得
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'cns_openapi_ruby_client'
23
+ # setup authorization
24
+ CnsOpenapiRubyClient.configure do |config|
25
+ # Configure API key authorization: id
26
+ config.api_key['id'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ # config.api_key_prefix['id'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = CnsOpenapiRubyClient::CorporationsApi.new
32
+ name = 'name_example' # String | 取得の対象とする法人名を URL エンコード(UTF-8)した値をセットします。
33
+ type = '12' # String | リクエストに対して応答するデータのファイル形式と文字コードを指定します。
34
+ opts = {
35
+ mode: 1, # Integer | 検索方式を指定できます。 指定しない場合は、「1」(前方一致検索)で処理します。
36
+ target: 1, # Integer | 検索対象を指定できます。 指定しない場合は、「1」(JIS 第一・第二水準)で処理します。
37
+ address: 'address_example', # String | 国内所在地の都道府県コード又は 都道府県コードと市区町村コードを組み合わせたコードのいずれかを指定できます。 市区町村コードのみではエラー(エラーコード 051)となります。
38
+ kind: '01', # String | 法人種別を指定できます。
39
+ change: 0, # Integer | 法人名や所在地の変更があった法人等に ついて過去の情報を含めて検索するかどうかを指定できます。
40
+ close: 0, # Integer | 登記記録の閉鎖等があった法人等の情報を取得するかどうかを指定できます。
41
+ from: 'from_example', # String | 取得の対象とする法人番号指定年月日の開始日を指定できます。
42
+ to: 'to_example', # String | 取得の対象とする法人番号指定年月日の終了日を指定できます。
43
+ divide: 56 # Integer | 分割番号を指定できます。 指定しない場合は、「1」で処理します。
44
+ }
45
+
46
+ begin
47
+ # 法人名を指定しリクエストすることで、指定した法人名の基本3情報及び付随する情報を取得することができます。
48
+ result = api_instance.get_corporations(name, type, opts)
49
+ p result
50
+ rescue CnsOpenapiRubyClient::ApiError => e
51
+ puts "Error when calling CorporationsApi->get_corporations: #{e}"
52
+ end
53
+ ```
54
+
55
+ #### Using the get_corporations_with_http_info variant
56
+
57
+ This returns an Array which contains the response data, status code and headers.
58
+
59
+ > <Array(<ResponseWrapper>, Integer, Hash)> get_corporations_with_http_info(name, type, opts)
60
+
61
+ ```ruby
62
+ begin
63
+ # 法人名を指定しリクエストすることで、指定した法人名の基本3情報及び付随する情報を取得することができます。
64
+ data, status_code, headers = api_instance.get_corporations_with_http_info(name, type, opts)
65
+ p status_code # => 2xx
66
+ p headers # => { ... }
67
+ p data # => <ResponseWrapper>
68
+ rescue CnsOpenapiRubyClient::ApiError => e
69
+ puts "Error when calling CorporationsApi->get_corporations_with_http_info: #{e}"
70
+ end
71
+ ```
72
+
73
+ ### Parameters
74
+
75
+ | Name | Type | Description | Notes |
76
+ | ---- | ---- | ----------- | ----- |
77
+ | **name** | **String** | 取得の対象とする法人名を URL エンコード(UTF-8)した値をセットします。 | |
78
+ | **type** | **String** | リクエストに対して応答するデータのファイル形式と文字コードを指定します。 | [default to &#39;12&#39;] |
79
+ | **mode** | **Integer** | 検索方式を指定できます。 指定しない場合は、「1」(前方一致検索)で処理します。 | [optional][default to 1] |
80
+ | **target** | **Integer** | 検索対象を指定できます。 指定しない場合は、「1」(JIS 第一・第二水準)で処理します。 | [optional][default to 1] |
81
+ | **address** | **String** | 国内所在地の都道府県コード又は 都道府県コードと市区町村コードを組み合わせたコードのいずれかを指定できます。 市区町村コードのみではエラー(エラーコード 051)となります。 | [optional] |
82
+ | **kind** | **String** | 法人種別を指定できます。 | [optional] |
83
+ | **change** | **Integer** | 法人名や所在地の変更があった法人等に ついて過去の情報を含めて検索するかどうかを指定できます。 | [optional][default to 0] |
84
+ | **close** | **Integer** | 登記記録の閉鎖等があった法人等の情報を取得するかどうかを指定できます。 | [optional][default to 1] |
85
+ | **from** | **String** | 取得の対象とする法人番号指定年月日の開始日を指定できます。 | [optional] |
86
+ | **to** | **String** | 取得の対象とする法人番号指定年月日の終了日を指定できます。 | [optional] |
87
+ | **divide** | **Integer** | 分割番号を指定できます。 指定しない場合は、「1」で処理します。 | [optional] |
88
+
89
+ ### Return type
90
+
91
+ [**ResponseWrapper**](ResponseWrapper.md)
92
+
93
+ ### Authorization
94
+
95
+ [id](../README.md#id)
96
+
97
+ ### HTTP request headers
98
+
99
+ - **Content-Type**: Not defined
100
+ - **Accept**: application/xml, application/json
101
+