dear-inventory-ruby 0.2.6 → 0.2.8

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: 665772a1eec52c5945c0e6106d4d169e9b310a2046d1974d67f18f4044d779af
4
- data.tar.gz: 914df67acb8c2358a21af9ecbf1aafd575cfa2ea01b17f4b3468ddab1489bd38
3
+ metadata.gz: 55910dcce013a8a19e74b7a2bc2d152e7ed86815c3329b22516286b61c79efbe
4
+ data.tar.gz: 7a171b04aa4d7f83431a3ba967cc36a1ca9e8e349726bd1660058d30130df798
5
5
  SHA512:
6
- metadata.gz: 6ac843e11c132abf8137314fa384f9fe68c1e3fb18db81b115a08a8a06681fa77d349e7e392e35717043b31a6915c3854938faff85df2c8d90654a04b8ff5244
7
- data.tar.gz: 5a14e0e4c109c10847ec9996ee656427021d46abe4dd1bad6e4708fe91e15078d775881dea00b561cdc1b0059b775bd737f3b0342c526c9d03ae39b8c40f3c59
6
+ metadata.gz: 56225a5d84b30c6d337ba8256cab93cb7df36dc945ba31591a9a6704a0838e1a8f44eaa12fa06754fc2dd715a54165c3c22708d9002f86a95fa3a582869cf228
7
+ data.tar.gz: c4c81d7d9305a1fc5886e90961a1e3aae39147a9410e36522fdc6c1ab1c6d97a0c1a5278e2cfa6a78f1a2b4a491d2d48731b743a521587264faf3255a6214667
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
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
+
9
+ ## [0.2.7] - 2022-08-17
10
+
11
+ - Support parameter `ContactFilter` and `IncludeProductPrices` for the endpoint GET `/customer`
12
+
5
13
  ## [0.2.6] - 2022-07-14
6
14
 
7
15
  - Update final totals of each invoice for the endpoint GET `/sale`
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.6
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.6.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.6.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.6'
36
+ gem 'dear-inventory-ruby', '~> 0.2.8'
37
37
 
38
38
  ### Install from Git
39
39
 
data/docs/InventoryApi.md CHANGED
@@ -987,8 +987,10 @@ opts = {
987
987
  limit: '100', # String | Default is 100
988
988
  id: 'id_example', # String | Default is nil
989
989
  name: 'name_example', # String | Default is nil
990
+ contact_filter: 'contact_filter_example', # String | Default is nil
990
991
  modified_since: 'modified_since_example', # String | Default is nil
991
- include_deprecated: 'false' # String | Default is false
992
+ include_deprecated: 'false', # String | Default is false
993
+ include_product_prices: 'false' # String | Default is false
992
994
  }
993
995
 
994
996
  begin
@@ -1009,8 +1011,10 @@ Name | Type | Description | Notes
1009
1011
  **limit** | **String**| Default is 100 | [optional] [default to '100']
1010
1012
  **id** | **String**| Default is nil | [optional]
1011
1013
  **name** | **String**| Default is nil | [optional]
1014
+ **contact_filter** | **String**| Default is nil | [optional]
1012
1015
  **modified_since** | **String**| Default is nil | [optional]
1013
1016
  **include_deprecated** | **String**| Default is false | [optional] [default to 'false']
1017
+ **include_product_prices** | **String**| Default is false | [optional] [default to 'false']
1014
1018
 
1015
1019
  ### Return type
1016
1020
 
@@ -973,8 +973,10 @@ module DearInventoryRuby
973
973
  # @option opts [String] :limit Default is 100 (default to '100')
974
974
  # @option opts [String] :id Default is nil
975
975
  # @option opts [String] :name Default is nil
976
+ # @option opts [String] :contact_filter Default is nil
976
977
  # @option opts [String] :modified_since Default is nil
977
978
  # @option opts [String] :include_deprecated Default is false (default to 'false')
979
+ # @option opts [String] :include_product_prices Default is false (default to 'false')
978
980
  # @return [Customers]
979
981
  def get_customers(opts = {})
980
982
  data, _status_code, _headers = get_customers_with_http_info(opts)
@@ -987,8 +989,10 @@ module DearInventoryRuby
987
989
  # @option opts [String] :limit Default is 100
988
990
  # @option opts [String] :id Default is nil
989
991
  # @option opts [String] :name Default is nil
992
+ # @option opts [String] :contact_filter Default is nil
990
993
  # @option opts [String] :modified_since Default is nil
991
994
  # @option opts [String] :include_deprecated Default is false
995
+ # @option opts [String] :include_product_prices Default is false
992
996
  # @return [Array<(Customers, Integer, Hash)>] Customers data, response status code and response headers
993
997
  def get_customers_with_http_info(opts = {})
994
998
  if @api_client.config.debugging
@@ -1003,8 +1007,10 @@ module DearInventoryRuby
1003
1007
  query_params[:'Limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1004
1008
  query_params[:'ID'] = opts[:'id'] if !opts[:'id'].nil?
1005
1009
  query_params[:'Name'] = opts[:'name'] if !opts[:'name'].nil?
1010
+ query_params[:'ContactFilter'] = opts[:'contact_filter'] if !opts[:'contact_filter'].nil?
1006
1011
  query_params[:'ModifiedSince'] = opts[:'modified_since'] if !opts[:'modified_since'].nil?
1007
1012
  query_params[:'IncludeDeprecated'] = opts[:'include_deprecated'] if !opts[:'include_deprecated'].nil?
1013
+ query_params[:'IncludeProductPrices'] = opts[:'include_product_prices'] if !opts[:'include_product_prices'].nil?
1008
1014
 
1009
1015
  # header parameters
1010
1016
  header_params = opts[:header_params] || {}
@@ -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.6'
14
+ VERSION = '0.2.8'
15
15
  end
data/spec/.DS_Store CHANGED
Binary file
@@ -220,8 +220,10 @@ describe 'InventoryApi' do
220
220
  # @option opts [String] :limit Default is 100
221
221
  # @option opts [String] :id Default is nil
222
222
  # @option opts [String] :name Default is nil
223
+ # @option opts [String] :contact_filter Default is nil
223
224
  # @option opts [String] :modified_since Default is nil
224
225
  # @option opts [String] :include_deprecated Default is false
226
+ # @option opts [String] :include_product_prices Default is false
225
227
  # @return [Customers]
226
228
  describe 'get_customers test' do
227
229
  it 'should work' do
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.6
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nhan Nguyen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-14 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
@@ -225,7 +225,7 @@ metadata:
225
225
  source_code_uri: https://github.com/nnhansg/dear-ruby
226
226
  changelog_uri: https://github.com/nnhansg/dear-ruby/blob/master/CHANGELOG.md
227
227
  bug_tracker_uri: https://github.com/nnhansg/dear-ruby/issues
228
- post_install_message:
228
+ post_install_message:
229
229
  rdoc_options: []
230
230
  require_paths:
231
231
  - lib
@@ -240,8 +240,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  - !ruby/object:Gem::Version
241
241
  version: '0'
242
242
  requirements: []
243
- rubygems_version: 3.1.6
244
- signing_key:
243
+ rubygems_version: 3.2.3
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
247
247
  test_files: