gbizinfo 0.2.0 → 0.2.2

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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/CODE_OF_CONDUCT.md +12 -12
  3. data/Gemfile +2 -2
  4. data/Gemfile.lock +41 -41
  5. data/LICENSE.txt +1 -1
  6. data/README.md +8 -7
  7. data/docs/ApiErrorResponse.md +20 -0
  8. data/docs/HojinInfoResponse.md +1 -1
  9. data/docs/HojinInfoUpdateInfoResponse.md +1 -1
  10. data/gbizinfo.gemspec +6 -6
  11. data/git_push.sh +1 -1
  12. data/lib/gbizinfo/api/g_biz_inforestapi_api.rb +18 -18
  13. data/lib/gbizinfo/api/g_biz_inforestapi_period_specified_search_api.rb +9 -9
  14. data/lib/gbizinfo/api_client.rb +29 -24
  15. data/lib/gbizinfo/api_error.rb +1 -1
  16. data/lib/gbizinfo/api_model_base.rb +88 -0
  17. data/lib/gbizinfo/configuration.rb +14 -3
  18. data/lib/gbizinfo/models/{api_error.rb → api_error_response.rb} +12 -79
  19. data/lib/gbizinfo/models/certification_info.rb +11 -78
  20. data/lib/gbizinfo/models/commendation_info.rb +11 -78
  21. data/lib/gbizinfo/models/compatibility_of_childcare_and_work.rb +11 -78
  22. data/lib/gbizinfo/models/finance.rb +11 -78
  23. data/lib/gbizinfo/models/hojin_info.rb +11 -78
  24. data/lib/gbizinfo/models/hojin_info_response.rb +12 -79
  25. data/lib/gbizinfo/models/hojin_info_update_info_response.rb +12 -79
  26. data/lib/gbizinfo/models/major_shareholders.rb +11 -78
  27. data/lib/gbizinfo/models/management_index.rb +11 -78
  28. data/lib/gbizinfo/models/patent_info.rb +11 -78
  29. data/lib/gbizinfo/models/procurement_info.rb +11 -78
  30. data/lib/gbizinfo/models/subsidy_info.rb +11 -78
  31. data/lib/gbizinfo/models/women_activity_infos.rb +11 -78
  32. data/lib/gbizinfo/models/workplace_base_infos.rb +11 -78
  33. data/lib/gbizinfo/models/workplace_info_bean.rb +11 -78
  34. data/lib/gbizinfo/version.rb +2 -2
  35. data/lib/gbizinfo.rb +3 -2
  36. data/openapi/root.yaml +5 -5
  37. data/pkg/gbizinfo-0.2.2.gem +0 -0
  38. data/spec/models/api_error_response_spec.rb +42 -0
  39. data/spec/spec_helper.rb +1 -1
  40. metadata +14 -12
  41. data/pkg/gbizinfo-0.1.0.gem +0 -0
  42. data/pkg/gbizinfo-0.2.0.gem +0 -0
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.0.0
9
+ Generator version: 7.22.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Gbizinfo
17
- class CompatibilityOfChildcareAndWork
17
+ class CompatibilityOfChildcareAndWork < ApiModelBase
18
18
  # 育児休業取得者数(女性)
19
19
  attr_accessor :maternity_leave_acquisition_num
20
20
 
@@ -37,9 +37,14 @@ module Gbizinfo
37
37
  }
38
38
  end
39
39
 
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
40
45
  # Returns all the JSON keys this model knows about
41
46
  def self.acceptable_attributes
42
- attribute_map.values
47
+ acceptable_attribute_map.values
43
48
  end
44
49
 
45
50
  # Attribute type mapping.
@@ -66,9 +71,10 @@ module Gbizinfo
66
71
  end
67
72
 
68
73
  # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
69
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
- if (!self.class.attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::CompatibilityOfChildcareAndWork`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::CompatibilityOfChildcareAndWork`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
78
  end
73
79
  h[k.to_sym] = v
74
80
  }
@@ -151,61 +157,6 @@ module Gbizinfo
151
157
  new(transformed_hash)
152
158
  end
153
159
 
