dear-inventory-ruby 0.1.11 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +12 -5
- data/docs/Customer.md +1 -1
- data/docs/InventoryApi.md +118 -0
- data/docs/Me.md +2 -2
- data/docs/PriceTier.md +19 -0
- data/docs/PriceTiers.md +17 -0
- 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 +6 -1
- data/lib/dear-inventory-ruby/api/inventory_api.rb +117 -0
- data/lib/dear-inventory-ruby/models/customer.rb +2 -1
- data/lib/dear-inventory-ruby/models/me.rb +4 -2
- 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/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 +23 -0
- data/spec/models/price_tier_spec.rb +47 -0
- data/spec/models/{weight_unit_spec.rb → price_tiers_spec.rb} +12 -6
- 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 -10
- data/docs/WeightUnit.md +0 -16
- data/lib/dear-inventory-ruby/models/weight_unit.rb +0 -39
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.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nhan Nguyen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -91,11 +91,16 @@ files:
|
|
91
91
|
- docs/Me.md
|
92
92
|
- docs/PaymentTerm.md
|
93
93
|
- docs/PaymentTerms.md
|
94
|
+
- docs/PriceTier.md
|
95
|
+
- docs/PriceTiers.md
|
96
|
+
- docs/SaleInvoice.md
|
97
|
+
- docs/SaleInvoiceAdditionalCharge.md
|
98
|
+
- docs/SaleInvoiceLine.md
|
99
|
+
- docs/SaleInvoices.md
|
94
100
|
- docs/Success.md
|
95
101
|
- docs/Tax.md
|
96
102
|
- docs/TaxComponent.md
|
97
103
|
- docs/Taxes.md
|
98
|
-
- docs/WeightUnit.md
|
99
104
|
- git_push.sh
|
100
105
|
- lib/dear-inventory-ruby.rb
|
101
106
|
- lib/dear-inventory-ruby/api/inventory_api.rb
|
@@ -114,12 +119,18 @@ files:
|
|
114
119
|
- lib/dear-inventory-ruby/models/me.rb
|
115
120
|
- lib/dear-inventory-ruby/models/payment_term.rb
|
116
121
|
- lib/dear-inventory-ruby/models/payment_terms.rb
|
122
|
+
- lib/dear-inventory-ruby/models/price_tier.rb
|
123
|
+
- lib/dear-inventory-ruby/models/price_tiers.rb
|
124
|
+
- lib/dear-inventory-ruby/models/sale_invoice.rb
|
125
|
+
- lib/dear-inventory-ruby/models/sale_invoice_additional_charge.rb
|
126
|
+
- lib/dear-inventory-ruby/models/sale_invoice_line.rb
|
127
|
+
- lib/dear-inventory-ruby/models/sale_invoices.rb
|
117
128
|
- lib/dear-inventory-ruby/models/success.rb
|
118
129
|
- lib/dear-inventory-ruby/models/tax.rb
|
119
130
|
- lib/dear-inventory-ruby/models/tax_component.rb
|
120
131
|
- lib/dear-inventory-ruby/models/taxes.rb
|
121
|
-
- lib/dear-inventory-ruby/models/weight_unit.rb
|
122
132
|
- lib/dear-inventory-ruby/version.rb
|
133
|
+
- spec/.DS_Store
|
123
134
|
- spec/api/inventory_api_spec.rb
|
124
135
|
- spec/api_client_spec.rb
|
125
136
|
- spec/configuration_spec.rb
|
@@ -135,11 +146,16 @@ files:
|
|
135
146
|
- spec/models/me_spec.rb
|
136
147
|
- spec/models/payment_term_spec.rb
|
137
148
|
- spec/models/payment_terms_spec.rb
|
149
|
+
- spec/models/price_tier_spec.rb
|
150
|
+
- spec/models/price_tiers_spec.rb
|
151
|
+
- spec/models/sale_invoice_additional_charge_spec.rb
|
152
|
+
- spec/models/sale_invoice_line_spec.rb
|
153
|
+
- spec/models/sale_invoice_spec.rb
|
154
|
+
- spec/models/sale_invoices_spec.rb
|
138
155
|
- spec/models/success_spec.rb
|
139
156
|
- spec/models/tax_component_spec.rb
|
140
157
|
- spec/models/tax_spec.rb
|
141
158
|
- spec/models/taxes_spec.rb
|
142
|
-
- spec/models/weight_unit_spec.rb
|
143
159
|
- spec/spec_helper.rb
|
144
160
|
homepage: https://inventory.dearsystems.com
|
145
161
|
licenses:
|
@@ -149,7 +165,7 @@ metadata:
|
|
149
165
|
source_code_uri: https://github.com/nnhansg/dear-ruby
|
150
166
|
changelog_uri: https://github.com/nnhansg/dear-ruby/blob/master/CHANGELOG.md
|
151
167
|
bug_tracker_uri: https://github.com/nnhansg/dear-ruby/issues
|
152
|
-
post_install_message:
|
168
|
+
post_install_message:
|
153
169
|
rdoc_options: []
|
154
170
|
require_paths:
|
155
171
|
- lib
|
@@ -164,8 +180,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
180
|
- !ruby/object:Gem::Version
|
165
181
|
version: '0'
|
166
182
|
requirements: []
|
167
|
-
rubygems_version: 3.
|
168
|
-
signing_key:
|
183
|
+
rubygems_version: 3.2.3
|
184
|
+
signing_key:
|
169
185
|
specification_version: 4
|
170
186
|
summary: DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com
|
171
187
|
test_files:
|
@@ -178,15 +194,20 @@ test_files:
|
|
178
194
|
- spec/models/account_spec.rb
|
179
195
|
- spec/models/tax_component_spec.rb
|
180
196
|
- spec/models/currency_code_spec.rb
|
197
|
+
- spec/models/sale_invoice_line_spec.rb
|
181
198
|
- spec/models/dimensions_unit_spec.rb
|
182
199
|
- spec/models/payment_term_spec.rb
|
183
200
|
- spec/models/payment_terms_spec.rb
|
201
|
+
- spec/models/sale_invoice_spec.rb
|
184
202
|
- spec/models/customers_spec.rb
|
185
203
|
- spec/models/customer_spec.rb
|
186
204
|
- spec/models/taxes_spec.rb
|
187
205
|
- spec/models/accounts_spec.rb
|
188
206
|
- spec/models/me_spec.rb
|
207
|
+
- spec/models/sale_invoice_additional_charge_spec.rb
|
208
|
+
- spec/models/sale_invoices_spec.rb
|
189
209
|
- spec/models/success_spec.rb
|
190
|
-
- spec/models/
|
210
|
+
- spec/models/price_tier_spec.rb
|
191
211
|
- spec/models/address_spec.rb
|
212
|
+
- spec/models/price_tiers_spec.rb
|
192
213
|
- spec/spec_helper.rb
|
data/docs/WeightUnit.md
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# DearInventoryRuby::WeightUnit
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
|
8
|
-
## Code Sample
|
9
|
-
|
10
|
-
```ruby
|
11
|
-
require 'DearInventoryRuby'
|
12
|
-
|
13
|
-
instance = DearInventoryRuby::WeightUnit.new()
|
14
|
-
```
|
15
|
-
|
16
|
-
|
@@ -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
|