avalara_sdk 2.4.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Avalara.SDK.gemspec +38 -0
- data/Gemfile +9 -0
- data/README.md +129 -0
- data/Rakefile +10 -0
- data/TAGS +441 -0
- data/avalara_sdk.gemspec +36 -0
- data/docs/AgeVerificationApi.md +87 -0
- data/docs/AgeVerifyFailureCode.md +15 -0
- data/docs/AgeVerifyRequest.md +24 -0
- data/docs/AgeVerifyRequestAddress.md +26 -0
- data/docs/AgeVerifyResult.md +20 -0
- data/docs/ErrorDetails.md +18 -0
- data/docs/ErrorDetailsError.md +22 -0
- data/docs/ErrorDetailsErrorDetails.md +30 -0
- data/docs/ShippingVerificationApi.md +327 -0
- data/docs/ShippingVerifyResult.md +30 -0
- data/docs/ShippingVerifyResultLines.md +28 -0
- data/example/test.rb +25 -0
- data/git_push.sh +57 -0
- data/lib/avalara_sdk/api/age_verification_api.rb +95 -0
- data/lib/avalara_sdk/api/shipping_verification_api.rb +322 -0
- data/lib/avalara_sdk/api_client.rb +411 -0
- data/lib/avalara_sdk/api_error.rb +57 -0
- data/lib/avalara_sdk/configuration.rb +231 -0
- data/lib/avalara_sdk/models/age_verify_failure_code.rb +39 -0
- data/lib/avalara_sdk/models/age_verify_request.rb +245 -0
- data/lib/avalara_sdk/models/age_verify_request_address.rb +288 -0
- data/lib/avalara_sdk/models/age_verify_result.rb +230 -0
- data/lib/avalara_sdk/models/error_details.rb +217 -0
- data/lib/avalara_sdk/models/error_details_error.rb +271 -0
- data/lib/avalara_sdk/models/error_details_error_details.rb +324 -0
- data/lib/avalara_sdk/models/shipping_verify_result.rb +306 -0
- data/lib/avalara_sdk/models/shipping_verify_result_lines.rb +303 -0
- data/lib/avalara_sdk/version.rb +13 -0
- data/lib/avalara_sdk.rb +48 -0
- data/spec/api/age_verification_api_spec.rb +48 -0
- data/spec/api/shipping_verification_api_spec.rb +88 -0
- data/spec/api_client_spec.rb +224 -0
- data/spec/configuration_spec.rb +40 -0
- data/spec/models/age_verify_failure_code_spec.rb +28 -0
- data/spec/models/age_verify_request_address_spec.rb +62 -0
- data/spec/models/age_verify_request_spec.rb +52 -0
- data/spec/models/age_verify_result_spec.rb +40 -0
- data/spec/models/error_details_error_details_spec.rb +78 -0
- data/spec/models/error_details_error_spec.rb +50 -0
- data/spec/models/error_details_spec.rb +34 -0
- data/spec/models/shipping_verify_result_lines_spec.rb +72 -0
- data/spec/models/shipping_verify_result_spec.rb +78 -0
- data/spec/spec_helper.rb +108 -0
- metadata +147 -0
@@ -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::ShippingVerifyResult
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AvalaraSdk::ShippingVerifyResult do
|
21
|
+
let(:instance) { AvalaraSdk::ShippingVerifyResult.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ShippingVerifyResult' do
|
24
|
+
it 'should create an instance of ShippingVerifyResult' do
|
25
|
+
expect(instance).to be_instance_of(AvalaraSdk::ShippingVerifyResult)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "compliant"' 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 "message"' 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 "success_messages"' 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 "failure_messages"' 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
|
+
describe 'test attribute "failure_codes"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["BelowLegalDrinkingAge", "ShippingProhibitedToAddress", "MissingRequiredLicense", "VolumeLimitExceeded", "InvalidFieldValue", "MissingRequiredField", "InvalidFieldType", "InvalidFormat", "InvalidDate"])
|
56
|
+
# validator.allowable_values.each do |value|
|
57
|
+
# expect { instance.failure_codes = value }.not_to raise_error
|
58
|
+
# end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'test attribute "warning_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>', ["UnsupportedTaxCode", "UnsupportedAddress"])
|
66
|
+
# validator.allowable_values.each do |value|
|
67
|
+
# expect { instance.warning_codes = value }.not_to raise_error
|
68
|
+
# end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "lines"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,108 @@
|
|
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
|
+
# load the gem
|
12
|
+
require File.expand_path('../../lib/avalara_sdk', __FILE__)
|
13
|
+
# The following was generated by the `rspec --init` command. Conventionally, all
|
14
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
15
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
16
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
17
|
+
# files.
|
18
|
+
#
|
19
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
20
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
21
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
22
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
23
|
+
# a separate helper file that requires the additional dependencies and performs
|
24
|
+
# the additional setup, and require it from the spec files that actually need
|
25
|
+
# it.
|
26
|
+
#
|
27
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
28
|
+
# users commonly want.
|
29
|
+
#
|
30
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
31
|
+
RSpec.configure do |config|
|
32
|
+
# rspec-expectations config goes here. You can use an alternate
|
33
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
34
|
+
# assertions if you prefer.
|
35
|
+
config.expect_with :rspec do |expectations|
|
36
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
37
|
+
# and `failure_message` of custom matchers include text for helper methods
|
38
|
+
# defined using `chain`, e.g.:
|
39
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
40
|
+
# # => "be bigger than 2 and smaller than 4"
|
41
|
+
# ...rather than:
|
42
|
+
# # => "be bigger than 2"
|
43
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
44
|
+
end
|
45
|
+
|
46
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
47
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
48
|
+
config.mock_with :rspec do |mocks|
|
49
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
50
|
+
# a real object. This is generally recommended, and will default to
|
51
|
+
# `true` in RSpec 4.
|
52
|
+
mocks.verify_partial_doubles = true
|
53
|
+
end
|
54
|
+
|
55
|
+
# The settings below are suggested to provide a good initial experience
|
56
|
+
# with RSpec, but feel free to customize to your heart's content.
|
57
|
+
=begin
|
58
|
+
# These two settings work together to allow you to limit a spec run
|
59
|
+
# to individual examples or groups you care about by tagging them with
|
60
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
61
|
+
# get run.
|
62
|
+
config.filter_run :focus
|
63
|
+
config.run_all_when_everything_filtered = true
|
64
|
+
|
65
|
+
# Allows RSpec to persist some state between runs in order to support
|
66
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
67
|
+
# you configure your source control system to ignore this file.
|
68
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
69
|
+
|
70
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
71
|
+
# recommended. For more details, see:
|
72
|
+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
73
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
74
|
+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
75
|
+
config.disable_monkey_patching!
|
76
|
+
|
77
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
78
|
+
# be too noisy due to issues in dependencies.
|
79
|
+
config.warnings = true
|
80
|
+
|
81
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
82
|
+
# file, and it's useful to allow more verbose output when running an
|
83
|
+
# individual spec file.
|
84
|
+
if config.files_to_run.one?
|
85
|
+
# Use the documentation formatter for detailed output,
|
86
|
+
# unless a formatter has already been configured
|
87
|
+
# (e.g. via a command-line flag).
|
88
|
+
config.default_formatter = 'doc'
|
89
|
+
end
|
90
|
+
|
91
|
+
# Print the 10 slowest examples and example groups at the
|
92
|
+
# end of the spec run, to help surface which specs are running
|
93
|
+
# particularly slow.
|
94
|
+
config.profile_examples = 10
|
95
|
+
|
96
|
+
# Run specs in random order to surface order dependencies. If you find an
|
97
|
+
# order dependency and want to debug it, you can fix the order by providing
|
98
|
+
# the seed, which is printed after each run.
|
99
|
+
# --seed 1234
|
100
|
+
config.order = :random
|
101
|
+
|
102
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
103
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
104
|
+
# test failures related to randomization by passing the same `--seed` value
|
105
|
+
# as the one that triggered the failure.
|
106
|
+
Kernel.srand config.seed
|
107
|
+
=end
|
108
|
+
end
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: avalara_sdk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.4.5.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- OpenAPI-Generator
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: typhoeus
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.0.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.0.1
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rspec
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 3.6.0
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '3.6'
|
43
|
+
type: :development
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 3.6.0
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '3.6'
|
53
|
+
description: 'API for evaluating transactions against direct-to-consumer Beverage
|
54
|
+
Alcohol shipping regulations. This API is currently in beta. '
|
55
|
+
email:
|
56
|
+
- ''
|
57
|
+
executables: []
|
58
|
+
extensions: []
|
59
|
+
extra_rdoc_files: []
|
60
|
+
files:
|
61
|
+
- Avalara.SDK.gemspec
|
62
|
+
- Gemfile
|
63
|
+
- README.md
|
64
|
+
- Rakefile
|
65
|
+
- TAGS
|
66
|
+
- avalara_sdk.gemspec
|
67
|
+
- docs/AgeVerificationApi.md
|
68
|
+
- docs/AgeVerifyFailureCode.md
|
69
|
+
- docs/AgeVerifyRequest.md
|
70
|
+
- docs/AgeVerifyRequestAddress.md
|
71
|
+
- docs/AgeVerifyResult.md
|
72
|
+
- docs/ErrorDetails.md
|
73
|
+
- docs/ErrorDetailsError.md
|
74
|
+
- docs/ErrorDetailsErrorDetails.md
|
75
|
+
- docs/ShippingVerificationApi.md
|
76
|
+
- docs/ShippingVerifyResult.md
|
77
|
+
- docs/ShippingVerifyResultLines.md
|
78
|
+
- example/test.rb
|
79
|
+
- git_push.sh
|
80
|
+
- lib/avalara_sdk.rb
|
81
|
+
- lib/avalara_sdk/api/age_verification_api.rb
|
82
|
+
- lib/avalara_sdk/api/shipping_verification_api.rb
|
83
|
+
- lib/avalara_sdk/api_client.rb
|
84
|
+
- lib/avalara_sdk/api_error.rb
|
85
|
+
- lib/avalara_sdk/configuration.rb
|
86
|
+
- lib/avalara_sdk/models/age_verify_failure_code.rb
|
87
|
+
- lib/avalara_sdk/models/age_verify_request.rb
|
88
|
+
- lib/avalara_sdk/models/age_verify_request_address.rb
|
89
|
+
- lib/avalara_sdk/models/age_verify_result.rb
|
90
|
+
- lib/avalara_sdk/models/error_details.rb
|
91
|
+
- lib/avalara_sdk/models/error_details_error.rb
|
92
|
+
- lib/avalara_sdk/models/error_details_error_details.rb
|
93
|
+
- lib/avalara_sdk/models/shipping_verify_result.rb
|
94
|
+
- lib/avalara_sdk/models/shipping_verify_result_lines.rb
|
95
|
+
- lib/avalara_sdk/version.rb
|
96
|
+
- spec/api/age_verification_api_spec.rb
|
97
|
+
- spec/api/shipping_verification_api_spec.rb
|
98
|
+
- spec/api_client_spec.rb
|
99
|
+
- spec/configuration_spec.rb
|
100
|
+
- spec/models/age_verify_failure_code_spec.rb
|
101
|
+
- spec/models/age_verify_request_address_spec.rb
|
102
|
+
- spec/models/age_verify_request_spec.rb
|
103
|
+
- spec/models/age_verify_result_spec.rb
|
104
|
+
- spec/models/error_details_error_details_spec.rb
|
105
|
+
- spec/models/error_details_error_spec.rb
|
106
|
+
- spec/models/error_details_spec.rb
|
107
|
+
- spec/models/shipping_verify_result_lines_spec.rb
|
108
|
+
- spec/models/shipping_verify_result_spec.rb
|
109
|
+
- spec/spec_helper.rb
|
110
|
+
homepage: https://openapi-generator.tech
|
111
|
+
licenses:
|
112
|
+
- Unlicense
|
113
|
+
metadata: {}
|
114
|
+
post_install_message:
|
115
|
+
rdoc_options: []
|
116
|
+
require_paths:
|
117
|
+
- lib
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '2.4'
|
123
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0'
|
128
|
+
requirements: []
|
129
|
+
rubygems_version: 3.0.3.1
|
130
|
+
signing_key:
|
131
|
+
specification_version: 4
|
132
|
+
summary: Avalara Shipping Verification only Ruby Gem
|
133
|
+
test_files:
|
134
|
+
- spec/api/shipping_verification_api_spec.rb
|
135
|
+
- spec/api/age_verification_api_spec.rb
|
136
|
+
- spec/api_client_spec.rb
|
137
|
+
- spec/configuration_spec.rb
|
138
|
+
- spec/models/age_verify_request_address_spec.rb
|
139
|
+
- spec/models/error_details_spec.rb
|
140
|
+
- spec/models/error_details_error_spec.rb
|
141
|
+
- spec/models/error_details_error_details_spec.rb
|
142
|
+
- spec/models/age_verify_result_spec.rb
|
143
|
+
- spec/models/shipping_verify_result_spec.rb
|
144
|
+
- spec/models/age_verify_request_spec.rb
|
145
|
+
- spec/models/shipping_verify_result_lines_spec.rb
|
146
|
+
- spec/models/age_verify_failure_code_spec.rb
|
147
|
+
- spec/spec_helper.rb
|