dear-inventory-ruby 0.1.13 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -1
  3. data/README.md +9 -7
  4. data/dear-inventory-ruby.gemspec +1 -1
  5. data/docs/Customer.md +1 -1
  6. data/docs/InventoryApi.md +64 -0
  7. data/docs/Me.md +3 -3
  8. data/docs/SaleInvoice.md +41 -0
  9. data/docs/SaleInvoiceAdditionalCharge.md +33 -0
  10. data/docs/SaleInvoiceLine.md +39 -0
  11. data/docs/SaleInvoices.md +19 -0
  12. data/lib/dear-inventory-ruby.rb +4 -3
  13. data/lib/dear-inventory-ruby/api/inventory_api.rb +63 -0
  14. data/lib/dear-inventory-ruby/models/account.rb +0 -34
  15. data/lib/dear-inventory-ruby/models/customer.rb +2 -35
  16. data/lib/dear-inventory-ruby/models/me.rb +6 -3
  17. data/lib/dear-inventory-ruby/models/payment_term.rb +0 -34
  18. data/lib/dear-inventory-ruby/models/sale_invoice.rb +356 -0
  19. data/lib/dear-inventory-ruby/models/sale_invoice_additional_charge.rb +317 -0
  20. data/lib/dear-inventory-ruby/models/sale_invoice_line.rb +342 -0
  21. data/lib/dear-inventory-ruby/models/sale_invoices.rb +224 -0
  22. data/lib/dear-inventory-ruby/version.rb +1 -1
  23. data/spec/.DS_Store +0 -0
  24. data/spec/api/inventory_api_spec.rb +13 -0
  25. data/spec/models/account_spec.rb +0 -4
  26. data/spec/models/customer_spec.rb +0 -4
  27. data/spec/models/payment_term_spec.rb +0 -4
  28. data/spec/models/sale_invoice_additional_charge_spec.rb +89 -0
  29. data/spec/models/sale_invoice_line_spec.rb +107 -0
  30. data/spec/models/sale_invoice_spec.rb +113 -0
  31. data/spec/models/sale_invoices_spec.rb +47 -0
  32. metadata +31 -21
  33. data/docs/CurrencyCode.md +0 -16
  34. data/docs/DimensionsUnit.md +0 -16
  35. data/docs/WeightUnit.md +0 -16
  36. data/lib/dear-inventory-ruby/models/currency_code.rb +0 -196
  37. data/lib/dear-inventory-ruby/models/dimensions_unit.rb +0 -42
  38. data/lib/dear-inventory-ruby/models/weight_unit.rb +0 -39
  39. data/pkg/dear-inventory-ruby-0.1.13.gem +0 -0
  40. data/spec/models/currency_code_spec.rb +0 -35
  41. data/spec/models/dimensions_unit_spec.rb +0 -35
  42. data/spec/models/weight_unit_spec.rb +0 -35
@@ -0,0 +1,113 @@
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::SaleInvoice
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'SaleInvoice' do
21
+ before do
22
+ # run before each test
23
+ @instance = DearInventoryRuby::SaleInvoice.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SaleInvoice' do
31
+ it 'should create an instance of SaleInvoice' do
32
+ expect(@instance).to be_instance_of(DearInventoryRuby::SaleInvoice)
33
+ end
34
+ end
35
+ describe 'test attribute "task_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 "combine_additional_charges"' 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 "invoice_number"' 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 "memo"' 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 "status"' 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 "invoice_date"' 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 "invoice_due_date"' 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 "currency_conversion_rate"' 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 "billing_address_line1"' 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
+ describe 'test attribute "billing_address_line2"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ describe 'test attribute "linked_fulfillment_number"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ describe 'test attribute "lines"' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
107
+ describe 'test attribute "additional_charges"' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
113
+ end
@@ -0,0 +1,47 @@
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::SaleInvoices
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'SaleInvoices' do
21
+ before do
22
+ # run before each test
23
+ @instance = DearInventoryRuby::SaleInvoices.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SaleInvoices' do
31
+ it 'should create an instance of SaleInvoices' do
32
+ expect(@instance).to be_instance_of(DearInventoryRuby::SaleInvoices)
33
+ end
34
+ end
35
+ describe 'test attribute "sale_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 "invoices"' 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
+ end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dear-inventory-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.18
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: 2020-10-28 00:00:00.000000000 Z
11
+ date: 2021-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
17
20
  - - ">="
18
21
  - !ruby/object:Gem::Version
19
- version: 0.14.0
22
+ version: 1.0.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
24
30
  - - ">="
25
31
  - !ruby/object:Gem::Version
26
- version: 0.14.0
32
+ version: 1.0.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: json
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -82,10 +88,8 @@ files:
82
88
  - docs/Accounts.md
83
89
  - docs/Address.md
84
90
  - docs/Contact.md
85
- - docs/CurrencyCode.md
86
91
  - docs/Customer.md
87
92
  - docs/Customers.md
88
- - docs/DimensionsUnit.md
89
93
  - docs/Error.md
90
94
  - docs/InventoryApi.md
91
95
  - docs/Me.md
@@ -93,11 +97,14 @@ files:
93
97
  - docs/PaymentTerms.md
94
98
  - docs/PriceTier.md
95
99
  - docs/PriceTiers.md
100
+ - docs/SaleInvoice.md
101
+ - docs/SaleInvoiceAdditionalCharge.md
102
+ - docs/SaleInvoiceLine.md
103
+ - docs/SaleInvoices.md
96
104
  - docs/Success.md
