kendama 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +1 -0
- data/.openapi-generator-ignore +0 -2
- data/.travis.yml +1 -1
- data/CHANGELOG.md +12 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +9 -7
- data/README.md +7 -7
- data/git_push.sh +2 -2
- data/lib/kendama/api/v1_api.rb +1 -1
- data/lib/kendama/api_client.rb +1 -1
- data/lib/kendama/api_error.rb +1 -1
- data/lib/kendama/configuration.rb +1 -1
- data/lib/kendama/models/announcement.rb +83 -1
- data/lib/kendama/models/response_body.rb +1 -1
- data/lib/kendama/version.rb +3 -3
- data/lib/kendama.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b9aa30136b6cfb42a6e826a663613b8d9b0e00091c626e2abea3c618a472420
|
4
|
+
data.tar.gz: 66eb62ba4ddb11d3ae74a1dc54e5a2f1ed1e7e416b69b0d3d47f1e10fd5237f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6583fbb37c574e56d2ca2620cf6967ce9fe96f672f19b45045e818c4d4047e8c1d2df2a24b9724de37e84d1dbf69e580ddbe8a05e049b66797998b6ce1d3851
|
7
|
+
data.tar.gz: 3432a937af274ac0631630bae66383a4715d86d4215305b16e44d403d3e818a0a15238cd5f5afd8be97e60e62b3d1d2e7b7dfa8de7b89c12428ea826cd9ccf1e
|
data/.openapi-generator/FILES
CHANGED
data/.openapi-generator-ignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
# [0.2.3] - 2023-06-18
|
2
|
+
- Dependabotのtarget-branchをmainに変更
|
3
|
+
- changelog_uriをmainブランチに向ける
|
4
|
+
|
5
|
+
# [0.2.2] - 2023-06-13
|
6
|
+
|
7
|
+
- dependabotの設定を追加
|
8
|
+
- レスポンスボディの項目にenumが適応できるものは設定
|
9
|
+
- README記載のリポジトリへのリンクを正しくする
|
10
|
+
- version.rbをignore対象から外す
|
11
|
+
- APIの説明文を追加
|
12
|
+
|
1
13
|
# [0.2.1] - 2023-06-07
|
2
14
|
|
3
15
|
- README.mdのPackage versionを0.2.1に変更
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
kendama (0.2.
|
4
|
+
kendama (0.2.3)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -17,17 +17,19 @@ GEM
|
|
17
17
|
json (2.6.3)
|
18
18
|
method_source (1.0.0)
|
19
19
|
parallel (1.23.0)
|
20
|
-
parser (3.2.2.
|
20
|
+
parser (3.2.2.3)
|
21
21
|
ast (~> 2.4.1)
|
22
|
+
racc
|
22
23
|
pry (0.14.2)
|
23
24
|
coderay (~> 1.1)
|
24
25
|
method_source (~> 1.0)
|
25
26
|
pry-byebug (3.10.1)
|
26
27
|
byebug (~> 11.0)
|
27
28
|
pry (>= 0.13, < 0.15)
|
29
|
+
racc (1.7.1)
|
28
30
|
rainbow (3.1.1)
|
29
31
|
rake (13.0.6)
|
30
|
-
regexp_parser (2.8.
|
32
|
+
regexp_parser (2.8.1)
|
31
33
|
rexml (3.2.5)
|
32
34
|
rspec (3.12.0)
|
33
35
|
rspec-core (~> 3.12.0)
|
@@ -42,17 +44,17 @@ GEM
|
|
42
44
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
45
|
rspec-support (~> 3.12.0)
|
44
46
|
rspec-support (3.12.0)
|
45
|
-
rubocop (1.
|
47
|
+
rubocop (1.52.1)
|
46
48
|
json (~> 2.3)
|
47
49
|
parallel (~> 1.10)
|
48
|
-
parser (>= 3.2.
|
50
|
+
parser (>= 3.2.2.3)
|
49
51
|
rainbow (>= 2.2.2, < 4.0)
|
50
52
|
regexp_parser (>= 1.8, < 3.0)
|
51
53
|
rexml (>= 3.2.5, < 4.0)
|
52
54
|
rubocop-ast (>= 1.28.0, < 2.0)
|
53
55
|
ruby-progressbar (~> 1.7)
|
54
56
|
unicode-display_width (>= 2.4.0, < 3.0)
|
55
|
-
rubocop-ast (1.
|
57
|
+
rubocop-ast (1.29.0)
|
56
58
|
parser (>= 3.2.1.0)
|
57
59
|
ruby-progressbar (1.13.0)
|
58
60
|
typhoeus (1.4.0)
|
@@ -68,7 +70,7 @@ DEPENDENCIES
|
|
68
70
|
pry-byebug
|
69
71
|
rake (~> 13.0)
|
70
72
|
rspec (~> 3.0)
|
71
|
-
rubocop (~> 1.
|
73
|
+
rubocop (~> 1.52)
|
72
74
|
|
73
75
|
BUNDLED WITH
|
74
76
|
2.4.12
|
data/README.md
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Kendama - the Ruby gem for the 国税庁API
|
4
4
|
|
5
|
-
|
5
|
+
国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 1.0.0
|
10
|
-
- Package version: 0.2.
|
10
|
+
- Package version: 0.2.3
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,22 +23,22 @@ gem build kendama.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./kendama-0.2.
|
26
|
+
gem install ./kendama-0.2.3.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./kendama-0.2.
|
29
|
+
(for development, run `gem install --dev ./kendama-0.2.3.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'kendama', '~> 0.2.
|
35
|
+
gem 'kendama', '~> 0.2.3'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
39
|
-
If the Ruby gem is hosted at a git repository: https://github.com/
|
39
|
+
If the Ruby gem is hosted at a git repository: https://github.com/uichi/kendama, then add the following in the Gemfile:
|
40
40
|
|
41
|
-
gem 'kendama', :git => 'https://github.com/
|
41
|
+
gem 'kendama', :git => 'https://github.com/uichi/kendama.git'
|
42
42
|
|
43
43
|
### Include the Ruby code directly
|
44
44
|
|
data/git_push.sh
CHANGED
@@ -14,12 +14,12 @@ if [ "$git_host" = "" ]; then
|
|
14
14
|
fi
|
15
15
|
|
16
16
|
if [ "$git_user_id" = "" ]; then
|
17
|
-
git_user_id="
|
17
|
+
git_user_id="uichi"
|
18
18
|
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
19
|
fi
|
20
20
|
|
21
21
|
if [ "$git_repo_id" = "" ]; then
|
22
|
-
git_repo_id="
|
22
|
+
git_repo_id="kendama"
|
23
23
|
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
24
|
fi
|
25
25
|
|
data/lib/kendama/api/v1_api.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
3
3
|
|
4
|
-
|
4
|
+
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
data/lib/kendama/api_client.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
3
3
|
|
4
|
-
|
4
|
+
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
data/lib/kendama/api_error.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
3
3
|
|
4
|
-
|
4
|
+
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
3
3
|
|
4
|
-
|
4
|
+
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
3
3
|
|
4
|
-
|
4
|
+
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
@@ -87,6 +87,28 @@ module Kendama
|
|
87
87
|
# 通称・旧姓
|
88
88
|
attr_accessor :popular_name_previous_name
|
89
89
|
|
90
|
+
class EnumAttributeValidator
|
91
|
+
attr_reader :datatype
|
92
|
+
attr_reader :allowable_values
|
93
|
+
|
94
|
+
def initialize(datatype, allowable_values)
|
95
|
+
@allowable_values = allowable_values.map do |value|
|
96
|
+
case datatype.to_s
|
97
|
+
when /Integer/i
|
98
|
+
value.to_i
|
99
|
+
when /Float/i
|
100
|
+
value.to_f
|
101
|
+
else
|
102
|
+
value
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
def valid?(value)
|
108
|
+
!value || allowable_values.include?(value)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
90
112
|
# Attribute mapping from ruby-style variable name to JSON key.
|
91
113
|
def self.attribute_map
|
92
114
|
{
|
@@ -413,10 +435,20 @@ module Kendama
|
|
413
435
|
return false if @sequence_number.to_s.length < 1
|
414
436
|
return false if @registrated_number.nil?
|
415
437
|
return false if @process.nil?
|
438
|
+
process_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "99"])
|
439
|
+
return false unless process_validator.valid?(@process)
|
416
440
|
return false if @correct.nil?
|
441
|
+
correct_validator = EnumAttributeValidator.new('String', ["0", "1", ""])
|
442
|
+
return false unless correct_validator.valid?(@correct)
|
417
443
|
return false if @kind.nil?
|
444
|
+
kind_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
445
|
+
return false unless kind_validator.valid?(@kind)
|
418
446
|
return false if @country.nil?
|
447
|
+
country_validator = EnumAttributeValidator.new('String', ["1", "2", "3"])
|
448
|
+
return false unless country_validator.valid?(@country)
|
419
449
|
return false if @latest.nil?
|
450
|
+
latest_validator = EnumAttributeValidator.new('String', ["0", "1"])
|
451
|
+
return false unless latest_validator.valid?(@latest)
|
420
452
|
return false if @registration_date.nil?
|
421
453
|
return false if @update_date.nil?
|
422
454
|
return false if @disposal_date.nil?
|
@@ -461,6 +493,56 @@ module Kendama
|
|
461
493
|
@sequence_number = sequence_number
|
462
494
|
end
|
463
495
|
|
496
|
+
# Custom attribute writer method checking allowed values (enum).
|
497
|
+
# @param [Object] process Object to be assigned
|
498
|
+
def process=(process)
|
499
|
+
validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "99"])
|
500
|
+
unless validator.valid?(process)
|
501
|
+
fail ArgumentError, "invalid value for \"process\", must be one of #{validator.allowable_values}."
|
502
|
+
end
|
503
|
+
@process = process
|
504
|
+
end
|
505
|
+
|
506
|
+
# Custom attribute writer method checking allowed values (enum).
|
507
|
+
# @param [Object] correct Object to be assigned
|
508
|
+
def correct=(correct)
|
509
|
+
validator = EnumAttributeValidator.new('String', ["0", "1", ""])
|
510
|
+
unless validator.valid?(correct)
|
511
|
+
fail ArgumentError, "invalid value for \"correct\", must be one of #{validator.allowable_values}."
|
512
|
+
end
|
513
|
+
@correct = correct
|
514
|
+
end
|
515
|
+
|
516
|
+
# Custom attribute writer method checking allowed values (enum).
|
517
|
+
# @param [Object] kind Object to be assigned
|
518
|
+
def kind=(kind)
|
519
|
+
validator = EnumAttributeValidator.new('String', ["1", "2"])
|
520
|
+
unless validator.valid?(kind)
|
521
|
+
fail ArgumentError, "invalid value for \"kind\", must be one of #{validator.allowable_values}."
|
522
|
+
end
|
523
|
+
@kind = kind
|
524
|
+
end
|
525
|
+
|
526
|
+
# Custom attribute writer method checking allowed values (enum).
|
527
|
+
# @param [Object] country Object to be assigned
|
528
|
+
def country=(country)
|
529
|
+
validator = EnumAttributeValidator.new('String', ["1", "2", "3"])
|
530
|
+
unless validator.valid?(country)
|
531
|
+
fail ArgumentError, "invalid value for \"country\", must be one of #{validator.allowable_values}."
|
532
|
+
end
|
533
|
+
@country = country
|
534
|
+
end
|
535
|
+
|
536
|
+
# Custom attribute writer method checking allowed values (enum).
|
537
|
+
# @param [Object] latest Object to be assigned
|
538
|
+
def latest=(latest)
|
539
|
+
validator = EnumAttributeValidator.new('String', ["0", "1"])
|
540
|
+
unless validator.valid?(latest)
|
541
|
+
fail ArgumentError, "invalid value for \"latest\", must be one of #{validator.allowable_values}."
|
542
|
+
end
|
543
|
+
@latest = latest
|
544
|
+
end
|
545
|
+
|
464
546
|
# Custom attribute writer method with validation
|
465
547
|
# @param [Object] address Value to be assigned
|
466
548
|
def address=(address)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
3
3
|
|
4
|
-
|
4
|
+
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
data/lib/kendama/version.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
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:
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.6.0
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.6.0
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module Kendama
|
14
|
-
VERSION = '0.2.
|
14
|
+
VERSION = '0.2.3'
|
15
15
|
end
|
data/lib/kendama.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
3
3
|
|
4
|
-
|
4
|
+
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
data/spec/api_client_spec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
3
3
|
|
4
|
-
|
4
|
+
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
data/spec/configuration_spec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
3
3
|
|
4
|
-
|
4
|
+
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
3
3
|
|
4
|
-
|
4
|
+
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
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: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- uichi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -96,7 +96,7 @@ licenses:
|
|
96
96
|
metadata:
|
97
97
|
homepage_uri: https://rubygems.org/gems/kendama
|
98
98
|
source_code_uri: https://github.com/uichi/kendama
|
99
|
-
changelog_uri: https://github.com/uichi/kendama/blob/
|
99
|
+
changelog_uri: https://github.com/uichi/kendama/blob/main/CHANGELOG.md
|
100
100
|
post_install_message:
|
101
101
|
rdoc_options: []
|
102
102
|
require_paths:
|