154
- # Deserializes the data based on type
155
- # @param string type Data type
156
- # @param string value Value to be deserialized
157
- # @return [Object] Deserialized data
158
- def self._deserialize(type, value)
159
- case type.to_sym
160
- when :Time
161
- Time.parse(value)
162
- when :Date
163
- Date.parse(value)
164
- when :String
165
- value.to_s
166
- when :Integer
167
- value.to_i
168
- when :Float
169
- value.to_f
170
- when :Boolean
171
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
172
- true
173
- else
174
- false
175
- end
176
- when :Object
177
- # generic object (usually a Hash), return directly
178
- value
179
- when /\AArray<(?<inner_type>.+)>\z/
180
- inner_type = Regexp.last_match[:inner_type]
181
- value.map { |v| _deserialize(inner_type, v) }
182
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
183
- k_type = Regexp.last_match[:k_type]
184
- v_type = Regexp.last_match[:v_type]
185
- {}.tap do |hash|
186
- value.each do |k, v|
187
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
188
- end
189
- end
190
- else # model
191
- # models (e.g. Pet) or oneOf
192
- klass = Gbizinfo.const_get(type)
193
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
194
- end
195
- end
196
-
197
- # Returns the string representation of the object
198
- # @return [String] String presentation of the object
199
- def to_s
200
- to_hash.to_s
201
- end
202
-
203
- # to_body is an alias to to_hash (backward compatibility)
204
- # @return [Hash] Returns the object in the form of hash
205
- def to_body
206
- to_hash
207
- end
208
-
209
160
  # Returns the object in the form of hash
210
161
  # @return [Hash] Returns the object in the form of hash
211
162
  def to_hash
@@ -222,24 +173,6 @@ module Gbizinfo
222
173
  hash
223
174
  end
224
175
 
225
- # Outputs non-array value in the form of hash
226
- # For object, use to_hash. Otherwise, just return the value
227
- # @param [Object] value Any valid value
228
- # @return [Hash] Returns the value in the form of hash
229
- def _to_hash(value)
230
- if value.is_a?(Array)
231
- value.compact.map { |v| _to_hash(v) }
232
- elsif value.is_a?(Hash)
233
- {}.tap do |hash|
234
- value.each { |k, v| hash[k] = _to_hash(v) }
235
- end
236
- elsif value.respond_to? :to_hash
237
- value.to_hash
238
- else
239
- value
240
- end
241
- end
242
-
243
176
  end
244
177
 
245
178
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.0.0
9
+ Generator version: 7.22.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Gbizinfo
17
- class Finance
17
+ class Finance < ApiModelBase
18
18
  # 会計基準
19
19
  attr_accessor :accounting_standards
20
20
 
@@ -37,9 +37,14 @@ module Gbizinfo
37
37
  }
38
38
  end
39
39
 
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
40
45
  # Returns all the JSON keys this model knows about
41
46
  def self.acceptable_attributes
42
- attribute_map.values
47
+ acceptable_attribute_map.values
43
48
  end
44
49
 
45
50
  # Attribute type mapping.
@@ -66,9 +71,10 @@ module Gbizinfo
66
71
  end
67
72
 
68
73
  # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
69
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
- if (!self.class.attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::Finance`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::Finance`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
78
  end
73
79
  h[k.to_sym] = v
74
80
  }
@@ -155,61 +161,6 @@ module Gbizinfo
155
161
  new(transformed_hash)
156
162
  end
157
163
 
158
- # Deserializes the data based on type
159
- # @param string type Data type
160
- # @param string value Value to be deserialized
161
- # @return [Object] Deserialized data
162
- def self._deserialize(type, value)
163
- case type.to_sym
164
- when :Time
165
- Time.parse(value)
166
- when :Date
167
- Date.parse(value)
168
- when :String
169
- value.to_s
170
- when :Integer
171
- value.to_i
172
- when :Float
173
- value.to_f
174
- when :Boolean
175
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
176
- true
177
- else
178
- false
179
- end
180
- when :Object
181
- # generic object (usually a Hash), return directly
182
- value
183
- when /\AArray<(?<inner_type>.+)>\z/
184
- inner_type = Regexp.last_match[:inner_type]
185
- value.map { |v| _deserialize(inner_type, v) }
186
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
187
- k_type = Regexp.last_match[:k_type]
188
- v_type = Regexp.last_match[:v_type]
189
- {}.tap do |hash|
190
- value.each do |k, v|
191
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
192
- end
193
- end
194
- else # model
195
- # models (e.g. Pet) or oneOf
196
- klass = Gbizinfo.const_get(type)
197
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
198
- end
199
- end
200
-
201
- # Returns the string representation of the object
202
- # @return [String] String presentation of the object
203
- def to_s
204
- to_hash.to_s
205
- end
206
-
207
- # to_body is an alias to to_hash (backward compatibility)
208
- # @return [Hash] Returns the object in the form of hash
209
- def to_body
210
- to_hash
211
- end
212
-
213
164
  # Returns the object in the form of hash
