dear-inventory-ruby 0.1.15 → 0.1.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -10
- data/README.md +4 -7
- data/dear-inventory-ruby.gemspec +1 -1
- data/docs/InventoryApi.md +2 -0
- data/docs/Me.md +2 -2
- data/lib/.DS_Store +0 -0
- data/lib/dear-inventory-ruby.rb +0 -3
- data/lib/dear-inventory-ruby/.DS_Store +0 -0
- data/lib/dear-inventory-ruby/api/inventory_api.rb +3 -0
- data/lib/dear-inventory-ruby/models/account.rb +0 -34
- data/lib/dear-inventory-ruby/models/customer.rb +0 -34
- data/lib/dear-inventory-ruby/models/me.rb +4 -2
- data/lib/dear-inventory-ruby/models/payment_term.rb +0 -34
- data/lib/dear-inventory-ruby/version.rb +1 -1
- data/spec/.DS_Store +0 -0
- data/spec/api/inventory_api_spec.rb +1 -0
- data/spec/models/account_spec.rb +0 -4
- data/spec/models/customer_spec.rb +0 -4
- data/spec/models/payment_term_spec.rb +0 -4
- metadata +12 -16
- data/docs/CurrencyCode.md +0 -16
- data/docs/DimensionsUnit.md +0 -16
- data/docs/WeightUnit.md +0 -16
- data/lib/dear-inventory-ruby/models/currency_code.rb +0 -196
- data/lib/dear-inventory-ruby/models/dimensions_unit.rb +0 -42
- data/lib/dear-inventory-ruby/models/weight_unit.rb +0 -39
- data/spec/models/currency_code_spec.rb +0 -35
- data/spec/models/dimensions_unit_spec.rb +0 -35
- data/spec/models/weight_unit_spec.rb +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eed0b890d85866c7d4ba1448fd07fe0044c388fb7059194404c7f416702467ad
|
4
|
+
data.tar.gz: b25ca34825df3ee135131ab68e08c24eef35baf4836fb82aad9c24c2c703a107
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0877bf0d9f3145dd2fefae1a6de5c52e9fe5a5bb68a7e6d2f4e27ad8336aef6c70ae3b5bbe1447cf713044563ed1c41c8fa38dddf2d5d763871ff2cfcb16ef26'
|
7
|
+
data.tar.gz: b7398d4bd750075243b8238bcd9eae99dce44939ddbc6613b76736bf4612adad2266904180ca9969f13493af00db0fa0127f57be1ea7c07458ae112455e70e0a
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,26 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.1.19.1] - 2021-07-23
|
6
|
+
|
7
|
+
- Update gem version.
|
8
|
+
|
9
|
+
## [0.1.19] - 2021-07-23
|
10
|
+
|
11
|
+
- Support `Class` filter for getting `accounts`.
|
12
|
+
|
13
|
+
## [0.1.18] - 2021-06-07
|
14
|
+
|
15
|
+
- Update `faraday` version.
|
16
|
+
|
17
|
+
## [0.1.17] - 2021-05-25
|
18
|
+
|
19
|
+
- Remove all `ENUM`.
|
20
|
+
|
21
|
+
## [0.1.16] - 2021-05-14
|
22
|
+
|
23
|
+
- Remove require `ENUM` for `WeightUnit`.
|
24
|
+
|
5
25
|
## [0.1.15] - 2021-02-22
|
6
26
|
|
7
27
|
- Add new endpoint GET `/sale/invoice` and some related models.
|
@@ -21,31 +41,31 @@ All notable changes to this project will be documented in this file.
|
|
21
41
|
|
22
42
|
## [0.1.11] - 2020-09-21
|
23
43
|
|
24
|
-
- Update limit of Comments in Customer model.
|
25
|
-
- Remove required conditions of Address Type in Customer Address model.
|
44
|
+
- Update limit of `Comments` in `Customer` model.
|
45
|
+
- Remove required conditions of `Address Type` in `Customer Address` model.
|
26
46
|
|
27
47
|
## [0.1.10] - 2020-09-04
|
28
48
|
|
29
|
-
- Add some fields to Contact and Customer models.
|
49
|
+
- Add some fields to `Contact` and `Customer` models.
|
30
50
|
- Update OpenAPI Generator version 4.3.1
|
31
51
|
|
32
52
|
## [0.1.9] - 2020-04-12
|
33
53
|
|
34
|
-
- Add new endpoint and model: Me
|
54
|
+
- Add new endpoint and model: `Me`
|
35
55
|
- Update OpenAPI Generator version 4.3.0
|
36
56
|
|
37
57
|
## [0.1.8] - 2020-02-16
|
38
58
|
|
39
|
-
- Remove the validations of attributes: Type
|
59
|
+
- Remove the validations of attributes: `Type`, `SystemAccount` because Dear API docs is not mapping for the result of API returned
|
40
60
|
|
41
61
|
## [0.1.7] - 2020-02-16
|
42
62
|
|
43
|
-
- Fix params of
|
63
|
+
- Fix params of `/account` GET
|
44
64
|
|
45
65
|
## [0.1.6] - 2020-02-15
|
46
66
|
|
47
|
-
- Add new endpoints and models: Account
|
48
|
-
- Update some models: Address
|
67
|
+
- Add new endpoints and models: `Account`, `PaymentTerm`, `Success`, `Tax`, `TaxComponent`
|
68
|
+
- Update some models: `Address`, `Contact`, `Customer`
|
49
69
|
|
50
70
|
## [0.1.5] - 2020-02-13
|
51
71
|
|
@@ -53,11 +73,11 @@ All notable changes to this project will be documented in this file.
|
|
53
73
|
|
54
74
|
## [0.1.4] - 2020-02-13
|
55
75
|
|
56
|
-
- Rename CustomerApi to InventoryApi
|
76
|
+
- Rename `CustomerApi` to `InventoryApi`
|
57
77
|
|
58
78
|
## [0.1.3] - 2020-02-12
|
59
79
|
|
60
|
-
- Add POST, PUT for customer endpoint.
|
80
|
+
- Add POST, PUT for `customer` endpoint.
|
61
81
|
|
62
82
|
## [0.1.2] - 2020-02-12
|
63
83
|
|
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.19.1
|
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.19.1.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.19.1.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.19.1'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -117,10 +117,8 @@ Class | Method | HTTP request | Description
|
|
117
117
|
- [DearInventoryRuby::Accounts](docs/Accounts.md)
|
118
118
|
- [DearInventoryRuby::Address](docs/Address.md)
|
119
119
|
- [DearInventoryRuby::Contact](docs/Contact.md)
|
120
|
-
- [DearInventoryRuby::CurrencyCode](docs/CurrencyCode.md)
|
121
120
|
- [DearInventoryRuby::Customer](docs/Customer.md)
|
122
121
|
- [DearInventoryRuby::Customers](docs/Customers.md)
|
123
|
-
- [DearInventoryRuby::DimensionsUnit](docs/DimensionsUnit.md)
|
124
122
|
- [DearInventoryRuby::Error](docs/Error.md)
|
125
123
|
- [DearInventoryRuby::Me](docs/Me.md)
|
126
124
|
- [DearInventoryRuby::PaymentTerm](docs/PaymentTerm.md)
|
@@ -135,7 +133,6 @@ Class | Method | HTTP request | Description
|
|
135
133
|
- [DearInventoryRuby::Tax](docs/Tax.md)
|
136
134
|
- [DearInventoryRuby::TaxComponent](docs/TaxComponent.md)
|
137
135
|
- [DearInventoryRuby::Taxes](docs/Taxes.md)
|
138
|
-
- [DearInventoryRuby::WeightUnit](docs/WeightUnit.md)
|
139
136
|
|
140
137
|
|
141
138
|
## Documentation for Authorization
|
data/dear-inventory-ruby.gemspec
CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
|
|
33
33
|
|
34
34
|
s.required_ruby_version = ">= 1.9"
|
35
35
|
|
36
|
-
s.add_runtime_dependency 'faraday', '>= 0.
|
36
|
+
s.add_runtime_dependency 'faraday', '~> 1.0', '>= 1.0.1'
|
37
37
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
38
38
|
|
39
39
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
data/docs/InventoryApi.md
CHANGED
@@ -416,6 +416,7 @@ opts = {
|
|
416
416
|
limit: '100', # String | Default is 100
|
417
417
|
code: 'code_example', # String | Default is nil
|
418
418
|
name: 'name_example', # String | Default is nil
|
419
|
+
_class: '_class_example', # String | Default is nil
|
419
420
|
type: 'type_example', # String | Default is nil
|
420
421
|
status: 'status_example' # String | Default is nil
|
421
422
|
}
|
@@ -438,6 +439,7 @@ Name | Type | Description | Notes
|
|
438
439
|
**limit** | **String**| Default is 100 | [optional] [default to '100']
|
439
440
|
**code** | **String**| Default is nil | [optional]
|
440
441
|
**name** | **String**| Default is nil | [optional]
|
442
|
+
**_class** | **String**| Default is nil | [optional]
|
441
443
|
**type** | **String**| Default is nil | [optional]
|
442
444
|
**status** | **String**| Default is nil | [optional]
|
443
445
|
|
data/docs/Me.md
CHANGED
@@ -7,8 +7,8 @@ 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** |
|
11
|
-
**default_dimensions_units** |
|
10
|
+
**default_weight_units** | **String** | Unit of measure for unit weight | [optional]
|
11
|
+
**default_dimensions_units** | **String** | Unit of measure for unit length/width/height | [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]
|
14
14
|
|
data/lib/.DS_Store
ADDED
Binary file
|
data/lib/dear-inventory-ruby.rb
CHANGED
@@ -21,10 +21,8 @@ require 'dear-inventory-ruby/models/account'
|
|
21
21
|
require 'dear-inventory-ruby/models/accounts'
|
22
22
|
require 'dear-inventory-ruby/models/address'
|
23
23
|
require 'dear-inventory-ruby/models/contact'
|
24
|
-
require 'dear-inventory-ruby/models/currency_code'
|
25
24
|
require 'dear-inventory-ruby/models/customer'
|
26
25
|
require 'dear-inventory-ruby/models/customers'
|
27
|
-
require 'dear-inventory-ruby/models/dimensions_unit'
|
28
26
|
require 'dear-inventory-ruby/models/error'
|
29
27
|
require 'dear-inventory-ruby/models/me'
|
30
28
|
require 'dear-inventory-ruby/models/payment_term'
|
@@ -39,7 +37,6 @@ require 'dear-inventory-ruby/models/success'
|
|
39
37
|
require 'dear-inventory-ruby/models/tax'
|
40
38
|
require 'dear-inventory-ruby/models/tax_component'
|
41
39
|
require 'dear-inventory-ruby/models/taxes'
|
42
|
-
require 'dear-inventory-ruby/models/weight_unit'
|
43
40
|
|
44
41
|
# APIs
|
45
42
|
require 'dear-inventory-ruby/api/inventory_api'
|
Binary file
|
@@ -399,6 +399,7 @@ module DearInventoryRuby
|
|
399
399
|
# @option opts [String] :limit Default is 100 (default to '100')
|
400
400
|
# @option opts [String] :code Default is nil
|
401
401
|
# @option opts [String] :name Default is nil
|
402
|
+
# @option opts [String] :_class Default is nil
|
402
403
|
# @option opts [String] :type Default is nil
|
403
404
|
# @option opts [String] :status Default is nil
|
404
405
|
# @return [Accounts]
|
@@ -413,6 +414,7 @@ module DearInventoryRuby
|
|
413
414
|
# @option opts [String] :limit Default is 100
|
414
415
|
# @option opts [String] :code Default is nil
|
415
416
|
# @option opts [String] :name Default is nil
|
417
|
+
# @option opts [String] :_class Default is nil
|
416
418
|
# @option opts [String] :type Default is nil
|
417
419
|
# @option opts [String] :status Default is nil
|
418
420
|
# @return [Array<(Accounts, Integer, Hash)>] Accounts data, response status code and response headers
|
@@ -429,6 +431,7 @@ module DearInventoryRuby
|
|
429
431
|
query_params[:'Limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
430
432
|
query_params[:'Code'] = opts[:'code'] if !opts[:'code'].nil?
|
431
433
|
query_params[:'Name'] = opts[:'name'] if !opts[:'name'].nil?
|
434
|
+
query_params[:'Class'] = opts[:'_class'] if !opts[:'_class'].nil?
|
432
435
|
query_params[:'Type'] = opts[:'type'] if !opts[:'type'].nil?
|
433
436
|
query_params[:'Status'] = opts[:'status'] if !opts[:'status'].nil?
|
434
437
|
|
@@ -59,28 +59,6 @@ module DearInventoryRuby
|
|
59
59
|
# Currency. Read-only.
|
60
60
|
attr_accessor :currency
|
61
61
|
|
62
|
-
class EnumAttributeValidator
|
63
|
-
attr_reader :datatype
|
64
|
-
attr_reader :allowable_values
|
65
|
-
|
66
|
-
def initialize(datatype, allowable_values)
|
67
|
-
@allowable_values = allowable_values.map do |value|
|
68
|
-
case datatype.to_s
|
69
|
-
when /Integer/i
|
70
|
-
value.to_i
|
71
|
-
when /Float/i
|
72
|
-
value.to_f
|
73
|
-
else
|
74
|
-
value
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
def valid?(value)
|
80
|
-
!value || allowable_values.include?(value)
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
85
63
|
def self.attribute_map
|
86
64
|
{
|
@@ -255,8 +233,6 @@ module DearInventoryRuby
|
|
255
233
|
return false if @type.to_s.length > 50
|
256
234
|
return false if @status.nil?
|
257
235
|
return false if @status.to_s.length > 50
|
258
|
-
_class_validator = EnumAttributeValidator.new('String', ["ASSET", "LIABILITY", "EXPENSE", "EQUITY", "REVENUE"])
|
259
|
-
return false unless _class_validator.valid?(@_class)
|
260
236
|
true
|
261
237
|
end
|
262
238
|
|
@@ -316,16 +292,6 @@ module DearInventoryRuby
|
|
316
292
|
@status = status
|
317
293
|
end
|
318
294
|
|
319
|
-
# Custom attribute writer method checking allowed values (enum).
|
320
|
-
# @param [Object] _class Object to be assigned
|
321
|
-
def _class=(_class)
|
322
|
-
validator = EnumAttributeValidator.new('String', ["ASSET", "LIABILITY", "EXPENSE", "EQUITY", "REVENUE"])
|
323
|
-
unless validator.valid?(_class)
|
324
|
-
fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
|
325
|
-
end
|
326
|
-
@_class = _class
|
327
|
-
end
|
328
|
-
|
329
295
|
# Checks equality by comparing each attribute.
|
330
296
|
# @param [Object] Object to be compared
|
331
297
|
def ==(o)
|
@@ -110,28 +110,6 @@ module DearInventoryRuby
|
|
110
110
|
# List of contacts
|
111
111
|
attr_accessor :contacts
|
112
112
|
|
113
|
-
class EnumAttributeValidator
|
114
|
-
attr_reader :datatype
|
115
|
-
attr_reader :allowable_values
|
116
|
-
|
117
|
-
def initialize(datatype, allowable_values)
|
118
|
-
@allowable_values = allowable_values.map do |value|
|
119
|
-
case datatype.to_s
|
120
|
-
when /Integer/i
|
121
|
-
value.to_i
|
122
|
-
when /Float/i
|
123
|
-
value.to_f
|
124
|
-
else
|
125
|
-
value
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
def valid?(value)
|
131
|
-
!value || allowable_values.include?(value)
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
113
|
# Attribute mapping from ruby-style variable name to JSON key.
|
136
114
|
def self.attribute_map
|
137
115
|
{
|
@@ -413,8 +391,6 @@ module DearInventoryRuby
|
|
413
391
|
return false if @name.nil?
|
414
392
|
return false if @name.to_s.length > 256
|
415
393
|
return false if @status.nil?
|
416
|
-
status_validator = EnumAttributeValidator.new('String', ["Active", "Deprecated"])
|
417
|
-
return false unless status_validator.valid?(@status)
|
418
394
|
return false if @currency.nil?
|
419
395
|
return false if @payment_term.nil?
|
420
396
|
return false if @account_receivable.nil?
|
@@ -438,16 +414,6 @@ module DearInventoryRuby
|
|
438
414
|
@name = name
|
439
415
|
end
|
440
416
|
|
441
|
-
# Custom attribute writer method checking allowed values (enum).
|
442
|
-
# @param [Object] status Object to be assigned
|
443
|
-
def status=(status)
|
444
|
-
validator = EnumAttributeValidator.new('String', ["Active", "Deprecated"])
|
445
|
-
unless validator.valid?(status)
|
446
|
-
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
447
|
-
end
|
448
|
-
@status = status
|
449
|
-
end
|
450
|
-
|
451
417
|
# Custom attribute writer method with validation
|
452
418
|
# @param [Object] comments Value to be assigned
|
453
419
|
def comments=(comments)
|
@@ -23,8 +23,10 @@ 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
|
|
29
|
+
# Unit of measure for unit length/width/height
|
28
30
|
attr_accessor :default_dimensions_units
|
29
31
|
|
30
32
|
# Financial settings option. Indicates date period start from what you can change transactional data. Formatted in Tenant date format
|
@@ -52,8 +54,8 @@ module DearInventoryRuby
|
|
52
54
|
:'company' => :'String',
|
53
55
|
:'currency' => :'String',
|
54
56
|
:'time_zone' => :'String',
|
55
|
-
:'default_weight_units' => :'
|
56
|
-
:'default_dimensions_units' => :'
|
57
|
+
:'default_weight_units' => :'String',
|
58
|
+
:'default_dimensions_units' => :'String',
|
57
59
|
:'lock_date' => :'Date',
|
58
60
|
:'opening_balance_date' => :'Date'
|
59
61
|
}
|
@@ -32,28 +32,6 @@ module DearInventoryRuby
|
|
32
32
|
# Points that Payment Term is Default. `False` as default for POST.
|
33
33
|
attr_accessor :is_default
|
34
34
|
|
35
|
-
class EnumAttributeValidator
|
36
|
-
attr_reader :datatype
|
37
|
-
attr_reader :allowable_values
|
38
|
-
|
39
|
-
def initialize(datatype, allowable_values)
|
40
|
-
@allowable_values = allowable_values.map do |value|
|
41
|
-
case datatype.to_s
|
42
|
-
when /Integer/i
|
43
|
-
value.to_i
|
44
|
-
when /Float/i
|
45
|
-
value.to_f
|
46
|
-
else
|
47
|
-
value
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
def valid?(value)
|
53
|
-
!value || allowable_values.include?(value)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
58
36
|
def self.attribute_map
|
59
37
|
{
|
@@ -148,8 +126,6 @@ module DearInventoryRuby
|
|
148
126
|
def valid?
|
149
127
|
return false if @name.nil?
|
150
128
|
return false if @name.to_s.length > 256
|
151
|
-
method_validator = EnumAttributeValidator.new('String', ["number of days", "day of next month", "last day of next month", "days since the end of the month"])
|
152
|
-
return false unless method_validator.valid?(@method)
|
153
129
|
true
|
154
130
|
end
|
155
131
|
|
@@ -167,16 +143,6 @@ module DearInventoryRuby
|
|
167
143
|
@name = name
|
168
144
|
end
|
169
145
|
|
170
|
-
# Custom attribute writer method checking allowed values (enum).
|
171
|
-
# @param [Object] method Object to be assigned
|
172
|
-
def method=(method)
|
173
|
-
validator = EnumAttributeValidator.new('String', ["number of days", "day of next month", "last day of next month", "days since the end of the month"])
|
174
|
-
unless validator.valid?(method)
|
175
|
-
fail ArgumentError, "invalid value for \"method\", must be one of #{validator.allowable_values}."
|
176
|
-
end
|
177
|
-
@method = method
|
178
|
-
end
|
179
|
-
|
180
146
|
# Checks equality by comparing each attribute.
|
181
147
|
# @param [Object] Object to be compared
|
182
148
|
def ==(o)
|
data/spec/.DS_Store
CHANGED
Binary file
|
@@ -109,6 +109,7 @@ describe 'InventoryApi' do
|
|
109
109
|
# @option opts [String] :limit Default is 100
|
110
110
|
# @option opts [String] :code Default is nil
|
111
111
|
# @option opts [String] :name Default is nil
|
112
|
+
# @option opts [String] :_class Default is nil
|
112
113
|
# @option opts [String] :type Default is nil
|
113
114
|
# @option opts [String] :status Default is nil
|
114
115
|
# @return [Accounts]
|
data/spec/models/account_spec.rb
CHANGED
@@ -65,10 +65,6 @@ describe 'Account' do
|
|
65
65
|
describe 'test attribute "_class"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ASSET", "LIABILITY", "EXPENSE", "EQUITY", "REVENUE"])
|
69
|
-
# validator.allowable_values.each do |value|
|
70
|
-
# expect { @instance._class = value }.not_to raise_error
|
71
|
-
# end
|
72
68
|
end
|
73
69
|
end
|
74
70
|
|
@@ -47,10 +47,6 @@ describe 'Customer' do
|
|
47
47
|
describe 'test attribute "status"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Active", "Deprecated"])
|
51
|
-
# validator.allowable_values.each do |value|
|
52
|
-
# expect { @instance.status = value }.not_to raise_error
|
53
|
-
# end
|
54
50
|
end
|
55
51
|
end
|
56
52
|
|
@@ -53,10 +53,6 @@ describe 'PaymentTerm' do
|
|
53
53
|
describe 'test attribute "method"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["number of days", "day of next month", "last day of next month", "days since the end of the month"])
|
57
|
-
# validator.allowable_values.each do |value|
|
58
|
-
# expect { @instance.method = value }.not_to raise_error
|
59
|
-
# end
|
60
56
|
end
|
61
57
|
end
|
62
58
|
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.19.1
|
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-
|
11
|
+
date: 2021-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
17
20
|
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
22
|
+
version: 1.0.1
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
24
30
|
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
32
|
+
version: 1.0.1
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: json
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,10 +88,8 @@ files:
|
|
82
88
|
- docs/Accounts.md
|
83
89
|
- docs/Address.md
|
84
90
|
- docs/Contact.md
|
85
|
-
- docs/CurrencyCode.md
|
86
91
|
- docs/Customer.md
|
87
92
|
- docs/Customers.md
|
88
|
-
- docs/DimensionsUnit.md
|
89
93
|
- docs/Error.md
|
90
94
|
- docs/InventoryApi.md
|
91
95
|
- docs/Me.md
|
@@ -101,9 +105,10 @@ files:
|
|
101
105
|
- docs/Tax.md
|
102
106
|
- docs/TaxComponent.md
|
103
107
|
- docs/Taxes.md
|
104
|
-
- docs/WeightUnit.md
|
105
108
|
- git_push.sh
|
109
|
+
- lib/.DS_Store
|
106
110
|
- lib/dear-inventory-ruby.rb
|
111
|
+
- lib/dear-inventory-ruby/.DS_Store
|
107
112
|
- lib/dear-inventory-ruby/api/inventory_api.rb
|
108
113
|
- lib/dear-inventory-ruby/api_client.rb
|
109
114
|
- lib/dear-inventory-ruby/api_error.rb
|
@@ -112,10 +117,8 @@ files:
|
|
112
117
|
- lib/dear-inventory-ruby/models/accounts.rb
|
113
118
|
- lib/dear-inventory-ruby/models/address.rb
|
114
119
|
- lib/dear-inventory-ruby/models/contact.rb
|
115
|
-
- lib/dear-inventory-ruby/models/currency_code.rb
|
116
120
|
- lib/dear-inventory-ruby/models/customer.rb
|
117
121
|
- lib/dear-inventory-ruby/models/customers.rb
|
118
|
-
- lib/dear-inventory-ruby/models/dimensions_unit.rb
|
119
122
|
- lib/dear-inventory-ruby/models/error.rb
|
120
123
|
- lib/dear-inventory-ruby/models/me.rb
|
121
124
|
- lib/dear-inventory-ruby/models/payment_term.rb
|
@@ -130,7 +133,6 @@ files:
|
|
130
133
|
- lib/dear-inventory-ruby/models/tax.rb
|
131
134
|
- lib/dear-inventory-ruby/models/tax_component.rb
|
132
135
|
- lib/dear-inventory-ruby/models/taxes.rb
|
133
|
-
- lib/dear-inventory-ruby/models/weight_unit.rb
|
134
136
|
- lib/dear-inventory-ruby/version.rb
|
135
137
|
- spec/.DS_Store
|
136
138
|
- spec/api/inventory_api_spec.rb
|
@@ -140,10 +142,8 @@ files:
|
|
140
142
|
- spec/models/accounts_spec.rb
|
141
143
|
- spec/models/address_spec.rb
|
142
144
|
- spec/models/contact_spec.rb
|
143
|
-
- spec/models/currency_code_spec.rb
|
144
145
|
- spec/models/customer_spec.rb
|
145
146
|
- spec/models/customers_spec.rb
|
146
|
-
- spec/models/dimensions_unit_spec.rb
|
147
147
|
- spec/models/error_spec.rb
|
148
148
|
- spec/models/me_spec.rb
|
149
149
|
- spec/models/payment_term_spec.rb
|
@@ -158,7 +158,6 @@ files:
|
|
158
158
|
- spec/models/tax_component_spec.rb
|
159
159
|
- spec/models/tax_spec.rb
|
160
160
|
- spec/models/taxes_spec.rb
|
161
|
-
- spec/models/weight_unit_spec.rb
|
162
161
|
- spec/spec_helper.rb
|
163
162
|
homepage: https://inventory.dearsystems.com
|
164
163
|
licenses:
|
@@ -196,9 +195,7 @@ test_files:
|
|
196
195
|
- spec/models/tax_spec.rb
|
197
196
|
- spec/models/account_spec.rb
|
198
197
|
- spec/models/tax_component_spec.rb
|
199
|
-
- spec/models/currency_code_spec.rb
|
200
198
|
- spec/models/sale_invoice_line_spec.rb
|
201
|
-
- spec/models/dimensions_unit_spec.rb
|
202
199
|
- spec/models/payment_term_spec.rb
|
203
200
|
- spec/models/payment_terms_spec.rb
|
204
201
|
- spec/models/sale_invoice_spec.rb
|
@@ -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/CurrencyCode.md
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# DearInventoryRuby::CurrencyCode
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
|
8
|
-
## Code Sample
|
9
|
-
|
10
|
-
```ruby
|
11
|
-
require 'DearInventoryRuby'
|
12
|
-
|
13
|
-
instance = DearInventoryRuby::CurrencyCode.new()
|
14
|
-
```
|
15
|
-
|
16
|
-
|
data/docs/DimensionsUnit.md
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# DearInventoryRuby::DimensionsUnit
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
|
8
|
-
## Code Sample
|
9
|
-
|
10
|
-
```ruby
|
11
|
-
require 'DearInventoryRuby'
|
12
|
-
|
13
|
-
instance = DearInventoryRuby::DimensionsUnit.new()
|
14
|
-
```
|
15
|
-
|
16
|
-
|
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,196 +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 CurrencyCode
|
17
|
-
AED = "AED".freeze
|
18
|
-
AFN = "AFN".freeze
|
19
|
-
ALL = "ALL".freeze
|
20
|
-
AMD = "AMD".freeze
|
21
|
-
ANG = "ANG".freeze
|
22
|
-
AOA = "AOA".freeze
|
23
|
-
ARS = "ARS".freeze
|
24
|
-
AUD = "AUD".freeze
|
25
|
-
AWG = "AWG".freeze
|
26
|
-
AZN = "AZN".freeze
|
27
|
-
BAM = "BAM".freeze
|
28
|
-
BBD = "BBD".freeze
|
29
|
-
BDT = "BDT".freeze
|
30
|
-
BGN = "BGN".freeze
|
31
|
-
BHD = "BHD".freeze
|
32
|
-
BIF = "BIF".freeze
|
33
|
-
BMD = "BMD".freeze
|
34
|
-
BND = "BND".freeze
|
35
|
-
BOB = "BOB".freeze
|
36
|
-
BRL = "BRL".freeze
|
37
|
-
BSD = "BSD".freeze
|
38
|
-
BTN = "BTN".freeze
|
39
|
-
BWP = "BWP".freeze
|
40
|
-
BYN = "BYN".freeze
|
41
|
-
BZD = "BZD".freeze
|
42
|
-
CAD = "CAD".freeze
|
43
|
-
CDF = "CDF".freeze
|
44
|
-
CHF = "CHF".freeze
|
45
|
-
CLP = "CLP".freeze
|
46
|
-
CNY = "CNY".freeze
|
47
|
-
COP = "COP".freeze
|
48
|
-
CRC = "CRC".freeze
|
49
|
-
CUC = "CUC".freeze
|
50
|
-
CUP = "CUP".freeze
|
51
|
-
CVE = "CVE".freeze
|
52
|
-
CZK = "CZK".freeze
|
53
|
-
DJF = "DJF".freeze
|
54
|
-
DKK = "DKK".freeze
|
55
|
-
DOP = "DOP".freeze
|
56
|
-
DZD = "DZD".freeze
|
57
|
-
EGP = "EGP".freeze
|
58
|
-
ERN = "ERN".freeze
|
59
|
-
ETB = "ETB".freeze
|
60
|
-
EUR = "EUR".freeze
|
61
|
-
FJD = "FJD".freeze
|
62
|
-
FKP = "FKP".freeze
|
63
|
-
GBP = "GBP".freeze
|
64
|
-
GEL = "GEL".freeze
|
65
|
-
GGP = "GGP".freeze
|
66
|
-
GHS = "GHS".freeze
|
67
|
-
GIP = "GIP".freeze
|
68
|
-
GMD = "GMD".freeze
|
69
|
-
GNF = "GNF".freeze
|
70
|
-
GTQ = "GTQ".freeze
|
71
|
-
GYD = "GYD".freeze
|
72
|
-
HKD = "HKD".freeze
|
73
|
-
HNL = "HNL".freeze
|
74
|
-
HRK = "HRK".freeze
|
75
|
-
HTG = "HTG".freeze
|
76
|
-
HUF = "HUF".freeze
|
77
|
-
IDR = "IDR".freeze
|
78
|
-
ILS = "ILS".freeze
|
79
|
-
IMP = "IMP".freeze
|
80
|
-
INR = "INR".freeze
|
81
|
-
IQD = "IQD".freeze
|
82
|
-
IRR = "IRR".freeze
|
83
|
-
ISK = "ISK".freeze
|
84
|
-
JEP = "JEP".freeze
|
85
|
-
JMD = "JMD".freeze
|
86
|
-
JOD = "JOD".freeze
|
87
|
-
JPY = "JPY".freeze
|
88
|
-
KES = "KES".freeze
|
89
|
-
KGS = "KGS".freeze
|
90
|
-
KHR = "KHR".freeze
|
91
|
-
KMF = "KMF".freeze
|
92
|
-
KPW = "KPW".freeze
|
93
|
-
KRW = "KRW".freeze
|
94
|
-
KWD = "KWD".freeze
|
95
|
-
KYD = "KYD".freeze
|
96
|
-
KZT = "KZT".freeze
|
97
|
-
LAK = "LAK".freeze
|
98
|
-
LBP = "LBP".freeze
|
99
|
-
LKR = "LKR".freeze
|
100
|
-
LRD = "LRD".freeze
|
101
|
-
LSL = "LSL".freeze
|
102
|
-
LYD = "LYD".freeze
|
103
|
-
MAD = "MAD".freeze
|
104
|
-
MDL = "MDL".freeze
|
105
|
-
MGA = "MGA".freeze
|
106
|
-
MKD = "MKD".freeze
|
107
|
-
MMK = "MMK".freeze
|
108
|
-
MNT = "MNT".freeze
|
109
|
-
MOP = "MOP".freeze
|
110
|
-
MRU = "MRU".freeze
|
111
|
-
MUR = "MUR".freeze
|
112
|
-
MVR = "MVR".freeze
|
113
|
-
MWK = "MWK".freeze
|
114
|
-
MXN = "MXN".freeze
|
115
|
-
MYR = "MYR".freeze
|
116
|
-
MZN = "MZN".freeze
|
117
|
-
NAD = "NAD".freeze
|
118
|
-
NGN = "NGN".freeze
|
119
|
-
NIO = "NIO".freeze
|
120
|
-
NOK = "NOK".freeze
|
121
|
-
NPR = "NPR".freeze
|
122
|
-
NZD = "NZD".freeze
|
123
|
-
OMR = "OMR".freeze
|
124
|
-
PAB = "PAB".freeze
|
125
|
-
PEN = "PEN".freeze
|
126
|
-
PGK = "PGK".freeze
|
127
|
-
PHP = "PHP".freeze
|
128
|
-
PKR = "PKR".freeze
|
129
|
-
PLN = "PLN".freeze
|
130
|
-
PYG = "PYG".freeze
|
131
|
-
QAR = "QAR".freeze
|
132
|
-
RON = "RON".freeze
|
133
|
-
RSD = "RSD".freeze
|
134
|
-
RUB = "RUB".freeze
|
135
|
-
RWF = "RWF".freeze
|
136
|
-
SAR = "SAR".freeze
|
137
|
-
SBD = "SBD".freeze
|
138
|
-
SCR = "SCR".freeze
|
139
|
-
SDG = "SDG".freeze
|
140
|
-
SEK = "SEK".freeze
|
141
|
-
SGD = "SGD".freeze
|
142
|
-
SHP = "SHP".freeze
|
143
|
-
SLL = "SLL".freeze
|
144
|
-
SOS = "SOS".freeze
|
145
|
-
SPL = "SPL".freeze
|
146
|
-
SRD = "SRD".freeze
|
147
|
-
STN = "STN".freeze
|
148
|
-
SVC = "SVC".freeze
|
149
|
-
SYP = "SYP".freeze
|
150
|
-
SZL = "SZL".freeze
|
151
|
-
THB = "THB".freeze
|
152
|
-
TJS = "TJS".freeze
|
153
|
-
TMT = "TMT".freeze
|
154
|
-
TND = "TND".freeze
|
155
|
-
TOP = "TOP".freeze
|
156
|
-
TRY = "TRY".freeze
|
157
|
-
TTD = "TTD".freeze
|
158
|
-
TVD = "TVD".freeze
|
159
|
-
TWD = "TWD".freeze
|
160
|
-
TZS = "TZS".freeze
|
161
|
-
UAH = "UAH".freeze
|
162
|
-
UGX = "UGX".freeze
|
163
|
-
USD = "USD".freeze
|
164
|
-
UYU = "UYU".freeze
|
165
|
-
UZS = "UZS".freeze
|
166
|
-
VEF = "VEF".freeze
|
167
|
-
VND = "VND".freeze
|
168
|
-
VUV = "VUV".freeze
|
169
|
-
WST = "WST".freeze
|
170
|
-
XAF = "XAF".freeze
|
171
|
-
XCD = "XCD".freeze
|
172
|
-
XDR = "XDR".freeze
|
173
|
-
XOF = "XOF".freeze
|
174
|
-
XPF = "XPF".freeze
|
175
|
-
YER = "YER".freeze
|
176
|
-
ZAR = "ZAR".freeze
|
177
|
-
ZMW = "ZMW".freeze
|
178
|
-
ZWD = "ZWD".freeze
|
179
|
-
|
180
|
-
# Builds the enum from string
|
181
|
-
# @param [String] The enum value in the form of the string
|
182
|
-
# @return [String] The enum value
|
183
|
-
def self.build_from_hash(value)
|
184
|
-
new.build_from_hash(value)
|
185
|
-
end
|
186
|
-
|
187
|
-
# Builds the enum from string
|
188
|
-
# @param [String] The enum value in the form of the string
|
189
|
-
# @return [String] The enum value
|
190
|
-
def build_from_hash(value)
|
191
|
-
constantValues = CurrencyCode.constants.select { |c| CurrencyCode::const_get(c) == value }
|
192
|
-
raise "Invalid ENUM value #{value} for class #CurrencyCode" if constantValues.empty?
|
193
|
-
value
|
194
|
-
end
|
195
|
-
end
|
196
|
-
end
|
@@ -1,42 +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 DimensionsUnit
|
17
|
-
M = "m".freeze
|
18
|
-
CM = "cm".freeze
|
19
|
-
MI = "mi".freeze
|
20
|
-
MM = "mm".freeze
|
21
|
-
IN = "in".freeze
|
22
|
-
FT = "ft".freeze
|
23
|
-
YD = "yd".freeze
|
24
|
-
KM = "km".freeze
|
25
|
-
|
26
|
-
# Builds the enum from string
|
27
|
-
# @param [String] The enum value in the form of the string
|
28
|
-
# @return [String] The enum value
|
29
|
-
def self.build_from_hash(value)
|
30
|
-
new.build_from_hash(value)
|
31
|
-
end
|
32
|
-
|
33
|
-
# Builds the enum from string
|
34
|
-
# @param [String] The enum value in the form of the string
|
35
|
-
# @return [String] The enum value
|
36
|
-
def build_from_hash(value)
|
37
|
-
constantValues = DimensionsUnit.constants.select { |c| DimensionsUnit::const_get(c) == value }
|
38
|
-
raise "Invalid ENUM value #{value} for class #DimensionsUnit" if constantValues.empty?
|
39
|
-
value
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
@@ -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::CurrencyCode
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'CurrencyCode' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = DearInventoryRuby::CurrencyCode.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of CurrencyCode' do
|
31
|
-
it 'should create an instance of CurrencyCode' do
|
32
|
-
expect(@instance).to be_instance_of(DearInventoryRuby::CurrencyCode)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
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::DimensionsUnit
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'DimensionsUnit' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = DearInventoryRuby::DimensionsUnit.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of DimensionsUnit' do
|
31
|
-
it 'should create an instance of DimensionsUnit' do
|
32
|
-
expect(@instance).to be_instance_of(DearInventoryRuby::DimensionsUnit)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
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
|