dear-inventory-ruby 0.2.1 → 0.2.4

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.
@@ -128,13 +128,13 @@ describe 'InventoryApi' do
128
128
  end
129
129
  end
130
130
 
131
- # unit tests for create_webhooks
131
+ # unit tests for create_webhook
132
132
  # Allows you to create a Webhook
133
133
  # @param webhook a webhook object with properties to create
134
134
  # @param [Hash] opts the optional parameters
135
135
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
136
- # @return [Webhooks]
137
- describe 'create_webhooks test' do
136
+ # @return [Webhook]
137
+ describe 'create_webhook test' do
138
138
  it 'should work' do
139
139
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
140
140
  end
@@ -266,6 +266,20 @@ describe 'InventoryApi' do
266
266
  end
267
267
  end
268
268
 
269
+ # unit tests for get_sale
270
+ # Allows you to retrieve the Sale
271
+ # @param [Hash] opts the optional parameters
272
+ # @option opts [String] :id Default is nil
273
+ # @option opts [Boolean] :combine_additional_charges Show additional charges in 'Lines' array
274
+ # @option opts [Boolean] :hide_inventory_movements Hide inventory movements (Default = false)
275
+ # @option opts [Boolean] :include_transactions Show related transactions (Default = false)
276
+ # @return [Sale]
277
+ describe 'get_sale 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
+
269
283
  # unit tests for get_sale_invoices
270
284
  # Allows you to retrieve the sale invoices
271
285
  # @param [Hash] opts the optional parameters
@@ -409,7 +423,7 @@ describe 'InventoryApi' do
409
423
  # @param webhook a webhook object with properties to update
410
424
  # @param [Hash] opts the optional parameters
411
425
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
412
- # @return [Webhooks]
426
+ # @return [Webhook]
413
427
  describe 'update_webhook test' do
414
428
  it 'should work' do
