dear-inventory-ruby 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b834f6ab3bf12c608c9240ddf4270fce75f960cb7143d865f825da063414316
4
- data.tar.gz: 5bf7c451d1a81ce76feaa63db7c4f76f633da5d8d87b9ffa07b7eee27f8c35a1
3
+ metadata.gz: 006be1c3b63051c309b4b632785951a40094ef9938c03b8bcb517dc5c6fc8d18
4
+ data.tar.gz: 744d7099d7ceaa2a41d988d03bf2f92f8d961b9d7e7a7f1ac90b5800a9dd0f68
5
5
  SHA512:
6
- metadata.gz: 89f027d1132209a90d492ccd13819c9c787a5d48e47fcca3c2a12460c619be2648cda857a6ed28801837370f9b32ebc870977cea3d635737a8bc38e13a96af5c
7
- data.tar.gz: e780a8342d238ce90cab70a64388857cb52bb28c80e83978e6911cbe0799e114a7d991b4c499e7bc3dc64caeaa1ebb1250876d067f6f8a871ed6484930e8981b
6
+ metadata.gz: 391dcc662d1fb7227d86b3f305174ec012f107f2154a6cbbe0e19cc27c5ecbecb947708fab816676dbcbaca4ebc1a2eab7a2d6af95c8fe13662368087a84f840
7
+ data.tar.gz: 57377d70ea6345f8822be25d5224c94b57754bb184df24f24d532669ea8f598881732e63afa7d8cb435b66780d4914b25c017a78bf92fe1cdc2b9cc4e566097e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.1.17] - 2021-05-25
6
+
7
+ - Remove all `ENUM`.
8
+
5
9
  ## [0.1.16] - 2021-05-14
6
10
 
7
11
  - Remove require `ENUM` for `WeightUnit`.
data/README.md CHANGED
@@ -7,7 +7,7 @@ This specifing endpoints for DEAR Inventory API
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 0.1.16
10
+ - Package version: 0.1.17
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://www.nnhan.me](https://www.nnhan.me)
13
13
 
@@ -24,16 +24,16 @@ gem build dear-inventory-ruby.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./dear-inventory-ruby-0.1.16.gem
27
+ gem install ./dear-inventory-ruby-0.1.17.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./dear-inventory-ruby-0.1.16.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./dear-inventory-ruby-0.1.17.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'dear-inventory-ruby', '~> 0.1.16'
36
+ gem 'dear-inventory-ruby', '~> 0.1.17'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -117,10 +117,8 @@ Class | Method | HTTP request | Description
117
117
  - [DearInventoryRuby::Accounts](docs/Accounts.md)
118
118
  - [DearInventoryRuby::Address](docs/Address.md)
119
119
  - [DearInventoryRuby::Contact](docs/Contact.md)
120
- - [DearInventoryRuby::CurrencyCode](docs/CurrencyCode.md)
121
120
  - [DearInventoryRuby::Customer](docs/Customer.md)
122
121
  - [DearInventoryRuby::Customers](docs/Customers.md)
123
- - [DearInventoryRuby::DimensionsUnit](docs/DimensionsUnit.md)
124
122
  - [DearInventoryRuby::Error](docs/Error.md)
125
123
  - [DearInventoryRuby::Me](docs/Me.md)
126
124
  - [DearInventoryRuby::PaymentTerm](docs/PaymentTerm.md)
data/docs/Me.md CHANGED
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **currency** | **String** | Your company base currency | [optional]
9
9
  **time_zone** | **String** | Time Zone where your company located | [optional]
10
10
  **default_weight_units** | **String** | Unit of measure for unit weight | [optional]
11
- **default_dimensions_units** | [**DimensionsUnit**](DimensionsUnit.md) | | [optional]
11
+ **default_dimensions_units** | **String** | Unit of measure for unit length/width/height | [optional]
12
12
  **lock_date** | **Date** | Financial settings option. Indicates date period start from what you can change transactional data. Formatted in Tenant date format | [optional]
13
13
  **opening_balance_date** | **Date** | Date of opening balances in the system. Formatted in Tenant date format | [optional]
14
14
 
@@ -21,10 +21,8 @@ require 'dear-inventory-ruby/models/account'
21
21
  require 'dear-inventory-ruby/models/accounts'
22
22
  require 'dear-inventory-ruby/models/address'
23
23
  require 'dear-inventory-ruby/models/contact'
24
- require 'dear-inventory-ruby/models/currency_code'
25
24
  require 'dear-inventory-ruby/models/customer'
26
25
  require 'dear-inventory-ruby/models/customers'
