dear-inventory-ruby 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -9
  3. data/docs/Account.md +43 -0
  4. data/docs/Accounts.md +21 -0
  5. data/docs/Address.md +2 -2
  6. data/docs/Contact.md +1 -1
  7. data/docs/Customer.md +7 -7
  8. data/docs/InventoryApi.md +731 -25
  9. data/docs/PaymentTerm.md +27 -0
  10. data/docs/PaymentTerms.md +21 -0
  11. data/docs/Success.md +17 -0
  12. data/docs/Tax.md +33 -0
  13. data/docs/TaxComponent.md +23 -0
  14. data/docs/Taxes.md +21 -0
  15. data/lib/dear-inventory-ruby.rb +8 -0
  16. data/lib/dear-inventory-ruby/api/inventory_api.rb +740 -14
  17. data/lib/dear-inventory-ruby/models/account.rb +477 -0
  18. data/lib/dear-inventory-ruby/models/accounts.rb +229 -0
  19. data/lib/dear-inventory-ruby/models/address.rb +10 -0
  20. data/lib/dear-inventory-ruby/models/contact.rb +12 -3
  21. data/lib/dear-inventory-ruby/models/customer.rb +42 -3
  22. data/lib/dear-inventory-ruby/models/payment_term.rb +319 -0
  23. data/lib/dear-inventory-ruby/models/payment_terms.rb +229 -0
  24. data/lib/dear-inventory-ruby/models/success.rb +207 -0
  25. data/lib/dear-inventory-ruby/models/tax.rb +360 -0
  26. data/lib/dear-inventory-ruby/models/tax_component.rb +306 -0
  27. data/lib/dear-inventory-ruby/models/taxes.rb +229 -0
  28. data/lib/dear-inventory-ruby/version.rb +1 -1
  29. data/spec/api/inventory_api_spec.rb +148 -4
  30. data/spec/models/account_spec.rb +131 -0
  31. data/spec/models/accounts_spec.rb +53 -0
  32. data/spec/models/payment_term_spec.rb +75 -0
  33. data/spec/models/payment_terms_spec.rb +53 -0
  34. data/spec/models/success_spec.rb +41 -0
  35. data/spec/models/tax_component_spec.rb +59 -0
  36. data/spec/models/tax_spec.rb +89 -0
  37. data/spec/models/taxes_spec.rb +53 -0
  38. metadata +34 -2
@@ -0,0 +1,53 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DearInventoryRuby::PaymentTerms
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PaymentTerms' do
21
+ before do
22
+ # run before each test
23
+ @instance = DearInventoryRuby::PaymentTerms.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PaymentTerms' do
31
+ it 'should create an instance of PaymentTerms' do
32
+ expect(@instance).to be_instance_of(DearInventoryRuby::PaymentTerms)
33
+ end
34
+ end
35
+ describe 'test attribute "total"' 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 "page"' 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 "payment_term_list"' 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
+ 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.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DearInventoryRuby::Success
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'Success' do
21
+ before do
22
+ # run before each test
23
+ @instance = DearInventoryRuby::Success.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Success' do
31
+ it 'should create an instance of Success' do
32
+ expect(@instance).to be_instance_of(DearInventoryRuby::Success)
33
+ end
34
+ end
35
+ describe 'test attribute "success"' 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
@@ -0,0 +1,59 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DearInventoryRuby::TaxComponent
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'TaxComponent' do
21
+ before do
22
+ # run before each test
23
+ @instance = DearInventoryRuby::TaxComponent.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of TaxComponent' do
31
+ it 'should create an instance of TaxComponent' do
32
+ expect(@instance).to be_instance_of(DearInventoryRuby::TaxComponent)
33
+ end
34
+ end
35
+ describe 'test attribute "name"' 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 "percent"' 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 "account_code"' 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 "component_order"' 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
+ end
@@ -0,0 +1,89 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DearInventoryRuby::Tax
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'Tax' do
21
+ before do
22
+ # run before each test
23
+ @instance = DearInventoryRuby::Tax.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Tax' do
31
+ it 'should create an instance of Tax' do
32
+ expect(@instance).to be_instance_of(DearInventoryRuby::Tax)
33
+ end
34
+ end
35
+ describe 'test attribute "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 "name"' 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 "account"' 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 "is_active"' 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 "tax_inclusive"' 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 "tax_percent"' 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 "is_tax_for_sale"' 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 "is_tax_for_purchase"' 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 "components"' 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
+ end
@@ -0,0 +1,53 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DearInventoryRuby::Taxes
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'Taxes' do
21
+ before do
22
+ # run before each test
23
+ @instance = DearInventoryRuby::Taxes.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Taxes' do
31
+ it 'should create an instance of Taxes' do
32
+ expect(@instance).to be_instance_of(DearInventoryRuby::Taxes)
33
+ end
34
+ end
35
+ describe 'test attribute "total"' 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 "page"' 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 "tax_rule_list"' 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
+ 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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nhan Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-13 00:00:00.000000000 Z
11
+ date: 2020-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -78,6 +78,8 @@ files:
78
78
  - README.md
