dear-inventory-ruby 0.2.7 → 0.2.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50a4ae53097c27d0470642a55cb37231e9979631a80c840fc2a942910ef28c64
4
- data.tar.gz: 579d16e845ce5eb75d6ce150c17f65356bbed78ead663ed9e7dba55309a98bb3
3
+ metadata.gz: 55910dcce013a8a19e74b7a2bc2d152e7ed86815c3329b22516286b61c79efbe
4
+ data.tar.gz: 7a171b04aa4d7f83431a3ba967cc36a1ca9e8e349726bd1660058d30130df798
5
5
  SHA512:
6
- metadata.gz: e4c1f0fb8b4d565c519a78211c466a920752e85efe1d8686f9fdf75f6138fab24fa1266cc9bd19bf372e938455f3134b90cefea2a97a24682fdc23935d653155
7
- data.tar.gz: ebe9b20decd6f28ecc4e84f0a3e32b7995001200751c72f2f34ddbdcb6a1ccf171d96dc0930fba813b426902455852ddba9519492fc6928d8d604f15809cf001
6
+ metadata.gz: 56225a5d84b30c6d337ba8256cab93cb7df36dc945ba31591a9a6704a0838e1a8f44eaa12fa06754fc2dd715a54165c3c22708d9002f86a95fa3a582869cf228
7
+ data.tar.gz: c4c81d7d9305a1fc5886e90961a1e3aae39147a9410e36522fdc6c1ab1c6d97a0c1a5278e2cfa6a78f1a2b4a491d2d48731b743a521587264faf3255a6214667
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.2.8] - 2022-12-15
6
+
7
+ - Remove some validations of `Tax`
8
+
5
9
  ## [0.2.7] - 2022-08-17
6
10
 
7
11
  - Support parameter `ContactFilter` and `IncludeProductPrices` for the endpoint GET `/customer`
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.2.7
10
+ - Package version: 0.2.8
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://www.nhansg.com](https://www.nhansg.com)
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.2.7.gem
27
+ gem install ./dear-inventory-ruby-0.2.8.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./dear-inventory-ruby-0.2.7.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./dear-inventory-ruby-0.2.8.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.2.7'
36
+ gem 'dear-inventory-ruby', '~> 0.2.8'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -147,10 +147,6 @@ module DearInventoryRuby
147
147
  invalid_properties.push('invalid value for "name", name cannot be nil.')
148
148
  end
149
149
 
150
- if @name.to_s.length > 50
151
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
152
- end
153
-
154
150
  if @account.nil?
155
151
  invalid_properties.push('invalid value for "account", account cannot be nil.')
156
152
  end
@@ -163,14 +159,6 @@ module DearInventoryRuby
163
159
  invalid_properties.push('invalid value for "tax_inclusive", tax_inclusive cannot be nil.')
164
160
  end
165
161
 
166
- if !@tax_percent.nil? && @tax_percent > 100
167
- invalid_properties.push('invalid value for "tax_percent", must be smaller than or equal to 100.')
168
- end
169
-
170
- if !@tax_percent.nil? && @tax_percent < 0
171
- invalid_properties.push('invalid value for "tax_percent", must be greater than or equal to 0.')
172
- end
173
-
174
162
  invalid_properties
175
163
  end
176
164
 
@@ -178,43 +166,12 @@ module DearInventoryRuby
178
166
  # @return true if the model is valid
179
167
  def valid?
180
168
  return false if @name.nil?
181
- return false if @name.to_s.length > 50
182
169
  return false if @account.nil?
183
170
  return false if @is_active.nil?
184
171
  return false if @tax_inclusive.nil?
185
- return false if !@tax_percent.nil? && @tax_percent > 100
186
- return false if !@tax_percent.nil? && @tax_percent < 0
187
172
  true
188
173
  end
189
174
 
190
- # Custom attribute writer method with validation
191
- # @param [Object] name Value to be assigned
192
- def name=(name)
193
- if name.nil?
194
- fail ArgumentError, 'name cannot be nil'
195
- end
196
-
197
- if name.to_s.length > 50
198
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 50.'
199
- end
200
-
201
- @name = name
202
- end
203
-
204
- # Custom attribute writer method with validation
205
- # @param [Object] tax_percent Value to be assigned
206
- def tax_percent=(tax_percent)
207
- if !tax_percent.nil? && tax_percent > 100
208
- fail ArgumentError, 'invalid value for "tax_percent", must be smaller than or equal to 100.'
209
- end
210
-
211
- if !tax_percent.nil? && tax_percent < 0
212
- fail ArgumentError, 'invalid value for "tax_percent", must be greater than or equal to 0.'
213
- end
214
-
215
- @tax_percent = tax_percent
216
- end
217
-
218
175
  # Checks equality by comparing each attribute.
219
176
  # @param [Object] Object to be compared
220
177
  def ==(o)
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module DearInventoryRuby
14
- VERSION = '0.2.7'
14
+ VERSION = '0.2.8'
15
15
  end
data/spec/.DS_Store CHANGED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dear-inventory-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nhan Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-17 00:00:00.000000000 Z
11
+ date: 2022-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  - !ruby/object:Gem::Version
241
241
  version: '0'
242
242
  requirements: []
243
- rubygems_version: 3.3.10
243
+ rubygems_version: 3.2.3
244
244
  signing_key:
245
245
  specification_version: 4
246
246
  summary: DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com