dear-inventory-ruby 0.1.19.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +34 -5
- data/docs/Address.md +10 -12
- data/docs/AuthorizationType.md +16 -0
- data/docs/Customer.md +1 -1
- data/docs/ExternalHeader.md +19 -0
- data/docs/InventoryApi.md +1021 -163
- data/docs/SaleAdditionalCharge.md +31 -0
- data/docs/SaleInvoice.md +1 -1
- data/docs/SaleInvoiceAdditionalCharge.md +3 -3
- data/docs/SaleInvoiceDelete.md +19 -0
- data/docs/SaleInvoiceLine.md +2 -2
- data/docs/SaleInvoicePost.md +41 -0
- data/docs/SaleOrder.md +35 -0
- data/docs/SaleOrderLine.md +41 -0
- data/docs/SalePayment.md +43 -0
- data/docs/SaleQuote.md +33 -0
- data/docs/SaleQuoteLine.md +37 -0
- data/docs/ShippingAddress.md +37 -0
- data/docs/SupplierCustomerAddress.md +33 -0
- data/docs/Webhook.md +35 -0
- data/docs/WebhookType.md +16 -0
- data/docs/Webhooks.md +17 -0
- data/lib/dear-inventory-ruby/api/inventory_api.rb +985 -119
- data/lib/dear-inventory-ruby/models/address.rb +28 -115
- data/lib/dear-inventory-ruby/models/authorization_type.rb +37 -0
- data/lib/dear-inventory-ruby/models/customer.rb +1 -1
- data/lib/dear-inventory-ruby/models/external_header.rb +217 -0
- data/lib/dear-inventory-ruby/models/sale_additional_charge.rb +302 -0
- data/lib/dear-inventory-ruby/models/sale_invoice.rb +1 -1
- data/lib/dear-inventory-ruby/models/sale_invoice_additional_charge.rb +3 -3
- data/lib/dear-inventory-ruby/models/sale_invoice_delete.rb +224 -0
- data/lib/dear-inventory-ruby/models/sale_invoice_line.rb +0 -10
- data/lib/dear-inventory-ruby/models/sale_invoice_post.rb +361 -0
- data/lib/dear-inventory-ruby/models/sale_order.rb +336 -0
- data/lib/dear-inventory-ruby/models/sale_order_line.rb +342 -0
- data/lib/dear-inventory-ruby/models/sale_payment.rb +337 -0
- data/lib/dear-inventory-ruby/models/sale_quote.rb +326 -0
- data/lib/dear-inventory-ruby/models/sale_quote_line.rb +322 -0
- data/lib/dear-inventory-ruby/models/shipping_address.rb +317 -0
- data/lib/dear-inventory-ruby/models/supplier_customer_address.rb +374 -0
- data/lib/dear-inventory-ruby/models/webhook.rb +319 -0
- data/lib/dear-inventory-ruby/models/webhook_type.rb +54 -0
- data/lib/dear-inventory-ruby/models/webhooks.rb +209 -0
- data/lib/dear-inventory-ruby/version.rb +1 -1
- data/lib/dear-inventory-ruby.rb +15 -0
- data/spec/api/inventory_api_spec.rb +165 -0
- data/spec/models/address_spec.rb +7 -13
- data/spec/models/authorization_type_spec.rb +35 -0
- data/spec/models/external_header_spec.rb +47 -0
- data/spec/models/sale_additional_charge_spec.rb +83 -0
- data/spec/models/sale_invoice_delete_spec.rb +47 -0
- data/spec/models/sale_invoice_post_spec.rb +113 -0
- data/spec/models/sale_order_line_spec.rb +113 -0
- data/spec/models/sale_order_spec.rb +95 -0
- data/spec/models/sale_payment_spec.rb +119 -0
- data/spec/models/sale_quote_line_spec.rb +101 -0
- data/spec/models/sale_quote_spec.rb +89 -0
- data/spec/models/shipping_address_spec.rb +101 -0
- data/spec/models/supplier_customer_address_spec.rb +89 -0
- data/spec/models/webhook_spec.rb +95 -0
- data/spec/models/webhook_type_spec.rb +35 -0
- data/spec/models/webhooks_spec.rb +41 -0
- metadata +63 -6
- data/lib/.DS_Store +0 -0
- data/lib/dear-inventory-ruby/.DS_Store +0 -0
- data/spec/.DS_Store +0 -0
@@ -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
|
@@ -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.
|
4
|
+
version: 0.2.3
|
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-
|
11
|
+
date: 2021-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -87,28 +87,41 @@ 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
|
93
94
|
- docs/Error.md
|
95
|
+
- docs/ExternalHeader.md
|
94
96
|
- docs/InventoryApi.md
|
95
97
|
- docs/Me.md
|
96
98
|
- docs/PaymentTerm.md
|
97
99
|
- docs/PaymentTerms.md
|
98
100
|
- docs/PriceTier.md
|
99
101
|
- docs/PriceTiers.md
|
102
|
+
- docs/SaleAdditionalCharge.md
|
100
103
|
- docs/SaleInvoice.md
|
101
104
|
- docs/SaleInvoiceAdditionalCharge.md
|
105
|
+
- docs/SaleInvoiceDelete.md
|
102
106
|
- docs/SaleInvoiceLine.md
|
107
|
+
- docs/SaleInvoicePost.md
|
103
108
|
- docs/SaleInvoices.md
|
109
|
+
- docs/SaleOrder.md
|
110
|
+
- docs/SaleOrderLine.md
|
111
|
+
- docs/SalePayment.md
|
112
|
+
- docs/SaleQuote.md
|
113
|
+
- docs/SaleQuoteLine.md
|
114
|
+
- docs/ShippingAddress.md
|
104
115
|
- docs/Success.md
|
116
|
+
- docs/SupplierCustomerAddress.md
|
105
117
|
- docs/Tax.md
|
106
118
|
- docs/TaxComponent.md
|
107
119
|
- docs/Taxes.md
|
120
|
+
- docs/Webhook.md
|
121
|
+
- docs/WebhookType.md
|
122
|
+
- docs/Webhooks.md
|
108
123
|
- git_push.sh
|
109
|
-
- lib/.DS_Store
|
110
124
|
- lib/dear-inventory-ruby.rb
|
111
|
-
- lib/dear-inventory-ruby/.DS_Store
|
112
125
|
- lib/dear-inventory-ruby/api/inventory_api.rb
|
113
126
|
- lib/dear-inventory-ruby/api_client.rb
|
114
127
|
- lib/dear-inventory-ruby/api_error.rb
|
@@ -116,48 +129,77 @@ files:
|
|
116
129
|
- lib/dear-inventory-ruby/models/account.rb
|
117
130
|
- lib/dear-inventory-ruby/models/accounts.rb
|
118
131
|
- lib/dear-inventory-ruby/models/address.rb
|
132
|
+
- lib/dear-inventory-ruby/models/authorization_type.rb
|
119
133
|
- lib/dear-inventory-ruby/models/contact.rb
|
120
134
|
- lib/dear-inventory-ruby/models/customer.rb
|
121
135
|
- lib/dear-inventory-ruby/models/customers.rb
|
122
136
|
- lib/dear-inventory-ruby/models/error.rb
|
137
|
+
- lib/dear-inventory-ruby/models/external_header.rb
|
123
138
|
- lib/dear-inventory-ruby/models/me.rb
|
124
139
|
- lib/dear-inventory-ruby/models/payment_term.rb
|
125
140
|
- lib/dear-inventory-ruby/models/payment_terms.rb
|
126
141
|
- lib/dear-inventory-ruby/models/price_tier.rb
|
127
142
|
- lib/dear-inventory-ruby/models/price_tiers.rb
|
143
|
+
- lib/dear-inventory-ruby/models/sale_additional_charge.rb
|
128
144
|
- lib/dear-inventory-ruby/models/sale_invoice.rb
|
129
145
|
- lib/dear-inventory-ruby/models/sale_invoice_additional_charge.rb
|
146
|
+
- lib/dear-inventory-ruby/models/sale_invoice_delete.rb
|
130
147
|
- lib/dear-inventory-ruby/models/sale_invoice_line.rb
|
148
|
+
- lib/dear-inventory-ruby/models/sale_invoice_post.rb
|
131
149
|
- lib/dear-inventory-ruby/models/sale_invoices.rb
|
150
|
+
- lib/dear-inventory-ruby/models/sale_order.rb
|
151
|
+
- lib/dear-inventory-ruby/models/sale_order_line.rb
|
152
|
+
- lib/dear-inventory-ruby/models/sale_payment.rb
|
153
|
+
- lib/dear-inventory-ruby/models/sale_quote.rb
|
154
|
+
- lib/dear-inventory-ruby/models/sale_quote_line.rb
|
155
|
+
- lib/dear-inventory-ruby/models/shipping_address.rb
|
132
156
|
- lib/dear-inventory-ruby/models/success.rb
|
157
|
+
- lib/dear-inventory-ruby/models/supplier_customer_address.rb
|
133
158
|
- lib/dear-inventory-ruby/models/tax.rb
|
134
159
|
- lib/dear-inventory-ruby/models/tax_component.rb
|
135
160
|
- lib/dear-inventory-ruby/models/taxes.rb
|
161
|
+
- lib/dear-inventory-ruby/models/webhook.rb
|
162
|
+
- lib/dear-inventory-ruby/models/webhook_type.rb
|
163
|
+
- lib/dear-inventory-ruby/models/webhooks.rb
|
136
164
|
- lib/dear-inventory-ruby/version.rb
|
137
|
-
- spec/.DS_Store
|
138
165
|
- spec/api/inventory_api_spec.rb
|
139
166
|
- spec/api_client_spec.rb
|
140
167
|
- spec/configuration_spec.rb
|
141
168
|
- spec/models/account_spec.rb
|
142
169
|
- spec/models/accounts_spec.rb
|
143
170
|
- spec/models/address_spec.rb
|
171
|
+
- spec/models/authorization_type_spec.rb
|
144
172
|
- spec/models/contact_spec.rb
|
145
173
|
- spec/models/customer_spec.rb
|
146
174
|
- spec/models/customers_spec.rb
|
147
175
|
- spec/models/error_spec.rb
|
176
|
+
- spec/models/external_header_spec.rb
|
148
177
|
- spec/models/me_spec.rb
|
149
178
|
- spec/models/payment_term_spec.rb
|
150
179
|
- spec/models/payment_terms_spec.rb
|
151
180
|
- spec/models/price_tier_spec.rb
|
152
181
|
- spec/models/price_tiers_spec.rb
|
182
|
+
- spec/models/sale_additional_charge_spec.rb
|
153
183
|
- spec/models/sale_invoice_additional_charge_spec.rb
|
184
|
+
- spec/models/sale_invoice_delete_spec.rb
|
154
185
|
- spec/models/sale_invoice_line_spec.rb
|
186
|
+
- spec/models/sale_invoice_post_spec.rb
|
155
187
|
- spec/models/sale_invoice_spec.rb
|
156
188
|
- spec/models/sale_invoices_spec.rb
|
189
|
+
- spec/models/sale_order_line_spec.rb
|
190
|
+
- spec/models/sale_order_spec.rb
|
191
|
+
- spec/models/sale_payment_spec.rb
|
192
|
+
- spec/models/sale_quote_line_spec.rb
|
193
|
+
- spec/models/sale_quote_spec.rb
|
194
|
+
- spec/models/shipping_address_spec.rb
|
157
195
|
- spec/models/success_spec.rb
|
196
|
+
- spec/models/supplier_customer_address_spec.rb
|
158
197
|
- spec/models/tax_component_spec.rb
|
159
198
|
- spec/models/tax_spec.rb
|
160
199
|
- spec/models/taxes_spec.rb
|
200
|
+
- spec/models/webhook_spec.rb
|
201
|
+
- spec/models/webhook_type_spec.rb
|
202
|
+
- spec/models/webhooks_spec.rb
|
161
203
|
- spec/spec_helper.rb
|
162
204
|
homepage: https://inventory.dearsystems.com
|
163
205
|
licenses:
|
@@ -182,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
224
|
- !ruby/object:Gem::Version
|
183
225
|
version: '0'
|
184
226
|
requirements: []
|
185
|
-
rubygems_version: 3.2.
|
227
|
+
rubygems_version: 3.2.22
|
186
228
|
signing_key:
|
187
229
|
specification_version: 4
|
188
230
|
summary: DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com
|
@@ -192,20 +234,35 @@ test_files:
|
|
192
234
|
- spec/configuration_spec.rb
|
193
235
|
- spec/models/error_spec.rb
|
194
236
|
- spec/models/contact_spec.rb
|
237
|
+
- spec/models/webhook_spec.rb
|
195
238
|
- spec/models/tax_spec.rb
|
196
239
|
- spec/models/account_spec.rb
|
240
|
+
- spec/models/sale_invoice_post_spec.rb
|
241
|
+
- spec/models/external_header_spec.rb
|
197
242
|
- spec/models/tax_component_spec.rb
|
198
243
|
- spec/models/sale_invoice_line_spec.rb
|
244
|
+
- spec/models/supplier_customer_address_spec.rb
|
199
245
|
- spec/models/payment_term_spec.rb
|
200
246
|
- spec/models/payment_terms_spec.rb
|
201
247
|
- spec/models/sale_invoice_spec.rb
|
248
|
+
- spec/models/sale_order_line_spec.rb
|
202
249
|
- spec/models/customers_spec.rb
|
203
250
|
- spec/models/customer_spec.rb
|
251
|
+
- spec/models/sale_invoice_delete_spec.rb
|
252
|
+
- spec/models/sale_payment_spec.rb
|
253
|
+
- spec/models/sale_additional_charge_spec.rb
|
254
|
+
- spec/models/webhook_type_spec.rb
|
204
255
|
- spec/models/taxes_spec.rb
|
205
256
|
- spec/models/accounts_spec.rb
|
206
257
|
- spec/models/me_spec.rb
|
258
|
+
- spec/models/shipping_address_spec.rb
|
259
|
+
- spec/models/sale_order_spec.rb
|
207
260
|
- spec/models/sale_invoice_additional_charge_spec.rb
|
261
|
+
- spec/models/authorization_type_spec.rb
|
208
262
|
- spec/models/sale_invoices_spec.rb
|
263
|
+
- spec/models/sale_quote_spec.rb
|
264
|
+
- spec/models/sale_quote_line_spec.rb
|
265
|
+
- spec/models/webhooks_spec.rb
|
209
266
|
- spec/models/success_spec.rb
|
210
267
|
- spec/models/price_tier_spec.rb
|
211
268
|
- spec/models/address_spec.rb
|
data/lib/.DS_Store
DELETED
Binary file
|
Binary file
|
data/spec/.DS_Store
DELETED
Binary file
|