dear-inventory-ruby 0.1.18 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -10
  3. data/README.md +32 -5
  4. data/docs/Address.md +10 -12
  5. data/docs/Customer.md +1 -1
  6. data/docs/ExternalHeader.md +19 -0
  7. data/docs/InventoryApi.md +1021 -161
  8. data/docs/SaleAdditionalCharge.md +31 -0
  9. data/docs/SaleInvoice.md +1 -1
  10. data/docs/SaleInvoiceAdditionalCharge.md +3 -3
  11. data/docs/SaleInvoiceDelete.md +19 -0
  12. data/docs/SaleInvoiceLine.md +2 -2
  13. data/docs/SaleInvoicePost.md +41 -0
  14. data/docs/SaleOrder.md +35 -0
  15. data/docs/SaleOrderLine.md +41 -0
  16. data/docs/SalePayment.md +43 -0
  17. data/docs/SaleQuote.md +33 -0
  18. data/docs/SaleQuoteLine.md +37 -0
  19. data/docs/ShippingAddress.md +37 -0
  20. data/docs/SupplierCustomerAddress.md +33 -0
  21. data/docs/Webhook.md +35 -0
  22. data/docs/Webhooks.md +17 -0
  23. data/lib/dear-inventory-ruby/api/inventory_api.rb +988 -119
  24. data/lib/dear-inventory-ruby/models/address.rb +28 -115
  25. data/lib/dear-inventory-ruby/models/customer.rb +1 -1
  26. data/lib/dear-inventory-ruby/models/external_header.rb +217 -0
  27. data/lib/dear-inventory-ruby/models/sale_additional_charge.rb +302 -0
  28. data/lib/dear-inventory-ruby/models/sale_invoice.rb +1 -1
  29. data/lib/dear-inventory-ruby/models/sale_invoice_additional_charge.rb +3 -3
  30. data/lib/dear-inventory-ruby/models/sale_invoice_delete.rb +224 -0
  31. data/lib/dear-inventory-ruby/models/sale_invoice_line.rb +0 -10
  32. data/lib/dear-inventory-ruby/models/sale_invoice_post.rb +361 -0
  33. data/lib/dear-inventory-ruby/models/sale_order.rb +336 -0
  34. data/lib/dear-inventory-ruby/models/sale_order_line.rb +342 -0
  35. data/lib/dear-inventory-ruby/models/sale_payment.rb +337 -0
  36. data/lib/dear-inventory-ruby/models/sale_quote.rb +326 -0
  37. data/lib/dear-inventory-ruby/models/sale_quote_line.rb +322 -0
  38. data/lib/dear-inventory-ruby/models/shipping_address.rb +317 -0
  39. data/lib/dear-inventory-ruby/models/supplier_customer_address.rb +374 -0
  40. data/lib/dear-inventory-ruby/models/webhook.rb +319 -0
  41. data/lib/dear-inventory-ruby/models/webhooks.rb +209 -0
  42. data/lib/dear-inventory-ruby/version.rb +1 -1
  43. data/lib/dear-inventory-ruby.rb +13 -0
  44. data/spec/api/inventory_api_spec.rb +166 -0
  45. data/spec/models/address_spec.rb +7 -13
  46. data/spec/models/external_header_spec.rb +47 -0
  47. data/spec/models/sale_additional_charge_spec.rb +83 -0
  48. data/spec/models/sale_invoice_delete_spec.rb +47 -0
  49. data/spec/models/sale_invoice_post_spec.rb +113 -0
  50. data/spec/models/sale_order_line_spec.rb +113 -0
  51. data/spec/models/sale_order_spec.rb +95 -0
  52. data/spec/models/sale_payment_spec.rb +119 -0
  53. data/spec/models/sale_quote_line_spec.rb +101 -0
  54. data/spec/models/sale_quote_spec.rb +89 -0
  55. data/spec/models/shipping_address_spec.rb +101 -0
  56. data/spec/models/supplier_customer_address_spec.rb +89 -0
  57. data/spec/models/webhook_spec.rb +95 -0
  58. data/spec/models/webhooks_spec.rb +41 -0
  59. metadata +55 -4
  60. data/spec/.DS_Store +0 -0