415
429
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -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::AuthorizationType
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'AuthorizationType' do
21
+ before do
22
+ # run before each test
23
+ @instance = DearInventoryRuby::AuthorizationType.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of AuthorizationType' do
31
+ it 'should create an instance of AuthorizationType' do
32
+ expect(@instance).to be_instance_of(DearInventoryRuby::AuthorizationType)
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,287 @@
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::Sale
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'Sale' do
21
+ before do
22
+ # run before each test
23
+ @instance = DearInventoryRuby::Sale.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Sale' do
31
+ it 'should create an instance of Sale' do
32
+ expect(@instance).to be_instance_of(DearInventoryRuby::Sale)
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 "customer"' 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 "customer_id"' 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 "contact"' 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 "phone"' 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 "email"' 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 "default_account"' 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 "skip_quote"' 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 "billing_address"' 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 "shipping_address"' 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 "shipping_notes"' 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 "base_currency"' 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 "customer_currency"' 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 "tax_rule"' 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 "tax_calculation"' 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 "terms"' 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 "price_tier"' 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 "ship_by"' 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
+ describe 'test attribute "location"' do
144
+ it 'should work' do
145
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
146
+ end
147
+ end
148
+
149
+ describe 'test attribute "sale_order_date"' do
150
+ it 'should work' do
151
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
152
+ end
153
+ end
154
+
155
+ describe 'test attribute "last_modified_on"' do
156
+ it 'should work' do
157
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
158
+ end
159
+ end
160
+
161
+ describe 'test attribute "note"' do
162
+ it 'should work' do
163
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
164
+ end
165
+ end
166
+
167
+ describe 'test attribute "customer_reference"' do
168
+ it 'should work' do
169
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
170
+ end
171
+ end
172
+
173
+ describe 'test attribute "cogs_amount"' do
174
+ it 'should work' do
175
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
176
+ end
177
+ end
178
+
179
+ describe 'test attribute "status"' do
180
+ it 'should work' do
181
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
182
+ end
183
+ end
184
+
185
+ describe 'test attribute "combined_picking_status"' do
186
+ it 'should work' do
187
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
188
+ end
189
+ end
190
+
191
+ describe 'test attribute "combined_packing_status"' do
192
+ it 'should work' do
193
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
194
+ end
195
+ end
196
+
197
+ describe 'test attribute "combined_shipping_status"' do
198
+ it 'should work' do
199
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
200
+ end
201
+ end
202
+
203
+ describe 'test attribute "ful_filment_status"' do
204
+ it 'should work' do
205
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
206
+ end
207
+ end
208
+
209
+ describe 'test attribute "combined_invoice_status"' do
210
+ it 'should work' do
211
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
212
+ end
213
+ end
214
+
215
+ describe 'test attribute "combined_payment_status"' do
216
+ it 'should work' do
217
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
218
+ end
219
+ end
220
+
221
+ describe 'test attribute "combined_tracking_numbers"' do
222
+ it 'should work' do
223
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
224
+ end
225
+ end
226
+
227
+ describe 'test attribute "carrier"' do
228
+ it 'should work' do
229
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
230
+ end
231
+ end
232
+
233
+ describe 'test attribute "currency_rate"' do
234
+ it 'should work' do
235
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
236
+ end
237
+ end
238
+
239
+ describe 'test attribute "sales_representative"' do
240
+ it 'should work' do
241
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
242
+ end
243
+ end
244
+
245
+ describe 'test attribute "type"' do
246
+ it 'should work' do
247
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
248
+ end
249
+ end
250
+
251
+ describe 'test attribute "source_channel"' do
252
+ it 'should work' do
253
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
254
+ end
255
+ end
256
+
257
+ describe 'test attribute "external_id"' 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
+
263
+ describe 'test attribute "service_only"' do
264
+ it 'should work' do
265
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
266
+ end
267
+ end
268
+
269
+ describe 'test attribute "quote"' do
270
+ it 'should work' do
271
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
272
+ end
273
+ end
274
+
275
+ describe 'test attribute "order"' do
276
+ it 'should work' do
277
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
278
+ end
279
+ end
280
+
281
+ describe 'test attribute "invoices"' do
282
+ it 'should work' do
283
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
284
+ end
285
+ end
286
+
287
+ 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::WebhookType
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'WebhookType' do
21
+ before do
22
+ # run before each test
23
+ @instance = DearInventoryRuby::WebhookType.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of WebhookType' do
31
+ it 'should create an instance of WebhookType' do
32
+ expect(@instance).to be_instance_of(DearInventoryRuby::WebhookType)
33
+ end
34
+ end
35
+ 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.1
4
+ version: 0.2.4
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-10-15 00:00:00.000000000 Z
11
+ date: 2022-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -87,6 +87,7 @@ files:
87
87
  - docs/Account.md
88
88
  - docs/Accounts.md
89
89
  - docs/Address.md
90
+ - docs/AuthorizationType.md
90
91
  - docs/Contact.md
91
92
  - docs/Customer.md
92
93
  - docs/Customers.md
@@ -98,6 +99,7 @@ files:
98
99
  - docs/PaymentTerms.md
99
100
  - docs/PriceTier.md
100
101
  - docs/PriceTiers.md
102
+ - docs/Sale.md
101
103
  - docs/SaleAdditionalCharge.md
102
104
  - docs/SaleInvoice.md
103
105
  - docs/SaleInvoiceAdditionalCharge.md
@@ -117,6 +119,7 @@ files:
117
119
  - docs/TaxComponent.md
118
120
  - docs/Taxes.md
119
121
  - docs/Webhook.md
122
+ - docs/WebhookType.md
120
123
  - docs/Webhooks.md
121
124
  - git_push.sh
122
125
  - lib/dear-inventory-ruby.rb
@@ -127,6 +130,7 @@ files:
127
130
  - lib/dear-inventory-ruby/models/account.rb
128
131
  - lib/dear-inventory-ruby/models/accounts.rb
129
132
  - lib/dear-inventory-ruby/models/address.rb
