dear-inventory-ruby 0.2.10.1 → 0.2.11
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 +7 -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/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/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/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
@@ -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: 2024-02-
|
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
|