kendama 1.0.1 → 1.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/CODE_OF_CONDUCT.md +12 -12
- data/Gemfile +2 -2
- data/Gemfile.lock +34 -30
- data/LICENSE.txt +1 -1
- data/README.md +8 -7
- data/git_push.sh +1 -1
- data/kendama.gemspec +6 -9
- data/lib/kendama/api/v1_api.rb +6 -6
- data/lib/kendama/api_client.rb +31 -26
- data/lib/kendama/api_error.rb +2 -2
- data/lib/kendama/api_model_base.rb +88 -0
- data/lib/kendama/configuration.rb +15 -4
- data/lib/kendama/models/announcement.rb +114 -81
- data/lib/kendama/models/response_body.rb +18 -85
- data/lib/kendama/version.rb +3 -3
- data/lib/kendama.rb +3 -2
- data/openapi/root.yaml +1 -1
- data/openapi/v1/diff.yaml +1 -1
- data/openapi/v1/num.yaml +1 -1
- data/openapi/v1/valid.yaml +1 -1
- data/pkg/kendama-1.0.1.gem +0 -0
- data/pkg/kendama-1.0.2.gem +0 -0
- data/spec/api/v1_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/announcement_spec.rb +1 -1
- data/spec/models/response_body_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +9 -7
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
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 Kendama
|
|
17
|
-
class Announcement
|
|
17
|
+
class Announcement < ApiModelBase
|
|
18
18
|
# 一連番号
|
|
19
19
|
attr_accessor :sequence_number
|
|
20
20
|
|
|
@@ -139,9 +139,14 @@ module Kendama
|
|
|
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
|
-
|
|
149
|
+
acceptable_attribute_map.values
|
|
145
150
|
end
|
|
146
151
|
|
|
147
152
|
# Attribute type mapping.
|
|
@@ -188,9 +193,10 @@ module Kendama
|
|
|
188
193
|
end
|
|
189
194
|
|
|
190
195
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
196
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
191
197
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
192
|
-
if (!
|
|
193
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Kendama::Announcement`. Please check the name to make sure it's valid. List of attributes: " +
|
|
198
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
199
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Kendama::Announcement`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
194
200
|
end
|
|
195
201
|
h[k.to_sym] = v
|
|
196
202
|
}
|
|
@@ -352,7 +358,7 @@ module Kendama
|
|
|
352
358
|
end
|
|
353
359
|
|
|
354
360
|
if @sequence_number.to_s.length < 1
|
|
355
|
-
invalid_properties.push('invalid value for "sequence_number", the character length must be
|
|
361
|
+
invalid_properties.push('invalid value for "sequence_number", the character length must be greater than or equal to 1.')
|
|
356
362
|
end
|
|
357
363
|
|
|
358
364
|
if @registrated_number.nil?
|
|
@@ -535,12 +541,22 @@ module Kendama
|
|
|
535
541
|
end
|
|
536
542
|
|
|
537
543
|
if sequence_number.to_s.length < 1
|
|
538
|
-
fail ArgumentError, 'invalid value for "sequence_number", the character length must be
|
|
544
|
+
fail ArgumentError, 'invalid value for "sequence_number", the character length must be greater than or equal to 1.'
|
|
539
545
|
end
|
|
540
546
|
|
|
541
547
|
@sequence_number = sequence_number
|
|
542
548
|
end
|
|
543
549
|
|
|
550
|
+
# Custom attribute writer method with validation
|
|
551
|
+
# @param [Object] registrated_number Value to be assigned
|
|
552
|
+
def registrated_number=(registrated_number)
|
|
553
|
+
if registrated_number.nil?
|
|
554
|
+
fail ArgumentError, 'registrated_number cannot be nil'
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
@registrated_number = registrated_number
|
|
558
|
+
end
|
|
559
|
+
|
|
544
560
|
# Custom attribute writer method checking allowed values (enum).
|
|
545
561
|
# @param [Object] process Object to be assigned
|
|
546
562
|
def process=(process)
|
|
@@ -591,6 +607,46 @@ module Kendama
|
|
|
591
607
|
@latest = latest
|
|
592
608
|
end
|
|
593
609
|
|
|
610
|
+
# Custom attribute writer method with validation
|
|
611
|
+
# @param [Object] registration_date Value to be assigned
|
|
612
|
+
def registration_date=(registration_date)
|
|
613
|
+
if registration_date.nil?
|
|
614
|
+
fail ArgumentError, 'registration_date cannot be nil'
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
@registration_date = registration_date
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
# Custom attribute writer method with validation
|
|
621
|
+
# @param [Object] update_date Value to be assigned
|
|
622
|
+
def update_date=(update_date)
|
|
623
|
+
if update_date.nil?
|
|
624
|
+
fail ArgumentError, 'update_date cannot be nil'
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
@update_date = update_date
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
# Custom attribute writer method with validation
|
|
631
|
+
# @param [Object] disposal_date Value to be assigned
|
|
632
|
+
def disposal_date=(disposal_date)
|
|
633
|
+
if disposal_date.nil?
|
|
634
|
+
fail ArgumentError, 'disposal_date cannot be nil'
|
|
635
|
+
end
|
|
636
|
+
|
|
637
|
+
@disposal_date = disposal_date
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
# Custom attribute writer method with validation
|
|
641
|
+
# @param [Object] expire_date Value to be assigned
|
|
642
|
+
def expire_date=(expire_date)
|
|
643
|
+
if expire_date.nil?
|
|
644
|
+
fail ArgumentError, 'expire_date cannot be nil'
|
|
645
|
+
end
|
|
646
|
+
|
|
647
|
+
@expire_date = expire_date
|
|
648
|
+
end
|
|
649
|
+
|
|
594
650
|
# Custom attribute writer method with validation
|
|
595
651
|
# @param [Object] address Value to be assigned
|
|
596
652
|
def address=(address)
|
|
@@ -605,6 +661,26 @@ module Kendama
|
|
|
605
661
|
@address = address
|
|
606
662
|
end
|
|
607
663
|
|
|
664
|
+
# Custom attribute writer method with validation
|
|
665
|
+
# @param [Object] address_prefecture_code Value to be assigned
|
|
666
|
+
def address_prefecture_code=(address_prefecture_code)
|
|
667
|
+
if address_prefecture_code.nil?
|
|
668
|
+
fail ArgumentError, 'address_prefecture_code cannot be nil'
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
@address_prefecture_code = address_prefecture_code
|
|
672
|
+
end
|
|
673
|
+
|
|
674
|
+
# Custom attribute writer method with validation
|
|
675
|
+
# @param [Object] address_city_code Value to be assigned
|
|
676
|
+
def address_city_code=(address_city_code)
|
|
677
|
+
if address_city_code.nil?
|
|
678
|
+
fail ArgumentError, 'address_city_code cannot be nil'
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
@address_city_code = address_city_code
|
|
682
|
+
end
|
|
683
|
+
|
|
608
684
|
# Custom attribute writer method with validation
|
|
609
685
|
# @param [Object] address_request Value to be assigned
|
|
610
686
|
def address_request=(address_request)
|
|
@@ -619,6 +695,26 @@ module Kendama
|
|
|
619
695
|
@address_request = address_request
|
|
620
696
|
end
|
|
621
697
|
|
|
698
|
+
# Custom attribute writer method with validation
|
|
699
|
+
# @param [Object] address_request_prefecture_code Value to be assigned
|
|
700
|
+
def address_request_prefecture_code=(address_request_prefecture_code)
|
|
701
|
+
if address_request_prefecture_code.nil?
|
|
702
|
+
fail ArgumentError, 'address_request_prefecture_code cannot be nil'
|
|
703
|
+
end
|
|
704
|
+
|
|
705
|
+
@address_request_prefecture_code = address_request_prefecture_code
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
# Custom attribute writer method with validation
|
|
709
|
+
# @param [Object] address_request_city_code Value to be assigned
|
|
710
|
+
def address_request_city_code=(address_request_city_code)
|
|
711
|
+
if address_request_city_code.nil?
|
|
712
|
+
fail ArgumentError, 'address_request_city_code cannot be nil'
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
@address_request_city_code = address_request_city_code
|
|
716
|
+
end
|
|
717
|
+
|
|
622
718
|
# Custom attribute writer method with validation
|
|
623
719
|
# @param [Object] kana Value to be assigned
|
|
624
720
|
def kana=(kana)
|
|
@@ -661,6 +757,16 @@ module Kendama
|
|
|
661
757
|
@address_inside = address_inside
|
|
662
758
|
end
|
|
663
759
|
|
|
760
|
+
# Custom attribute writer method with validation
|
|
761
|
+
# @param [Object] address_inside_city_code Value to be assigned
|
|
762
|
+
def address_inside_city_code=(address_inside_city_code)
|
|
763
|
+
if address_inside_city_code.nil?
|
|
764
|
+
fail ArgumentError, 'address_inside_city_code cannot be nil'
|
|
765
|
+
end
|
|
766
|
+
|
|
767
|
+
@address_inside_city_code = address_inside_city_code
|
|
768
|
+
end
|
|
769
|
+
|
|
664
770
|
# Custom attribute writer method with validation
|
|
665
771
|
# @param [Object] trade_name Value to be assigned
|
|
666
772
|
def trade_name=(trade_name)
|
|
@@ -755,61 +861,6 @@ module Kendama
|
|
|
755
861
|
new(transformed_hash)
|
|
756
862
|
end
|
|
757
863
|
|
|
758
|
-
# Deserializes the data based on type
|
|
759
|
-
# @param string type Data type
|
|
760
|
-
# @param string value Value to be deserialized
|
|
761
|
-
# @return [Object] Deserialized data
|
|
762
|
-
def self._deserialize(type, value)
|
|
763
|
-
case type.to_sym
|
|
764
|
-
when :Time
|
|
765
|
-
Time.parse(value)
|
|
766
|
-
when :Date
|
|
767
|
-
Date.parse(value)
|
|
768
|
-
when :String
|
|
769
|
-
value.to_s
|
|
770
|
-
when :Integer
|
|
771
|
-
value.to_i
|
|
772
|
-
when :Float
|
|
773
|
-
value.to_f
|
|
774
|
-
when :Boolean
|
|
775
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
776
|
-
true
|
|
777
|
-
else
|
|
778
|
-
false
|
|
779
|
-
end
|
|
780
|
-
when :Object
|
|
781
|
-
# generic object (usually a Hash), return directly
|
|
782
|
-
value
|
|
783
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
784
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
785
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
786
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
787
|
-
k_type = Regexp.last_match[:k_type]
|
|
788
|
-
v_type = Regexp.last_match[:v_type]
|
|
789
|
-
{}.tap do |hash|
|
|
790
|
-
value.each do |k, v|
|
|
791
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
792
|
-
end
|
|
793
|
-
end
|
|
794
|
-
else # model
|
|
795
|
-
# models (e.g. Pet) or oneOf
|
|
796
|
-
klass = Kendama.const_get(type)
|
|
797
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
798
|
-
end
|
|
799
|
-
end
|
|
800
|
-
|
|
801
|
-
# Returns the string representation of the object
|
|
802
|
-
# @return [String] String presentation of the object
|
|
803
|
-
def to_s
|
|
804
|
-
to_hash.to_s
|
|
805
|
-
end
|
|
806
|
-
|
|
807
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
808
|
-
# @return [Hash] Returns the object in the form of hash
|
|
809
|
-
def to_body
|
|
810
|
-
to_hash
|
|
811
|
-
end
|
|
812
|
-
|
|
813
864
|
# Returns the object in the form of hash
|
|
814
865
|
# @return [Hash] Returns the object in the form of hash
|
|
815
866
|
def to_hash
|
|
@@ -826,24 +877,6 @@ module Kendama
|
|
|
826
877
|
hash
|
|
827
878
|
end
|
|
828
879
|
|
|
829
|
-
# Outputs non-array value in the form of hash
|
|
830
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
831
|
-
# @param [Object] value Any valid value
|
|
832
|
-
# @return [Hash] Returns the value in the form of hash
|
|
833
|
-
def _to_hash(value)
|
|
834
|
-
if value.is_a?(Array)
|
|
835
|
-
value.compact.map { |v| _to_hash(v) }
|
|
836
|
-
elsif value.is_a?(Hash)
|
|
837
|
-
{}.tap do |hash|
|
|
838
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
839
|
-
end
|
|
840
|
-
elsif value.respond_to? :to_hash
|
|
841
|
-
value.to_hash
|
|
842
|
-
else
|
|
843
|
-
value
|
|
844
|
-
end
|
|
845
|
-
end
|
|
846
|
-
|
|
847
880
|
end
|
|
848
881
|
|
|
849
882
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
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 Kendama
|
|
17
|
-
class ResponseBody
|
|
17
|
+
class ResponseBody < ApiModelBase
|
|
18
18
|
# 最終更新年月日
|
|
19
19
|
attr_accessor :last_update_date
|
|
20
20
|
|
|
@@ -40,9 +40,14 @@ module Kendama
|
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
# Returns attribute mapping this model knows about
|
|
44
|
+
def self.acceptable_attribute_map
|
|
45
|
+
attribute_map
|
|
46
|
+
end
|
|
47
|
+
|
|
43
48
|
# Returns all the JSON keys this model knows about
|
|
44
49
|
def self.acceptable_attributes
|
|
45
|
-
|
|
50
|
+
acceptable_attribute_map.values
|
|
46
51
|
end
|
|
47
52
|
|
|
48
53
|
# Attribute type mapping.
|
|
@@ -70,9 +75,10 @@ module Kendama
|
|
|
70
75
|
end
|
|
71
76
|
|
|
72
77
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
78
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
73
79
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
|
-
if (!
|
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Kendama::ResponseBody`. Please check the name to make sure it's valid. List of attributes: " +
|
|
80
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Kendama::ResponseBody`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
76
82
|
end
|
|
77
83
|
h[k.to_sym] = v
|
|
78
84
|
}
|
|
@@ -110,7 +116,7 @@ module Kendama
|
|
|
110
116
|
end
|
|
111
117
|
|
|
112
118
|
if !@count.nil? && @count.to_s.length < 1
|
|
113
|
-
invalid_properties.push('invalid value for "count", the character length must be
|
|
119
|
+
invalid_properties.push('invalid value for "count", the character length must be greater than or equal to 1.')
|
|
114
120
|
end
|
|
115
121
|
|
|
116
122
|
if !@divide_number.nil? && @divide_number.to_s.length > 6
|
|
@@ -118,7 +124,7 @@ module Kendama
|
|
|
118
124
|
end
|
|
119
125
|
|
|
120
126
|
if !@divide_number.nil? && @divide_number.to_s.length < 1
|
|
121
|
-
invalid_properties.push('invalid value for "divide_number", the character length must be
|
|
127
|
+
invalid_properties.push('invalid value for "divide_number", the character length must be greater than or equal to 1.')
|
|
122
128
|
end
|
|
123
129
|
|
|
124
130
|
if !@divide_size.nil? && @divide_size.to_s.length > 6
|
|
@@ -126,7 +132,7 @@ module Kendama
|
|
|
126
132
|
end
|
|
127
133
|
|
|
128
134
|
if !@divide_size.nil? && @divide_size.to_s.length < 1
|
|
129
|
-
invalid_properties.push('invalid value for "divide_size", the character length must be
|
|
135
|
+
invalid_properties.push('invalid value for "divide_size", the character length must be greater than or equal to 1.')
|
|
130
136
|
end
|
|
131
137
|
|
|
132
138
|
invalid_properties
|
|
@@ -157,7 +163,7 @@ module Kendama
|
|
|
157
163
|
end
|
|
158
164
|
|
|
159
165
|
if count.to_s.length < 1
|
|
160
|
-
fail ArgumentError, 'invalid value for "count", the character length must be
|
|
166
|
+
fail ArgumentError, 'invalid value for "count", the character length must be greater than or equal to 1.'
|
|
161
167
|
end
|
|
162
168
|
|
|
163
169
|
@count = count
|
|
@@ -175,7 +181,7 @@ module Kendama
|
|
|
175
181
|
end
|
|
176
182
|
|
|
177
183
|
if divide_number.to_s.length < 1
|
|
178
|
-
fail ArgumentError, 'invalid value for "divide_number", the character length must be
|
|
184
|
+
fail ArgumentError, 'invalid value for "divide_number", the character length must be greater than or equal to 1.'
|
|
179
185
|
end
|
|
180
186
|
|
|
181
187
|
@divide_number = divide_number
|
|
@@ -193,7 +199,7 @@ module Kendama
|
|
|
193
199
|
end
|
|
194
200
|
|
|
195
201
|
if divide_size.to_s.length < 1
|
|
196
|
-
fail ArgumentError, 'invalid value for "divide_size", the character length must be
|
|
202
|
+
fail ArgumentError, 'invalid value for "divide_size", the character length must be greater than or equal to 1.'
|
|
197
203
|
end
|
|
198
204
|
|
|
199
205
|
@divide_size = divide_size
|
|
@@ -246,61 +252,6 @@ module Kendama
|
|
|
246
252
|
new(transformed_hash)
|
|
247
253
|
end
|
|
248
254
|
|
|
249
|
-
# Deserializes the data based on type
|
|
250
|
-
# @param string type Data type
|
|
251
|
-
# @param string value Value to be deserialized
|
|
252
|
-
# @return [Object] Deserialized data
|
|
253
|
-
def self._deserialize(type, value)
|
|
254
|
-
case type.to_sym
|
|
255
|
-
when :Time
|
|
256
|
-
Time.parse(value)
|
|
257
|
-
when :Date
|
|
258
|
-
Date.parse(value)
|
|
259
|
-
when :String
|
|
260
|
-
value.to_s
|
|
261
|
-
when :Integer
|
|
262
|
-
value.to_i
|
|
263
|
-
when :Float
|
|
264
|
-
value.to_f
|
|
265
|
-
when :Boolean
|
|
266
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
267
|
-
true
|
|
268
|
-
else
|
|
269
|
-
false
|
|
270
|
-
end
|
|
271
|
-
when :Object
|
|
272
|
-
# generic object (usually a Hash), return directly
|
|
273
|
-
value
|
|
274
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
275
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
276
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
277
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
278
|
-
k_type = Regexp.last_match[:k_type]
|
|
279
|
-
v_type = Regexp.last_match[:v_type]
|
|
280
|
-
{}.tap do |hash|
|
|
281
|
-
value.each do |k, v|
|
|
282
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
283
|
-
end
|
|
284
|
-
end
|
|
285
|
-
else # model
|
|
286
|
-
# models (e.g. Pet) or oneOf
|
|
287
|
-
klass = Kendama.const_get(type)
|
|
288
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
289
|
-
end
|
|
290
|
-
end
|
|
291
|
-
|
|
292
|
-
# Returns the string representation of the object
|
|
293
|
-
# @return [String] String presentation of the object
|
|
294
|
-
def to_s
|
|
295
|
-
to_hash.to_s
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
299
|
-
# @return [Hash] Returns the object in the form of hash
|
|
300
|
-
def to_body
|
|
301
|
-
to_hash
|
|
302
|
-
end
|
|
303
|
-
|
|
304
255
|
# Returns the object in the form of hash
|
|
305
256
|
# @return [Hash] Returns the object in the form of hash
|
|
306
257
|
def to_hash
|
|
@@ -317,24 +268,6 @@ module Kendama
|
|
|
317
268
|
hash
|
|
318
269
|
end
|
|
319
270
|
|
|
320
|
-
# Outputs non-array value in the form of hash
|
|
321
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
322
|
-
# @param [Object] value Any valid value
|
|
323
|
-
# @return [Hash] Returns the value in the form of hash
|
|
324
|
-
def _to_hash(value)
|
|
325
|
-
if value.is_a?(Array)
|
|
326
|
-
value.compact.map { |v| _to_hash(v) }
|
|
327
|
-
elsif value.is_a?(Hash)
|
|
328
|
-
{}.tap do |hash|
|
|
329
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
330
|
-
end
|
|
331
|
-
elsif value.respond_to? :to_hash
|
|
332
|
-
value.to_hash
|
|
333
|
-
else
|
|
334
|
-
value
|
|
335
|
-
end
|
|
336
|
-
end
|
|
337
|
-
|
|
338
271
|
end
|
|
339
272
|
|
|
340
273
|
end
|
data/lib/kendama/version.rb
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.22.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module Kendama
|
|
14
|
-
VERSION = '1.0.
|
|
14
|
+
VERSION = '1.0.2'
|
|
15
15
|
end
|
data/lib/kendama.rb
CHANGED
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.22.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
# Common files
|
|
14
14
|
require 'kendama/api_client'
|
|
15
15
|
require 'kendama/api_error'
|
|
16
|
+
require 'kendama/api_model_base'
|
|
16
17
|
require 'kendama/version'
|
|
17
18
|
require 'kendama/configuration'
|
|
18
19
|
|
data/openapi/root.yaml
CHANGED
|
@@ -2,7 +2,7 @@ openapi: 3.0.3
|
|
|
2
2
|
info:
|
|
3
3
|
title: 国税庁API
|
|
4
4
|
description: 国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
|
5
|
-
version: 1.0.
|
|
5
|
+
version: 1.0.2
|
|
6
6
|
servers:
|
|
7
7
|
- url: https://kensyo.invoice-kohyo.nta.go.jp/
|
|
8
8
|
description: 検証環境
|
data/openapi/v1/diff.yaml
CHANGED
data/openapi/v1/num.yaml
CHANGED
data/openapi/v1/valid.yaml
CHANGED
data/pkg/kendama-1.0.1.gem
CHANGED
|
Binary file
|
|
Binary file
|
data/spec/api/v1_api_spec.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0
|
data/spec/api_client_spec.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0
|
data/spec/configuration_spec.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0
|
data/spec/spec_helper.rb
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.22.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kendama
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- nisyuu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-05-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -52,7 +52,7 @@ dependencies:
|
|
|
52
52
|
version: 3.6.0
|
|
53
53
|
description: 国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのRuby向けラッパーです。
|
|
54
54
|
email:
|
|
55
|
-
- 37263474+
|
|
55
|
+
- 37263474+nisyuu@users.noreply.github.com
|
|
56
56
|
executables: []
|
|
57
57
|
extensions: []
|
|
58
58
|
extra_rdoc_files: []
|
|
@@ -75,6 +75,7 @@ files:
|
|
|
75
75
|
- lib/kendama/api/v1_api.rb
|
|
76
76
|
- lib/kendama/api_client.rb
|
|
77
77
|
- lib/kendama/api_error.rb
|
|
78
|
+
- lib/kendama/api_model_base.rb
|
|
78
79
|
- lib/kendama/configuration.rb
|
|
79
80
|
- lib/kendama/models/announcement.rb
|
|
80
81
|
- lib/kendama/models/response_body.rb
|
|
@@ -86,6 +87,7 @@ files:
|
|
|
86
87
|
- openapi/v1/valid.yaml
|
|
87
88
|
- pkg/kendama-1.0.0.gem
|
|
88
89
|
- pkg/kendama-1.0.1.gem
|
|
90
|
+
- pkg/kendama-1.0.2.gem
|
|
89
91
|
- sig/kendama.rbs
|
|
90
92
|
- spec/api/v1_api_spec.rb
|
|
91
93
|
- spec/api_client_spec.rb
|
|
@@ -99,8 +101,8 @@ licenses:
|
|
|
99
101
|
- MIT
|
|
100
102
|
metadata:
|
|
101
103
|
homepage_uri: https://rubygems.org/gems/kendama
|
|
102
|
-
source_code_uri: https://github.com/
|
|
103
|
-
changelog_uri: https://github.com/
|
|
104
|
+
source_code_uri: https://github.com/nisyuu/kendama
|
|
105
|
+
changelog_uri: https://github.com/nisyuu/kendama/blob/main/CHANGELOG.md
|
|
104
106
|
post_install_message:
|
|
105
107
|
rdoc_options: []
|
|
106
108
|
require_paths:
|
|
@@ -116,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
116
118
|
- !ruby/object:Gem::Version
|
|
117
119
|
version: '0'
|
|
118
120
|
requirements: []
|
|
119
|
-
rubygems_version: 3.
|
|
121
|
+
rubygems_version: 3.5.22
|
|
120
122
|
signing_key:
|
|
121
123
|
specification_version: 4
|
|
122
124
|
summary: 適格請求書発行事業者公表システムWeb-APIのラッパー
|