79
79
  - Rakefile
80
80
  - dear-inventory-ruby.gemspec
81
+ - docs/Account.md
82
+ - docs/Accounts.md
81
83
  - docs/Address.md
82
84
  - docs/Contact.md
83
85
  - docs/CurrencyCode.md
@@ -85,28 +87,50 @@ files:
85
87
  - docs/Customers.md
86
88
  - docs/Error.md
87
89
  - docs/InventoryApi.md
90
+ - docs/PaymentTerm.md
91
+ - docs/PaymentTerms.md
92
+ - docs/Success.md
93
+ - docs/Tax.md
94
+ - docs/TaxComponent.md
95
+ - docs/Taxes.md
88
96
  - git_push.sh
89
97
  - lib/dear-inventory-ruby.rb
90
98
  - lib/dear-inventory-ruby/api/inventory_api.rb
91
99
  - lib/dear-inventory-ruby/api_client.rb
92
100
  - lib/dear-inventory-ruby/api_error.rb
93
101
  - lib/dear-inventory-ruby/configuration.rb
102
+ - lib/dear-inventory-ruby/models/account.rb
103
+ - lib/dear-inventory-ruby/models/accounts.rb
94
104
  - lib/dear-inventory-ruby/models/address.rb
95
105
  - lib/dear-inventory-ruby/models/contact.rb
96
106
  - lib/dear-inventory-ruby/models/currency_code.rb
97
107
  - lib/dear-inventory-ruby/models/customer.rb
98
108
  - lib/dear-inventory-ruby/models/customers.rb
99
109
  - lib/dear-inventory-ruby/models/error.rb
110
+ - lib/dear-inventory-ruby/models/payment_term.rb
111
+ - lib/dear-inventory-ruby/models/payment_terms.rb
112
+ - lib/dear-inventory-ruby/models/success.rb
113
+ - lib/dear-inventory-ruby/models/tax.rb
114
+ - lib/dear-inventory-ruby/models/tax_component.rb
115
+ - lib/dear-inventory-ruby/models/taxes.rb
100
116
  - lib/dear-inventory-ruby/version.rb
101
117
  - spec/api/inventory_api_spec.rb
102
118
  - spec/api_client_spec.rb
103
119
  - spec/configuration_spec.rb
120
+ - spec/models/account_spec.rb
121
+ - spec/models/accounts_spec.rb
104
122
  - spec/models/address_spec.rb
105
123
  - spec/models/contact_spec.rb
106
124
  - spec/models/currency_code_spec.rb
107
125
  - spec/models/customer_spec.rb
108
126
  - spec/models/customers_spec.rb
109
127
  - spec/models/error_spec.rb
128
+ - spec/models/payment_term_spec.rb
129
+ - spec/models/payment_terms_spec.rb
130
+ - spec/models/success_spec.rb
131
+ - spec/models/tax_component_spec.rb
132
+ - spec/models/tax_spec.rb
133
+ - spec/models/taxes_spec.rb
110
134
  - spec/spec_helper.rb
111
135
  homepage: https://inventory.dearsystems.com
112
136
  licenses:
@@ -141,8 +165,16 @@ test_files:
141
165
  - spec/configuration_spec.rb
142
166
  - spec/models/error_spec.rb
143
167
  - spec/models/contact_spec.rb
168
+ - spec/models/tax_spec.rb
169
+ - spec/models/account_spec.rb
170
+ - spec/models/tax_component_spec.rb
144
171
  - spec/models/currency_code_spec.rb
172
+ - spec/models/payment_term_spec.rb
173
+ - spec/models/payment_terms_spec.rb
145
174
  - spec/models/customers_spec.rb
146
175
  - spec/models/customer_spec.rb
176
+ - spec/models/taxes_spec.rb
177
+ - spec/models/accounts_spec.rb
178
+ - spec/models/success_spec.rb
147
179
  - spec/models/address_spec.rb
148
180
  - spec/spec_helper.rb