dear-inventory-ruby 0.1.5 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -0
- data/Gemfile +1 -1
- data/README.md +32 -9
- data/dear-inventory-ruby.gemspec +1 -1
- data/docs/Account.md +45 -0
- data/docs/Accounts.md +21 -0
- data/docs/Address.md +11 -11
- data/docs/Contact.md +14 -10
- data/docs/Customer.md +40 -38
- data/docs/Customers.md +3 -3
- data/docs/DimensionsUnit.md +16 -0
- data/docs/Error.md +2 -2
- data/docs/InventoryApi.md +788 -26
- data/docs/Me.md +29 -0
- data/docs/PaymentTerm.md +27 -0
- data/docs/PaymentTerms.md +21 -0
- data/docs/Success.md +17 -0
- data/docs/Tax.md +33 -0
- data/docs/TaxComponent.md +23 -0
- data/docs/Taxes.md +21 -0
- data/docs/WeightUnit.md +16 -0
- data/lib/dear-inventory-ruby.rb +12 -1
- data/lib/dear-inventory-ruby/api/inventory_api.rb +827 -44
- data/lib/dear-inventory-ruby/api_client.rb +8 -6
- data/lib/dear-inventory-ruby/api_error.rb +1 -1
- data/lib/dear-inventory-ruby/configuration.rb +1 -1
- data/lib/dear-inventory-ruby/models/account.rb +477 -0
- data/lib/dear-inventory-ruby/models/accounts.rb +229 -0
- data/lib/dear-inventory-ruby/models/address.rb +11 -1
- data/lib/dear-inventory-ruby/models/contact.rb +34 -5
- data/lib/dear-inventory-ruby/models/currency_code.rb +1 -1
- data/lib/dear-inventory-ruby/models/customer.rb +56 -5
- data/lib/dear-inventory-ruby/models/customers.rb +1 -1
- data/lib/dear-inventory-ruby/models/dimensions_unit.rb +42 -0
- data/lib/dear-inventory-ruby/models/error.rb +1 -1
- data/lib/dear-inventory-ruby/models/me.rb +264 -0
- data/lib/dear-inventory-ruby/models/payment_term.rb +319 -0
- data/lib/dear-inventory-ruby/models/payment_terms.rb +229 -0
- data/lib/dear-inventory-ruby/models/success.rb +207 -0
- data/lib/dear-inventory-ruby/models/tax.rb +360 -0
- data/lib/dear-inventory-ruby/models/tax_component.rb +306 -0
- data/lib/dear-inventory-ruby/models/taxes.rb +229 -0
- data/lib/dear-inventory-ruby/models/weight_unit.rb +39 -0
- data/lib/dear-inventory-ruby/version.rb +2 -2
- data/spec/api/inventory_api_spec.rb +160 -5
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_spec.rb +129 -0
- data/spec/models/accounts_spec.rb +53 -0
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/contact_spec.rb +13 -1
- data/spec/models/currency_code_spec.rb +1 -1
- data/spec/models/customer_spec.rb +7 -1
- data/spec/models/customers_spec.rb +1 -1
- data/spec/models/dimensions_unit_spec.rb +35 -0
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/me_spec.rb +77 -0
- data/spec/models/payment_term_spec.rb +75 -0
- data/spec/models/payment_terms_spec.rb +53 -0
- data/spec/models/success_spec.rb +41 -0
- data/spec/models/tax_component_spec.rb +59 -0
- data/spec/models/tax_spec.rb +89 -0
- data/spec/models/taxes_spec.rb +53 -0
- data/spec/models/weight_unit_spec.rb +35 -0
- data/spec/spec_helper.rb +1 -1
- metadata +59 -15
@@ -0,0 +1,39 @@
|
|
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
|
@@ -6,10 +6,10 @@
|
|
6
6
|
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: nnhansg@gmail.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module DearInventoryRuby
|
14
|
-
VERSION = '0.1.
|
14
|
+
VERSION = '0.1.10'
|
15
15
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: nnhansg@gmail.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,11 +32,23 @@ describe 'InventoryApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for create_account
|
36
|
+
# Allows you to create an Account
|
37
|
+
# @param account an Account object with properties to create
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
40
|
+
# @return [Accounts]
|
41
|
+
describe 'create_account test' 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
|
+
|
35
47
|
# unit tests for create_customer
|
36
48
|
# Allows you to create a customer
|
37
|
-
# @param customer a
|
49
|
+
# @param customer a customer object with properties to create
|
38
50
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
51
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
40
52
|
# @return [Customers]
|
41
53
|
describe 'create_customer test' do
|
42
54
|
it 'should work' do
|
@@ -44,6 +56,68 @@ describe 'InventoryApi' do
|
|
44
56
|
end
|
45
57
|
end
|
46
58
|
|
59
|
+
# unit tests for create_payment_term
|
60
|
+
# Allows you to create a payment term
|
61
|
+
# @param payment_term a payment term object with properties to create
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
64
|
+
# @return [PaymentTerms]
|
65
|
+
describe 'create_payment_term test' 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
|
+
# unit tests for create_tax
|
72
|
+
# Allows you to create a tax
|
73
|
+
# @param tax a tax object with properties to create
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
76
|
+
# @return [Taxes]
|
77
|
+
describe 'create_tax test' 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
|
+
# unit tests for delete_account
|
84
|
+
# Allows you to delete an Account
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @option opts [String] :code Default is nil
|
87
|
+
# @return [Success]
|
88
|
+
describe 'delete_account test' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# unit tests for delete_payment_term
|
95
|
+
# Allows you to delete a payment term
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @option opts [String] :id Default is nil
|
98
|
+
# @return [Success]
|
99
|
+
describe 'delete_payment_term test' do
|
100
|
+
it 'should work' do
|
101
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# unit tests for get_accounts
|
106
|
+
# Allows you to retrieve the Chart of Accounts
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @option opts [String] :page Default is 1
|
109
|
+
# @option opts [String] :limit Default is 100
|
110
|
+
# @option opts [String] :code Default is nil
|
111
|
+
# @option opts [String] :name Default is nil
|
112
|
+
# @option opts [String] :type Default is nil
|
113
|
+
# @option opts [String] :status Default is nil
|
114
|
+
# @return [Accounts]
|
115
|
+
describe 'get_accounts test' do
|
116
|
+
it 'should work' do
|
117
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
47
121
|
# unit tests for get_customers
|
48
122
|
# Allows you to retrieve the customers
|
49
123
|
# @param [Hash] opts the optional parameters
|
@@ -60,11 +134,68 @@ describe 'InventoryApi' do
|
|
60
134
|
end
|
61
135
|
end
|
62
136
|
|
137
|
+
# unit tests for get_me
|
138
|
+
# Allows you to retrieve your information
|
139
|
+
# @param [Hash] opts the optional parameters
|
140
|
+
# @return [Me]
|
141
|
+
describe 'get_me test' do
|
142
|
+
it 'should work' do
|
143
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# unit tests for get_payment_terms
|
148
|
+
# Allows you to retrieve the payment terms
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @option opts [String] :page Default is 1
|
151
|
+
# @option opts [String] :limit Default is 100
|
152
|
+
# @option opts [String] :id Default is nil
|
153
|
+
# @option opts [String] :name Default is nil
|
154
|
+
# @option opts [String] :method Default is nil
|
155
|
+
# @option opts [Boolean] :is_active Default is nil
|
156
|
+
# @option opts [Boolean] :is_default Default is nil
|
157
|
+
# @return [PaymentTerms]
|
158
|
+
describe 'get_payment_terms test' do
|
159
|
+
it 'should work' do
|
160
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# unit tests for get_taxes
|
165
|
+
# Allows you to retrieve the taxes
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @option opts [String] :page Default is 1
|
168
|
+
# @option opts [String] :limit Default is 100
|
169
|
+
# @option opts [String] :id Default is nil
|
170
|
+
# @option opts [String] :name Default is nil
|
171
|
+
# @option opts [Boolean] :is_active Default is nil
|
172
|
+
# @option opts [Boolean] :is_tax_for_sale Default is nil
|
173
|
+
# @option opts [Boolean] :is_tax_for_purchase Default is nil
|
174
|
+
# @option opts [String] :account Default is nil
|
175
|
+
# @return [Taxes]
|
176
|
+
describe 'get_taxes test' do
|
177
|
+
it 'should work' do
|
178
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
# unit tests for update_account
|
183
|
+
# Allows you to update an Account
|
184
|
+
# @param account an Account object with properties to update
|
185
|
+
# @param [Hash] opts the optional parameters
|
186
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
187
|
+
# @return [Accounts]
|
188
|
+
describe 'update_account test' do
|
189
|
+
it 'should work' do
|
190
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
63
194
|
# unit tests for update_customer
|
64
195
|
# Allows you to update a customer
|
65
|
-
# @param customer a
|
196
|
+
# @param customer a customer object with properties to update
|
66
197
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
198
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
68
199
|
# @return [Customers]
|
69
200
|
describe 'update_customer test' do
|
70
201
|
it 'should work' do
|
@@ -72,4 +203,28 @@ describe 'InventoryApi' do
|
|
72
203
|
end
|
73
204
|
end
|
74
205
|
|
206
|
+
# unit tests for update_payment_term
|
207
|
+
# Allows you to update a payment term
|
208
|
+
# @param payment_term a payment term object with properties to update
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
211
|
+
# @return [PaymentTerms]
|
212
|
+
describe 'update_payment_term test' do
|
213
|
+
it 'should work' do
|
214
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
# unit tests for update_tax
|
219
|
+
# Allows you to update a tax
|
220
|
+
# @param tax a tax object with properties to update
|
221
|
+
# @param [Hash] opts the optional parameters
|
222
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
223
|
+
# @return [Taxes]
|
224
|
+
describe 'update_tax test' do
|
225
|
+
it 'should work' do
|
226
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
75
230
|
end
|
data/spec/api_client_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: nnhansg@gmail.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -118,7 +118,7 @@ describe DearInventoryRuby::ApiClient do
|
|
118
118
|
end
|
119
119
|
|
120
120
|
it 'fails for invalid collection format' do
|
121
|
-
expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
121
|
+
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
data/spec/configuration_spec.rb
CHANGED
@@ -0,0 +1,129 @@
|
|
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::Account
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Account' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::Account.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Account' do
|
31
|
+
it 'should create an instance of Account' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::Account)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "code"' 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 "type"' 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 "status"' 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 "description"' 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 "_class"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ASSET", "LIABILITY", "EXPENSE", "EQUITY", "REVENUE"])
|
69
|
+
# validator.allowable_values.each do |value|
|
70
|
+
# expect { @instance._class = value }.not_to raise_error
|
71
|
+
# end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
describe 'test attribute "system_account"' do
|
76
|
+
it 'should work' do
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
describe 'test attribute "system_account_code"' do
|
82
|
+
it 'should work' do
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
describe 'test attribute "for_payments"' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
describe 'test attribute "display_name"' do
|
94
|
+
it 'should work' do
|
95
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
describe 'test attribute "old_code"' do
|
100
|
+
it 'should work' do
|
101
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
describe 'test attribute "bank"' do
|
106
|
+
it 'should work' do
|
107
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
describe 'test attribute "bank_account_number"' do
|
112
|
+
it 'should work' do
|
113
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
describe 'test attribute "bank_account_id"' do
|
118
|
+
it 'should work' do
|
119
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
describe 'test attribute "currency"' do
|
124
|
+
it 'should work' do
|
125
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for DearInventoryRuby::Accounts
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Accounts' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::Accounts.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Accounts' do
|
31
|
+
it 'should create an instance of Accounts' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::Accounts)
|
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 "accounts_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
|