avalara_sdk 2.4.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +7 -0
  2. data/Avalara.SDK.gemspec +38 -0
  3. data/Gemfile +9 -0
  4. data/README.md +129 -0
  5. data/Rakefile +10 -0
  6. data/TAGS +441 -0
  7. data/avalara_sdk.gemspec +36 -0
  8. data/docs/AgeVerificationApi.md +87 -0
  9. data/docs/AgeVerifyFailureCode.md +15 -0
  10. data/docs/AgeVerifyRequest.md +24 -0
  11. data/docs/AgeVerifyRequestAddress.md +26 -0
  12. data/docs/AgeVerifyResult.md +20 -0
  13. data/docs/ErrorDetails.md +18 -0
  14. data/docs/ErrorDetailsError.md +22 -0
  15. data/docs/ErrorDetailsErrorDetails.md +30 -0
  16. data/docs/ShippingVerificationApi.md +327 -0
  17. data/docs/ShippingVerifyResult.md +30 -0
  18. data/docs/ShippingVerifyResultLines.md +28 -0
  19. data/example/test.rb +25 -0
  20. data/git_push.sh +57 -0
  21. data/lib/avalara_sdk/api/age_verification_api.rb +95 -0
  22. data/lib/avalara_sdk/api/shipping_verification_api.rb +322 -0
  23. data/lib/avalara_sdk/api_client.rb +411 -0
  24. data/lib/avalara_sdk/api_error.rb +57 -0
  25. data/lib/avalara_sdk/configuration.rb +231 -0
  26. data/lib/avalara_sdk/models/age_verify_failure_code.rb +39 -0
  27. data/lib/avalara_sdk/models/age_verify_request.rb +245 -0
  28. data/lib/avalara_sdk/models/age_verify_request_address.rb +288 -0
  29. data/lib/avalara_sdk/models/age_verify_result.rb +230 -0
  30. data/lib/avalara_sdk/models/error_details.rb +217 -0
  31. data/lib/avalara_sdk/models/error_details_error.rb +271 -0
  32. data/lib/avalara_sdk/models/error_details_error_details.rb +324 -0
  33. data/lib/avalara_sdk/models/shipping_verify_result.rb +306 -0
  34. data/lib/avalara_sdk/models/shipping_verify_result_lines.rb +303 -0
  35. data/lib/avalara_sdk/version.rb +13 -0
  36. data/lib/avalara_sdk.rb +48 -0
  37. data/spec/api/age_verification_api_spec.rb +48 -0
  38. data/spec/api/shipping_verification_api_spec.rb +88 -0
  39. data/spec/api_client_spec.rb +224 -0
  40. data/spec/configuration_spec.rb +40 -0
  41. data/spec/models/age_verify_failure_code_spec.rb +28 -0
  42. data/spec/models/age_verify_request_address_spec.rb +62 -0
  43. data/spec/models/age_verify_request_spec.rb +52 -0
  44. data/spec/models/age_verify_result_spec.rb +40 -0
  45. data/spec/models/error_details_error_details_spec.rb +78 -0
  46. data/spec/models/error_details_error_spec.rb +50 -0
  47. data/spec/models/error_details_spec.rb +34 -0
  48. data/spec/models/shipping_verify_result_lines_spec.rb +72 -0
  49. data/spec/models/shipping_verify_result_spec.rb +78 -0
  50. data/spec/spec_helper.rb +108 -0
  51. metadata +147 -0
