dear-inventory-ruby 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +4 -4
- data/docs/InventoryApi.md +8 -6
- data/lib/dear-inventory-ruby/api/inventory_api.rb +11 -8
- data/lib/dear-inventory-ruby/version.rb +1 -1
- data/spec/api/inventory_api_spec.rb +4 -3
- 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: 6ff6fd2166dfaa0d47768c396b6d0950f8641cb4217a9b550fda86a2c10e596a
|
4
|
+
data.tar.gz: 7c5bb9ac261515780aa137e756c0ed97e61df92bc00bbde6fc5c757565468ada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a6c9374a87ab7763ff5f8c9c441f9549e4d6fe11850b45aebc7d79d38d024afbdf3f385743a0f531dc1ecbb9996823be3d7d32d40e02f05104f5d4899c03d81
|
7
|
+
data.tar.gz: 981a79e7bd7061091193f3b0530d40fb9605016594afa38813746ca560a795890a06bf5fd7115fd885d319762504007ccaf7da58b57bdd84777be8e53c2d88c2
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,23 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.1.7] - 2020-02-16
|
6
|
+
|
7
|
+
- Fix params of /account GET
|
8
|
+
|
9
|
+
## [0.1.6] - 2020-02-15
|
10
|
+
|
11
|
+
- Add new endpoints and models: Account, PaymentTerm, Success, Tax, TaxComponent
|
12
|
+
- Update some models: Address, Contact, Customer
|
13
|
+
|
14
|
+
## [0.1.5] - 2020-02-13
|
15
|
+
|
16
|
+
- Show basic log when calling API
|
17
|
+
|
18
|
+
## [0.1.4] - 2020-02-13
|
19
|
+
|
20
|
+
- Rename CustomerApi to InventoryApi
|
21
|
+
|
5
22
|
## [0.1.3] - 2020-02-12
|
6
23
|
|
7
24
|
- Add POST, PUT for customer endpoint.
|
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.7
|
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.7.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.7.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.7'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
data/docs/InventoryApi.md
CHANGED
@@ -291,7 +291,7 @@ end
|
|
291
291
|
|
292
292
|
api_instance = DearInventoryRuby::InventoryApi.new
|
293
293
|
opts = {
|
294
|
-
code: 'code_example' # String |
|
294
|
+
code: 'code_example' # String | Default is nil
|
295
295
|
}
|
296
296
|
|
297
297
|
begin
|
@@ -308,7 +308,7 @@ end
|
|
308
308
|
|
309
309
|
Name | Type | Description | Notes
|
310
310
|
------------- | ------------- | ------------- | -------------
|
311
|
-
**code** | **String**|
|
311
|
+
**code** | **String**| Default is nil | [optional]
|
312
312
|
|
313
313
|
### Return type
|
314
314
|
|
@@ -411,9 +411,10 @@ api_instance = DearInventoryRuby::InventoryApi.new
|
|
411
411
|
opts = {
|
412
412
|
page: '1', # String | Default is 1
|
413
413
|
limit: '100', # String | Default is 100
|
414
|
-
|
414
|
+
code: 'code_example', # String | Default is nil
|
415
415
|
name: 'name_example', # String | Default is nil
|
416
|
-
|
416
|
+
type: 'type_example', # String | Default is nil
|
417
|
+
status: 'status_example' # String | Default is nil
|
417
418
|
}
|
418
419
|
|
419
420
|
begin
|
@@ -432,9 +433,10 @@ Name | Type | Description | Notes
|
|
432
433
|
------------- | ------------- | ------------- | -------------
|
433
434
|
**page** | **String**| Default is 1 | [optional] [default to '1']
|
434
435
|
**limit** | **String**| Default is 100 | [optional] [default to '100']
|
435
|
-
**
|
436
|
+
**code** | **String**| Default is nil | [optional]
|
436
437
|
**name** | **String**| Default is nil | [optional]
|
437
|
-
**
|
438
|
+
**type** | **String**| Default is nil | [optional]
|
439
|
+
**status** | **String**| Default is nil | [optional]
|
438
440
|
|
439
441
|
### Return type
|
440
442
|
|
@@ -281,7 +281,7 @@ module DearInventoryRuby
|
|
281
281
|
|
282
282
|
# Allows you to delete an Account
|
283
283
|
# @param [Hash] opts the optional parameters
|
284
|
-
# @option opts [String] :code
|
284
|
+
# @option opts [String] :code Default is nil
|
285
285
|
# @return [Success]
|
286
286
|
def delete_account(opts = {})
|
287
287
|
data, _status_code, _headers = delete_account_with_http_info(opts)
|
@@ -290,7 +290,7 @@ module DearInventoryRuby
|
|
290
290
|
|
291
291
|
# Allows you to delete an Account
|
292
292
|
# @param [Hash] opts the optional parameters
|
293
|
-
# @option opts [String] :code
|
293
|
+
# @option opts [String] :code Default is nil
|
294
294
|
# @return [Array<(Success, Integer, Hash)>] Success data, response status code and response headers
|
295
295
|
def delete_account_with_http_info(opts = {})
|
296
296
|
if @api_client.config.debugging
|
@@ -397,9 +397,10 @@ module DearInventoryRuby
|
|
397
397
|
# @param [Hash] opts the optional parameters
|
398
398
|
# @option opts [String] :page Default is 1 (default to '1')
|
399
399
|
# @option opts [String] :limit Default is 100 (default to '100')
|
400
|
-
# @option opts [String] :
|
400
|
+
# @option opts [String] :code Default is nil
|
401
401
|
# @option opts [String] :name Default is nil
|
402
|
-
# @option opts [String] :
|
402
|
+
# @option opts [String] :type Default is nil
|
403
|
+
# @option opts [String] :status Default is nil
|
403
404
|
# @return [Accounts]
|
404
405
|
def get_accounts(opts = {})
|
405
406
|
data, _status_code, _headers = get_accounts_with_http_info(opts)
|
@@ -410,9 +411,10 @@ module DearInventoryRuby
|
|
410
411
|
# @param [Hash] opts the optional parameters
|
411
412
|
# @option opts [String] :page Default is 1
|
412
413
|
# @option opts [String] :limit Default is 100
|
413
|
-
# @option opts [String] :
|
414
|
+
# @option opts [String] :code Default is nil
|
414
415
|
# @option opts [String] :name Default is nil
|
415
|
-
# @option opts [String] :
|
416
|
+
# @option opts [String] :type Default is nil
|
417
|
+
# @option opts [String] :status Default is nil
|
416
418
|
# @return [Array<(Accounts, Integer, Hash)>] Accounts data, response status code and response headers
|
417
419
|
def get_accounts_with_http_info(opts = {})
|
418
420
|
if @api_client.config.debugging
|
@@ -425,9 +427,10 @@ module DearInventoryRuby
|
|
425
427
|
query_params = opts[:query_params] || {}
|
426
428
|
query_params[:'Page'] = opts[:'page'] if !opts[:'page'].nil?
|
427
429
|
query_params[:'Limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
428
|
-
query_params[:'
|
430
|
+
query_params[:'Code'] = opts[:'code'] if !opts[:'code'].nil?
|
429
431
|
query_params[:'Name'] = opts[:'name'] if !opts[:'name'].nil?
|
430
|
-
query_params[:'
|
432
|
+
query_params[:'Type'] = opts[:'type'] if !opts[:'type'].nil?
|
433
|
+
query_params[:'Status'] = opts[:'status'] if !opts[:'status'].nil?
|
431
434
|
|
432
435
|
# header parameters
|
433
436
|
header_params = opts[:header_params] || {}
|
@@ -83,7 +83,7 @@ describe 'InventoryApi' do
|
|
83
83
|
# unit tests for delete_account
|
84
84
|
# Allows you to delete an Account
|
85
85
|
# @param [Hash] opts the optional parameters
|
86
|
-
# @option opts [String] :code
|
86
|
+
# @option opts [String] :code Default is nil
|
87
87
|
# @return [Success]
|
88
88
|
describe 'delete_account test' do
|
89
89
|
it 'should work' do
|
@@ -107,9 +107,10 @@ describe 'InventoryApi' do
|
|
107
107
|
# @param [Hash] opts the optional parameters
|
108
108
|
# @option opts [String] :page Default is 1
|
109
109
|
# @option opts [String] :limit Default is 100
|
110
|
-
# @option opts [String] :
|
110
|
+
# @option opts [String] :code Default is nil
|
111
111
|
# @option opts [String] :name Default is nil
|
112
|
-
# @option opts [String] :
|
112
|
+
# @option opts [String] :type Default is nil
|
113
|
+
# @option opts [String] :status Default is nil
|
113
114
|
# @return [Accounts]
|
114
115
|
describe 'get_accounts test' do
|
115
116
|
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.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nhan Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|