dear-inventory-ruby 0.2.9 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/README.md +14 -4
- data/docs/Bin.md +19 -0
- data/docs/Carrier.md +19 -0
- data/docs/Carriers.md +21 -0
- data/docs/InventoryApi.md +192 -4
- data/docs/Location.md +51 -0
- data/docs/Locations.md +21 -0
- data/docs/MeContact.md +33 -0
- data/docs/MeContacts.md +21 -0
- data/lib/dear-inventory-ruby/api/inventory_api.rb +193 -4
- data/lib/dear-inventory-ruby/models/account.rb +0 -76
- data/lib/dear-inventory-ruby/models/bin.rb +217 -0
- data/lib/dear-inventory-ruby/models/carrier.rb +217 -0
- data/lib/dear-inventory-ruby/models/carriers.rb +229 -0
- data/lib/dear-inventory-ruby/models/contact.rb +0 -94
- data/lib/dear-inventory-ruby/models/customer.rb +0 -34
- data/lib/dear-inventory-ruby/models/location.rb +391 -0
- data/lib/dear-inventory-ruby/models/locations.rb +229 -0
- data/lib/dear-inventory-ruby/models/me_contact.rb +289 -0
- data/lib/dear-inventory-ruby/models/me_contacts.rb +229 -0
- data/lib/dear-inventory-ruby/models/payment_term.rb +0 -19
- data/lib/dear-inventory-ruby/models/supplier_customer_address.rb +0 -75
- data/lib/dear-inventory-ruby/models/tax_component.rb +0 -19
- data/lib/dear-inventory-ruby/version.rb +1 -1
- data/lib/dear-inventory-ruby.rb +7 -0
- data/spec/.DS_Store +0 -0
- data/spec/api/inventory_api_spec.rb +41 -2
- data/spec/models/bin_spec.rb +47 -0
- data/spec/models/carrier_spec.rb +47 -0
- data/spec/models/carriers_spec.rb +53 -0
- data/spec/models/location_spec.rb +143 -0
- data/spec/models/locations_spec.rb +53 -0
- data/spec/models/me_contact_spec.rb +89 -0
- data/spec/models/me_contacts_spec.rb +53 -0
- metadata +30 -2
data/lib/dear-inventory-ruby.rb
CHANGED
@@ -22,12 +22,19 @@ require 'dear-inventory-ruby/models/accounts'
|
|
22
22
|
require 'dear-inventory-ruby/models/address'
|
23
23
|
require 'dear-inventory-ruby/models/attachment_line'
|
24
24
|
require 'dear-inventory-ruby/models/authorization_type'
|
25
|
+
require 'dear-inventory-ruby/models/bin'
|
26
|
+
require 'dear-inventory-ruby/models/carrier'
|
27
|
+
require 'dear-inventory-ruby/models/carriers'
|
25
28
|
require 'dear-inventory-ruby/models/contact'
|
26
29
|
require 'dear-inventory-ruby/models/customer'
|
27
30
|
require 'dear-inventory-ruby/models/customers'
|
28
31
|
require 'dear-inventory-ruby/models/error'
|
29
32
|
require 'dear-inventory-ruby/models/external_header'
|
33
|
+
require 'dear-inventory-ruby/models/location'
|
34
|
+
require 'dear-inventory-ruby/models/locations'
|
30
35
|
require 'dear-inventory-ruby/models/me'
|
36
|
+
require 'dear-inventory-ruby/models/me_contact'
|
37
|
+
require 'dear-inventory-ruby/models/me_contacts'
|
31
38
|
require 'dear-inventory-ruby/models/payment_term'
|
32
39
|
require 'dear-inventory-ruby/models/payment_terms'
|
33
40
|
require 'dear-inventory-ruby/models/price_tier'
|
data/spec/.DS_Store
CHANGED
Binary file
|
@@ -213,6 +213,20 @@ describe 'InventoryApi' do
|
|
213
213
|
end
|
214
214
|
end
|
215
215
|
|
216
|
+
# unit tests for get_carriers
|
217
|
+
# Allows you to retrieve the carriers
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @option opts [String] :page Default is 1
|
220
|
+
# @option opts [String] :limit Default is 100
|
221
|
+
# @option opts [String] :carrier_id Only return Carrier with the specific CarrierID
|
222
|
+
# @option opts [String] :description Only return Carriers that start with the specific Description
|
223
|
+
# @return [Carriers]
|
224
|
+
describe 'get_carriers test' do
|
225
|
+
it 'should work' do
|
226
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
216
230
|
# unit tests for get_customers
|
217
231
|
# Allows you to retrieve the customers
|
218
232
|
# @param [Hash] opts the optional parameters
|
@@ -222,8 +236,8 @@ describe 'InventoryApi' do
|
|
222
236
|
# @option opts [String] :name Default is nil
|
223
237
|
# @option opts [String] :contact_filter Default is nil
|
224
238
|
# @option opts [String] :modified_since Default is nil
|
225
|
-
# @option opts [
|
226
|
-
# @option opts [
|
239
|
+
# @option opts [Boolean] :include_deprecated Default is false
|
240
|
+
# @option opts [Boolean] :include_product_prices Default is false
|
227
241
|
# @return [Customers]
|
228
242
|
describe 'get_customers test' do
|
229
243
|
it 'should work' do
|
@@ -231,6 +245,21 @@ describe 'InventoryApi' do
|
|
231
245
|
end
|
232
246
|
end
|
233
247
|
|
248
|
+
# unit tests for get_locations
|
249
|
+
# Allows you to retrieve the locations
|
250
|
+
# @param [Hash] opts the optional parameters
|
251
|
+
# @option opts [String] :page Default is 1
|
252
|
+
# @option opts [String] :limit Default is 100
|
253
|
+
# @option opts [String] :id Default is nil
|
254
|
+
# @option opts [Boolean] :deprecated Default is false
|
255
|
+
# @option opts [String] :name Default is nil
|
256
|
+
# @return [Locations]
|
257
|
+
describe 'get_locations test' do
|
258
|
+
it 'should work' do
|
259
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
234
263
|
# unit tests for get_me
|
235
264
|
# Allows you to retrieve your information
|
236
265
|
# @param [Hash] opts the optional parameters
|
@@ -241,6 +270,16 @@ describe 'InventoryApi' do
|
|
241
270
|
end
|
242
271
|
end
|
243
272
|
|
273
|
+
# unit tests for get_me_contacts
|
274
|
+
# Allows you to retrieve the me contacts (Sales Representatives)
|
275
|
+
# @param [Hash] opts the optional parameters
|
276
|
+
# @return [MeContacts]
|
277
|
+
describe 'get_me_contacts test' do
|
278
|
+
it 'should work' do
|
279
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
244
283
|
# unit tests for get_payment_terms
|
245
284
|
# Allows you to retrieve the payment terms
|
246
285
|
# @param [Hash] opts the optional parameters
|
@@ -0,0 +1,47 @@
|
|
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::Bin
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Bin' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::Bin.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Bin' do
|
31
|
+
it 'should create an instance of Bin' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::Bin)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "id"' 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 "name"' 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
|
+
end
|
@@ -0,0 +1,47 @@
|
|
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::Carrier
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Carrier' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::Carrier.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Carrier' do
|
31
|
+
it 'should create an instance of Carrier' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::Carrier)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "carrier_id"' 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 "description"' 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
|
+
end
|
@@ -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::Carriers
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Carriers' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::Carriers.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Carriers' do
|
31
|
+
it 'should create an instance of Carriers' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::Carriers)
|
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 "carrier_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,143 @@
|
|
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::Location
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Location' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::Location.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Location' do
|
31
|
+
it 'should create an instance of Location' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::Location)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "id"' 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 "name"' 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 "is_default"' 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
|
+
describe 'test attribute "deprecated"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "bins"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "fixed_assets_location"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "parent_id"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test attribute "reference_count"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "address_line1"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe 'test attribute "address_line2"' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
describe 'test attribute "address_city_suburb"' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe 'test attribute "address_state_province"' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
describe 'test attribute "address_zip_post_code"' do
|
108
|
+
it 'should work' do
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
describe 'test attribute "address_country"' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
describe 'test attribute "pick_zones"' do
|
120
|
+
it 'should work' do
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
describe 'test attribute "is_shopfloor"' do
|
126
|
+
it 'should work' do
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
describe 'test attribute "is_co_man"' do
|
132
|
+
it 'should work' do
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
describe 'test attribute "is_staging"' do
|
138
|
+
it 'should work' do
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
end
|
@@ -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::Locations
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Locations' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::Locations.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Locations' do
|
31
|
+
it 'should create an instance of Locations' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::Locations)
|
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 "location_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,89 @@
|
|
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::MeContact
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'MeContact' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::MeContact.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of MeContact' do
|
31
|
+
it 'should create an instance of MeContact' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::MeContact)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "contact_id"' 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 "name"' 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 "phone"' 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
|
+
describe 'test attribute "fax"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "email"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "website"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "comment"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test attribute "type"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "default_for_type"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
end
|
@@ -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::MeContacts
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'MeContacts' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::MeContacts.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of MeContacts' do
|
31
|
+
it 'should create an instance of MeContacts' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::MeContacts)
|
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 "me_contacts_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
|
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.
|
4
|
+
version: 0.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nhan Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -89,13 +89,20 @@ files:
|
|
89
89
|
- docs/Address.md
|
90
90
|
- docs/AttachmentLine.md
|
91
91
|
- docs/AuthorizationType.md
|
92
|
+
- docs/Bin.md
|
93
|
+
- docs/Carrier.md
|
94
|
+
- docs/Carriers.md
|
92
95
|
- docs/Contact.md
|
93
96
|
- docs/Customer.md
|
94
97
|
- docs/Customers.md
|
95
98
|
- docs/Error.md
|
96
99
|
- docs/ExternalHeader.md
|
97
100
|
- docs/InventoryApi.md
|
101
|
+
- docs/Location.md
|
102
|
+
- docs/Locations.md
|
98
103
|
- docs/Me.md
|
104
|
+
- docs/MeContact.md
|
105
|
+
- docs/MeContacts.md
|
99
106
|
- docs/PaymentTerm.md
|
100
107
|
- docs/PaymentTerms.md
|
101
108
|
- docs/PriceTier.md
|
@@ -137,12 +144,19 @@ files:
|
|
137
144
|
- lib/dear-inventory-ruby/models/address.rb
|
138
145
|
- lib/dear-inventory-ruby/models/attachment_line.rb
|
139
146
|
- lib/dear-inventory-ruby/models/authorization_type.rb
|
147
|
+
- lib/dear-inventory-ruby/models/bin.rb
|
148
|
+
- lib/dear-inventory-ruby/models/carrier.rb
|
149
|
+
- lib/dear-inventory-ruby/models/carriers.rb
|
140
150
|
- lib/dear-inventory-ruby/models/contact.rb
|
141
151
|
- lib/dear-inventory-ruby/models/customer.rb
|
142
152
|
- lib/dear-inventory-ruby/models/customers.rb
|
143
153
|
- lib/dear-inventory-ruby/models/error.rb
|
144
154
|
- lib/dear-inventory-ruby/models/external_header.rb
|
155
|
+
- lib/dear-inventory-ruby/models/location.rb
|
156
|
+
- lib/dear-inventory-ruby/models/locations.rb
|
145
157
|
- lib/dear-inventory-ruby/models/me.rb
|
158
|
+
- lib/dear-inventory-ruby/models/me_contact.rb
|
159
|
+
- lib/dear-inventory-ruby/models/me_contacts.rb
|
146
160
|
- lib/dear-inventory-ruby/models/payment_term.rb
|
147
161
|
- lib/dear-inventory-ruby/models/payment_terms.rb
|
148
162
|
- lib/dear-inventory-ruby/models/price_tier.rb
|
@@ -183,11 +197,18 @@ files:
|
|
183
197
|
- spec/models/address_spec.rb
|
184
198
|
- spec/models/attachment_line_spec.rb
|
185
199
|
- spec/models/authorization_type_spec.rb
|
200
|
+
- spec/models/bin_spec.rb
|
201
|
+
- spec/models/carrier_spec.rb
|
202
|
+
- spec/models/carriers_spec.rb
|
186
203
|
- spec/models/contact_spec.rb
|
187
204
|
- spec/models/customer_spec.rb
|
188
205
|
- spec/models/customers_spec.rb
|
189
206
|
- spec/models/error_spec.rb
|
190
207
|
- spec/models/external_header_spec.rb
|
208
|
+
- spec/models/location_spec.rb
|
209
|
+
- spec/models/locations_spec.rb
|
210
|
+
- spec/models/me_contact_spec.rb
|
211
|
+
- spec/models/me_contacts_spec.rb
|
191
212
|
- spec/models/me_spec.rb
|
192
213
|
- spec/models/payment_term_spec.rb
|
193
214
|
- spec/models/payment_terms_spec.rb
|
@@ -261,19 +282,24 @@ test_files:
|
|
261
282
|
- spec/models/external_header_spec.rb
|
262
283
|
- spec/models/tax_component_spec.rb
|
263
284
|
- spec/models/sale_list_spec.rb
|
285
|
+
- spec/models/carrier_spec.rb
|
286
|
+
- spec/models/bin_spec.rb
|
264
287
|
- spec/models/sale_invoice_line_spec.rb
|
265
288
|
- spec/models/supplier_customer_address_spec.rb
|
266
289
|
- spec/models/payment_term_spec.rb
|
267
290
|
- spec/models/payment_terms_spec.rb
|
268
291
|
- spec/models/sale_invoice_spec.rb
|
269
292
|
- spec/models/sale_invoice_partial_spec.rb
|
293
|
+
- spec/models/carriers_spec.rb
|
270
294
|
- spec/models/sale_order_line_spec.rb
|
271
295
|
- spec/models/customers_spec.rb
|
296
|
+
- spec/models/me_contact_spec.rb
|
272
297
|
- spec/models/attachment_line_spec.rb
|
273
298
|
- spec/models/customer_spec.rb
|
274
299
|
- spec/models/sale_invoice_delete_spec.rb
|
275
300
|
- spec/models/sale_payment_spec.rb
|
276
301
|
- spec/models/sale_additional_charge_spec.rb
|
302
|
+
- spec/models/location_spec.rb
|
277
303
|
- spec/models/sale_item_spec.rb
|
278
304
|
- spec/models/sale_spec.rb
|
279
305
|
- spec/models/webhook_type_spec.rb
|
@@ -281,10 +307,12 @@ test_files:
|
|
281
307
|
- spec/models/accounts_spec.rb
|
282
308
|
- spec/models/me_spec.rb
|
283
309
|
- spec/models/shipping_address_spec.rb
|
310
|
+
- spec/models/me_contacts_spec.rb
|
284
311
|
- spec/models/sale_order_spec.rb
|
285
312
|
- spec/models/sale_invoice_additional_charge_spec.rb
|
286
313
|
- spec/models/authorization_type_spec.rb
|
287
314
|
- spec/models/sale_invoices_spec.rb
|
315
|
+
- spec/models/locations_spec.rb
|
288
316
|
- spec/models/sale_quote_spec.rb
|
289
317
|
- spec/models/sale_quote_line_spec.rb
|
290
318
|
- spec/models/webhooks_spec.rb
|