dear-inventory-ruby 0.1.7 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/Gemfile +1 -1
- data/README.md +11 -4
- data/dear-inventory-ruby.gemspec +1 -1
- data/docs/Account.md +18 -16
- data/docs/Accounts.md +3 -3
- data/docs/Address.md +9 -9
- data/docs/Contact.md +13 -9
- data/docs/Customer.md +33 -31
- data/docs/Customers.md +3 -3
- data/docs/DimensionsUnit.md +16 -0
- data/docs/Error.md +2 -2
- data/docs/InventoryApi.md +108 -0
- data/docs/Me.md +29 -0
- data/docs/PaymentTerm.md +6 -6
- data/docs/PaymentTerms.md +3 -3
- data/docs/PriceTier.md +19 -0
- data/docs/PriceTiers.md +17 -0
- data/docs/Success.md +1 -1
- data/docs/Tax.md +9 -9
- data/docs/TaxComponent.md +4 -4
- data/docs/Taxes.md +3 -3
- data/docs/WeightUnit.md +16 -0
- data/lib/dear-inventory-ruby.rb +6 -1
- data/lib/dear-inventory-ruby/api/inventory_api.rb +109 -1
- 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 +23 -23
- data/lib/dear-inventory-ruby/models/accounts.rb +1 -1
- data/lib/dear-inventory-ruby/models/address.rb +1 -35
- data/lib/dear-inventory-ruby/models/contact.rb +22 -2
- data/lib/dear-inventory-ruby/models/currency_code.rb +1 -1
- data/lib/dear-inventory-ruby/models/customer.rb +19 -7
- 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 +1 -1
- data/lib/dear-inventory-ruby/models/payment_terms.rb +1 -1
- data/lib/dear-inventory-ruby/models/price_tier.rb +217 -0
- data/lib/dear-inventory-ruby/models/price_tiers.rb +209 -0
- data/lib/dear-inventory-ruby/models/success.rb +1 -1
- data/lib/dear-inventory-ruby/models/tax.rb +1 -1
- data/lib/dear-inventory-ruby/models/tax_component.rb +1 -1
- data/lib/dear-inventory-ruby/models/taxes.rb +1 -1
- 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 +21 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_spec.rb +7 -9
- data/spec/models/accounts_spec.rb +1 -1
- data/spec/models/address_spec.rb +1 -5
- 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 +1 -1
- data/spec/models/payment_terms_spec.rb +1 -1
- data/spec/models/price_tier_spec.rb +47 -0
- data/spec/models/price_tiers_spec.rb +41 -0
- data/spec/models/success_spec.rb +1 -1
- data/spec/models/tax_component_spec.rb +1 -1
- data/spec/models/tax_spec.rb +1 -1
- data/spec/models/taxes_spec.rb +1 -1
- data/spec/models/weight_unit_spec.rb +35 -0
- data/spec/spec_helper.rb +1 -1
- metadata +35 -15
@@ -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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for DearInventoryRuby::PriceTiers
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'PriceTiers' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = DearInventoryRuby::PriceTiers.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of PriceTiers' do
|
31
|
+
it 'should create an instance of PriceTiers' do
|
32
|
+
expect(@instance).to be_instance_of(DearInventoryRuby::PriceTiers)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "price_tiers_list"' 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
|
data/spec/models/success_spec.rb
CHANGED
data/spec/models/tax_spec.rb
CHANGED
data/spec/models/taxes_spec.rb
CHANGED
@@ -0,0 +1,35 @@
|
|
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
|
data/spec/spec_helper.rb
CHANGED
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.12
|
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-
|
11
|
+
date: 2020-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -28,42 +28,42 @@ dependencies:
|
|
28
28
|
name: json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.1.0
|
34
31
|
- - "~>"
|
35
32
|
- !ruby/object:Gem::Version
|
36
33
|
version: '2.1'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 2.1.0
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 2.1.0
|
44
41
|
- - "~>"
|
45
42
|
- !ruby/object:Gem::Version
|
46
43
|
version: '2.1'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2.1.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 3.6.0
|
54
51
|
- - "~>"
|
55
52
|
- !ruby/object:Gem::Version
|
56
53
|
version: '3.6'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 3.6.0
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- - ">="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 3.6.0
|
64
61
|
- - "~>"
|
65
62
|
- !ruby/object:Gem::Version
|
66
63
|
version: '3.6'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 3.6.0
|
67
67
|
description: DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com
|
68
68
|
email:
|
69
69
|
- nnhansg@gmail.com
|
@@ -85,14 +85,19 @@ files:
|
|
85
85
|
- docs/CurrencyCode.md
|
86
86
|
- docs/Customer.md
|
87
87
|
- docs/Customers.md
|
88
|
+
- docs/DimensionsUnit.md
|
88
89
|
- docs/Error.md
|
89
90
|
- docs/InventoryApi.md
|
91
|
+
- docs/Me.md
|
90
92
|
- docs/PaymentTerm.md
|
91
93
|
- docs/PaymentTerms.md
|
94
|
+
- docs/PriceTier.md
|
95
|
+
- docs/PriceTiers.md
|
92
96
|
- docs/Success.md
|
93
97
|
- docs/Tax.md
|
94
98
|
- docs/TaxComponent.md
|
95
99
|
- docs/Taxes.md
|
100
|
+
- docs/WeightUnit.md
|
96
101
|
- git_push.sh
|
97
102
|
- lib/dear-inventory-ruby.rb
|
98
103
|
- lib/dear-inventory-ruby/api/inventory_api.rb
|
@@ -106,13 +111,18 @@ files:
|
|
106
111
|
- lib/dear-inventory-ruby/models/currency_code.rb
|
107
112
|
- lib/dear-inventory-ruby/models/customer.rb
|
108
113
|
- lib/dear-inventory-ruby/models/customers.rb
|
114
|
+
- lib/dear-inventory-ruby/models/dimensions_unit.rb
|
109
115
|
- lib/dear-inventory-ruby/models/error.rb
|
116
|
+
- lib/dear-inventory-ruby/models/me.rb
|
110
117
|
- lib/dear-inventory-ruby/models/payment_term.rb
|
111
118
|
- lib/dear-inventory-ruby/models/payment_terms.rb
|
119
|
+
- lib/dear-inventory-ruby/models/price_tier.rb
|
120
|
+
- lib/dear-inventory-ruby/models/price_tiers.rb
|
112
121
|
- lib/dear-inventory-ruby/models/success.rb
|
113
122
|
- lib/dear-inventory-ruby/models/tax.rb
|
114
123
|
- lib/dear-inventory-ruby/models/tax_component.rb
|
115
124
|
- lib/dear-inventory-ruby/models/taxes.rb
|
125
|
+
- lib/dear-inventory-ruby/models/weight_unit.rb
|
116
126
|
- lib/dear-inventory-ruby/version.rb
|
117
127
|
- spec/api/inventory_api_spec.rb
|
118
128
|
- spec/api_client_spec.rb
|
@@ -124,13 +134,18 @@ files:
|
|
124
134
|
- spec/models/currency_code_spec.rb
|
125
135
|
- spec/models/customer_spec.rb
|
126
136
|
- spec/models/customers_spec.rb
|
137
|
+
- spec/models/dimensions_unit_spec.rb
|
127
138
|
- spec/models/error_spec.rb
|
139
|
+
- spec/models/me_spec.rb
|
128
140
|
- spec/models/payment_term_spec.rb
|
129
141
|
- spec/models/payment_terms_spec.rb
|
142
|
+
- spec/models/price_tier_spec.rb
|
143
|
+
- spec/models/price_tiers_spec.rb
|
130
144
|
- spec/models/success_spec.rb
|
131
145
|
- spec/models/tax_component_spec.rb
|
132
146
|
- spec/models/tax_spec.rb
|
133
147
|
- spec/models/taxes_spec.rb
|
148
|
+
- spec/models/weight_unit_spec.rb
|
134
149
|
- spec/spec_helper.rb
|
135
150
|
homepage: https://inventory.dearsystems.com
|
136
151
|
licenses:
|
@@ -155,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
170
|
- !ruby/object:Gem::Version
|
156
171
|
version: '0'
|
157
172
|
requirements: []
|
158
|
-
rubygems_version: 3.
|
173
|
+
rubygems_version: 3.1.2
|
159
174
|
signing_key:
|
160
175
|
specification_version: 4
|
161
176
|
summary: DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com
|
@@ -169,12 +184,17 @@ test_files:
|
|
169
184
|
- spec/models/account_spec.rb
|
170
185
|
- spec/models/tax_component_spec.rb
|
171
186
|
- spec/models/currency_code_spec.rb
|
187
|
+
- spec/models/dimensions_unit_spec.rb
|
172
188
|
- spec/models/payment_term_spec.rb
|
173
189
|
- spec/models/payment_terms_spec.rb
|
174
190
|
- spec/models/customers_spec.rb
|
175
191
|
- spec/models/customer_spec.rb
|
176
192
|
- spec/models/taxes_spec.rb
|
177
193
|
- spec/models/accounts_spec.rb
|
194
|
+
- spec/models/me_spec.rb
|
178
195
|
- spec/models/success_spec.rb
|
196
|
+
- spec/models/price_tier_spec.rb
|
197
|
+
- spec/models/weight_unit_spec.rb
|
179
198
|
- spec/models/address_spec.rb
|
199
|
+
- spec/models/price_tiers_spec.rb
|
180
200
|
- spec/spec_helper.rb
|