@@ -0,0 +1,224 @@
1
+ =begin
2
+ #Avalara Shipping Verification only
3
+
4
+ #API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta.
5
+
6
+ SDK Version : 2.4.5.6
7
+
8
+
9
+ =end
10
+
11
+ require 'spec_helper'
12
+
13
+ describe AvalaraSdk::ApiClient do
14
+ context 'initialization' do
15
+ context 'URL stuff' do
16
+ context 'host' do
17
+ it 'removes http from host' do
18
+ AvalaraSdk.configure { |c| c.host = 'http://example.com' }
19
+ expect(AvalaraSdk::Configuration.default.host).to eq('example.com')
20
+ end
21
+
22
+ it 'removes https from host' do
23
+ AvalaraSdk.configure { |c| c.host = 'https://wookiee.com' }
24
+ expect(AvalaraSdk::ApiClient.default.config.host).to eq('wookiee.com')
25
+ end
26
+
27
+ it 'removes trailing path from host' do
28
+ AvalaraSdk.configure { |c| c.host = 'hobo.com/v4' }
29
+ expect(AvalaraSdk::Configuration.default.host).to eq('hobo.com')
30
+ end
31
+ end
32
+
33
+ context 'base_path' do
34
+ it "prepends a slash to base_path" do
35
+ AvalaraSdk.configure { |c| c.base_path = 'v4/dog' }
36
+ expect(AvalaraSdk::Configuration.default.base_path).to eq('/v4/dog')
37
+ end
38
+
39
+ it "doesn't prepend a slash if one is already there" do
40
+ AvalaraSdk.configure { |c| c.base_path = '/v4/dog' }
41
+ expect(AvalaraSdk::Configuration.default.base_path).to eq('/v4/dog')
42
+ end
43
+
44
+ it "ends up as a blank string if nil" do
45
+ AvalaraSdk.configure { |c| c.base_path = nil }
46
+ expect(AvalaraSdk::Configuration.default.base_path).to eq('')
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ describe 'params_encoding in #build_request' do
53
+ let(:config) { AvalaraSdk::Configuration.new }
54
+ let(:api_client) { AvalaraSdk::ApiClient.new(config) }
55
+
56
+ it 'defaults to nil' do
57
+ expect(AvalaraSdk::Configuration.default.params_encoding).to eq(nil)
58
+ expect(config.params_encoding).to eq(nil)
59
+
60
+ request = api_client.build_request(:get, '/test')
61
+ expect(request.options[:params_encoding]).to eq(nil)
62
+ end
63
+
64
+ it 'can be customized' do
65
+ config.params_encoding = :multi
66
+ request = api_client.build_request(:get, '/test')
67
+ expect(request.options[:params_encoding]).to eq(:multi)
68
+ end
69
+ end
70
+
71
+ describe 'timeout in #build_request' do
72
+ let(:config) { AvalaraSdk::Configuration.new }
73
+ let(:api_client) { AvalaraSdk::ApiClient.new(config) }
74
+
75
+ it 'defaults to 0' do
76
+ expect(AvalaraSdk::Configuration.default.timeout).to eq(0)
77
+ expect(config.timeout).to eq(0)
78
+
79
+ request = api_client.build_request(:get, '/test')
80
+ expect(request.options[:timeout]).to eq(0)
81
+ end
82
+
83
+ it 'can be customized' do
84
+ config.timeout = 100
85
+ request = api_client.build_request(:get, '/test')
86
+ expect(request.options[:timeout]).to eq(100)
87
+ end
88
+ end
89
+
90
+ describe '#deserialize' do
91
+ it "handles Array<Integer>" do
92
+ api_client = AvalaraSdk::ApiClient.new
93
+ headers = { 'Content-Type' => 'application/json' }
94
+ response = double('response', headers: headers, body: '[12, 34]')
95
+ data = api_client.deserialize(response, 'Array<Integer>')
96
+ expect(data).to be_instance_of(Array)
97
+ expect(data).to eq([12, 34])
98
+ end
99
+
100
+ it 'handles Array<Array<Integer>>' do
101
+ api_client = AvalaraSdk::ApiClient.new
102
+ headers = { 'Content-Type' => 'application/json' }
103
+ response = double('response', headers: headers, body: '[[12, 34], [56]]')
104
+ data = api_client.deserialize(response, 'Array<Array<Integer>>')
105
+ expect(data).to be_instance_of(Array)
106
+ expect(data).to eq([[12, 34], [56]])
107
+ end
108
+
109
+ it 'handles Hash<String, String>' do
110
+ api_client = AvalaraSdk::ApiClient.new
111
+ headers = { 'Content-Type' => 'application/json' }
112
+ response = double('response', headers: headers, body: '{"message": "Hello"}')
113
+ data = api_client.deserialize(response, 'Hash<String, String>')
114
+ expect(data).to be_instance_of(Hash)
115
+ expect(data).to eq(:message => 'Hello')
116
+ end
117
+ end
118
+
119
+ describe "#object_to_hash" do
120
+ it 'ignores nils and includes empty arrays' do
121
+ # uncomment below to test object_to_hash for model
122
+ # api_client = AvalaraSdk::ApiClient.new
123
+ # _model = AvalaraSdk::ModelName.new
124
+ # update the model attribute below
125
+ # _model.id = 1
126
+ # update the expected value (hash) below
127
+ # expected = {id: 1, name: '', tags: []}
128
+ # expect(api_client.object_to_hash(_model)).to eq(expected)
129
+ end
130
+ end
131
+
132
+ describe '#build_collection_param' do
133
+ let(:param) { ['aa', 'bb', 'cc'] }
134
+ let(:api_client) { AvalaraSdk::ApiClient.new }
135
+
136
+ it 'works for csv' do
137
+ expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
138
+ end
139
+
140
+ it 'works for ssv' do
141
+ expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
142
+ end
143
+
144
+ it 'works for tsv' do
145
+ expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
146
+ end
147
+
148
+ it 'works for pipes' do
149
+ expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
150
+ end
151
+
152
+ it 'works for multi' do
153
+ expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
154
+ end
155
+
156
+ it 'fails for invalid collection format' do
157
+ expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
158
+ end
159
+ end
160
+
161
+ describe '#json_mime?' do
162
+ let(:api_client) { AvalaraSdk::ApiClient.new }
163
+
164
+ it 'works' do
165
+ expect(api_client.json_mime?(nil)).to eq false
166
+ expect(api_client.json_mime?('')).to eq false
167
+
168
+ expect(api_client.json_mime?('application/json')).to eq true
169
+ expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
170
+ expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
171
+
172
+ expect(api_client.json_mime?('application/xml')).to eq false
173
+ expect(api_client.json_mime?('text/plain')).to eq false
174
+ expect(api_client.json_mime?('application/jsonp')).to eq false
175
+ end
176
+ end
177
+
178
+ describe '#select_header_accept' do
179
+ let(:api_client) { AvalaraSdk::ApiClient.new }
180
+
181
+ it 'works' do
182
+ expect(api_client.select_header_accept(nil)).to be_nil
183
+ expect(api_client.select_header_accept([])).to be_nil
184
+
185
+ expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
186
+ expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
187
+ expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
188
+
189
+ expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
190
+ expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
191
+ end
192
+ end
193
+
194
+ describe '#select_header_content_type' do
195
+ let(:api_client) { AvalaraSdk::ApiClient.new }
196
+
197
+ it 'works' do
198
+ expect(api_client.select_header_content_type(nil)).to be_nil
199
+ expect(api_client.select_header_content_type([])).to be_nil
200
+
201
+ expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
202
+ expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
203
+ expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
204
+ expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
205
+ expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
206
+ end
207
+ end
208
+
209
+ describe '#sanitize_filename' do
210
+ let(:api_client) { AvalaraSdk::ApiClient.new }
211
+
212
+ it 'works' do
213
+ expect(api_client.sanitize_filename('sun')).to eq('sun')
214
+ expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
215
+ expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
216
+ expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
217
+ expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
218
+ expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
219
+ expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
220
+ expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
221
+ expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
222
+ end
223
+ end
224
+ end
@@ -0,0 +1,40 @@
1
+ =begin
2
+ #Avalara Shipping Verification only
3
+
4
+ #API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta.
5
+
6
+ SDK Version : 2.4.5.6
7
+
8
+
9
+ =end
10
+
11
+ require 'spec_helper'
12
+
13
+ describe AvalaraSdk::Configuration do
14
+ let(:config) { AvalaraSdk::Configuration.default }
15
+
16
+ before(:each) do
17
+ # uncomment below to setup host and base_path
18
+ # require 'URI'
19
+ # uri = URI.parse("http://localhost")
20
+ # AvalaraSdk.configure do |c|
21
+ # c.host = uri.host
22
+ # c.base_path = uri.path
23
+ # end
24
+ end
25
+
26
+ describe '#base_url' do
27
+ it 'should have the default value' do
28
+ # uncomment below to test default value of the base path
29
+ # expect(config.base_url).to eq("http://localhost")
30
+ end
31
+
32
+ it 'should remove trailing slashes' do
33
+ [nil, '', '/', '//'].each do |base_path|
34
+ config.base_path = base_path
35
+ # uncomment below to test trailing slashes
36
+ # expect(config.base_url).to eq("http://localhost")
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,28 @@
1
+ =begin
2
+ #Avalara Shipping Verification for Beverage Alcohol
3
+
4
+ #API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta.
5
+
6
+ The version of the OpenAPI document: 2.1.0-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AvalaraSdk::AgeVerifyFailureCode
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AvalaraSdk::AgeVerifyFailureCode do
21
+ let(:instance) { AvalaraSdk::AgeVerifyFailureCode.new }
22
+
23
+ describe 'test an instance of AgeVerifyFailureCode' do
24
+ it 'should create an instance of AgeVerifyFailureCode' do
25
+ expect(instance).to be_instance_of(AvalaraSdk::AgeVerifyFailureCode)
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,62 @@
1
+ =begin
2
+ #Avalara Shipping Verification for Beverage Alcohol
3
+
4
+ #API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta.
5
+
6
+ The version of the OpenAPI document: 2.1.0-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AvalaraSdk::AgeVerifyRequestAddress
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AvalaraSdk::AgeVerifyRequestAddress do
21
+ let(:instance) { AvalaraSdk::AgeVerifyRequestAddress.new }
22
+
23
+ describe 'test an instance of AgeVerifyRequestAddress' do
24
+ it 'should create an instance of AgeVerifyRequestAddress' do
25
+ expect(instance).to be_instance_of(AvalaraSdk::AgeVerifyRequestAddress)
26
+ end
27
+ end
28
+ describe 'test attribute "line1"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "city"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "region"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "country"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["US", "USA"])
50
+ # validator.allowable_values.each do |value|
51
+ # expect { instance.country = value }.not_to raise_error
52
+ # end
53
+ end
54
+ end
55
+
56
+ describe 'test attribute "postal_code"' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ end
@@ -0,0 +1,52 @@
1
+ =begin
2
+ #Avalara Shipping Verification for Beverage Alcohol
3
+
4
+ #API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta.
5
+
6
+ The version of the OpenAPI document: 2.1.0-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AvalaraSdk::AgeVerifyRequest
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AvalaraSdk::AgeVerifyRequest do
21
+ let(:instance) { AvalaraSdk::AgeVerifyRequest.new }
22
+
23
+ describe 'test an instance of AgeVerifyRequest' do
24
+ it 'should create an instance of AgeVerifyRequest' do
25
+ expect(instance).to be_instance_of(AvalaraSdk::AgeVerifyRequest)
26
+ end
27
+ end
28
+ describe 'test attribute "first_name"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "last_name"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "address"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "dob"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ end
@@ -0,0 +1,40 @@
1
+ =begin
2
+ #Avalara Shipping Verification for Beverage Alcohol
3
+
4
+ #API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta.
5
+
6
+ The version of the OpenAPI document: 2.1.0-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AvalaraSdk::AgeVerifyResult
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AvalaraSdk::AgeVerifyResult do
21
+ let(:instance) { AvalaraSdk::AgeVerifyResult.new }
22
+
23
+ describe 'test an instance of AgeVerifyResult' do
24
+ it 'should create an instance of AgeVerifyResult' do
25
+ expect(instance).to be_instance_of(AvalaraSdk::AgeVerifyResult)
26
+ end
27
+ end
28
+ describe 'test attribute "is_of_age"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "failure_codes"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ end
@@ -0,0 +1,78 @@
1
+ =begin
2
+ #Avalara Shipping Verification for Beverage Alcohol
3
+
4
+ #API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta.
5
+
6
+ The version of the OpenAPI document: 2.1.0-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AvalaraSdk::ErrorDetailsErrorDetails
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AvalaraSdk::ErrorDetailsErrorDetails do
21
+ let(:instance) { AvalaraSdk::ErrorDetailsErrorDetails.new }
22
+
23
+ describe 'test an instance of ErrorDetailsErrorDetails' do
24
+ it 'should create an instance of ErrorDetailsErrorDetails' do
25
+ expect(instance).to be_instance_of(AvalaraSdk::ErrorDetailsErrorDetails)
26
+ end
27
+ end
28
+ describe 'test attribute "code"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["AuthenticationException", "SubscriptionRequired", "UnhandledException", "InvalidAddress", "EntityNotFoundError"])
32
+ # validator.allowable_values.each do |value|
33
+ # expect { instance.code = value }.not_to raise_error
34
+ # end
35
+ end
36
+ end
37
+
38
+ describe 'test attribute "message"' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "number"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ describe 'test attribute "description"' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ describe 'test attribute "fault_code"' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ describe 'test attribute "help_link"' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ describe 'test attribute "severity"' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Error"])
72
+ # validator.allowable_values.each do |value|
73
+ # expect { instance.severity = value }.not_to raise_error
74
+ # end
75
+ end
76
+ end
77
+
78
+ end
@@ -0,0 +1,50 @@
1
+ =begin
2
+ #Avalara Shipping Verification for Beverage Alcohol
3
+
4
+ #API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta.
5
+
6
+ The version of the OpenAPI document: 2.1.0-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AvalaraSdk::ErrorDetailsError
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AvalaraSdk::ErrorDetailsError do
21
+ let(:instance) { AvalaraSdk::ErrorDetailsError.new }
22
+
23
+ describe 'test an instance of ErrorDetailsError' do
24
+ it 'should create an instance of ErrorDetailsError' do
25
+ expect(instance).to be_instance_of(AvalaraSdk::ErrorDetailsError)
26
+ end
27
+ end
28
+ describe 'test attribute "code"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["AuthenticationException", "SubscriptionRequired", "ServerConfiguration", "InvalidAddress", "EntityNotFoundError"])
32
+ # validator.allowable_values.each do |value|
33
+ # expect { instance.code = value }.not_to raise_error
34
+ # end
35
+ end
36
+ end
37
+
38
+ describe 'test attribute "message"' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "details"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ end
@@ -0,0 +1,34 @@
1
+ =begin
2
+ #Avalara Shipping Verification for Beverage Alcohol
3
+
4
+ #API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta.
5
+
6
+ The version of the OpenAPI document: 2.1.0-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AvalaraSdk::ErrorDetails
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AvalaraSdk::ErrorDetails do
21
+ let(:instance) { AvalaraSdk::ErrorDetails.new }
22
+
23
+ describe 'test an instance of ErrorDetails' do
24
+ it 'should create an instance of ErrorDetails' do
25
+ expect(instance).to be_instance_of(AvalaraSdk::ErrorDetails)
26
+ end
27
+ end
28
+ describe 'test attribute "error"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ end
@@ -0,0 +1,72 @@
1
+ =begin
2
+ #Avalara Shipping Verification for Beverage Alcohol
3
+
4
+ #API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta.
5
+
6
+ The version of the OpenAPI document: 2.1.0-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AvalaraSdk::ShippingVerifyResultLines
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AvalaraSdk::ShippingVerifyResultLines do
21
+ let(:instance) { AvalaraSdk::ShippingVerifyResultLines.new }
22
+
23
+ describe 'test an instance of ShippingVerifyResultLines' do
24
+ it 'should create an instance of ShippingVerifyResultLines' do
25
+ expect(instance).to be_instance_of(AvalaraSdk::ShippingVerifyResultLines)
26
+ end
27
+ end
28
+ describe 'test attribute "result_code"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Compliant", "NotCompliant", "UnsupportedTaxCode", "UnsupportedAddress", "InvalidLine"])
32
+ # validator.allowable_values.each do |value|
33
+ # expect { instance.result_code = value }.not_to raise_error
34
+ # end
35
+ end
36
+ end
37
+
38
+ describe 'test attribute "line_number"' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "message"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ describe 'test attribute "success_messages"' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ describe 'test attribute "failure_messages"' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ describe 'test attribute "failure_codes"' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["BelowLegalDrinkingAge", "ShippingProhibitedToAddress", "MissingRequiredLicense", "VolumeLimitExceeded", "InvalidFieldValue", "MissingRequiredField", "InvalidFieldType", "InvalidFormat", "InvalidDate"])
66
+ # validator.allowable_values.each do |value|
67
+ # expect { instance.failure_codes = value }.not_to raise_error
68
+ # end
69
+ end
70
+ end
71
+
72
+ end