cns_openapi_ruby_client 1.0.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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +81 -0
- data/README.md +123 -0
- data/Rakefile +10 -0
- data/cns_openapi_ruby_client.gemspec +39 -0
- data/docs/CorporateType.md +15 -0
- data/docs/Corporation.md +76 -0
- data/docs/CorporationsApi.md +101 -0
- data/docs/CorrectCodeType.md +15 -0
- data/docs/ProcessCodeType.md +15 -0
- data/docs/Response.md +26 -0
- data/docs/ResponseWrapper.md +18 -0
- data/git_push.sh +58 -0
- data/lib/cns_openapi_ruby_client.rb +46 -0
- data/lib/cns_openapi_ruby_client/api/corporations_api.rb +168 -0
- data/lib/cns_openapi_ruby_client/api_client.rb +383 -0
- data/lib/cns_openapi_ruby_client/api_error.rb +57 -0
- data/lib/cns_openapi_ruby_client/configuration.rb +277 -0
- data/lib/cns_openapi_ruby_client/models/corporate_type.rb +45 -0
- data/lib/cns_openapi_ruby_client/models/corporation.rb +606 -0
- data/lib/cns_openapi_ruby_client/models/correct_code_type.rb +37 -0
- data/lib/cns_openapi_ruby_client/models/process_code_type.rb +45 -0
- data/lib/cns_openapi_ruby_client/models/response.rb +286 -0
- data/lib/cns_openapi_ruby_client/models/response_wrapper.rb +223 -0
- data/lib/cns_openapi_ruby_client/version.rb +15 -0
- data/spec/api/corporations_api_spec.rb +57 -0
- data/spec/api_client_spec.rb +197 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/corporate_type_spec.rb +28 -0
- data/spec/models/corporation_spec.rb +220 -0
- data/spec/models/correct_code_type_spec.rb +28 -0
- data/spec/models/process_code_type_spec.rb +28 -0
- data/spec/models/response_spec.rb +58 -0
- data/spec/models/response_wrapper_spec.rb +34 -0
- data/spec/spec_helper.rb +111 -0
- metadata +148 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
=begin
|
2
|
+
#Corporate number system API v4
|
3
|
+
|
4
|
+
#Corporate number system API v4
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
module CnsOpenapiRubyClient
|
14
|
+
VERSION = '1.0.0'
|
15
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
=begin
|
2
|
+
#Corporate number system API v4
|
3
|
+
|
4
|
+
#Corporate number system API v4
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for CnsOpenapiRubyClient::CorporationsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CorporationsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = CnsOpenapiRubyClient::CorporationsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of CorporationsApi' do
|
30
|
+
it 'should create an instance of CorporationsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(CnsOpenapiRubyClient::CorporationsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_corporations
|
36
|
+
# 法人名を指定しリクエストすることで、指定した法人名の基本3情報及び付随する情報を取得することができます。
|
37
|
+
# 法人名による法人情報の取得
|
38
|
+
# @param name 取得の対象とする法人名を URL エンコード(UTF-8)した値をセットします。
|
39
|
+
# @param type リクエストに対して応答するデータのファイル形式と文字コードを指定します。
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [Integer] :mode 検索方式を指定できます。 指定しない場合は、「1」(前方一致検索)で処理します。
|
42
|
+
# @option opts [Integer] :target 検索対象を指定できます。 指定しない場合は、「1」(JIS 第一・第二水準)で処理します。
|
43
|
+
# @option opts [String] :address 国内所在地の都道府県コード又は 都道府県コードと市区町村コードを組み合わせたコードのいずれかを指定できます。 市区町村コードのみではエラー(エラーコード 051)となります。
|
44
|
+
# @option opts [String] :kind 法人種別を指定できます。
|
45
|
+
# @option opts [Integer] :change 法人名や所在地の変更があった法人等に ついて過去の情報を含めて検索するかどうかを指定できます。
|
46
|
+
# @option opts [Integer] :close 登記記録の閉鎖等があった法人等の情報を取得するかどうかを指定できます。
|
47
|
+
# @option opts [String] :from 取得の対象とする法人番号指定年月日の開始日を指定できます。
|
48
|
+
# @option opts [String] :to 取得の対象とする法人番号指定年月日の終了日を指定できます。
|
49
|
+
# @option opts [Integer] :divide 分割番号を指定できます。 指定しない場合は、「1」で処理します。
|
50
|
+
# @return [ResponseWrapper]
|
51
|
+
describe 'get_corporations test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
@@ -0,0 +1,197 @@
|
|
1
|
+
=begin
|
2
|
+
#Corporate number system API v4
|
3
|
+
|
4
|
+
#Corporate number system API v4
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
|
15
|
+
describe CnsOpenapiRubyClient::ApiClient do
|
16
|
+
context 'initialization' do
|
17
|
+
context 'URL stuff' do
|
18
|
+
context 'host' do
|
19
|
+
it 'removes http from host' do
|
20
|
+
CnsOpenapiRubyClient.configure { |c| c.host = 'http://example.com' }
|
21
|
+
expect(CnsOpenapiRubyClient::Configuration.default.host).to eq('example.com')
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'removes https from host' do
|
25
|
+
CnsOpenapiRubyClient.configure { |c| c.host = 'https://wookiee.com' }
|
26
|
+
expect(CnsOpenapiRubyClient::ApiClient.default.config.host).to eq('wookiee.com')
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'removes trailing path from host' do
|
30
|
+
CnsOpenapiRubyClient.configure { |c| c.host = 'hobo.com/v4' }
|
31
|
+
expect(CnsOpenapiRubyClient::Configuration.default.host).to eq('hobo.com')
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
context 'base_path' do
|
36
|
+
it "prepends a slash to base_path" do
|
37
|
+
CnsOpenapiRubyClient.configure { |c| c.base_path = 'v4/dog' }
|
38
|
+
expect(CnsOpenapiRubyClient::Configuration.default.base_path).to eq('/v4/dog')
|
39
|
+
end
|
40
|
+
|
41
|
+
it "doesn't prepend a slash if one is already there" do
|
42
|
+
CnsOpenapiRubyClient.configure { |c| c.base_path = '/v4/dog' }
|
43
|
+
expect(CnsOpenapiRubyClient::Configuration.default.base_path).to eq('/v4/dog')
|
44
|
+
end
|
45
|
+
|
46
|
+
it "ends up as a blank string if nil" do
|
47
|
+
CnsOpenapiRubyClient.configure { |c| c.base_path = nil }
|
48
|
+
expect(CnsOpenapiRubyClient::Configuration.default.base_path).to eq('')
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'params_encoding in #build_request' do
|
55
|
+
let(:config) { CnsOpenapiRubyClient::Configuration.new }
|
56
|
+
let(:api_client) { CnsOpenapiRubyClient::ApiClient.new(config) }
|
57
|
+
|
58
|
+
it 'defaults to nil' do
|
59
|
+
expect(CnsOpenapiRubyClient::Configuration.default.params_encoding).to eq(nil)
|
60
|
+
expect(config.params_encoding).to eq(nil)
|
61
|
+
|
62
|
+
request = api_client.build_request(:get, '/test')
|
63
|
+
expect(request.options[:params_encoding]).to eq(nil)
|
64
|
+
end
|
65
|
+
|
66
|
+
it 'can be customized' do
|
67
|
+
config.params_encoding = :multi
|
68
|
+
request = api_client.build_request(:get, '/test')
|
69
|
+
expect(request.options[:params_encoding]).to eq(:multi)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe 'timeout in #build_request' do
|
74
|
+
let(:config) { CnsOpenapiRubyClient::Configuration.new }
|
75
|
+
let(:api_client) { CnsOpenapiRubyClient::ApiClient.new(config) }
|
76
|
+
|
77
|
+
it 'defaults to 0' do
|
78
|
+
expect(CnsOpenapiRubyClient::Configuration.default.timeout).to eq(0)
|
79
|
+
expect(config.timeout).to eq(0)
|
80
|
+
|
81
|
+
request = api_client.build_request(:get, '/test')
|
82
|
+
expect(request.options[:timeout]).to eq(0)
|
83
|
+
end
|
84
|
+
|
85
|
+
it 'can be customized' do
|
86
|
+
config.timeout = 100
|
87
|
+
request = api_client.build_request(:get, '/test')
|
88
|
+
expect(request.options[:timeout]).to eq(100)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
describe "#object_to_hash" do
|
93
|
+
it 'ignores nils and includes empty arrays' do
|
94
|
+
# uncomment below to test object_to_hash for model
|
95
|
+
# api_client = CnsOpenapiRubyClient::ApiClient.new
|
96
|
+
# _model = CnsOpenapiRubyClient::ModelName.new
|
97
|
+
# update the model attribute below
|
98
|
+
# _model.id = 1
|
99
|
+
# update the expected value (hash) below
|
100
|
+
# expected = {id: 1, name: '', tags: []}
|
101
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
describe '#build_collection_param' do
|
106
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
107
|
+
let(:api_client) { CnsOpenapiRubyClient::ApiClient.new }
|
108
|
+
|
109
|
+
it 'works for csv' do
|
110
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
111
|
+
end
|
112
|
+
|
113
|
+
it 'works for ssv' do
|
114
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
115
|
+
end
|
116
|
+
|
117
|
+
it 'works for tsv' do
|
118
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
119
|
+
end
|
120
|
+
|
121
|
+
it 'works for pipes' do
|
122
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
123
|
+
end
|
124
|
+
|
125
|
+
it 'works for multi' do
|
126
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
127
|
+
end
|
128
|
+
|
129
|
+
it 'fails for invalid collection format' do
|
130
|
+
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
describe '#xml_mime?' do
|
135
|
+
let(:api_client) { CnsOpenapiRubyClient::ApiClient.new }
|
136
|
+
|
137
|
+
it 'works' do
|
138
|
+
expect(api_client.xml_mime?(nil)).to eq false
|
139
|
+
expect(api_client.xml_mime?('')).to eq false
|
140
|
+
|
141
|
+
expect(api_client.xml_mime?('application/xml')).to eq true
|
142
|
+
expect(api_client.xml_mime?('application/xml; charset=UTF8')).to eq true
|
143
|
+
expect(api_client.xml_mime?('APPLICATION/JSON')).to eq false
|
144
|
+
|
145
|
+
expect(api_client.xml_mime?('application/xml')).to eq true
|
146
|
+
expect(api_client.xml_mime?('text/plain')).to eq false
|
147
|
+
expect(api_client.xml_mime?('application/jsonp')).to eq false
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
describe '#select_header_accept' do
|
152
|
+
let(:api_client) { CnsOpenapiRubyClient::ApiClient.new }
|
153
|
+
|
154
|
+
it 'works' do
|
155
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
156
|
+
expect(api_client.select_header_accept([])).to be_nil
|
157
|
+
|
158
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
159
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/xml')
|
160
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON,text/html')
|
161
|
+
|
162
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
163
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('application/xml')
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
describe '#select_header_content_type' do
|
168
|
+
let(:api_client) { CnsOpenapiRubyClient::ApiClient.new }
|
169
|
+
|
170
|
+
it 'works' do
|
171
|
+
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
172
|
+
expect(api_client.select_header_content_type([])).to eq('application/json')
|
173
|
+
|
174
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
175
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
176
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
177
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
178
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
describe '#sanitize_filename' do
|
183
|
+
let(:api_client) { CnsOpenapiRubyClient::ApiClient.new }
|
184
|
+
|
185
|
+
it 'works' do
|
186
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
187
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
188
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
189
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
190
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
191
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
192
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
193
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
194
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
195
|
+
end
|
196
|
+
end
|
197
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
=begin
|
2
|
+
#Corporate number system API v4
|
3
|
+
|
4
|
+
#Corporate number system API v4
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
|
15
|
+
describe CnsOpenapiRubyClient::Configuration do
|
16
|
+
let(:config) { CnsOpenapiRubyClient::Configuration.default }
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
# uncomment below to setup host and base_path
|
20
|
+
# require 'URI'
|
21
|
+
# uri = URI.parse("https://api.houjin-bangou.nta.go.jp/4")
|
22
|
+
# CnsOpenapiRubyClient.configure do |c|
|
23
|
+
# c.host = uri.host
|
24
|
+
# c.base_path = uri.path
|
25
|
+
# end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe '#base_url' do
|
29
|
+
it 'should have the default value' do
|
30
|
+
# uncomment below to test default value of the base path
|
31
|
+
# expect(config.base_url).to eq("https://api.houjin-bangou.nta.go.jp/4")
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should remove trailing slashes' do
|
35
|
+
[nil, '', '/', '//'].each do |base_path|
|
36
|
+
config.base_path = base_path
|
37
|
+
# uncomment below to test trailing slashes
|
38
|
+
# expect(config.base_url).to eq("https://api.houjin-bangou.nta.go.jp/4")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
=begin
|
2
|
+
#Corporate number system API v4
|
3
|
+
|
4
|
+
#Corporate number system API v4
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CnsOpenapiRubyClient::CorporateType
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe CnsOpenapiRubyClient::CorporateType do
|
21
|
+
let(:instance) { CnsOpenapiRubyClient::CorporateType.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CorporateType' do
|
24
|
+
it 'should create an instance of CorporateType' do
|
25
|
+
expect(instance).to be_instance_of(CnsOpenapiRubyClient::CorporateType)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,220 @@
|
|
1
|
+
=begin
|
2
|
+
#Corporate number system API v4
|
3
|
+
|
4
|
+
#Corporate number system API v4
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CnsOpenapiRubyClient::Corporation
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe CnsOpenapiRubyClient::Corporation do
|
21
|
+
let(:instance) { CnsOpenapiRubyClient::Corporation.new }
|
22
|
+
|
23
|
+
describe 'test an instance of Corporation' do
|
24
|
+
it 'should create an instance of Corporation' do
|
25
|
+
expect(instance).to be_instance_of(CnsOpenapiRubyClient::Corporation)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "sequence_number"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "corporate_number"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "process"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "correct"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "update_date"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "change_date"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "name"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "name_image_id"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe 'test attribute "kind"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe 'test attribute "prefecture_name"' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
describe 'test attribute "city_name"' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
describe 'test attribute "street_number"' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
describe 'test attribute "address_image_id"' do
|
101
|
+
it 'should work' do
|
102
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
describe 'test attribute "prefecture_code"' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
describe 'test attribute "city_code"' do
|
113
|
+
it 'should work' do
|
114
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
describe 'test attribute "post_code"' do
|
119
|
+
it 'should work' do
|
120
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
describe 'test attribute "address_outside"' do
|
125
|
+
it 'should work' do
|
126
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
describe 'test attribute "address_outside_image_id"' do
|
131
|
+
it 'should work' do
|
132
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
describe 'test attribute "close_date"' do
|
137
|
+
it 'should work' do
|
138
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
describe 'test attribute "close_cause"' do
|
143
|
+
it 'should work' do
|
144
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
145
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["01", "11", "21", "31"])
|
146
|
+
# validator.allowable_values.each do |value|
|
147
|
+
# expect { instance.close_cause = value }.not_to raise_error
|
148
|
+
# end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
describe 'test attribute "successor_corporate_number"' do
|
153
|
+
it 'should work' do
|
154
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
describe 'test attribute "change_cause"' do
|
159
|
+
it 'should work' do
|
160
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
describe 'test attribute "assignment_date"' do
|
165
|
+
it 'should work' do
|
166
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
describe 'test attribute "latest"' do
|
171
|
+
it 'should work' do
|
172
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
173
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Integer', [0, 1])
|
174
|
+
# validator.allowable_values.each do |value|
|
175
|
+
# expect { instance.latest = value }.not_to raise_error
|
176
|
+
# end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
describe 'test attribute "en_name"' do
|
181
|
+
it 'should work' do
|
182
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
describe 'test attribute "en_prefecture_name"' do
|
187
|
+
it 'should work' do
|
188
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
describe 'test attribute "en_city_name"' do
|
193
|
+
it 'should work' do
|
194
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
describe 'test attribute "en_address_outside"' do
|
199
|
+
it 'should work' do
|
200
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
describe 'test attribute "furigana"' do
|
205
|
+
it 'should work' do
|
206
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
describe 'test attribute "hihyoji"' do
|
211
|
+
it 'should work' do
|
212
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
213
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Integer', [0, 1])
|
214
|
+
# validator.allowable_values.each do |value|
|
215
|
+
# expect { instance.hihyoji = value }.not_to raise_error
|
216
|
+
# end
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
end
|