dear-inventory-ruby 0.1.15 → 0.1.16

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: 1520077f652087124545b720ac13cd528fdf40dc9985ce8b8acc5fe3ffaef322
4
- data.tar.gz: c5887cbe8fb6152b86a25a3c754940d52e905d7c8934a9b713ab46628983860d
3
+ metadata.gz: 8b834f6ab3bf12c608c9240ddf4270fce75f960cb7143d865f825da063414316
4
+ data.tar.gz: 5bf7c451d1a81ce76feaa63db7c4f76f633da5d8d87b9ffa07b7eee27f8c35a1
5
5
  SHA512:
6
- metadata.gz: 6ed901fecd45e0eef5651040a5f5a6a1b5c7deaa8599f72afba5a64d24824525a3648bde1d41b6926311a3841693026ff3e03f5a4625cb39e9fdbd2b3dfdf6a4
7
- data.tar.gz: 5dfa595e9d4c8a869e7ac7d496bf42e8e41ddde652d81ca63b3d3010413794cef202ea62738a6575fbaecfa88861aa4d53305a73ce71030480b15c3da09df4a5
6
+ metadata.gz: 89f027d1132209a90d492ccd13819c9c787a5d48e47fcca3c2a12460c619be2648cda857a6ed28801837370f9b32ebc870977cea3d635737a8bc38e13a96af5c
7
+ data.tar.gz: e780a8342d238ce90cab70a64388857cb52bb28c80e83978e6911cbe0799e114a7d991b4c499e7bc3dc64caeaa1ebb1250876d067f6f8a871ed6484930e8981b
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.1.16] - 2021-05-14
6
+
7
+ - Remove require `ENUM` for `WeightUnit`.
8
+
5
9
  ## [0.1.15] - 2021-02-22
6
10
 
7
11
  - Add new endpoint GET `/sale/invoice` and some related models.
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.15
10
+ - Package version: 0.1.16
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.15.gem
27
+ gem install ./dear-inventory-ruby-0.1.16.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./dear-inventory-ruby-0.1.15.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./dear-inventory-ruby-0.1.16.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.15'
36
+ gem 'dear-inventory-ruby', '~> 0.1.16'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -135,7 +135,6 @@ Class | Method | HTTP request | Description
135
135
  - [DearInventoryRuby::Tax](docs/Tax.md)
136
136
  - [DearInventoryRuby::TaxComponent](docs/TaxComponent.md)
137
137
  - [DearInventoryRuby::Taxes](docs/Taxes.md)
138
- - [DearInventoryRuby::WeightUnit](docs/WeightUnit.md)
139
138
 
140
139
 
141
140
  ## Documentation for Authorization
data/docs/Me.md CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **company** | **String** | Your company name | [optional]
8
8
  **currency** | **String** | Your company base currency | [optional]
9
9
  **time_zone** | **String** | Time Zone where your company located | [optional]
10
- **default_weight_units** | [**WeightUnit**](WeightUnit.md) | | [optional]
10
+ **default_weight_units** | **String** | Unit of measure for unit weight | [optional]
11
11
  **default_dimensions_units** | [**DimensionsUnit**](DimensionsUnit.md) | | [optional]
12
12
  **lock_date** | **Date** | Financial settings option. Indicates date period start from what you can change transactional data. Formatted in Tenant date format | [optional]
13
13
  **opening_balance_date** | **Date** | Date of opening balances in the system. Formatted in Tenant date format | [optional]
@@ -39,7 +39,6 @@ require 'dear-inventory-ruby/models/success'
39
39
  require 'dear-inventory-ruby/models/tax'
40
40
  require 'dear-inventory-ruby/models/tax_component'
41
41
  require 'dear-inventory-ruby/models/taxes'
42
- require 'dear-inventory-ruby/models/weight_unit'
43
42
 
44
43
  # APIs
45
44
  require 'dear-inventory-ruby/api/inventory_api'
@@ -23,6 +23,7 @@ module DearInventoryRuby
23
23
  # Time Zone where your company located
24
24
  attr_accessor :time_zone
25
25
 
26
+ # Unit of measure for unit weight
26
27
  attr_accessor :default_weight_units
27
28
 
28
29
  attr_accessor :default_dimensions_units
@@ -52,7 +53,7 @@ module DearInventoryRuby
52
53
  :'company' => :'String',
53
54
  :'currency' => :'String',