214
165
  # @return [Hash] Returns the object in the form of hash
215
166
  def to_hash
@@ -226,24 +177,6 @@ module Gbizinfo
226
177
  hash
227
178
  end
228
179
 
229
- # Outputs non-array value in the form of hash
230
- # For object, use to_hash. Otherwise, just return the value
231
- # @param [Object] value Any valid value
232
- # @return [Hash] Returns the value in the form of hash
233
- def _to_hash(value)
234
- if value.is_a?(Array)
235
- value.compact.map { |v| _to_hash(v) }
236
- elsif value.is_a?(Hash)
237
- {}.tap do |hash|
238
- value.each { |k, v| hash[k] = _to_hash(v) }
239
- end
240
- elsif value.respond_to? :to_hash
241
- value.to_hash
242
- else
243
- value
244
- end
245
- end
246
-
247
180
  end
248
181
 
249
182
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.0.0
9
+ Generator version: 7.22.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Gbizinfo
17
- class HojinInfo
17
+ class HojinInfo < ApiModelBase
18
18
  # 全省庁統一資格の営業品目
19
19
  attr_accessor :business_items
20
20
 
@@ -139,9 +139,14 @@ module Gbizinfo
139
139
  }
140
140
  end
141
141
 
142
+ # Returns attribute mapping this model knows about
143
+ def self.acceptable_attribute_map
144
+ attribute_map
145
+ end
146
+
142
147
  # Returns all the JSON keys this model knows about
143
148
  def self.acceptable_attributes
144
- attribute_map.values
149
+ acceptable_attribute_map.values
145
150
  end
146
151
 
147
152
  # Attribute type mapping.
@@ -194,9 +199,10 @@ module Gbizinfo
194
199
  end
195
200
 
196
201
  # check to see if the attribute exists and convert string to symbol for hash key
202
+ acceptable_attribute_map = self.class.acceptable_attribute_map
197
203
  attributes = attributes.each_with_object({}) { |(k, v), h|
198
- if (!self.class.attribute_map.key?(k.to_sym))
199
- fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::HojinInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
204
+ if (!acceptable_attribute_map.key?(k.to_sym))
205
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::HojinInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
200
206
  end
201
207
  h[k.to_sym] = v
202
208
  }
@@ -421,61 +427,6 @@ module Gbizinfo
421
427
  new(transformed_hash)
422
428
  end
423
429
 
424
- # Deserializes the data based on type
425
- # @param string type Data type
426
- # @param string value Value to be deserialized
427
- # @return [Object] Deserialized data
428
- def self._deserialize(type, value)
429
- case type.to_sym
430
- when :Time
431
- Time.parse(value)
432
- when :Date
433
- Date.parse(value)
434
- when :String
435
- value.to_s
436
- when :Integer
437
- value.to_i
438
- when :Float
439
- value.to_f
440
- when :Boolean
441
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
442
- true
443
- else
444
- false
445
- end
446
- when :Object
447
- # generic object (usually a Hash), return directly
448
- value
449
- when /\AArray<(?<inner_type>.+)>\z/
450
- inner_type = Regexp.last_match[:inner_type]
451
- value.map { |v| _deserialize(inner_type, v) }
452
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
453
- k_type = Regexp.last_match[:k_type]
454
- v_type = Regexp.last_match[:v_type]
455
- {}.tap do |hash|
456
- value.each do |k, v|
457
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
458
- end
459
- end
460
- else # model
461
- # models (e.g. Pet) or oneOf
462
- klass = Gbizinfo.const_get(type)
463
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
464
- end
465
- end
466
-
467
- # Returns the string representation of the object
468
- # @return [String] String presentation of the object
469
- def to_s
470
- to_hash.to_s
471
- end
472
-
473
- # to_body is an alias to to_hash (backward compatibility)
474
- # @return [Hash] Returns the object in the form of hash
475
- def to_body
476
- to_hash
477
- end
478
-
479
430
  # Returns the object in the form of hash
480
431
  # @return [Hash] Returns the object in the form of hash
481
432
  def to_hash
@@ -492,24 +443,6 @@ module Gbizinfo
492
443
  hash
493
444
  end
494
445
 
