dear-inventory-ruby 0.1.5 → 0.1.10
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 +4 -4
- data/CHANGELOG.md +31 -0
- data/Gemfile +1 -1
- data/README.md +32 -9
- data/dear-inventory-ruby.gemspec +1 -1
- data/docs/Account.md +45 -0
- data/docs/Accounts.md +21 -0
- data/docs/Address.md +11 -11
- data/docs/Contact.md +14 -10
- data/docs/Customer.md +40 -38
- data/docs/Customers.md +3 -3
- data/docs/DimensionsUnit.md +16 -0
- data/docs/Error.md +2 -2
- data/docs/InventoryApi.md +788 -26
- data/docs/Me.md +29 -0
- data/docs/PaymentTerm.md +27 -0
- data/docs/PaymentTerms.md +21 -0
- data/docs/Success.md +17 -0
- data/docs/Tax.md +33 -0
- data/docs/TaxComponent.md +23 -0
- data/docs/Taxes.md +21 -0
- data/docs/WeightUnit.md +16 -0
- data/lib/dear-inventory-ruby.rb +12 -1
- data/lib/dear-inventory-ruby/api/inventory_api.rb +827 -44
- data/lib/dear-inventory-ruby/api_client.rb +8 -6
- data/lib/dear-inventory-ruby/api_error.rb +1 -1
- data/lib/dear-inventory-ruby/configuration.rb +1 -1
- data/lib/dear-inventory-ruby/models/account.rb +477 -0
- data/lib/dear-inventory-ruby/models/accounts.rb +229 -0
- data/lib/dear-inventory-ruby/models/address.rb +11 -1
- data/lib/dear-inventory-ruby/models/contact.rb +34 -5
- data/lib/dear-inventory-ruby/models/currency_code.rb +1 -1
- data/lib/dear-inventory-ruby/models/customer.rb +56 -5
- data/lib/dear-inventory-ruby/models/customers.rb +1 -1
- data/lib/dear-inventory-ruby/models/dimensions_unit.rb +42 -0
- data/lib/dear-inventory-ruby/models/error.rb +1 -1
- data/lib/dear-inventory-ruby/models/me.rb +264 -0
- data/lib/dear-inventory-ruby/models/payment_term.rb +319 -0
- data/lib/dear-inventory-ruby/models/payment_terms.rb +229 -0
- data/lib/dear-inventory-ruby/models/success.rb +207 -0
- data/lib/dear-inventory-ruby/models/tax.rb +360 -0
- data/lib/dear-inventory-ruby/models/tax_component.rb +306 -0
- data/lib/dear-inventory-ruby/models/taxes.rb +229 -0
- data/lib/dear-inventory-ruby/models/weight_unit.rb +39 -0
- data/lib/dear-inventory-ruby/version.rb +2 -2
- data/spec/api/inventory_api_spec.rb +160 -5
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_spec.rb +129 -0
- data/spec/models/accounts_spec.rb +53 -0
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/contact_spec.rb +13 -1
- data/spec/models/currency_code_spec.rb +1 -1
- data/spec/models/customer_spec.rb +7 -1
- data/spec/models/customers_spec.rb +1 -1
- data/spec/models/dimensions_unit_spec.rb +35 -0
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/me_spec.rb +77 -0
- data/spec/models/payment_term_spec.rb +75 -0
- data/spec/models/payment_terms_spec.rb +53 -0
- data/spec/models/success_spec.rb +41 -0
- data/spec/models/tax_component_spec.rb +59 -0
- data/spec/models/tax_spec.rb +89 -0
- data/spec/models/taxes_spec.rb +53 -0
- data/spec/models/weight_unit_spec.rb +35 -0
- data/spec/spec_helper.rb +1 -1
- metadata +59 -15
@@ -0,0 +1,53 @@
|
|
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::Taxes
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Taxes' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::Taxes.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Taxes' do
|
31
|
+
it 'should create an instance of Taxes' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::Taxes)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "total"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "page"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "tax_rule_list"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,35 @@
|
|
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
|
data/spec/spec_helper.rb
CHANGED
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.10
|
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-
|
11
|
+
date: 2020-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -28,42 +28,42 @@ dependencies:
|
|
28
28
|
name: json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.1.0
|
34
31
|
- - "~>"
|
35
32
|
- !ruby/object:Gem::Version
|
36
33
|
version: '2.1'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 2.1.0
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 2.1.0
|
44
41
|
- - "~>"
|
45
42
|
- !ruby/object:Gem::Version
|
46
43
|
version: '2.1'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2.1.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 3.6.0
|
54
51
|
- - "~>"
|
55
52
|
- !ruby/object:Gem::Version
|
56
53
|
version: '3.6'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 3.6.0
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- - ">="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 3.6.0
|
64
61
|
- - "~>"
|
65
62
|
- !ruby/object:Gem::Version
|
66
63
|
version: '3.6'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 3.6.0
|
67
67
|
description: DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com
|
68
68
|
email:
|
69
69
|
- nnhansg@gmail.com
|
@@ -78,35 +78,68 @@ files:
|
|
78
78
|
- README.md
|
79
79
|
- Rakefile
|
80
80
|
- dear-inventory-ruby.gemspec
|
81
|
+
- docs/Account.md
|
82
|
+
- docs/Accounts.md
|
81
83
|
- docs/Address.md
|
82
84
|
- docs/Contact.md
|
83
85
|
- docs/CurrencyCode.md
|
84
86
|
- docs/Customer.md
|
85
87
|
- docs/Customers.md
|
88
|
+
- docs/DimensionsUnit.md
|
86
89
|
- docs/Error.md
|
87
90
|
- docs/InventoryApi.md
|
91
|
+
- docs/Me.md
|
92
|
+
- docs/PaymentTerm.md
|
93
|
+
- docs/PaymentTerms.md
|
94
|
+
- docs/Success.md
|
95
|
+
- docs/Tax.md
|
96
|
+
- docs/TaxComponent.md
|
97
|
+
- docs/Taxes.md
|
98
|
+
- docs/WeightUnit.md
|
88
99
|
- git_push.sh
|
89
100
|
- lib/dear-inventory-ruby.rb
|
90
101
|
- lib/dear-inventory-ruby/api/inventory_api.rb
|
91
102
|
- lib/dear-inventory-ruby/api_client.rb
|
92
103
|
- lib/dear-inventory-ruby/api_error.rb
|
93
104
|
- lib/dear-inventory-ruby/configuration.rb
|
105
|
+
- lib/dear-inventory-ruby/models/account.rb
|
106
|
+
- lib/dear-inventory-ruby/models/accounts.rb
|
94
107
|
- lib/dear-inventory-ruby/models/address.rb
|
95
108
|
- lib/dear-inventory-ruby/models/contact.rb
|
96
109
|
- lib/dear-inventory-ruby/models/currency_code.rb
|
97
110
|
- lib/dear-inventory-ruby/models/customer.rb
|
98
111
|
- lib/dear-inventory-ruby/models/customers.rb
|
112
|
+
- lib/dear-inventory-ruby/models/dimensions_unit.rb
|
99
113
|
- lib/dear-inventory-ruby/models/error.rb
|
114
|
+
- lib/dear-inventory-ruby/models/me.rb
|
115
|
+
- lib/dear-inventory-ruby/models/payment_term.rb
|
116
|
+
- lib/dear-inventory-ruby/models/payment_terms.rb
|
117
|
+
- lib/dear-inventory-ruby/models/success.rb
|
118
|
+
- lib/dear-inventory-ruby/models/tax.rb
|
119
|
+
- lib/dear-inventory-ruby/models/tax_component.rb
|
120
|
+
- lib/dear-inventory-ruby/models/taxes.rb
|
121
|
+
- lib/dear-inventory-ruby/models/weight_unit.rb
|
100
122
|
- lib/dear-inventory-ruby/version.rb
|
101
123
|
- spec/api/inventory_api_spec.rb
|
102
124
|
- spec/api_client_spec.rb
|
103
125
|
- spec/configuration_spec.rb
|
126
|
+
- spec/models/account_spec.rb
|
127
|
+
- spec/models/accounts_spec.rb
|
104
128
|
- spec/models/address_spec.rb
|
105
129
|
- spec/models/contact_spec.rb
|
106
130
|
- spec/models/currency_code_spec.rb
|
107
131
|
- spec/models/customer_spec.rb
|
108
132
|
- spec/models/customers_spec.rb
|
133
|
+
- spec/models/dimensions_unit_spec.rb
|
109
134
|
- spec/models/error_spec.rb
|
135
|
+
- spec/models/me_spec.rb
|
136
|
+
- spec/models/payment_term_spec.rb
|
137
|
+
- spec/models/payment_terms_spec.rb
|
138
|
+
- spec/models/success_spec.rb
|
139
|
+
- spec/models/tax_component_spec.rb
|
140
|
+
- spec/models/tax_spec.rb
|
141
|
+
- spec/models/taxes_spec.rb
|
142
|
+
- spec/models/weight_unit_spec.rb
|
110
143
|
- spec/spec_helper.rb
|
111
144
|
homepage: https://inventory.dearsystems.com
|
112
145
|
licenses:
|
@@ -131,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
164
|
- !ruby/object:Gem::Version
|
132
165
|
version: '0'
|
133
166
|
requirements: []
|
134
|
-
rubygems_version: 3.
|
167
|
+
rubygems_version: 3.1.2
|
135
168
|
signing_key:
|
136
169
|
specification_version: 4
|
137
170
|
summary: DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com
|
@@ -141,8 +174,19 @@ test_files:
|
|
141
174
|
- spec/configuration_spec.rb
|
142
175
|
- spec/models/error_spec.rb
|
143
176
|
- spec/models/contact_spec.rb
|
177
|
+
- spec/models/tax_spec.rb
|
178
|
+
- spec/models/account_spec.rb
|
179
|
+
- spec/models/tax_component_spec.rb
|
144
180
|
- spec/models/currency_code_spec.rb
|
181
|
+
- spec/models/dimensions_unit_spec.rb
|
182
|
+
- spec/models/payment_term_spec.rb
|
183
|
+
- spec/models/payment_terms_spec.rb
|
145
184
|
- spec/models/customers_spec.rb
|
146
185
|
- spec/models/customer_spec.rb
|
186
|
+
- spec/models/taxes_spec.rb
|
187
|
+
- spec/models/accounts_spec.rb
|
188
|
+
- spec/models/me_spec.rb
|
189
|
+
- spec/models/success_spec.rb
|
190
|
+
- spec/models/weight_unit_spec.rb
|
147
191
|
- spec/models/address_spec.rb
|
148
192
|
- spec/spec_helper.rb
|