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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -1
  3. data/README.md +9 -7
  4. data/dear-inventory-ruby.gemspec +1 -1
  5. data/docs/Customer.md +1 -1
  6. data/docs/InventoryApi.md +64 -0
  7. data/docs/Me.md +3 -3
  8. data/docs/SaleInvoice.md +41 -0
  9. data/docs/SaleInvoiceAdditionalCharge.md +33 -0
  10. data/docs/SaleInvoiceLine.md +39 -0
  11. data/docs/SaleInvoices.md +19 -0
  12. data/lib/dear-inventory-ruby.rb +4 -3
  13. data/lib/dear-inventory-ruby/api/inventory_api.rb +63 -0
  14. data/lib/dear-inventory-ruby/models/account.rb +0 -34
  15. data/lib/dear-inventory-ruby/models/customer.rb +2 -35
  16. data/lib/dear-inventory-ruby/models/me.rb +6 -3
  17. data/lib/dear-inventory-ruby/models/payment_term.rb +0 -34
  18. data/lib/dear-inventory-ruby/models/sale_invoice.rb +356 -0
  19. data/lib/dear-inventory-ruby/models/sale_invoice_additional_charge.rb +317 -0
  20. data/lib/dear-inventory-ruby/models/sale_invoice_line.rb +342 -0
  21. data/lib/dear-inventory-ruby/models/sale_invoices.rb +224 -0
  22. data/lib/dear-inventory-ruby/version.rb +1 -1
  23. data/spec/.DS_Store +0 -0
  24. data/spec/api/inventory_api_spec.rb +13 -0
  25. data/spec/models/account_spec.rb +0 -4
  26. data/spec/models/customer_spec.rb +0 -4
  27. data/spec/models/payment_term_spec.rb +0 -4
  28. data/spec/models/sale_invoice_additional_charge_spec.rb +89 -0
  29. data/spec/models/sale_invoice_line_spec.rb +107 -0
  30. data/spec/models/sale_invoice_spec.rb +113 -0
  31. data/spec/models/sale_invoices_spec.rb +47 -0
  32. metadata +31 -21
  33. data/docs/CurrencyCode.md +0 -16
  34. data/docs/DimensionsUnit.md +0 -16
  35. data/docs/WeightUnit.md +0 -16
  36. data/lib/dear-inventory-ruby/models/currency_code.rb +0 -196
  37. data/lib/dear-inventory-ruby/models/dimensions_unit.rb +0 -42
  38. data/lib/dear-inventory-ruby/models/weight_unit.rb +0 -39
  39. data/pkg/dear-inventory-ruby-0.1.13.gem +0 -0
  40. data/spec/models/currency_code_spec.rb +0 -35
  41. data/spec/models/dimensions_unit_spec.rb +0 -35
  42. 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