dear-inventory-ruby 0.1.10 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/README.md +12 -4
- data/docs/Customer.md +1 -1
- data/docs/InventoryApi.md +118 -0
- data/docs/Me.md +1 -1
- data/docs/PriceTier.md +19 -0
- data/docs/PriceTiers.md +17 -0
- data/docs/SaleInvoice.md +41 -0
- data/docs/SaleInvoiceAdditionalCharge.md +33 -0
- data/docs/SaleInvoiceLine.md +39 -0
- data/docs/SaleInvoices.md +19 -0
- data/lib/dear-inventory-ruby.rb +6 -0
- data/lib/dear-inventory-ruby/api/inventory_api.rb +117 -0
- data/lib/dear-inventory-ruby/models/address.rb +0 -34
- data/lib/dear-inventory-ruby/models/customer.rb +7 -6
- data/lib/dear-inventory-ruby/models/me.rb +2 -1
- data/lib/dear-inventory-ruby/models/price_tier.rb +217 -0
- data/lib/dear-inventory-ruby/models/price_tiers.rb +209 -0
- data/lib/dear-inventory-ruby/models/sale_invoice.rb +356 -0
- data/lib/dear-inventory-ruby/models/sale_invoice_additional_charge.rb +317 -0
- data/lib/dear-inventory-ruby/models/sale_invoice_line.rb +342 -0
- data/lib/dear-inventory-ruby/models/sale_invoices.rb +224 -0
- data/lib/dear-inventory-ruby/version.rb +1 -1
- data/spec/.DS_Store +0 -0
- data/spec/api/inventory_api_spec.rb +23 -0
- data/spec/models/address_spec.rb +0 -4
- data/spec/models/price_tier_spec.rb +47 -0
- data/spec/models/price_tiers_spec.rb +41 -0
- data/spec/models/sale_invoice_additional_charge_spec.rb +89 -0
- data/spec/models/sale_invoice_line_spec.rb +107 -0
- data/spec/models/sale_invoice_spec.rb +113 -0
- data/spec/models/sale_invoices_spec.rb +47 -0
- metadata +31 -6
@@ -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::SaleInvoices
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'SaleInvoices' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::SaleInvoices.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of SaleInvoices' do
|
31
|
+
it 'should create an instance of SaleInvoices' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::SaleInvoices)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "sale_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 "invoices"' 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
|
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.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nhan Nguyen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -91,6 +91,12 @@ files:
|
|
91
91
|
- docs/Me.md
|
92
92
|
- docs/PaymentTerm.md
|
93
93
|
- docs/PaymentTerms.md
|
94
|
+
- docs/PriceTier.md
|
95
|
+
- docs/PriceTiers.md
|
96
|
+
- docs/SaleInvoice.md
|
97
|
+
- docs/SaleInvoiceAdditionalCharge.md
|
98
|
+
- docs/SaleInvoiceLine.md
|
99
|
+
- docs/SaleInvoices.md
|
94
100
|
- docs/Success.md
|
95
101
|
- docs/Tax.md
|
96
102
|
- docs/TaxComponent.md
|
@@ -114,12 +120,19 @@ files:
|
|
114
120
|
- lib/dear-inventory-ruby/models/me.rb
|
115
121
|
- lib/dear-inventory-ruby/models/payment_term.rb
|
116
122
|
- lib/dear-inventory-ruby/models/payment_terms.rb
|
123
|
+
- lib/dear-inventory-ruby/models/price_tier.rb
|
124
|
+
- lib/dear-inventory-ruby/models/price_tiers.rb
|
125
|
+
- lib/dear-inventory-ruby/models/sale_invoice.rb
|
126
|
+
- lib/dear-inventory-ruby/models/sale_invoice_additional_charge.rb
|
127
|
+
- lib/dear-inventory-ruby/models/sale_invoice_line.rb
|
128
|
+
- lib/dear-inventory-ruby/models/sale_invoices.rb
|
117
129
|
- lib/dear-inventory-ruby/models/success.rb
|
118
130
|
- lib/dear-inventory-ruby/models/tax.rb
|
119
131
|
- lib/dear-inventory-ruby/models/tax_component.rb
|
120
132
|
- lib/dear-inventory-ruby/models/taxes.rb
|
121
133
|
- lib/dear-inventory-ruby/models/weight_unit.rb
|
122
134
|
- lib/dear-inventory-ruby/version.rb
|
135
|
+
- spec/.DS_Store
|
123
136
|
- spec/api/inventory_api_spec.rb
|
124
137
|
- spec/api_client_spec.rb
|
125
138
|
- spec/configuration_spec.rb
|
@@ -135,6 +148,12 @@ files:
|
|
135
148
|
- spec/models/me_spec.rb
|
136
149
|
- spec/models/payment_term_spec.rb
|
137
150
|
- spec/models/payment_terms_spec.rb
|
151
|
+
- spec/models/price_tier_spec.rb
|
152
|
+
- spec/models/price_tiers_spec.rb
|
153
|
+
- spec/models/sale_invoice_additional_charge_spec.rb
|
154
|
+
- spec/models/sale_invoice_line_spec.rb
|
155
|
+
- spec/models/sale_invoice_spec.rb
|
156
|
+
- spec/models/sale_invoices_spec.rb
|
138
157
|
- spec/models/success_spec.rb
|
139
158
|
- spec/models/tax_component_spec.rb
|
140
159
|
- spec/models/tax_spec.rb
|
@@ -149,7 +168,7 @@ metadata:
|
|
149
168
|
source_code_uri: https://github.com/nnhansg/dear-ruby
|
150
169
|
changelog_uri: https://github.com/nnhansg/dear-ruby/blob/master/CHANGELOG.md
|
151
170
|
bug_tracker_uri: https://github.com/nnhansg/dear-ruby/issues
|
152
|
-
post_install_message:
|
171
|
+
post_install_message:
|
153
172
|
rdoc_options: []
|
154
173
|
require_paths:
|
155
174
|
- lib
|
@@ -164,8 +183,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
183
|
- !ruby/object:Gem::Version
|
165
184
|
version: '0'
|
166
185
|
requirements: []
|
167
|
-
rubygems_version: 3.
|
168
|
-
signing_key:
|
186
|
+
rubygems_version: 3.2.3
|
187
|
+
signing_key:
|
169
188
|
specification_version: 4
|
170
189
|
summary: DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com
|
171
190
|
test_files:
|
@@ -178,15 +197,21 @@ test_files:
|
|
178
197
|
- spec/models/account_spec.rb
|
179
198
|
- spec/models/tax_component_spec.rb
|
180
199
|
- spec/models/currency_code_spec.rb
|
200
|
+
- spec/models/sale_invoice_line_spec.rb
|
181
201
|
- spec/models/dimensions_unit_spec.rb
|
182
202
|
- spec/models/payment_term_spec.rb
|
183
203
|
- spec/models/payment_terms_spec.rb
|
204
|
+
- spec/models/sale_invoice_spec.rb
|
184
205
|
- spec/models/customers_spec.rb
|
185
206
|
- spec/models/customer_spec.rb
|
186
207
|
- spec/models/taxes_spec.rb
|
187
208
|
- spec/models/accounts_spec.rb
|
188
209
|
- spec/models/me_spec.rb
|
210
|
+
- spec/models/sale_invoice_additional_charge_spec.rb
|
211
|
+
- spec/models/sale_invoices_spec.rb
|
189
212
|
- spec/models/success_spec.rb
|
213
|
+
- spec/models/price_tier_spec.rb
|
190
214
|
- spec/models/weight_unit_spec.rb
|
191
215
|
- spec/models/address_spec.rb
|
216
|
+
- spec/models/price_tiers_spec.rb
|
192
217
|
- spec/spec_helper.rb
|