54
55
  :'time_zone' => :'String',
55
- :'default_weight_units' => :'WeightUnit',
56
+ :'default_weight_units' => :'String',
56
57
  :'default_dimensions_units' => :'DimensionsUnit',
57
58
  :'lock_date' => :'Date',
58
59
  :'opening_balance_date' => :'Date'
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module DearInventoryRuby
14
- VERSION = '0.1.15'
14
+ VERSION = '0.1.16'
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.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nhan Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-22 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -101,7 +101,6 @@ files:
101
101
  - docs/Tax.md
102
102
  - docs/TaxComponent.md
103
103
  - docs/Taxes.md
104
- - docs/WeightUnit.md
105
104
  - git_push.sh
106
105
  - lib/dear-inventory-ruby.rb
107
106
  - lib/dear-inventory-ruby/api/inventory_api.rb
@@ -130,7 +129,6 @@ files:
130
129
  - lib/dear-inventory-ruby/models/tax.rb
131
130
  - lib/dear-inventory-ruby/models/tax_component.rb
132
131
  - lib/dear-inventory-ruby/models/taxes.rb
133
- - lib/dear-inventory-ruby/models/weight_unit.rb
134
132
  - lib/dear-inventory-ruby/version.rb
135
133
  - spec/.DS_Store
136
134
  - spec/api/inventory_api_spec.rb
@@ -158,7 +156,6 @@ files:
158
156
  - spec/models/tax_component_spec.rb
159
157
  - spec/models/tax_spec.rb
160
158
  - spec/models/taxes_spec.rb
161
- - spec/models/weight_unit_spec.rb
162
159
  - spec/spec_helper.rb
163
160
  homepage: https://inventory.dearsystems.com
164
161
  licenses:
@@ -211,7 +208,6 @@ test_files:
211
208
  - spec/models/sale_invoices_spec.rb
212
209
  - spec/models/success_spec.rb
213
210
  - spec/models/price_tier_spec.rb
214
- - spec/models/weight_unit_spec.rb
215
211
  - spec/models/address_spec.rb
216
212
  - spec/models/price_tiers_spec.rb
217
213
  - spec/spec_helper.rb
data/docs/WeightUnit.md DELETED
@@ -1,16 +0,0 @@
1
- # DearInventoryRuby::WeightUnit
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
-
8
- ## Code Sample
9
-
10
- ```ruby
11
- require 'DearInventoryRuby'
12
-
13
- instance = DearInventoryRuby::WeightUnit.new()
14
- ```
15
-
16
-
@@ -1,39 +0,0 @@
1
- =begin
2
- #DEAR Inventory API
3
-
4
- #This specifing endpoints for DEAR Inventory API
5
-
6
- The version of the OpenAPI document: 2.0.0
7
- Contact: nnhansg@gmail.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module DearInventoryRuby
16
- class WeightUnit
17
- OZ = "oz".freeze
18
- MG = "mg".freeze
19
- KG = "kg".freeze
20
- LB = "lb".freeze
21
- G = "g".freeze
22
-
23
- # Builds the enum from string
24
- # @param [String] The enum value in the form of the string
25
- # @return [String] The enum value
26
- def self.build_from_hash(value)
27
- new.build_from_hash(value)
28
- end
29
-
30
- # Builds the enum from string
31
- # @param [String] The enum value in the form of the string
32
- # @return [String] The enum value
33
- def build_from_hash(value)
34
- constantValues = WeightUnit.constants.select { |c| WeightUnit::const_get(c) == value }
35
- raise "Invalid ENUM value #{value} for class #WeightUnit" if constantValues.empty?
36
- value
37
- end
38
- end
39
- end
@@ -1,35 +0,0 @@
1
- =begin
2
- #DEAR Inventory API
3
-
4
- #This specifing endpoints for DEAR Inventory API
5
-
6
- The version of the OpenAPI document: 2.0.0
7
- Contact: nnhansg@gmail.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for DearInventoryRuby::WeightUnit
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe 'WeightUnit' do
21
- before do
22
- # run before each test
23
- @instance = DearInventoryRuby::WeightUnit.new
24
- end
25
-
26
- after do
27
- # run after each test
28
- end
29
-
30
- describe 'test an instance of WeightUnit' do
31
- it 'should create an instance of WeightUnit' do
32
- expect(@instance).to be_instance_of(DearInventoryRuby::WeightUnit)
33
- end
34
- end
35
- end