27
- require 'dear-inventory-ruby/models/dimensions_unit'
28
26
  require 'dear-inventory-ruby/models/error'
29
27
  require 'dear-inventory-ruby/models/me'
30
28
  require 'dear-inventory-ruby/models/payment_term'
@@ -59,28 +59,6 @@ module DearInventoryRuby
59
59
  # Currency. Read-only.
60
60
  attr_accessor :currency
61
61
 
62
- class EnumAttributeValidator
63
- attr_reader :datatype
64
- attr_reader :allowable_values
65
-
66
- def initialize(datatype, allowable_values)
67
- @allowable_values = allowable_values.map do |value|
68
- case datatype.to_s
69
- when /Integer/i
70
- value.to_i
71
- when /Float/i
72
- value.to_f
73
- else
74
- value
75
- end
76
- end
77
- end
78
-
79
- def valid?(value)
80
- !value || allowable_values.include?(value)
81
- end
82
- end
83
-
84
62
  # Attribute mapping from ruby-style variable name to JSON key.
85
63
  def self.attribute_map
86
64
  {
@@ -255,8 +233,6 @@ module DearInventoryRuby
255
233
  return false if @type.to_s.length > 50
256
234
  return false if @status.nil?
257
235
  return false if @status.to_s.length > 50
258
- _class_validator = EnumAttributeValidator.new('String', ["ASSET", "LIABILITY", "EXPENSE", "EQUITY", "REVENUE"])
259
- return false unless _class_validator.valid?(@_class)
260
236
  true
261
237
  end
262
238
 
@@ -316,16 +292,6 @@ module DearInventoryRuby
316
292
  @status = status
317
293
  end
318
294
 
319
- # Custom attribute writer method checking allowed values (enum).
320
- # @param [Object] _class Object to be assigned
321
- def _class=(_class)
322
- validator = EnumAttributeValidator.new('String', ["ASSET", "LIABILITY", "EXPENSE", "EQUITY", "REVENUE"])
323
- unless validator.valid?(_class)
324
- fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
325
- end
326
- @_class = _class
327
- end
328
-
329
295
  # Checks equality by comparing each attribute.
330
296
  # @param [Object] Object to be compared
331
297
  def ==(o)
@@ -110,28 +110,6 @@ module DearInventoryRuby
110
110
  # List of contacts
111
111
  attr_accessor :contacts
112
112
 
113
- class EnumAttributeValidator
114
- attr_reader :datatype
115
- attr_reader :allowable_values
116
-
117
- def initialize(datatype, allowable_values)
118
- @allowable_values = allowable_values.map do |value|
119
- case datatype.to_s
120
- when /Integer/i
121
- value.to_i
122
- when /Float/i
123
- value.to_f
124
- else
125
- value
126
- end
127
- end
128
- end
129
-
130
- def valid?(value)
131
- !value || allowable_values.include?(value)
132
- end
133
- end
134
-
135
113
  # Attribute mapping from ruby-style variable name to JSON key.
136
114
  def self.attribute_map
137
115
  {
@@ -413,8 +391,6 @@ module DearInventoryRuby
413
391
  return false if @name.nil?
414
392
  return false if @name.to_s.length > 256
415
393
  return false if @status.nil?
416
- status_validator = EnumAttributeValidator.new('String', ["Active", "Deprecated"])
417
- return false unless status_validator.valid?(@status)
418
394
  return false if @currency.nil?
419
395
  return false if @payment_term.nil?
420
396
  return false if @account_receivable.nil?
@@ -438,16 +414,6 @@ module DearInventoryRuby
438
414
  @name = name
439
415
  end
440
416
 
441
- # Custom attribute writer method checking allowed values (enum).
442
- # @param [Object] status Object to be assigned
443
- def status=(status)
444
- validator = EnumAttributeValidator.new('String', ["Active", "Deprecated"])
445
- unless validator.valid?(status)
446
- fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
447
- end
448
- @status = status
449
- end
450
-
451
417
  # Custom attribute writer method with validation
452
418
  # @param [Object] comments Value to be assigned
453
419
  def comments=(comments)
@@ -26,6 +26,7 @@ module DearInventoryRuby
26
26
  # Unit of measure for unit weight
27
27
  attr_accessor :default_weight_units
28
28
 
29
+ # Unit of measure for unit length/width/height
29
30
  attr_accessor :default_dimensions_units
30
31
 
31
32
  # Financial settings option. Indicates date period start from what you can change transactional data. Formatted in Tenant date format
@@ -54,7 +55,7 @@ module DearInventoryRuby
54
55
  :'currency' => :'String',
55
56
  :'time_zone' => :'String',
56
57
  :'default_weight_units' => :'String',
57
- :'default_dimensions_units' => :'DimensionsUnit',
58
+ :'default_dimensions_units' => :'String',
58
59
  :'lock_date' => :'Date',
59
60
  :'opening_balance_date' => :'Date'
60
61
  }
@@ -32,28 +32,6 @@ module DearInventoryRuby
32
32
  # Points that Payment Term is Default. `False` as default for POST.
33
33
  attr_accessor :is_default
34
34
 
35
- class EnumAttributeValidator
36
- attr_reader :datatype
37
- attr_reader :allowable_values
38
-
39
- def initialize(datatype, allowable_values)
40
- @allowable_values = allowable_values.map do |value|
41
- case datatype.to_s
42
- when /Integer/i
43
- value.to_i
44
- when /Float/i
45
- value.to_f
46
- else
47
- value
48
- end
49
- end
50
- end
51
-
52
- def valid?(value)
53
- !value || allowable_values.include?(value)
54
- end
55
- end
56
-
57
35
  # Attribute mapping from ruby-style variable name to JSON key.
58
36
  def self.attribute_map
59
37
  {
@@ -148,8 +126,6 @@ module DearInventoryRuby
148
126
  def valid?
149
127
  return false if @name.nil?
150
128
  return false if @name.to_s.length > 256
151
- method_validator = EnumAttributeValidator.new('String', ["number of days", "day of next month", "last day of next month", "days since the end of the month"])
152
- return false unless method_validator.valid?(@method)
153
129
  true
154
130
  end
155
131
 
@@ -167,16 +143,6 @@ module DearInventoryRuby
167
143
  @name = name
168
144
  end
169
145
 
170
- # Custom attribute writer method checking allowed values (enum).
171
- # @param [Object] method Object to be assigned
172
- def method=(method)
173
- validator = EnumAttributeValidator.new('String', ["number of days", "day of next month", "last day of next month", "days since the end of the month"])
174
- unless validator.valid?(method)
175
- fail ArgumentError, "invalid value for \"method\", must be one of #{validator.allowable_values}."
176
- end
177
- @method = method
178
- end
179
-
180
146
  # Checks equality by comparing each attribute.
181
147
  # @param [Object] Object to be compared
182
148
  def ==(o)
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module DearInventoryRuby
14
- VERSION = '0.1.16'
14
+ VERSION = '0.1.17'
15
15
  end
data/spec/.DS_Store CHANGED
Binary file
@@ -65,10 +65,6 @@ describe 'Account' do
65
65
  describe 'test attribute "_class"' do
66
66
  it 'should work' do
67
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
68
  end
73
69
  end
74
70
 
@@ -47,10 +47,6 @@ describe 'Customer' do
47
47
  describe 'test attribute "status"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Active", "Deprecated"])
51
- # validator.allowable_values.each do |value|
52
- # expect { @instance.status = value }.not_to raise_error
53
- # end
54
50
  end
55
51
  end
56
52
 
@@ -53,10 +53,6 @@ describe 'PaymentTerm' do
53
53
  describe 'test attribute "method"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["number of days", "day of next month", "last day of next month", "days since the end of the month"])
57
- # validator.allowable_values.each do |value|
58
- # expect { @instance.method = value }.not_to raise_error
59
- # end
60
56
  end
61
57
  end
62
58
 
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.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nhan Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-18 00:00:00.000000000 Z
11
+ date: 2021-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -82,10 +82,8 @@ files:
82
82
  - docs/Accounts.md
83
83
  - docs/Address.md
84
84
  - docs/Contact.md
85
- - docs/CurrencyCode.md
86
85
  - docs/Customer.md
87
86
  - docs/Customers.md
88
- - docs/DimensionsUnit.md
89
87
  - docs/Error.md
90
88
  - docs/InventoryApi.md
91
89
  - docs/Me.md
@@ -111,10 +109,8 @@ files:
111
109
  - lib/dear-inventory-ruby/models/accounts.rb
112
110
  - lib/dear-inventory-ruby/models/address.rb
113
111
  - lib/dear-inventory-ruby/models/contact.rb
114
- - lib/dear-inventory-ruby/models/currency_code.rb
115
112
  - lib/dear-inventory-ruby/models/customer.rb
116
113
  - lib/dear-inventory-ruby/models/customers.rb
117
- - lib/dear-inventory-ruby/models/dimensions_unit.rb
118
114
  - lib/dear-inventory-ruby/models/error.rb
119
115
  - lib/dear-inventory-ruby/models/me.rb
120
116
  - lib/dear-inventory-ruby/models/payment_term.rb
@@ -138,10 +134,8 @@ files:
138
134
  - spec/models/accounts_spec.rb
139
135
  - spec/models/address_spec.rb
140
136
  - spec/models/contact_spec.rb
141
- - spec/models/currency_code_spec.rb
142
137
  - spec/models/customer_spec.rb
143
138
  - spec/models/customers_spec.rb
144
- - spec/models/dimensions_unit_spec.rb
145
139
  - spec/models/error_spec.rb
146
140
  - spec/models/me_spec.rb
147
141
  - spec/models/payment_term_spec.rb
@@ -193,9 +187,7 @@ test_files:
193
187
  - spec/models/tax_spec.rb
194
188
  - spec/models/account_spec.rb
195
189
  - spec/models/tax_component_spec.rb
196
- - spec/models/currency_code_spec.rb
197
190
  - spec/models/sale_invoice_line_spec.rb
198
- - spec/models/dimensions_unit_spec.rb
199
191
  - spec/models/payment_term_spec.rb
200
192
  - spec/models/payment_terms_spec.rb
201
193
  - spec/models/sale_invoice_spec.rb
data/docs/CurrencyCode.md DELETED
@@ -1,16 +0,0 @@
1
- # DearInventoryRuby::CurrencyCode
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
-
8
- ## Code Sample
9
-
10
- ```ruby
11
- require 'DearInventoryRuby'
12
-
13
- instance = DearInventoryRuby::CurrencyCode.new()
14
- ```
15
-
16
-
@@ -1,16 +0,0 @@
1
- # DearInventoryRuby::DimensionsUnit
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
-
8
- ## Code Sample
9
-
10
- ```ruby
11
- require 'DearInventoryRuby'
12
-
13
- instance = DearInventoryRuby::DimensionsUnit.new()
14
- ```
15
-
16
-
@@ -1,196 +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 CurrencyCode
17
- AED = "AED".freeze
18
- AFN = "AFN".freeze
19
- ALL = "ALL".freeze
20
- AMD = "AMD".freeze
21
- ANG = "ANG".freeze
22
- AOA = "AOA".freeze
23
- ARS = "ARS".freeze
24
- AUD = "AUD".freeze
25
- AWG = "AWG".freeze
26
- AZN = "AZN".freeze
27
- BAM = "BAM".freeze
28
- BBD = "BBD".freeze
29
- BDT = "BDT".freeze
30
- BGN = "BGN".freeze
31
- BHD = "BHD".freeze
32
- BIF = "BIF".freeze
33
- BMD = "BMD".freeze
34
- BND = "BND".freeze
35
- BOB = "BOB".freeze
36
- BRL = "BRL".freeze
37
- BSD = "BSD".freeze
38
- BTN = "BTN".freeze
39
- BWP = "BWP".freeze
40
- BYN = "BYN".freeze
41
- BZD = "BZD".freeze
42
- CAD = "CAD".freeze
43
- CDF = "CDF".freeze
44
- CHF = "CHF".freeze
45
- CLP = "CLP".freeze
46
- CNY = "CNY".freeze
47
- COP = "COP".freeze
48
- CRC = "CRC".freeze
49
- CUC = "CUC".freeze
50
- CUP = "CUP".freeze
51
- CVE = "CVE".freeze
52
- CZK = "CZK".freeze
53
- DJF = "DJF".freeze
54
- DKK = "DKK".freeze
55
- DOP = "DOP".freeze
56
- DZD = "DZD".freeze
57
- EGP = "EGP".freeze
58
- ERN = "ERN".freeze
59
- ETB = "ETB".freeze
60
- EUR = "EUR".freeze
61
- FJD = "FJD".freeze
62
- FKP = "FKP".freeze
63
- GBP = "GBP".freeze
64
- GEL = "GEL".freeze
65
- GGP = "GGP".freeze
66
- GHS = "GHS".freeze
67
- GIP = "GIP".freeze
68
- GMD = "GMD".freeze
69
- GNF = "GNF".freeze
70
- GTQ = "GTQ".freeze
71
- GYD = "GYD".freeze
72
- HKD = "HKD".freeze
73
- HNL = "HNL".freeze
74
- HRK = "HRK".freeze
75
- HTG = "HTG".freeze
76
- HUF = "HUF".freeze
77
- IDR = "IDR".freeze
78
- ILS = "ILS".freeze
79
- IMP = "IMP".freeze
80
- INR = "INR".freeze
81
- IQD = "IQD".freeze
82
- IRR = "IRR".freeze
83
- ISK = "ISK".freeze
84
- JEP = "JEP".freeze
85
- JMD = "JMD".freeze
86
- JOD = "JOD".freeze
87
- JPY = "JPY".freeze
88
- KES = "KES".freeze
89
- KGS = "KGS".freeze
90
- KHR = "KHR".freeze
91
- KMF = "KMF".freeze
92
- KPW = "KPW".freeze
93
- KRW = "KRW".freeze
94
- KWD = "KWD".freeze
95
- KYD = "KYD".freeze
96
- KZT = "KZT".freeze
97
- LAK = "LAK".freeze
98
- LBP = "LBP".freeze
99
- LKR = "LKR".freeze
100
- LRD = "LRD".freeze
101
- LSL = "LSL".freeze
102
- LYD = "LYD".freeze
103
- MAD = "MAD".freeze
104
- MDL = "MDL".freeze
105
- MGA = "MGA".freeze
106
- MKD = "MKD".freeze
107
- MMK = "MMK".freeze
108
- MNT = "MNT".freeze
109
- MOP = "MOP".freeze
110
- MRU = "MRU".freeze
111
- MUR = "MUR".freeze
112
- MVR = "MVR".freeze
113
- MWK = "MWK".freeze
114
- MXN = "MXN".freeze
115
- MYR = "MYR".freeze
116
- MZN = "MZN".freeze
117
- NAD = "NAD".freeze
118
- NGN = "NGN".freeze
119
- NIO = "NIO".freeze
120
- NOK = "NOK".freeze
121
- NPR = "NPR".freeze
122
- NZD = "NZD".freeze
123
- OMR = "OMR".freeze
124
- PAB = "PAB".freeze
125
- PEN = "PEN".freeze
126
- PGK = "PGK".freeze
127
- PHP = "PHP".freeze
128
- PKR = "PKR".freeze
129
- PLN = "PLN".freeze
130
- PYG = "PYG".freeze
131
- QAR = "QAR".freeze
132
- RON = "RON".freeze
133
- RSD = "RSD".freeze
134
- RUB = "RUB".freeze
135
- RWF = "RWF".freeze
136
- SAR = "SAR".freeze
137
- SBD = "SBD".freeze
138
- SCR = "SCR".freeze
139
- SDG = "SDG".freeze
140
- SEK = "SEK".freeze
141
- SGD = "SGD".freeze
142
- SHP = "SHP".freeze
143
- SLL = "SLL".freeze
144
- SOS = "SOS".freeze
145
- SPL = "SPL".freeze
146
- SRD = "SRD".freeze
147
- STN = "STN".freeze
148
- SVC = "SVC".freeze
149
- SYP = "SYP".freeze
150
- SZL = "SZL".freeze
151
- THB = "THB".freeze
152
- TJS = "TJS".freeze
153
- TMT = "TMT".freeze
154
- TND = "TND".freeze
155
- TOP = "TOP".freeze
156
- TRY = "TRY".freeze
157
- TTD = "TTD".freeze
158
- TVD = "TVD".freeze
159
- TWD = "TWD".freeze
160
- TZS = "TZS".freeze
161
- UAH = "UAH".freeze
162
- UGX = "UGX".freeze
163
- USD = "USD".freeze
164
- UYU = "UYU".freeze
165
- UZS = "UZS".freeze
166
- VEF = "VEF".freeze
167
- VND = "VND".freeze
168
- VUV = "VUV".freeze
169
- WST = "WST".freeze
170
- XAF = "XAF".freeze
171
- XCD = "XCD".freeze
172
- XDR = "XDR".freeze
173
- XOF = "XOF".freeze
174
- XPF = "XPF".freeze
175
- YER = "YER".freeze
176
- ZAR = "ZAR".freeze
177
- ZMW = "ZMW".freeze
178
- ZWD = "ZWD".freeze
179
-
180
- # Builds the enum from string
181
- # @param [String] The enum value in the form of the string
182
- # @return [String] The enum value
183
- def self.build_from_hash(value)
184
- new.build_from_hash(value)
185
- end
186
-
187
- # Builds the enum from string
188
- # @param [String] The enum value in the form of the string
189
- # @return [String] The enum value
190
- def build_from_hash(value)
191
- constantValues = CurrencyCode.constants.select { |c| CurrencyCode::const_get(c) == value }
192
- raise "Invalid ENUM value #{value} for class #CurrencyCode" if constantValues.empty?
193
- value
194
- end
195
- end
196
- end
@@ -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,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