495
- # Outputs non-array value in the form of hash
496
- # For object, use to_hash. Otherwise, just return the value
497
- # @param [Object] value Any valid value
498
- # @return [Hash] Returns the value in the form of hash
499
- def _to_hash(value)
500
- if value.is_a?(Array)
501
- value.compact.map { |v| _to_hash(v) }
502
- elsif value.is_a?(Hash)
503
- {}.tap do |hash|
504
- value.each { |k, v| hash[k] = _to_hash(v) }
505
- end
506
- elsif value.respond_to? :to_hash
507
- value.to_hash
508
- else
509
- value
510
- end
511
- end
512
-
513
446
  end
514
447
 
515
448
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.0.0
9
+ Generator version: 7.22.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Gbizinfo
17
- class HojinInfoResponse
17
+ class HojinInfoResponse < ApiModelBase
18
18
  # エラー情報(エラーがある場合に出力します。)
19
19
  attr_accessor :errors
20
20
 
@@ -37,15 +37,20 @@ module Gbizinfo
37
37
  }
38
38
  end
39
39
 
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
40
45
  # Returns all the JSON keys this model knows about
41
46
  def self.acceptable_attributes
42
- attribute_map.values
47
+ acceptable_attribute_map.values
43
48
  end
44
49
 
45
50
  # Attribute type mapping.
46
51
  def self.openapi_types
47
52
  {
48
- :'errors' => :'Array<ApiError>',
53
+ :'errors' => :'Array<ApiErrorResponse>',
49
54
  :'hojin_infos' => :'Array<HojinInfo>',
50
55
  :'id' => :'String',
51
56
  :'message' => :'String'
@@ -66,9 +71,10 @@ module Gbizinfo
66
71
  end
67
72
 
68
73
  # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
69
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
- if (!self.class.attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::HojinInfoResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::HojinInfoResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
78
  end
73
79
  h[k.to_sym] = v
74
80
  }
@@ -155,61 +161,6 @@ module Gbizinfo
155
161
  new(transformed_hash)
156
162
  end
157
163
 
158
- # Deserializes the data based on type
159
- # @param string type Data type
160
- # @param string value Value to be deserialized
161
- # @return [Object] Deserialized data
162
- def self._deserialize(type, value)
163
- case type.to_sym
164
- when :Time
165
- Time.parse(value)
166
- when :Date
167
- Date.parse(value)
168
- when :String
169
- value.to_s
170
- when :Integer
171
- value.to_i
172
- when :Float
173
- value.to_f
174
- when :Boolean
175
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
176
- true
177
- else
178
- false
179
- end
180
- when :Object
181
- # generic object (usually a Hash), return directly
182
- value
183
- when /\AArray<(?<inner_type>.+)>\z/
184
- inner_type = Regexp.last_match[:inner_type]
185
- value.map { |v| _deserialize(inner_type, v) }
186
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
187
- k_type = Regexp.last_match[:k_type]
188
- v_type = Regexp.last_match[:v_type]
189
- {}.tap do |hash|
190
- value.each do |k, v|
191
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
192
- end
193
- end
194
- else # model
195
- # models (e.g. Pet) or oneOf
196
- klass = Gbizinfo.const_get(type)
197
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
198
- end
199
- end
200
-
201
- # Returns the string representation of the object
202
- # @return [String] String presentation of the object
203
- def to_s
204
- to_hash.to_s
205
- end
206
-
207
- # to_body is an alias to to_hash (backward compatibility)
208
- # @return [Hash] Returns the object in the form of hash
209
- def to_body
210
- to_hash
211
- end
212
-
213
164
  # Returns the object in the form of hash
214
165
  # @return [Hash] Returns the object in the form of hash
215
166
  def to_hash
@@ -226,24 +177,6 @@ module Gbizinfo
226
177
  hash
227
178
  end
228
179
 
229
- # Outputs non-array value in the form of hash
230
- # For object, use to_hash. Otherwise, just return the value
231
- # @param [Object] value Any valid value
232
- # @return [Hash] Returns the value in the form of hash
233
- def _to_hash(value)
234
- if value.is_a?(Array)
235
- value.compact.map { |v| _to_hash(v) }
236
- elsif value.is_a?(Hash)
237
- {}.tap do |hash|
238
- value.each { |k, v| hash[k] = _to_hash(v) }
239
- end
240
- elsif value.respond_to? :to_hash
241
- value.to_hash
242
- else
243
- value
244
- end
245
- end
246
-
247
180
  end
248
181
 
249
182
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.0.0
9
+ Generator version: 7.22.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Gbizinfo
17
- class HojinInfoUpdateInfoResponse
17
+ class HojinInfoUpdateInfoResponse < ApiModelBase
18
18
  # エラー情報(エラーがある場合に出力します。)
19
19
  attr_accessor :errors
20
20
 
@@ -49,15 +49,20 @@ module Gbizinfo
49
49
  }