97
105
  - docs/Tax.md
98
106
  - docs/TaxComponent.md
99
107
  - docs/Taxes.md
100
- - docs/WeightUnit.md
101
108
  - git_push.sh
102
109
  - lib/dear-inventory-ruby.rb
103
110
  - lib/dear-inventory-ruby/api/inventory_api.rb
@@ -108,23 +115,24 @@ files:
108
115
  - lib/dear-inventory-ruby/models/accounts.rb
109
116
  - lib/dear-inventory-ruby/models/address.rb
110
117
  - lib/dear-inventory-ruby/models/contact.rb
111
- - lib/dear-inventory-ruby/models/currency_code.rb
112
118
  - lib/dear-inventory-ruby/models/customer.rb
113
119
  - lib/dear-inventory-ruby/models/customers.rb
114
- - lib/dear-inventory-ruby/models/dimensions_unit.rb
115
120
  - lib/dear-inventory-ruby/models/error.rb
116
121
  - lib/dear-inventory-ruby/models/me.rb
117
122
  - lib/dear-inventory-ruby/models/payment_term.rb
118
123
  - lib/dear-inventory-ruby/models/payment_terms.rb
119
124
  - lib/dear-inventory-ruby/models/price_tier.rb
120
125
  - lib/dear-inventory-ruby/models/price_tiers.rb
126
+ - lib/dear-inventory-ruby/models/sale_invoice.rb
127
+ - lib/dear-inventory-ruby/models/sale_invoice_additional_charge.rb
128
+ - lib/dear-inventory-ruby/models/sale_invoice_line.rb
129
+ - lib/dear-inventory-ruby/models/sale_invoices.rb
121
130
  - lib/dear-inventory-ruby/models/success.rb
122
131
  - lib/dear-inventory-ruby/models/tax.rb
123
132
  - lib/dear-inventory-ruby/models/tax_component.rb
124
133
  - lib/dear-inventory-ruby/models/taxes.rb
125
- - lib/dear-inventory-ruby/models/weight_unit.rb
126
134
  - lib/dear-inventory-ruby/version.rb
127
- - pkg/dear-inventory-ruby-0.1.13.gem
135
+ - spec/.DS_Store
128
136
  - spec/api/inventory_api_spec.rb
129
137
  - spec/api_client_spec.rb
130
138
  - spec/configuration_spec.rb
@@ -132,21 +140,22 @@ files:
132
140
  - spec/models/accounts_spec.rb
133
141
  - spec/models/address_spec.rb
134
142
  - spec/models/contact_spec.rb
135
- - spec/models/currency_code_spec.rb
136
143
  - spec/models/customer_spec.rb
137
144
  - spec/models/customers_spec.rb
138
- - spec/models/dimensions_unit_spec.rb
139
145
  - spec/models/error_spec.rb
140
146
  - spec/models/me_spec.rb
141
147
  - spec/models/payment_term_spec.rb
142
148
  - spec/models/payment_terms_spec.rb
143
149
  - spec/models/price_tier_spec.rb
144
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
145
155
  - spec/models/success_spec.rb
146
156
  - spec/models/tax_component_spec.rb
147
157
  - spec/models/tax_spec.rb
148
158
  - spec/models/taxes_spec.rb
149
- - spec/models/weight_unit_spec.rb
150
159
  - spec/spec_helper.rb
151
160
  homepage: https://inventory.dearsystems.com
152
161
  licenses:
@@ -156,7 +165,7 @@ metadata:
156
165
  source_code_uri: https://github.com/nnhansg/dear-ruby
157
166
  changelog_uri: https://github.com/nnhansg/dear-ruby/blob/master/CHANGELOG.md
158
167
  bug_tracker_uri: https://github.com/nnhansg/dear-ruby/issues
159
- post_install_message:
168
+ post_install_message:
160
169
  rdoc_options: []
161
170
  require_paths:
162
171
  - lib
@@ -171,8 +180,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
180
  - !ruby/object:Gem::Version
172
181
  version: '0'
173
182
  requirements: []
174
- rubygems_version: 3.1.2
175
- signing_key:
183
+ rubygems_version: 3.2.3
184
+ signing_key:
176
185
  specification_version: 4
177
186
  summary: DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com
178
187
  test_files:
@@ -184,18 +193,19 @@ test_files:
184
193
  - spec/models/tax_spec.rb
185
194
  - spec/models/account_spec.rb
186
195
  - spec/models/tax_component_spec.rb
187
- - spec/models/currency_code_spec.rb
188
- - spec/models/dimensions_unit_spec.rb
196
+ - spec/models/sale_invoice_line_spec.rb
189
197
  - spec/models/payment_term_spec.rb
190
198
  - spec/models/payment_terms_spec.rb
199
+ - spec/models/sale_invoice_spec.rb
191
200
  - spec/models/customers_spec.rb
192
201
  - spec/models/customer_spec.rb
193
202
  - spec/models/taxes_spec.rb
194
203
  - spec/models/accounts_spec.rb
195
204
  - spec/models/me_spec.rb
205
+ - spec/models/sale_invoice_additional_charge_spec.rb
206
+ - spec/models/sale_invoices_spec.rb
196
207
  - spec/models/success_spec.rb
197
208
  - spec/models/price_tier_spec.rb
198
- - spec/models/weight_unit_spec.rb
199
209
  - spec/models/address_spec.rb
200
210
  - spec/models/price_tiers_spec.rb
201
211
  - spec/spec_helper.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
-
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,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