kendama 0.1.1 → 0.2.0
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 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +9 -3
- data/Gemfile.lock +1 -1
- data/README.md +24 -35
- data/docs/V1Api.md +148 -0
- data/lib/kendama/api/v1_api.rb +199 -9
- 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 +1 -29
- data/lib/kendama/models/response_body.rb +1 -1
- data/lib/kendama/version.rb +1 -1
- 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: a5551793f95a0854ec2d394e377ba9b908971b61458cf7e1c2406a638086e42c
|
4
|
+
data.tar.gz: d54236566c5bd5922dfeee432126895c17b6fea79ada37df7ffdacf70f627151
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 215ba0eb80c1e27bff06bb4a7e82f32cc55f32ae3bcf8ec8f2ef43d09dfa6efe40d0e822e013d2b167ea370e842bbe1fa393acaa2dad5cb84d385fea76eba4ad
|
7
|
+
data.tar.gz: 2d41dc424bff56253ff1588553de4c9c33b0eb175f3d7274301407ae493b9af5914aa98e5784f98bfc53f5d38074e88965d5f8139773c102739892baa5060665
|
data/.openapi-generator/FILES
CHANGED
data/.openapi-generator-ignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
-
|
1
|
+
# [0.2.0] - 2023-06-07
|
2
2
|
|
3
|
-
|
3
|
+
- 取得期間を指定して情報を取得するクライアントAPIの追加
|
4
|
+
- 登録番号と日付を指定して情報を取得するクライアントAPIを追加
|
5
|
+
- 国税庁APIのスキーマバージョンを変更
|
4
6
|
|
5
|
-
- 登録番号を使った公表情報取得のクライアントAPIを追加しました
|
6
7
|
|
7
8
|
# [0.1.1] - 2023-06-05
|
8
9
|
|
9
10
|
- RubyGemsリリース用
|
11
|
+
|
12
|
+
|
13
|
+
## [0.1.0] - 2023-06-04
|
14
|
+
|
15
|
+
- 登録番号を使った公表情報取得のクライアントAPIを追加しました
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# kendama
|
2
2
|
|
3
|
-
Kendama - the Ruby gem for the 国税庁
|
3
|
+
Kendama - the Ruby gem for the 国税庁API
|
4
4
|
|
5
5
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
|
-
- API version:
|
10
|
-
- Package version: 1.
|
9
|
+
- API version: 1.0.0
|
10
|
+
- Package version: 0.1.1
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,16 +23,16 @@ gem build kendama.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./kendama-1.
|
26
|
+
gem install ./kendama-0.1.1.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./kendama-1.
|
29
|
+
(for development, run `gem install --dev ./kendama-0.1.1.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', '~> 1.
|
35
|
+
gem 'kendama', '~> 0.1.1'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -57,19 +57,21 @@ Please follow the [installation](#installation) procedure and then run the follo
|
|
57
57
|
require 'kendama'
|
58
58
|
|
59
59
|
api_instance = Kendama::V1Api.new
|
60
|
-
id = 'id_example' # String |
|
61
|
-
|
62
|
-
|
60
|
+
id = 'id_example' # String |
|
61
|
+
from = Date.parse('Tue Oct 01 09:00:00 JST 2024') # Date |
|
62
|
+
to = Date.parse('Tue Oct 01 09:00:00 JST 2024') # Date |
|
63
|
+
type = '21' # String |
|
63
64
|
opts = {
|
64
|
-
|
65
|
+
division: '1', # String |
|
66
|
+
divide: 'divide_example' # String |
|
65
67
|
}
|
66
68
|
|
67
69
|
begin
|
68
|
-
|
69
|
-
result = api_instance.
|
70
|
+
#取得期間を指定して情報を取得
|
71
|
+
result = api_instance.get_announcement_by_diff(id, from, to, type, opts)
|
70
72
|
p result
|
71
73
|
rescue Kendama::ApiError => e
|
72
|
-
puts "Exception when calling V1Api->
|
74
|
+
puts "Exception when calling V1Api->get_announcement_by_diff: #{e}"
|
73
75
|
end
|
74
76
|
|
75
77
|
```
|
@@ -78,33 +80,20 @@ end
|
|
78
80
|
|
79
81
|
All URIs are relative to *https://kensyo.invoice-kohyo.nta.go.jp*
|
80
82
|
|
81
|
-
|
82
|
-
|
83
|
-
|
83
|
+
Class | Method | HTTP request | Description
|
84
|
+
------------ | ------------- | ------------- | -------------
|
85
|
+
*Kendama::V1Api* | [**get_announcement_by_diff**](docs/V1Api.md#get_announcement_by_diff) | **GET** /1/diff | 取得期間を指定して情報を取得
|
86
|
+
*Kendama::V1Api* | [**get_announcement_by_number**](docs/V1Api.md#get_announcement_by_number) | **GET** /1/num | 登録番号を指定して情報を取得
|
87
|
+
*Kendama::V1Api* | [**get_announcement_by_valid**](docs/V1Api.md#get_announcement_by_valid) | **GET** /1/valid | 登録番号と日付を指定して情報を取得
|
88
|
+
|
84
89
|
|
85
90
|
## Documentation for Models
|
86
91
|
|
87
|
-
- [Kendama::Announcement](docs/Announcement.md)
|
88
|
-
- [Kendama::ResponseBody](docs/ResponseBody.md)
|
92
|
+
- [Kendama::Announcement](docs/Announcement.md)
|
93
|
+
- [Kendama::ResponseBody](docs/ResponseBody.md)
|
94
|
+
|
89
95
|
|
90
96
|
## Documentation for Authorization
|
91
97
|
|
92
98
|
Endpoints do not require authorization.
|
93
99
|
|
94
|
-
## Development
|
95
|
-
|
96
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
97
|
-
|
98
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
99
|
-
|
100
|
-
## Contributing
|
101
|
-
|
102
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/uichi/kendama. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/uichi/kendama/blob/develop/CODE_OF_CONDUCT.md).
|
103
|
-
|
104
|
-
## License
|
105
|
-
|
106
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
107
|
-
|
108
|
-
## Code of Conduct
|
109
|
-
|
110
|
-
Everyone interacting in the Kendama project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/uichi/kendama/blob/develop/CODE_OF_CONDUCT.md).
|
data/docs/V1Api.md
CHANGED
@@ -4,7 +4,85 @@ All URIs are relative to *https://kensyo.invoice-kohyo.nta.go.jp*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_announcement_by_diff**](V1Api.md#get_announcement_by_diff) | **GET** /1/diff | 取得期間を指定して情報を取得 |
|
7
8
|
| [**get_announcement_by_number**](V1Api.md#get_announcement_by_number) | **GET** /1/num | 登録番号を指定して情報を取得 |
|
9
|
+
| [**get_announcement_by_valid**](V1Api.md#get_announcement_by_valid) | **GET** /1/valid | 登録番号と日付を指定して情報を取得 |
|
10
|
+
|
11
|
+
|
12
|
+
## get_announcement_by_diff
|
13
|
+
|
14
|
+
> <ResponseBody> get_announcement_by_diff(id, from, to, type, opts)
|
15
|
+
|
16
|
+
取得期間を指定して情報を取得
|
17
|
+
|
18
|
+
取得期間を指定し、当該期間内に「更新年月日」が含まれる公表情報を取得
|
19
|
+
|
20
|
+
### Examples
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'time'
|
24
|
+
require 'kendama'
|
25
|
+
|
26
|
+
api_instance = Kendama::V1Api.new
|
27
|
+
id = 'id_example' # String |
|
28
|
+
from = Date.parse('Tue Oct 01 09:00:00 JST 2024') # Date |
|
29
|
+
to = Date.parse('Tue Oct 01 09:00:00 JST 2024') # Date |
|
30
|
+
type = '21' # String |
|
31
|
+
opts = {
|
32
|
+
division: '1', # String |
|
33
|
+
divide: 'divide_example' # String |
|
34
|
+
}
|
35
|
+
|
36
|
+
begin
|
37
|
+
# 取得期間を指定して情報を取得
|
38
|
+
result = api_instance.get_announcement_by_diff(id, from, to, type, opts)
|
39
|
+
p result
|
40
|
+
rescue Kendama::ApiError => e
|
41
|
+
puts "Error when calling V1Api->get_announcement_by_diff: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
#### Using the get_announcement_by_diff_with_http_info variant
|
46
|
+
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
48
|
+
|
49
|
+
> <Array(<ResponseBody>, Integer, Hash)> get_announcement_by_diff_with_http_info(id, from, to, type, opts)
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
begin
|
53
|
+
# 取得期間を指定して情報を取得
|
54
|
+
data, status_code, headers = api_instance.get_announcement_by_diff_with_http_info(id, from, to, type, opts)
|
55
|
+
p status_code # => 2xx
|
56
|
+
p headers # => { ... }
|
57
|
+
p data # => <ResponseBody>
|
58
|
+
rescue Kendama::ApiError => e
|
59
|
+
puts "Error when calling V1Api->get_announcement_by_diff_with_http_info: #{e}"
|
60
|
+
end
|
61
|
+
```
|
62
|
+
|
63
|
+
### Parameters
|
64
|
+
|
65
|
+
| Name | Type | Description | Notes |
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
67
|
+
| **id** | **String** | | |
|
68
|
+
| **from** | **Date** | | |
|
69
|
+
| **to** | **Date** | | |
|
70
|
+
| **type** | **String** | | [default to '21'] |
|
71
|
+
| **division** | **String** | | [optional][default to '1'] |
|
72
|
+
| **divide** | **String** | | [optional][default to '1'] |
|
73
|
+
|
74
|
+
### Return type
|
75
|
+
|
76
|
+
[**ResponseBody**](ResponseBody.md)
|
77
|
+
|
78
|
+
### Authorization
|
79
|
+
|
80
|
+
No authorization required
|
81
|
+
|
82
|
+
### HTTP request headers
|
83
|
+
|
84
|
+
- **Content-Type**: Not defined
|
85
|
+
- **Accept**: application/json
|
8
86
|
|
9
87
|
|
10
88
|
## get_announcement_by_number
|
@@ -78,3 +156,73 @@ No authorization required
|
|
78
156
|
- **Content-Type**: Not defined
|
79
157
|
- **Accept**: application/json
|
80
158
|
|
159
|
+
|
160
|
+
## get_announcement_by_valid
|
161
|
+
|
162
|
+
> <ResponseBody> get_announcement_by_valid(id, number, day, type)
|
163
|
+
|
164
|
+
登録番号と日付を指定して情報を取得
|
165
|
+
|
166
|
+
登録番号及び指定された日付を基準日とした直近の登録年月日、取消年月日、失効年月日に紐づく情報を取得
|
167
|
+
|
168
|
+
### Examples
|
169
|
+
|
170
|
+
```ruby
|
171
|
+
require 'time'
|
172
|
+
require 'kendama'
|
173
|
+
|
174
|
+
api_instance = Kendama::V1Api.new
|
175
|
+
id = 'id_example' # String |
|
176
|
+
number = 'T8040001999011' # String |
|
177
|
+
day = Date.parse('Fri Dec 01 09:00:00 JST 2023') # Date |
|
178
|
+
type = '21' # String |
|
179
|
+
|
180
|
+
begin
|
181
|
+
# 登録番号と日付を指定して情報を取得
|
182
|
+
result = api_instance.get_announcement_by_valid(id, number, day, type)
|
183
|
+
p result
|
184
|
+
rescue Kendama::ApiError => e
|
185
|
+
puts "Error when calling V1Api->get_announcement_by_valid: #{e}"
|
186
|
+
end
|
187
|
+
```
|
188
|
+
|
189
|
+
#### Using the get_announcement_by_valid_with_http_info variant
|
190
|
+
|
191
|
+
This returns an Array which contains the response data, status code and headers.
|
192
|
+
|
193
|
+
> <Array(<ResponseBody>, Integer, Hash)> get_announcement_by_valid_with_http_info(id, number, day, type)
|
194
|
+
|
195
|
+
```ruby
|
196
|
+
begin
|
197
|
+
# 登録番号と日付を指定して情報を取得
|
198
|
+
data, status_code, headers = api_instance.get_announcement_by_valid_with_http_info(id, number, day, type)
|
199
|
+
p status_code # => 2xx
|
200
|
+
p headers # => { ... }
|
201
|
+
p data # => <ResponseBody>
|
202
|
+
rescue Kendama::ApiError => e
|
203
|
+
puts "Error when calling V1Api->get_announcement_by_valid_with_http_info: #{e}"
|
204
|
+
end
|
205
|
+
```
|
206
|
+
|
207
|
+
### Parameters
|
208
|
+
|
209
|
+
| Name | Type | Description | Notes |
|
210
|
+
| ---- | ---- | ----------- | ----- |
|
211
|
+
| **id** | **String** | | |
|
212
|
+
| **number** | **String** | | |
|
213
|
+
| **day** | **Date** | | |
|
214
|
+
| **type** | **String** | | [default to '21'] |
|
215
|
+
|
216
|
+
### Return type
|
217
|
+
|
218
|
+
[**ResponseBody**](ResponseBody.md)
|
219
|
+
|
220
|
+
### Authorization
|
221
|
+
|
222
|
+
No authorization required
|
223
|
+
|
224
|
+
### HTTP request headers
|
225
|
+
|
226
|
+
- **Content-Type**: Not defined
|
227
|
+
- **Accept**: application/json
|
228
|
+
|
data/lib/kendama/api/v1_api.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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
|
@@ -19,6 +19,114 @@ module Kendama
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# 取得期間を指定して情報を取得
|
23
|
+
# 取得期間を指定し、当該期間内に「更新年月日」が含まれる公表情報を取得
|
24
|
+
# @param id [String]
|
25
|
+
# @param from [Date]
|
26
|
+
# @param to [Date]
|
27
|
+
# @param type [String]
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @option opts [String] :division (default to '1')
|
30
|
+
# @option opts [String] :divide (default to '1')
|
31
|
+
# @return [ResponseBody]
|
32
|
+
def get_announcement_by_diff(id, from, to, type, opts = {})
|
33
|
+
data, _status_code, _headers = get_announcement_by_diff_with_http_info(id, from, to, type, opts)
|
34
|
+
data
|
35
|
+
end
|
36
|
+
|
37
|
+
# 取得期間を指定して情報を取得
|
38
|
+
# 取得期間を指定し、当該期間内に「更新年月日」が含まれる公表情報を取得
|
39
|
+
# @param id [String]
|
40
|
+
# @param from [Date]
|
41
|
+
# @param to [Date]
|
42
|
+
# @param type [String]
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @option opts [String] :division (default to '1')
|
45
|
+
# @option opts [String] :divide (default to '1')
|
46
|
+
# @return [Array<(ResponseBody, Integer, Hash)>] ResponseBody data, response status code and response headers
|
47
|
+
def get_announcement_by_diff_with_http_info(id, from, to, type, opts = {})
|
48
|
+
if @api_client.config.debugging
|
49
|
+
@api_client.config.logger.debug 'Calling API: V1Api.get_announcement_by_diff ...'
|
50
|
+
end
|
51
|
+
# verify the required parameter 'id' is set
|
52
|
+
if @api_client.config.client_side_validation && id.nil?
|
53
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V1Api.get_announcement_by_diff"
|
54
|
+
end
|
55
|
+
# verify the required parameter 'from' is set
|
56
|
+
if @api_client.config.client_side_validation && from.nil?
|
57
|
+
fail ArgumentError, "Missing the required parameter 'from' when calling V1Api.get_announcement_by_diff"
|
58
|
+
end
|
59
|
+
# verify the required parameter 'to' is set
|
60
|
+
if @api_client.config.client_side_validation && to.nil?
|
61
|
+
fail ArgumentError, "Missing the required parameter 'to' when calling V1Api.get_announcement_by_diff"
|
62
|
+
end
|
63
|
+
# verify the required parameter 'type' is set
|
64
|
+
if @api_client.config.client_side_validation && type.nil?
|
65
|
+
fail ArgumentError, "Missing the required parameter 'type' when calling V1Api.get_announcement_by_diff"
|
66
|
+
end
|
67
|
+
# verify enum value
|
68
|
+
allowable_values = ["21"]
|
69
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(type)
|
70
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
|
71
|
+
end
|
72
|
+
allowable_values = ["1", "2"]
|
73
|
+
if @api_client.config.client_side_validation && opts[:'division'] && !allowable_values.include?(opts[:'division'])
|
74
|
+
fail ArgumentError, "invalid value for \"division\", must be one of #{allowable_values}"
|
75
|
+
end
|
76
|
+
if @api_client.config.client_side_validation && !opts[:'divide'].nil? && opts[:'divide'].to_s.length > 999999
|
77
|
+
fail ArgumentError, 'invalid value for "opts[:"divide"]" when calling V1Api.get_announcement_by_diff, the character length must be smaller than or equal to 999999.'
|
78
|
+
end
|
79
|
+
|
80
|
+
if @api_client.config.client_side_validation && !opts[:'divide'].nil? && opts[:'divide'].to_s.length < 1
|
81
|
+
fail ArgumentError, 'invalid value for "opts[:"divide"]" when calling V1Api.get_announcement_by_diff, the character length must be great than or equal to 1.'
|
82
|
+
end
|
83
|
+
|
84
|
+
# resource path
|
85
|
+
local_var_path = '/1/diff'
|
86
|
+
|
87
|
+
# query parameters
|
88
|
+
query_params = opts[:query_params] || {}
|
89
|
+
query_params[:'id'] = id
|
90
|
+
query_params[:'from'] = from
|
91
|
+
query_params[:'to'] = to
|
92
|
+
query_params[:'type'] = type
|
93
|
+
query_params[:'division'] = opts[:'division'] if !opts[:'division'].nil?
|
94
|
+
query_params[:'divide'] = opts[:'divide'] if !opts[:'divide'].nil?
|
95
|
+
|
96
|
+
# header parameters
|
97
|
+
header_params = opts[:header_params] || {}
|
98
|
+
# HTTP header 'Accept' (if needed)
|
99
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
100
|
+
|
101
|
+
# form parameters
|
102
|
+
form_params = opts[:form_params] || {}
|
103
|
+
|
104
|
+
# http body (model)
|
105
|
+
post_body = opts[:debug_body]
|
106
|
+
|
107
|
+
# return_type
|
108
|
+
return_type = opts[:debug_return_type] || 'ResponseBody'
|
109
|
+
|
110
|
+
# auth_names
|
111
|
+
auth_names = opts[:debug_auth_names] || []
|
112
|
+
|
113
|
+
new_options = opts.merge(
|
114
|
+
:operation => :"V1Api.get_announcement_by_diff",
|
115
|
+
:header_params => header_params,
|
116
|
+
:query_params => query_params,
|
117
|
+
:form_params => form_params,
|
118
|
+
:body => post_body,
|
119
|
+
:auth_names => auth_names,
|
120
|
+
:return_type => return_type
|
121
|
+
)
|
122
|
+
|
123
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
124
|
+
if @api_client.config.debugging
|
125
|
+
@api_client.config.logger.debug "API called: V1Api#get_announcement_by_diff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
126
|
+
end
|
127
|
+
return data, status_code, headers
|
128
|
+
end
|
129
|
+
|
22
130
|
# 登録番号を指定して情報を取得
|
23
131
|
# 指定された登録番号に係る登録年月日、取消年月日及び失効年月日に紐づく最新情報(履歴情報は任意)を取得
|
24
132
|
# @param id [String]
|
@@ -48,14 +156,6 @@ module Kendama
|
|
48
156
|
if @api_client.config.client_side_validation && id.nil?
|
49
157
|
fail ArgumentError, "Missing the required parameter 'id' when calling V1Api.get_announcement_by_number"
|
50
158
|
end
|
51
|
-
if @api_client.config.client_side_validation && id.to_s.length > 13
|
52
|
-
fail ArgumentError, 'invalid value for "id" when calling V1Api.get_announcement_by_number, the character length must be smaller than or equal to 13.'
|
53
|
-
end
|
54
|
-
|
55
|
-
if @api_client.config.client_side_validation && id.to_s.length < 13
|
56
|
-
fail ArgumentError, 'invalid value for "id" when calling V1Api.get_announcement_by_number, the character length must be great than or equal to 13.'
|
57
|
-
end
|
58
|
-
|
59
159
|
# verify the required parameter 'number' is set
|
60
160
|
if @api_client.config.client_side_validation && number.nil?
|
61
161
|
fail ArgumentError, "Missing the required parameter 'number' when calling V1Api.get_announcement_by_number"
|
@@ -116,5 +216,95 @@ module Kendama
|
|
116
216
|
end
|
117
217
|
return data, status_code, headers
|
118
218
|
end
|
219
|
+
|
220
|
+
# 登録番号と日付を指定して情報を取得
|
221
|
+
# 登録番号及び指定された日付を基準日とした直近の登録年月日、取消年月日、失効年月日に紐づく情報を取得
|
222
|
+
# @param id [String]
|
223
|
+
# @param number [String]
|
224
|
+
# @param day [Date]
|
225
|
+
# @param type [String]
|
226
|
+
# @param [Hash] opts the optional parameters
|
227
|
+
# @return [ResponseBody]
|
228
|
+
def get_announcement_by_valid(id, number, day, type, opts = {})
|
229
|
+
data, _status_code, _headers = get_announcement_by_valid_with_http_info(id, number, day, type, opts)
|
230
|
+
data
|
231
|
+
end
|
232
|
+
|
233
|
+
# 登録番号と日付を指定して情報を取得
|
234
|
+
# 登録番号及び指定された日付を基準日とした直近の登録年月日、取消年月日、失効年月日に紐づく情報を取得
|
235
|
+
# @param id [String]
|
236
|
+
# @param number [String]
|
237
|
+
# @param day [Date]
|
238
|
+
# @param type [String]
|
239
|
+
# @param [Hash] opts the optional parameters
|
240
|
+
# @return [Array<(ResponseBody, Integer, Hash)>] ResponseBody data, response status code and response headers
|
241
|
+
def get_announcement_by_valid_with_http_info(id, number, day, type, opts = {})
|
242
|
+
if @api_client.config.debugging
|
243
|
+
@api_client.config.logger.debug 'Calling API: V1Api.get_announcement_by_valid ...'
|
244
|
+
end
|
245
|
+
# verify the required parameter 'id' is set
|
246
|
+
if @api_client.config.client_side_validation && id.nil?
|
247
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V1Api.get_announcement_by_valid"
|
248
|
+
end
|
249
|
+
# verify the required parameter 'number' is set
|
250
|
+
if @api_client.config.client_side_validation && number.nil?
|
251
|
+
fail ArgumentError, "Missing the required parameter 'number' when calling V1Api.get_announcement_by_valid"
|
252
|
+
end
|
253
|
+
# verify the required parameter 'day' is set
|
254
|
+
if @api_client.config.client_side_validation && day.nil?
|
255
|
+
fail ArgumentError, "Missing the required parameter 'day' when calling V1Api.get_announcement_by_valid"
|
256
|
+
end
|
257
|
+
# verify the required parameter 'type' is set
|
258
|
+
if @api_client.config.client_side_validation && type.nil?
|
259
|
+
fail ArgumentError, "Missing the required parameter 'type' when calling V1Api.get_announcement_by_valid"
|
260
|
+
end
|
261
|
+
# verify enum value
|
262
|
+
allowable_values = ["21"]
|
263
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(type)
|
264
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
|
265
|
+
end
|
266
|
+
# resource path
|
267
|
+
local_var_path = '/1/valid'
|
268
|
+
|
269
|
+
# query parameters
|
270
|
+
query_params = opts[:query_params] || {}
|
271
|
+
query_params[:'id'] = id
|
272
|
+
query_params[:'number'] = number
|
273
|
+
query_params[:'day'] = day
|
274
|
+
query_params[:'type'] = type
|
275
|
+
|
276
|
+
# header parameters
|
277
|
+
header_params = opts[:header_params] || {}
|
278
|
+
# HTTP header 'Accept' (if needed)
|
279
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
280
|
+
|
281
|
+
# form parameters
|
282
|
+
form_params = opts[:form_params] || {}
|
283
|
+
|
284
|
+
# http body (model)
|
285
|
+
post_body = opts[:debug_body]
|
286
|
+
|
287
|
+
# return_type
|
288
|
+
return_type = opts[:debug_return_type] || 'ResponseBody'
|
289
|
+
|
290
|
+
# auth_names
|
291
|
+
auth_names = opts[:debug_auth_names] || []
|
292
|
+
|
293
|
+
new_options = opts.merge(
|
294
|
+
:operation => :"V1Api.get_announcement_by_valid",
|
295
|
+
:header_params => header_params,
|
296
|
+
:query_params => query_params,
|
297
|
+
:form_params => form_params,
|
298
|
+
:body => post_body,
|
299
|
+
:auth_names => auth_names,
|
300
|
+
:return_type => return_type
|
301
|
+
)
|
302
|
+
|
303
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
304
|
+
if @api_client.config.debugging
|
305
|
+
@api_client.config.logger.debug "API called: V1Api#get_announcement_by_valid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
306
|
+
end
|
307
|
+
return data, status_code, headers
|
308
|
+
end
|
119
309
|
end
|
120
310
|
end
|
data/lib/kendama/api_client.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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
|
data/lib/kendama/api_error.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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
|
@@ -290,14 +290,6 @@ module Kendama
|
|
290
290
|
invalid_properties.push('invalid value for "registrated_number", registrated_number cannot be nil.')
|
291
291
|
end
|
292
292
|
|
293
|
-
if @registrated_number.to_s.length > 14
|
294
|
-
invalid_properties.push('invalid value for "registrated_number", the character length must be smaller than or equal to 14.')
|
295
|
-
end
|
296
|
-
|
297
|
-
if @registrated_number.to_s.length < 14
|
298
|
-
invalid_properties.push('invalid value for "registrated_number", the character length must be great than or equal to 14.')
|
299
|
-
end
|
300
|
-
|
301
293
|
if @process.nil?
|
302
294
|
invalid_properties.push('invalid value for "process", process cannot be nil.')
|
303
295
|
end
|
@@ -420,8 +412,6 @@ module Kendama
|
|
420
412
|
return false if @sequence_number.to_s.length > 8
|
421
413
|
return false if @sequence_number.to_s.length < 1
|
422
414
|
return false if @registrated_number.nil?
|
423
|
-
return false if @registrated_number.to_s.length > 14
|
424
|
-
return false if @registrated_number.to_s.length < 14
|
425
415
|
return false if @process.nil?
|
426
416
|
return false if @correct.nil?
|
427
417
|
return false if @kind.nil?
|
@@ -471,24 +461,6 @@ module Kendama
|
|
471
461
|
@sequence_number = sequence_number
|
472
462
|
end
|
473
463
|
|
474
|
-
# Custom attribute writer method with validation
|
475
|
-
# @param [Object] registrated_number Value to be assigned
|
476
|
-
def registrated_number=(registrated_number)
|
477
|
-
if registrated_number.nil?
|
478
|
-
fail ArgumentError, 'registrated_number cannot be nil'
|
479
|
-
end
|
480
|
-
|
481
|
-
if registrated_number.to_s.length > 14
|
482
|
-
fail ArgumentError, 'invalid value for "registrated_number", the character length must be smaller than or equal to 14.'
|
483
|
-
end
|
484
|
-
|
485
|
-
if registrated_number.to_s.length < 14
|
486
|
-
fail ArgumentError, 'invalid value for "registrated_number", the character length must be great than or equal to 14.'
|
487
|
-
end
|
488
|
-
|
489
|
-
@registrated_number = registrated_number
|
490
|
-
end
|
491
|
-
|
492
464
|
# Custom attribute writer method with validation
|
493
465
|
# @param [Object] address Value to be assigned
|
494
466
|
def address=(address)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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
|
data/lib/kendama/version.rb
CHANGED
data/lib/kendama.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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
|
data/spec/api_client_spec.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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
|
data/spec/configuration_spec.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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
|
data/spec/spec_helper.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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
|
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.
|
4
|
+
version: 0.2.0
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|