@@ -0,0 +1,41 @@
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::Webhooks
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'Webhooks' do
21
+ before do
22
+ # run before each test
23
+ @instance = DearInventoryRuby::Webhooks.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Webhooks' do
31
+ it 'should create an instance of Webhooks' do
32
+ expect(@instance).to be_instance_of(DearInventoryRuby::Webhooks)
33
+ end
34
+ end
35
+ describe 'test attribute "webhooks"' 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
+ 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.1.18
4
+ version: 0.2.2
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-06-07 00:00:00.000000000 Z
11
+ date: 2021-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -91,20 +91,33 @@ files:
91
91
  - docs/Customer.md
92
92
  - docs/Customers.md
93
93
  - docs/Error.md
94
+ - docs/ExternalHeader.md
94
95
  - docs/InventoryApi.md
95
96
  - docs/Me.md
96
97
  - docs/PaymentTerm.md
97
98
  - docs/PaymentTerms.md
98
99
  - docs/PriceTier.md
99
100
  - docs/PriceTiers.md
101
+ - docs/SaleAdditionalCharge.md
100
102
  - docs/SaleInvoice.md
101
103
  - docs/SaleInvoiceAdditionalCharge.md
104
+ - docs/SaleInvoiceDelete.md
102
105
  - docs/SaleInvoiceLine.md
106
+ - docs/SaleInvoicePost.md
103
107
  - docs/SaleInvoices.md
108
+ - docs/SaleOrder.md
109
+ - docs/SaleOrderLine.md
110
+ - docs/SalePayment.md
111
+ - docs/SaleQuote.md
112
+ - docs/SaleQuoteLine.md
113
+ - docs/ShippingAddress.md
104
114
  - docs/Success.md
115
+ - docs/SupplierCustomerAddress.md
105
116
  - docs/Tax.md
106
117
  - docs/TaxComponent.md
107
118
  - docs/Taxes.md
119
+ - docs/Webhook.md
120
+ - docs/Webhooks.md
108
121
  - git_push.sh
109
122
  - lib/dear-inventory-ruby.rb
110
123
  - lib/dear-inventory-ruby/api/inventory_api.rb
@@ -118,21 +131,33 @@ files:
118
131
  - lib/dear-inventory-ruby/models/customer.rb
119
132
  - lib/dear-inventory-ruby/models/customers.rb
120
133
  - lib/dear-inventory-ruby/models/error.rb
134
+ - lib/dear-inventory-ruby/models/external_header.rb
121
135
  - lib/dear-inventory-ruby/models/me.rb
122
136
  - lib/dear-inventory-ruby/models/payment_term.rb
123
137
  - lib/dear-inventory-ruby/models/payment_terms.rb
124
138
  - lib/dear-inventory-ruby/models/price_tier.rb
125
139
  - lib/dear-inventory-ruby/models/price_tiers.rb
140
+ - lib/dear-inventory-ruby/models/sale_additional_charge.rb
126
141
  - lib/dear-inventory-ruby/models/sale_invoice.rb
127
142
  - lib/dear-inventory-ruby/models/sale_invoice_additional_charge.rb
143
+ - lib/dear-inventory-ruby/models/sale_invoice_delete.rb
128
144
  - lib/dear-inventory-ruby/models/sale_invoice_line.rb
145
+ - lib/dear-inventory-ruby/models/sale_invoice_post.rb
129
146
  - lib/dear-inventory-ruby/models/sale_invoices.rb
147
+ - lib/dear-inventory-ruby/models/sale_order.rb
148
+ - lib/dear-inventory-ruby/models/sale_order_line.rb
149
+ - lib/dear-inventory-ruby/models/sale_payment.rb
150
+ - lib/dear-inventory-ruby/models/sale_quote.rb
151
+ - lib/dear-inventory-ruby/models/sale_quote_line.rb
152
+ - lib/dear-inventory-ruby/models/shipping_address.rb
130
153
  - lib/dear-inventory-ruby/models/success.rb
154
+ - lib/dear-inventory-ruby/models/supplier_customer_address.rb
131
155
  - lib/dear-inventory-ruby/models/tax.rb
132
156
  - lib/dear-inventory-ruby/models/tax_component.rb
133
157
  - lib/dear-inventory-ruby/models/taxes.rb
158
+ - lib/dear-inventory-ruby/models/webhook.rb
159
+ - lib/dear-inventory-ruby/models/webhooks.rb
134
160
  - lib/dear-inventory-ruby/version.rb