50
50
  end
51
51
 
52
+ # Returns attribute mapping this model knows about
53
+ def self.acceptable_attribute_map
54
+ attribute_map
55
+ end
56
+
52
57
  # Returns all the JSON keys this model knows about
53
58
  def self.acceptable_attributes
54
- attribute_map.values
59
+ acceptable_attribute_map.values
55
60
  end
56
61
 
57
62
  # Attribute type mapping.
58
63
  def self.openapi_types
59
64
  {
60
- :'errors' => :'Array<ApiError>',
65
+ :'errors' => :'Array<ApiErrorResponse>',
61
66
  :'hojin_infos' => :'Array<HojinInfo>',
62
67
  :'id' => :'String',
63
68
  :'message' => :'String',
@@ -81,9 +86,10 @@ module Gbizinfo
81
86
  end
82
87
 
83
88
  # check to see if the attribute exists and convert string to symbol for hash key
89
+ acceptable_attribute_map = self.class.acceptable_attribute_map
84
90
  attributes = attributes.each_with_object({}) { |(k, v), h|
85
- if (!self.class.attribute_map.key?(k.to_sym))
86
- fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::HojinInfoUpdateInfoResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
91
+ if (!acceptable_attribute_map.key?(k.to_sym))
92
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::HojinInfoUpdateInfoResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
87
93
  end
88
94
  h[k.to_sym] = v
89
95
  }
@@ -185,61 +191,6 @@ module Gbizinfo
185
191
  new(transformed_hash)
186
192
  end
187
193
 
188
- # Deserializes the data based on type
189
- # @param string type Data type
190
- # @param string value Value to be deserialized
191
- # @return [Object] Deserialized data
192
- def self._deserialize(type, value)
193
- case type.to_sym
194
- when :Time
195
- Time.parse(value)
196
- when :Date
197
- Date.parse(value)
198
- when :String
199
- value.to_s
200
- when :Integer
201
- value.to_i
202
- when :Float
203
- value.to_f
204
- when :Boolean
205
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
206
- true
207
- else
208
- false
209
- end
210
- when :Object
211
- # generic object (usually a Hash), return directly
212
- value
213
- when /\AArray<(?<inner_type>.+)>\z/
214
- inner_type = Regexp.last_match[:inner_type]
215
- value.map { |v| _deserialize(inner_type, v) }
216
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
217
- k_type = Regexp.last_match[:k_type]
218
- v_type = Regexp.last_match[:v_type]
219
- {}.tap do |hash|
220
- value.each do |k, v|
221
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
222
- end
223
- end
224
- else # model
225
- # models (e.g. Pet) or oneOf
226
- klass = Gbizinfo.const_get(type)
227
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
228
- end
229
- end
230
-
231
- # Returns the string representation of the object
232
- # @return [String] String presentation of the object
233
- def to_s
234
- to_hash.to_s
235
- end
236
-
237
- # to_body is an alias to to_hash (backward compatibility)
238
- # @return [Hash] Returns the object in the form of hash
239
- def to_body
240
- to_hash
241
- end
242
-
243
194
  # Returns the object in the form of hash
244
195
  # @return [Hash] Returns the object in the form of hash
245
196
  def to_hash
@@ -256,24 +207,6 @@ module Gbizinfo
256
207
  hash
257
208
  end
258
209
 
259
- # Outputs non-array value in the form of hash
260
- # For object, use to_hash. Otherwise, just return the value
261
- # @param [Object] value Any valid value
262
- # @return [Hash] Returns the value in the form of hash
263
- def _to_hash(value)
264
- if value.is_a?(Array)
265
- value.compact.map { |v| _to_hash(v) }
266
- elsif value.is_a?(Hash)
267
- {}.tap do |hash|
268
- value.each { |k, v| hash[k] = _to_hash(v) }
269
- end
270
- elsif value.respond_to? :to_hash
271
- value.to_hash
272
- else
273
- value
274
- end
275
- end
276
-
277
210
  end
278
211
 
279
212
  end