dear-inventory-ruby 0.1.14 → 0.1.15
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 +4 -0
- data/README.md +9 -4
- data/docs/InventoryApi.md +64 -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 +4 -0
- data/lib/dear-inventory-ruby/api/inventory_api.rb +63 -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 +13 -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 +22 -6
@@ -0,0 +1,113 @@
|
|
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::SaleInvoice
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'SaleInvoice' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::SaleInvoice.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of SaleInvoice' do
|
31
|
+
it 'should create an instance of SaleInvoice' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::SaleInvoice)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "task_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 "combine_additional_charges"' 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 "invoice_number"' 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 "memo"' 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 "status"' 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 "invoice_date"' 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 "invoice_due_date"' 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 "currency_conversion_rate"' 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_line1"' 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 "billing_address_line2"' 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 "linked_fulfillment_number"' 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 "lines"' 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 "additional_charges"' 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
|
+
end
|
@@ -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: 2021-
|
11
|
+
date: 2021-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -93,6 +93,10 @@ files:
|
|
93
93
|
- docs/PaymentTerms.md
|
94
94
|
- docs/PriceTier.md
|
95
95
|
- docs/PriceTiers.md
|
96
|
+
- docs/SaleInvoice.md
|
97
|
+
- docs/SaleInvoiceAdditionalCharge.md
|
98
|
+
- docs/SaleInvoiceLine.md
|
99
|
+
- docs/SaleInvoices.md
|
96
100
|
- docs/Success.md
|
97
101
|
- docs/Tax.md
|
98
102
|
- docs/TaxComponent.md
|
@@ -118,6 +122,10 @@ files:
|
|
118
122
|
- lib/dear-inventory-ruby/models/payment_terms.rb
|
119
123
|
- lib/dear-inventory-ruby/models/price_tier.rb
|
120
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
|
121
129
|
- lib/dear-inventory-ruby/models/success.rb
|
122
130
|
- lib/dear-inventory-ruby/models/tax.rb
|
123
131
|
- lib/dear-inventory-ruby/models/tax_component.rb
|
@@ -142,6 +150,10 @@ files:
|
|
142
150
|
- spec/models/payment_terms_spec.rb
|
143
151
|
- spec/models/price_tier_spec.rb
|
144
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
|
145
157
|
- spec/models/success_spec.rb
|
146
158
|
- spec/models/tax_component_spec.rb
|
147
159
|
- spec/models/tax_spec.rb
|
@@ -156,7 +168,7 @@ metadata:
|
|
156
168
|
source_code_uri: https://github.com/nnhansg/dear-ruby
|
157
169
|
changelog_uri: https://github.com/nnhansg/dear-ruby/blob/master/CHANGELOG.md
|
158
170
|
bug_tracker_uri: https://github.com/nnhansg/dear-ruby/issues
|
159
|
-
post_install_message:
|
171
|
+
post_install_message:
|
160
172
|
rdoc_options: []
|
161
173
|
require_paths:
|
162
174
|
- lib
|
@@ -171,8 +183,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
183
|
- !ruby/object:Gem::Version
|
172
184
|
version: '0'
|
173
185
|
requirements: []
|
174
|
-
rubygems_version: 3.
|
175
|
-
signing_key:
|
186
|
+
rubygems_version: 3.2.3
|
187
|
+
signing_key:
|
176
188
|
specification_version: 4
|
177
189
|
summary: DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com
|
178
190
|
test_files:
|
@@ -185,14 +197,18 @@ test_files:
|
|
185
197
|
- spec/models/account_spec.rb
|
186
198
|
- spec/models/tax_component_spec.rb
|
187
199
|
- spec/models/currency_code_spec.rb
|
200
|
+
- spec/models/sale_invoice_line_spec.rb
|
188
201
|
- spec/models/dimensions_unit_spec.rb
|
189
202
|
- spec/models/payment_term_spec.rb
|
190
203
|
- spec/models/payment_terms_spec.rb
|
204
|
+
- spec/models/sale_invoice_spec.rb
|
191
205
|
- spec/models/customers_spec.rb
|
192
206
|
- spec/models/customer_spec.rb
|
193
207
|
- spec/models/taxes_spec.rb
|
194
208
|
- spec/models/accounts_spec.rb
|
195
209
|
- spec/models/me_spec.rb
|
210
|
+
- spec/models/sale_invoice_additional_charge_spec.rb
|
211
|
+
- spec/models/sale_invoices_spec.rb
|
196
212
|
- spec/models/success_spec.rb
|
197
213
|
- spec/models/price_tier_spec.rb
|
198
214
|
- spec/models/weight_unit_spec.rb
|