135
- - spec/.DS_Store
136
161
  - spec/api/inventory_api_spec.rb
137
162
  - spec/api_client_spec.rb
138
163
  - spec/configuration_spec.rb
@@ -143,19 +168,32 @@ files:
143
168
  - spec/models/customer_spec.rb
144
169
  - spec/models/customers_spec.rb
145
170
  - spec/models/error_spec.rb
171
+ - spec/models/external_header_spec.rb
146
172
  - spec/models/me_spec.rb
147
173
  - spec/models/payment_term_spec.rb
148
174
  - spec/models/payment_terms_spec.rb
149
175
  - spec/models/price_tier_spec.rb
150
176
  - spec/models/price_tiers_spec.rb
177
+ - spec/models/sale_additional_charge_spec.rb
151
178
  - spec/models/sale_invoice_additional_charge_spec.rb
179
+ - spec/models/sale_invoice_delete_spec.rb
152
180
  - spec/models/sale_invoice_line_spec.rb
181
+ - spec/models/sale_invoice_post_spec.rb
153
182
  - spec/models/sale_invoice_spec.rb
154
183
  - spec/models/sale_invoices_spec.rb
184
+ - spec/models/sale_order_line_spec.rb
185
+ - spec/models/sale_order_spec.rb
186
+ - spec/models/sale_payment_spec.rb
187
+ - spec/models/sale_quote_line_spec.rb
188
+ - spec/models/sale_quote_spec.rb
189
+ - spec/models/shipping_address_spec.rb
155
190
  - spec/models/success_spec.rb
191
+ - spec/models/supplier_customer_address_spec.rb
156
192
  - spec/models/tax_component_spec.rb
157
193
  - spec/models/tax_spec.rb
158
194
  - spec/models/taxes_spec.rb
195
+ - spec/models/webhook_spec.rb
196
+ - spec/models/webhooks_spec.rb
159
197
  - spec/spec_helper.rb
160
198
  homepage: https://inventory.dearsystems.com
161
199
  licenses:
@@ -180,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
218
  - !ruby/object:Gem::Version
181
219
  version: '0'
182
220
  requirements: []
183
- rubygems_version: 3.2.3
221
+ rubygems_version: 3.2.22
184
222
  signing_key:
185
223
  specification_version: 4
186
224
  summary: DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com
@@ -190,20 +228,33 @@ test_files:
190
228
  - spec/configuration_spec.rb
191
229
  - spec/models/error_spec.rb
192
230
  - spec/models/contact_spec.rb
231
+ - spec/models/webhook_spec.rb
193
232
  - spec/models/tax_spec.rb
194
233
  - spec/models/account_spec.rb
234
+ - spec/models/sale_invoice_post_spec.rb
235
+ - spec/models/external_header_spec.rb
195
236
  - spec/models/tax_component_spec.rb
196
237
  - spec/models/sale_invoice_line_spec.rb
238
+ - spec/models/supplier_customer_address_spec.rb
197
239
  - spec/models/payment_term_spec.rb
198
240
  - spec/models/payment_terms_spec.rb
199
241
  - spec/models/sale_invoice_spec.rb
242
+ - spec/models/sale_order_line_spec.rb
200
243
  - spec/models/customers_spec.rb
201
244
  - spec/models/customer_spec.rb
245
+ - spec/models/sale_invoice_delete_spec.rb
246
+ - spec/models/sale_payment_spec.rb
247
+ - spec/models/sale_additional_charge_spec.rb
202
248
  - spec/models/taxes_spec.rb
203
249
  - spec/models/accounts_spec.rb
204
250
  - spec/models/me_spec.rb
251
+ - spec/models/shipping_address_spec.rb
252
+ - spec/models/sale_order_spec.rb
205
253
  - spec/models/sale_invoice_additional_charge_spec.rb
206
254
  - spec/models/sale_invoices_spec.rb
255
+ - spec/models/sale_quote_spec.rb
256
+ - spec/models/sale_quote_line_spec.rb
257
+ - spec/models/webhooks_spec.rb
207
258
  - spec/models/success_spec.rb
208
259
  - spec/models/price_tier_spec.rb
209
260
  - spec/models/address_spec.rb
data/spec/.DS_Store DELETED
Binary file