dear-inventory-ruby 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -2
- data/README.md +4 -4
- data/docs/PriceTiers.md +2 -2
- data/lib/dear-inventory-ruby/models/price_tiers.rb +8 -8
- data/lib/dear-inventory-ruby/version.rb +1 -1
- data/pkg/dear-inventory-ruby-0.1.13.gem +0 -0
- data/spec/models/price_tiers_spec.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0af23156a4744800a3c923beb2fe310fa2f5974554353272c795a183348848c9
|
4
|
+
data.tar.gz: 655be8b59ad6e919d15aeac99580014fcff3673dcbe5e466639ddf502d504f61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b132a8a063cdc4d2e49ba2aaf7474d9155d96e1379e79a31ec68f25bf3d0a63559267b86876db90665907c279f3631bdbb101896e35ae77724069ee3afd2be6
|
7
|
+
data.tar.gz: 5bdcc0d48eb6c3d1c8ad191156ca7a09c82d993b13031697ad602d9fc11b6e4c137ca89d31759b2a03c0750b577526cafe5d8d8b3d6398f7f5ca9a0351b63304
|
data/CHANGELOG.md
CHANGED
@@ -2,10 +2,14 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.1.13] - 2020-10-28
|
6
|
+
|
7
|
+
- Update `PriceTiersList` to `PriceTiers`
|
8
|
+
|
5
9
|
## [0.1.12] - 2020-10-28
|
6
10
|
|
7
|
-
- Add new endpoint and model: PriceTier
|
8
|
-
- Endpoint GET PriceTiers
|
11
|
+
- Add new endpoint and model: `PriceTier`
|
12
|
+
- Endpoint GET `PriceTiers`
|
9
13
|
|
10
14
|
## [0.1.11] - 2020-09-21
|
11
15
|
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ This specifing endpoints for DEAR Inventory API
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 0.1.
|
10
|
+
- Package version: 0.1.13
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://www.nnhan.me](https://www.nnhan.me)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build dear-inventory-ruby.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./dear-inventory-ruby-0.1.
|
27
|
+
gem install ./dear-inventory-ruby-0.1.13.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./dear-inventory-ruby-0.1.
|
30
|
+
(for development, run `gem install --dev ./dear-inventory-ruby-0.1.13.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'dear-inventory-ruby', '~> 0.1.
|
36
|
+
gem 'dear-inventory-ruby', '~> 0.1.13'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
data/docs/PriceTiers.md
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
7
|
+
**price_tiers** | [**Array<PriceTier>**](PriceTier.md) | Array of PriceTiers | [optional]
|
8
8
|
|
9
9
|
## Code Sample
|
10
10
|
|
11
11
|
```ruby
|
12
12
|
require 'DearInventoryRuby'
|
13
13
|
|
14
|
-
instance = DearInventoryRuby::PriceTiers.new(
|
14
|
+
instance = DearInventoryRuby::PriceTiers.new(price_tiers: nil)
|
15
15
|
```
|
16
16
|
|
17
17
|
|
@@ -15,19 +15,19 @@ require 'date'
|
|
15
15
|
module DearInventoryRuby
|
16
16
|
class PriceTiers
|
17
17
|
# Array of PriceTiers
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :price_tiers
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
21
|
def self.attribute_map
|
22
22
|
{
|
23
|
-
:'
|
23
|
+
:'price_tiers' => :'PriceTiers'
|
24
24
|
}
|
25
25
|
end
|
26
26
|
|
27
27
|
# Attribute type mapping.
|
28
28
|
def self.openapi_types
|
29
29
|
{
|
30
|
-
:'
|
30
|
+
:'price_tiers' => :'Array<PriceTier>'
|
31
31
|
}
|
32
32
|
end
|
33
33
|
|
@@ -52,9 +52,9 @@ module DearInventoryRuby
|
|
52
52
|
h[k.to_sym] = v
|
53
53
|
}
|
54
54
|
|
55
|
-
if attributes.key?(:'
|
56
|
-
if (value = attributes[:'
|
57
|
-
self.
|
55
|
+
if attributes.key?(:'price_tiers')
|
56
|
+
if (value = attributes[:'price_tiers']).is_a?(Array)
|
57
|
+
self.price_tiers = value
|
58
58
|
end
|
59
59
|
end
|
60
60
|
end
|
@@ -77,7 +77,7 @@ module DearInventoryRuby
|
|
77
77
|
def ==(o)
|
78
78
|
return true if self.equal?(o)
|
79
79
|
self.class == o.class &&
|
80
|
-
|
80
|
+
price_tiers == o.price_tiers
|
81
81
|
end
|
82
82
|
|
83
83
|
# @see the `==` method
|
@@ -89,7 +89,7 @@ module DearInventoryRuby
|
|
89
89
|
# Calculates hash code according to all attributes.
|
90
90
|
# @return [Integer] Hash code
|
91
91
|
def hash
|
92
|
-
[
|
92
|
+
[price_tiers].hash
|
93
93
|
end
|
94
94
|
|
95
95
|
# Builds the object from hash
|
Binary file
|
@@ -32,7 +32,7 @@ describe 'PriceTiers' do
|
|
32
32
|
expect(@instance).to be_instance_of(DearInventoryRuby::PriceTiers)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "price_tiers"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dear-inventory-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nhan Nguyen
|
@@ -124,6 +124,7 @@ files:
|
|
124
124
|
- lib/dear-inventory-ruby/models/taxes.rb
|
125
125
|
- lib/dear-inventory-ruby/models/weight_unit.rb
|
126
126
|
- lib/dear-inventory-ruby/version.rb
|
127
|
+
- pkg/dear-inventory-ruby-0.1.13.gem
|
127
128
|
- spec/api/inventory_api_spec.rb
|
128
129
|
- spec/api_client_spec.rb
|
129
130
|
- spec/configuration_spec.rb
|