133
+ - lib/dear-inventory-ruby/models/authorization_type.rb
130
134
  - lib/dear-inventory-ruby/models/contact.rb
131
135
  - lib/dear-inventory-ruby/models/customer.rb
132
136
  - lib/dear-inventory-ruby/models/customers.rb
@@ -137,6 +141,7 @@ files:
137
141
  - lib/dear-inventory-ruby/models/payment_terms.rb
138
142
  - lib/dear-inventory-ruby/models/price_tier.rb
139
143
  - lib/dear-inventory-ruby/models/price_tiers.rb
144
+ - lib/dear-inventory-ruby/models/sale.rb
140
145
  - lib/dear-inventory-ruby/models/sale_additional_charge.rb
141
146
  - lib/dear-inventory-ruby/models/sale_invoice.rb
142
147
  - lib/dear-inventory-ruby/models/sale_invoice_additional_charge.rb
@@ -156,14 +161,17 @@ files:
156
161
  - lib/dear-inventory-ruby/models/tax_component.rb
157
162
  - lib/dear-inventory-ruby/models/taxes.rb
158
163
  - lib/dear-inventory-ruby/models/webhook.rb
164
+ - lib/dear-inventory-ruby/models/webhook_type.rb
159
165
  - lib/dear-inventory-ruby/models/webhooks.rb
160
166
  - lib/dear-inventory-ruby/version.rb
167
+ - spec/.DS_Store
161
168
  - spec/api/inventory_api_spec.rb
162
169
  - spec/api_client_spec.rb
163
170
  - spec/configuration_spec.rb
164
171
  - spec/models/account_spec.rb
165
172
  - spec/models/accounts_spec.rb
166
173
  - spec/models/address_spec.rb
174
+ - spec/models/authorization_type_spec.rb
167
175
  - spec/models/contact_spec.rb
168
176
  - spec/models/customer_spec.rb
169
177
  - spec/models/customers_spec.rb
@@ -186,6 +194,7 @@ files:
186
194
  - spec/models/sale_payment_spec.rb
187
195
  - spec/models/sale_quote_line_spec.rb
188
196
  - spec/models/sale_quote_spec.rb
197
+ - spec/models/sale_spec.rb
189
198
  - spec/models/shipping_address_spec.rb
190
199
  - spec/models/success_spec.rb
191
200
  - spec/models/supplier_customer_address_spec.rb
@@ -193,6 +202,7 @@ files:
193
202
  - spec/models/tax_spec.rb
194
203
  - spec/models/taxes_spec.rb
195
204
  - spec/models/webhook_spec.rb
205
+ - spec/models/webhook_type_spec.rb
196
206
  - spec/models/webhooks_spec.rb
197
207
  - spec/spec_helper.rb
198
208
  homepage: https://inventory.dearsystems.com
@@ -218,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
228
  - !ruby/object:Gem::Version
219
229
  version: '0'
220
230
  requirements: []
221
- rubygems_version: 3.2.22
231
+ rubygems_version: 3.3.10
222
232
  signing_key:
223
233
  specification_version: 4
224
234
  summary: DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com
@@ -245,12 +255,15 @@ test_files:
245
255
  - spec/models/sale_invoice_delete_spec.rb
246
256
  - spec/models/sale_payment_spec.rb
247
257
  - spec/models/sale_additional_charge_spec.rb
258
+ - spec/models/sale_spec.rb
259
+ - spec/models/webhook_type_spec.rb
248
260
  - spec/models/taxes_spec.rb
249
261
  - spec/models/accounts_spec.rb
250
262
  - spec/models/me_spec.rb
251
263
  - spec/models/shipping_address_spec.rb
252
264
  - spec/models/sale_order_spec.rb
253
265
  - spec/models/sale_invoice_additional_charge_spec.rb
266
+ - spec/models/authorization_type_spec.rb
254
267
  - spec/models/sale_invoices_spec.rb
255
268
  - spec/models/sale_quote_spec.rb
256
269
  - spec/models/sale_quote_line_spec.rb