dear-inventory-ruby 0.1.13 → 0.1.18
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 +21 -1
- data/README.md +9 -7
- data/dear-inventory-ruby.gemspec +1 -1
- data/docs/Customer.md +1 -1
- data/docs/InventoryApi.md +64 -0
- data/docs/Me.md +3 -3
- 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 -3
- data/lib/dear-inventory-ruby/api/inventory_api.rb +63 -0
- data/lib/dear-inventory-ruby/models/account.rb +0 -34
- data/lib/dear-inventory-ruby/models/customer.rb +2 -35
- data/lib/dear-inventory-ruby/models/me.rb +6 -3
- data/lib/dear-inventory-ruby/models/payment_term.rb +0 -34
- 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/account_spec.rb +0 -4
- data/spec/models/customer_spec.rb +0 -4
- data/spec/models/payment_term_spec.rb +0 -4
- 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 -21
- data/docs/CurrencyCode.md +0 -16
- data/docs/DimensionsUnit.md +0 -16
- data/docs/WeightUnit.md +0 -16
- data/lib/dear-inventory-ruby/models/currency_code.rb +0 -196
- data/lib/dear-inventory-ruby/models/dimensions_unit.rb +0 -42
- data/lib/dear-inventory-ruby/models/weight_unit.rb +0 -39
- data/pkg/dear-inventory-ruby-0.1.13.gem +0 -0
- data/spec/models/currency_code_spec.rb +0 -35
- data/spec/models/dimensions_unit_spec.rb +0 -35
- data/spec/models/weight_unit_spec.rb +0 -35
@@ -1,42 +0,0 @@
|
|
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 'date'
|
14
|
-
|
15
|
-
module DearInventoryRuby
|
16
|
-
class DimensionsUnit
|
17
|
-
M = "m".freeze
|
18
|
-
CM = "cm".freeze
|
19
|
-
MI = "mi".freeze
|
20
|
-
MM = "mm".freeze
|
21
|
-
IN = "in".freeze
|
22
|
-
FT = "ft".freeze
|
23
|
-
YD = "yd".freeze
|
24
|
-
KM = "km".freeze
|
25
|
-
|
26
|
-
# Builds the enum from string
|
27
|
-
# @param [String] The enum value in the form of the string
|
28
|
-
# @return [String] The enum value
|
29
|
-
def self.build_from_hash(value)
|
30
|
-
new.build_from_hash(value)
|
31
|
-
end
|
32
|
-
|
33
|
-
# Builds the enum from string
|
34
|
-
# @param [String] The enum value in the form of the string
|
35
|
-
# @return [String] The enum value
|
36
|
-
def build_from_hash(value)
|
37
|
-
constantValues = DimensionsUnit.constants.select { |c| DimensionsUnit::const_get(c) == value }
|
38
|
-
raise "Invalid ENUM value #{value} for class #DimensionsUnit" if constantValues.empty?
|
39
|
-
value
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
@@ -1,39 +0,0 @@
|
|
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 'date'
|
14
|
-
|
15
|
-
module DearInventoryRuby
|
16
|
-
class WeightUnit
|
17
|
-
OZ = "oz".freeze
|
18
|
-
MG = "mg".freeze
|
19
|
-
KG = "kg".freeze
|
20
|
-
LB = "lb".freeze
|
21
|
-
G = "g".freeze
|
22
|
-
|
23
|
-
# Builds the enum from string
|
24
|
-
# @param [String] The enum value in the form of the string
|
25
|
-
# @return [String] The enum value
|
26
|
-
def self.build_from_hash(value)
|
27
|
-
new.build_from_hash(value)
|
28
|
-
end
|
29
|
-
|
30
|
-
# Builds the enum from string
|
31
|
-
# @param [String] The enum value in the form of the string
|
32
|
-
# @return [String] The enum value
|
33
|
-
def build_from_hash(value)
|
34
|
-
constantValues = WeightUnit.constants.select { |c| WeightUnit::const_get(c) == value }
|
35
|
-
raise "Invalid ENUM value #{value} for class #WeightUnit" if constantValues.empty?
|
36
|
-
value
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
Binary file
|
@@ -1,35 +0,0 @@
|
|
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::CurrencyCode
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'CurrencyCode' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = DearInventoryRuby::CurrencyCode.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of CurrencyCode' do
|
31
|
-
it 'should create an instance of CurrencyCode' do
|
32
|
-
expect(@instance).to be_instance_of(DearInventoryRuby::CurrencyCode)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,35 +0,0 @@
|
|
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::DimensionsUnit
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'DimensionsUnit' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = DearInventoryRuby::DimensionsUnit.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of DimensionsUnit' do
|
31
|
-
it 'should create an instance of DimensionsUnit' do
|
32
|
-
expect(@instance).to be_instance_of(DearInventoryRuby::DimensionsUnit)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,35 +0,0 @@
|
|
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::WeightUnit
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'WeightUnit' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = DearInventoryRuby::WeightUnit.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of WeightUnit' do
|
31
|
-
it 'should create an instance of WeightUnit' do
|
32
|
-
expect(@instance).to be_instance_of(DearInventoryRuby::WeightUnit)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|