kendama 0.2.1 → 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.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +1 -0
- data/.openapi-generator-ignore +0 -2
- data/.travis.yml +1 -1
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- 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 +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61ca4889632b52be87d4809b2da48aeed6607bfc31ff85d3c3dd78fd14d14338
|
|
4
|
+
data.tar.gz: 893d8a07d99d3b871ed71f530aee37e385df5e146a90e4e9fb758a8441201d22
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7f923dcf7dcae74f5a76440584d9e12ce769b9e0a61da524abc4ee58133063d6a8cb984fd6c45262f9a837ead3b0d20833fd1bacb67877fa7c2ea9f59a71d5e
|
|
7
|
+
data.tar.gz: 0372f5b3893f8086b1efdae098cefa0acaa123f9a656dc0ab73b5e9ae5b10d360752b9e6f4b1da3a57aa5275a715ba9e567249fc432134a599913a0322b1c755
|
data/.openapi-generator/FILES
CHANGED
data/.openapi-generator-ignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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.2
|
|
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.2.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.2.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.2'
|
|
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.2'
|
|
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.2
|
|
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-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|