kendama 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0f2bfd975522a630a1134fc705d2c972a4ed47c258ebd20e4c9c1b8592dcec6
4
- data.tar.gz: d48f51bf2b8f76a18e85bad72e74129ad1c43a8c25599c1268ef20481295519c
3
+ metadata.gz: 61ca4889632b52be87d4809b2da48aeed6607bfc31ff85d3c3dd78fd14d14338
4
+ data.tar.gz: 893d8a07d99d3b871ed71f530aee37e385df5e146a90e4e9fb758a8441201d22
5
5
  SHA512:
6
- metadata.gz: 6f6ea161fe11f5f997e3e1c309653aec56125d3dcafcf67a306527636c2cee6ea2625a715428201a9a05b1dfe06ca4a86da1d00bee80764ec90db46eea04c10f
7
- data.tar.gz: daa7216d86795f8599fa9e43b8f6fc30397fc40c10b08bdea3fd9fcf8ecb41251ae63224923763e5231c6c6943b9af52bd8e09196c9acbaafe853267f1a71cf9
6
+ metadata.gz: e7f923dcf7dcae74f5a76440584d9e12ce769b9e0a61da524abc4ee58133063d6a8cb984fd6c45262f9a837ead3b0d20833fd1bacb67877fa7c2ea9f59a71d5e
7
+ data.tar.gz: 0372f5b3893f8086b1efdae098cefa0acaa123f9a656dc0ab73b5e9ae5b10d360752b9e6f4b1da3a57aa5275a715ba9e567249fc432134a599913a0322b1c755
@@ -12,6 +12,7 @@ lib/kendama/api_error.rb
12
12
  lib/kendama/configuration.rb
13
13
  lib/kendama/models/announcement.rb
14
14
  lib/kendama/models/response_body.rb
15
+ lib/kendama/version.rb
15
16
  spec/api_client_spec.rb
16
17
  spec/configuration_spec.rb
17
18
  spec/spec_helper.rb
@@ -28,5 +28,3 @@
28
28
  Gemfile
29
29
  kendama.gemspec
30
30
  Rakefile
31
-
32
- lib/kendama/version.rb
data/.travis.yml CHANGED
@@ -8,4 +8,4 @@ script:
8
8
  - bundle install --path vendor/bundle
9
9
  - bundle exec rspec
10
10
  - gem build kendama.gemspec
11
- - gem install ./kendama-0.2.1.gem
11
+ - gem install ./kendama-0.2.2.gem
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # [0.2.2] - 2023-06-13
2
+
3
+ - dependabotの設定を追加
4
+ - レスポンスボディの項目にenumが適応できるものは設定
5
+ - README記載のリポジトリへのリンクを正しくする
6
+ - version.rbをignore対象から外す
7
+ - APIの説明文を追加
8
+
1
9
  # [0.2.1] - 2023-06-07
2
10
 
3
11
  - README.mdのPackage versionを0.2.1に変更
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kendama (0.2.1)
4
+ kendama (0.2.2)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Kendama - the Ruby gem for the 国税庁API
4
4
 
5
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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.1
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.1.gem
26
+ gem install ./kendama-0.2.2.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./kendama-0.2.1.gem` to install the development dependencies)
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.1'
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/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
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/GIT_USER_ID/GIT_REPO_ID.git'
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="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="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
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #国税庁API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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,9 +1,9 @@
1
1
  =begin
2
2
  #国税庁API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
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.1'
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
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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.1
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-07 00:00:00.000000000 Z
11
+ date: 2023-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus