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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 03cb307249d810be73cf9c07679358c83b5468138432740bcf13dc6b1eb7d947
|
4
|
+
data.tar.gz: c08af8911734913d5205df74ea78426d79c1034b22092d5a398bfbc4fed427cd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 58bc4e34f68a59082028d53d3ce71e845f23a1e09bc966b169151ebeb182d0f01880e8fdb267b57fbe328e91d9e9391bdc02a5a808d94e321b4705ece5a634dc
|
7
|
+
data.tar.gz: c2770f6fe79a5da07883bae69dc0b619ca9398bf5b70f29fda9440eb9a5b0e8a05083fdbfea802c2f86a81d17ad663c69d4b91446f678f8f9a54301c47b82bfb
|
data/Avalara.SDK.gemspec
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#Avalara Shipping Verification only
|
5
|
+
|
6
|
+
#API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 3.1.0
|
9
|
+
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
OpenAPI Generator version: 5.3.1
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "Avalara.SDK/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "Avalara.SDK"
|
20
|
+
s.version = AvalaraSDK::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["OpenAPI-Generator"]
|
23
|
+
s.email = [""]
|
24
|
+
s.homepage = "https://openapi-generator.tech"
|
25
|
+
s.summary = "Avalara Shipping Verification only Ruby Gem"
|
26
|
+
s.description = "API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta. "
|
27
|
+
s.license = "Unlicense"
|
28
|
+
s.required_ruby_version = ">= 2.4"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
|
32
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
33
|
+
|
34
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
35
|
+
s.test_files = `find spec/*`.split("\n")
|
36
|
+
s.executables = []
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
end
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
# avalara_sdk
|
2
|
+
|
3
|
+
AvalaraSdk - the Ruby gem for the Avalara Shipping Verification only
|
4
|
+
|
5
|
+
API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations.
|
6
|
+
|
7
|
+
This API is currently in beta.
|
8
|
+
|
9
|
+
|
10
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
11
|
+
|
12
|
+
- API version: 3.1.0
|
13
|
+
- Package version: 2.4.5.6
|
14
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
15
|
+
|
16
|
+
## Installation
|
17
|
+
|
18
|
+
### Build a gem
|
19
|
+
|
20
|
+
To build the Ruby code into a gem:
|
21
|
+
|
22
|
+
```shell
|
23
|
+
gem build avalara_sdk.gemspec
|
24
|
+
```
|
25
|
+
|
26
|
+
Then either install the gem locally:
|
27
|
+
|
28
|
+
```shell
|
29
|
+
gem install ./avalara_sdk-2.4.5.6.gem
|
30
|
+
```
|
31
|
+
|
32
|
+
(for development, run `gem install --dev ./avalara_sdk-2.4.5.6.gem` to install the development dependencies)
|
33
|
+
|
34
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
35
|
+
|
36
|
+
Finally add this to the Gemfile:
|
37
|
+
|
38
|
+
gem 'avalara_sdk', '~> 2.4.5.6'
|
39
|
+
|
40
|
+
### Install from Git
|
41
|
+
|
42
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
43
|
+
|
44
|
+
gem 'avalara_sdk', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
45
|
+
|
46
|
+
### Include the Ruby code directly
|
47
|
+
|
48
|
+
Include the Ruby code directly using `-I` as follows:
|
49
|
+
|
50
|
+
```shell
|
51
|
+
ruby -Ilib script.rb
|
52
|
+
```
|
53
|
+
|
54
|
+
## Getting Started
|
55
|
+
|
56
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
# Load the gem
|
60
|
+
require 'avalara_sdk'
|
61
|
+
|
62
|
+
# Setup authorization
|
63
|
+
AvalaraSdk.configure do |config|
|
64
|
+
# Configure HTTP basic authorization: BasicAuth
|
65
|
+
config.username = 'YOUR_USERNAME'
|
66
|
+
config.password = 'YOUR_PASSWORD'
|
67
|
+
|
68
|
+
# Configure API key authorization: Bearer
|
69
|
+
config.api_key['Bearer'] = 'YOUR API KEY'
|
70
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
71
|
+
# config.api_key_prefix['Bearer'] = 'Bearer'
|
72
|
+
end
|
73
|
+
|
74
|
+
api_instance = AvalaraSdk::AgeVerificationApi.new
|
75
|
+
age_verify_request = AvalaraSdk::AgeVerifyRequest.new # AgeVerifyRequest | Information about the individual whose age is being verified.
|
76
|
+
opts = {
|
77
|
+
simulated_failure_code: AvalaraSdk::AgeVerifyFailureCode::NOT_FOUND # AgeVerifyFailureCode | (Optional) The failure code included in the simulated response of the endpoint. Note that this endpoint is only available in Sandbox for testing purposes.
|
78
|
+
}
|
79
|
+
|
80
|
+
begin
|
81
|
+
#Determines whether an individual meets or exceeds the minimum legal drinking age.
|
82
|
+
result = api_instance.verify_age(age_verify_request, opts)
|
83
|
+
p result
|
84
|
+
rescue AvalaraSdk::ApiError => e
|
85
|
+
puts "Exception when calling AgeVerificationApi->verify_age: #{e}"
|
86
|
+
end
|
87
|
+
|
88
|
+
```
|
89
|
+
|
90
|
+
## Documentation for API Endpoints
|
91
|
+
|
92
|
+
All URIs are relative to *http://localhost*
|
93
|
+
|
94
|
+
Class | Method | HTTP request | Description
|
95
|
+
------------ | ------------- | ------------- | -------------
|
96
|
+
*AvalaraSdk::AgeVerificationApi* | [**verify_age**](docs/AgeVerificationApi.md#verify_age) | **POST** /api/v2/ageverification/verify | Determines whether an individual meets or exceeds the minimum legal drinking age.
|
97
|
+
*AvalaraSdk::ShippingVerificationApi* | [**deregister_shipment**](docs/ShippingVerificationApi.md#deregister_shipment) | **DELETE** /api/v2/companies/{companyCode}/transactions/{transactionCode}/shipment/registration | Removes the transaction from consideration when evaluating regulations that span multiple transactions.
|
98
|
+
*AvalaraSdk::ShippingVerificationApi* | [**register_shipment**](docs/ShippingVerificationApi.md#register_shipment) | **PUT** /api/v2/companies/{companyCode}/transactions/{transactionCode}/shipment/registration | Registers the transaction so that it may be included when evaluating regulations that span multiple transactions.
|
99
|
+
*AvalaraSdk::ShippingVerificationApi* | [**register_shipment_if_compliant**](docs/ShippingVerificationApi.md#register_shipment_if_compliant) | **PUT** /api/v2/companies/{companyCode}/transactions/{transactionCode}/shipment/registerIfCompliant | Evaluates a transaction against a set of direct-to-consumer shipping regulations and, if compliant, registers the transaction so that it may be included when evaluating regulations that span multiple transactions.
|
100
|
+
*AvalaraSdk::ShippingVerificationApi* | [**verify_shipment**](docs/ShippingVerificationApi.md#verify_shipment) | **GET** /api/v2/companies/{companyCode}/transactions/{transactionCode}/shipment/verify | Evaluates a transaction against a set of direct-to-consumer shipping regulations.
|
101
|
+
|
102
|
+
|
103
|
+
## Documentation for Models
|
104
|
+
|
105
|
+
- [AvalaraSdk::AgeVerifyFailureCode](docs/AgeVerifyFailureCode.md)
|
106
|
+
- [AvalaraSdk::AgeVerifyRequest](docs/AgeVerifyRequest.md)
|
107
|
+
- [AvalaraSdk::AgeVerifyRequestAddress](docs/AgeVerifyRequestAddress.md)
|
108
|
+
- [AvalaraSdk::AgeVerifyResult](docs/AgeVerifyResult.md)
|
109
|
+
- [AvalaraSdk::ErrorDetails](docs/ErrorDetails.md)
|
110
|
+
- [AvalaraSdk::ErrorDetailsError](docs/ErrorDetailsError.md)
|
111
|
+
- [AvalaraSdk::ErrorDetailsErrorDetails](docs/ErrorDetailsErrorDetails.md)
|
112
|
+
- [AvalaraSdk::ShippingVerifyResult](docs/ShippingVerifyResult.md)
|
113
|
+
- [AvalaraSdk::ShippingVerifyResultLines](docs/ShippingVerifyResultLines.md)
|
114
|
+
|
115
|
+
|
116
|
+
## Documentation for Authorization
|
117
|
+
|
118
|
+
|
119
|
+
### BasicAuth
|
120
|
+
|
121
|
+
- **Type**: HTTP basic authentication
|
122
|
+
|
123
|
+
### Bearer
|
124
|
+
|
125
|
+
|
126
|
+
- **Type**: API key
|
127
|
+
- **API key parameter name**: Authorization
|
128
|
+
- **Location**: HTTP header
|
129
|
+
|
data/Rakefile
ADDED
data/TAGS
ADDED
@@ -0,0 +1,441 @@
|
|
1
|
+
|
2
|
+
lib/avalara_sdk/api/age_verification_api.rb,470
|
3
|
+
module AvalaraSdkAvalaraSdk15,0
|
4
|
+
class AgeVerificationApiAgeVerificationApi16,0
|
5
|
+
class AgeVerificationApiAvalaraSdk::AgeVerificationApi16,0
|
6
|
+
attr_accessor :api_clientapi_client17,0
|
7
|
+
attr_accessor :api_clientapi_client=17,0
|
8
|
+
def initialize(api_client = ApiClient.default)initialize19,0
|
9
|
+
def verify_age(age_verify_request, opts = {})verify_age28,0
|
10
|
+
def verify_age_with_http_info(age_verify_request, opts = {})verify_age_with_http_info39,0
|
11
|
+
|
12
|
+
lib/avalara_sdk/api/shipping_verification_api.rb,1242
|
13
|
+
module AvalaraSdkAvalaraSdk15,0
|
14
|
+
class ShippingVerificationApiShippingVerificationApi16,0
|
15
|
+
class ShippingVerificationApiAvalaraSdk::ShippingVerificationApi16,0
|
16
|
+
attr_accessor :api_clientapi_client17,0
|
17
|
+
attr_accessor :api_clientapi_client=17,0
|
18
|
+
def initialize(api_client = ApiClient.default)initialize19,0
|
19
|
+
def deregister_shipment(company_code, transaction_code, opts = {})deregister_shipment28,0
|
20
|
+
def deregister_shipment_with_http_info(company_code, transaction_code, opts = {})deregister_shipment_with_http_info39,0
|
21
|
+
def register_shipment(company_code, transaction_code, opts = {})register_shipment102,0
|
22
|
+
def register_shipment_with_http_info(company_code, transaction_code, opts = {})register_shipment_with_http_info113,0
|
23
|
+
def register_shipment_if_compliant(company_code, transaction_code, opts = {})register_shipment_if_compliant176,0
|
24
|
+
def register_shipment_if_compliant_with_http_info(company_code, transaction_code, opts = {})register_shipment_if_compliant_with_http_info187,0
|
25
|
+
def verify_shipment(company_code, transaction_code, opts = {})verify_shipment251,0
|
26
|
+
def verify_shipment_with_http_info(company_code, transaction_code, opts = {})verify_shipment_with_http_info263,0
|
27
|
+
|
28
|
+
lib/avalara_sdk/api_client.rb,1464
|
29
|
+
module AvalaraSdkAvalaraSdk20,0
|
30
|
+
class ApiClientApiClient21,0
|
31
|
+
class ApiClientAvalaraSdk::ApiClient21,0
|
32
|
+
attr_accessor :configconfig23,0
|
33
|
+
attr_accessor :configconfig=23,0
|
34
|
+
attr_accessor :default_headersdefault_headers28,0
|
35
|
+
attr_accessor :default_headersdefault_headers=28,0
|
36
|
+
def initialize(config = Configuration.default)initialize32,0
|
37
|
+
def self.defaultdefault41,0
|
38
|
+
def call_api(http_method, path, opts = {})call_api49,0
|
39
|
+
def build_request(http_method, path, opts = {})build_request89,0
|
40
|
+
def build_request_body(header_params, form_params, body)build_request_body137,0
|
41
|
+
def download_file(request)download_file166,0
|
42
|
+
def json_mime?(mime)json_mime?205,0
|
43
|
+
def deserialize(response, return_type)deserialize213,0
|
44
|
+
def convert_to_type(data, return_type)convert_to_type247,0
|
45
|
+
def sanitize_filename(filename)sanitize_filename289,0
|
46
|
+
def build_request_url(path, opts = {})build_request_url293,0
|
47
|
+
def update_params_for_auth!(header_params, query_params, auth_names)update_params_for_auth!304,0
|
48
|
+
def user_agent=(user_agent)user_agent=319,0
|
49
|
+
def select_header_accept(accepts)select_header_accept327,0
|
50
|
+
def select_header_content_type(content_types)select_header_content_type337,0
|
51
|
+
def object_to_http_body(model)object_to_http_body348,0
|
52
|
+
def object_to_hash(obj)object_to_hash362,0
|
53
|
+
def build_collection_param(param, collection_format)build_collection_param372,0
|
54
|
+
|
55
|
+
lib/avalara_sdk/api_error.rb,460
|
56
|
+
module AvalaraSdkAvalaraSdk13,0
|
57
|
+
class ApiError < StandardErrorApiError14,0
|
58
|
+
class ApiError < StandardErrorAvalaraSdk::ApiError14,0
|
59
|
+
attr_reader :code, :response_headers, :response_bodycode15,0
|
60
|
+
attr_reader :code, :response_headers, :response_bodyresponse_headers15,0
|
61
|
+
attr_reader :code, :response_headers, :response_bodyresponse_body15,0
|
62
|
+
def initialize(arg = nil)initialize22,0
|
63
|
+
def to_sto_s39,0
|
64
|
+
def messagemessage43,0
|
65
|
+
|
66
|
+
lib/avalara_sdk/configuration.rb,3317
|
67
|
+
module AvalaraSdkAvalaraSdk13,0
|
68
|
+
class ConfigurationConfiguration14,0
|
69
|
+
class ConfigurationAvalaraSdk::Configuration14,0
|
70
|
+
attr_accessor :schemescheme16,0
|
71
|
+
attr_accessor :schemescheme=16,0
|
72
|
+
attr_accessor :hosthost19,0
|
73
|
+
attr_accessor :hosthost=19,0
|
74
|
+
attr_accessor :base_pathbase_path22,0
|
75
|
+
attr_accessor :base_pathbase_path=22,0
|
76
|
+
attr_accessor :server_indexserver_index25,0
|
77
|
+
attr_accessor :server_indexserver_index=25,0
|
78
|
+
attr_accessor :server_operation_indexserver_operation_index28,0
|
79
|
+
attr_accessor :server_operation_indexserver_operation_index=28,0
|
80
|
+
attr_accessor :server_variablesserver_variables31,0
|
81
|
+
attr_accessor :server_variablesserver_variables=31,0
|
82
|
+
attr_accessor :server_operation_variablesserver_operation_variables34,0
|
83
|
+
attr_accessor :server_operation_variablesserver_operation_variables=34,0
|
84
|
+
attr_accessor :api_keyapi_key42,0
|
85
|
+
attr_accessor :api_keyapi_key=42,0
|
86
|
+
attr_accessor :api_key_prefixapi_key_prefix50,0
|
87
|
+
attr_accessor :api_key_prefixapi_key_prefix=50,0
|
88
|
+
attr_accessor :usernameusername55,0
|
89
|
+
attr_accessor :usernameusername=55,0
|
90
|
+
attr_accessor :passwordpassword60,0
|
91
|
+
attr_accessor :passwordpassword=60,0
|
92
|
+
attr_accessor :access_tokenaccess_token63,0
|
93
|
+
attr_accessor :access_tokenaccess_token=63,0
|
94
|
+
attr_accessor :debuggingdebugging70,0
|
95
|
+
attr_accessor :debuggingdebugging=70,0
|
96
|
+
attr_accessor :loggerlogger76,0
|
97
|
+
attr_accessor :loggerlogger=76,0
|
98
|
+
attr_accessor :temp_folder_pathtemp_folder_path83,0
|
99
|
+
attr_accessor :temp_folder_pathtemp_folder_path=83,0
|
100
|
+
attr_accessor :timeouttimeout87,0
|
101
|
+
attr_accessor :timeouttimeout=87,0
|
102
|
+
attr_accessor :client_side_validationclient_side_validation92,0
|
103
|
+
attr_accessor :client_side_validationclient_side_validation=92,0
|
104
|
+
attr_accessor :verify_sslverify_ssl101,0
|
105
|
+
attr_accessor :verify_sslverify_ssl=101,0
|
106
|
+
attr_accessor :verify_ssl_hostverify_ssl_host110,0
|
107
|
+
attr_accessor :verify_ssl_hostverify_ssl_host=110,0
|
108
|
+
attr_accessor :ssl_ca_certssl_ca_cert119,0
|
109
|
+
attr_accessor :ssl_ca_certssl_ca_cert=119,0
|
110
|
+
attr_accessor :cert_filecert_file123,0
|
111
|
+
attr_accessor :cert_filecert_file=123,0
|
112
|
+
attr_accessor :key_filekey_file127,0
|
113
|
+
attr_accessor :key_filekey_file=127,0
|
114
|
+
attr_accessor :params_encodingparams_encoding134,0
|
115
|
+
attr_accessor :params_encodingparams_encoding=134,0
|
116
|
+
attr_accessor :inject_formatinject_format136,0
|
117
|
+
attr_accessor :inject_formatinject_format=136,0
|
118
|
+
attr_accessor :force_ending_formatforce_ending_format138,0
|
119
|
+
attr_accessor :force_ending_formatforce_ending_format=138,0
|
120
|
+
def initializeinitialize140,0
|
121
|
+
def self.defaultdefault166,0
|
122
|
+
def configureconfigure170,0
|
123
|
+
def scheme=(scheme)scheme=174,0
|
124
|
+
def host=(host)host=179,0
|
125
|
+
def base_path=(base_path)base_path=184,0
|
126
|
+
def base_url(operation = nil)base_url191,0
|
127
|
+
def api_key_with_prefix(param_name, param_alias = nil)api_key_with_prefix200,0
|
128
|
+
def basic_auth_tokenbasic_auth_token211,0
|
129
|
+
def auth_settingsauth_settings216,0
|
130
|
+
def server_settingsserver_settings236,0
|
131
|
+
def operation_server_settingsoperation_server_settings245,0
|
132
|
+
def server_url(index, variables = {}, servers = nil)server_url254,0
|
133
|
+
|
134
|
+
lib/avalara_sdk/models/age_verify_failure_code.rb,1165
|
135
|
+
module AvalaraSdkAvalaraSdk16,0
|
136
|
+
class AgeVerifyFailureCodeAgeVerifyFailureCode17,0
|
137
|
+
class AgeVerifyFailureCodeAvalaraSdk::AgeVerifyFailureCode17,0
|
138
|
+
NOT_FOUND = "not_found".freezeNOT_FOUND18,0
|
139
|
+
NOT_FOUND = "not_found".freezeAvalaraSdk::AgeVerifyFailureCode::NOT_FOUND18,0
|
140
|
+
DOB_UNVERIFIABLE = "dob_unverifiable".freezeDOB_UNVERIFIABLE19,0
|
141
|
+
DOB_UNVERIFIABLE = "dob_unverifiable".freezeAvalaraSdk::AgeVerifyFailureCode::DOB_UNVERIFIABLE19,0
|
142
|
+
UNDER_AGE = "under_age".freezeUNDER_AGE20,0
|
143
|
+
UNDER_AGE = "under_age".freezeAvalaraSdk::AgeVerifyFailureCode::UNDER_AGE20,0
|
144
|
+
SUSPECTED_FRAUD = "suspected_fraud".freezeSUSPECTED_FRAUD21,0
|
145
|
+
SUSPECTED_FRAUD = "suspected_fraud".freezeAvalaraSdk::AgeVerifyFailureCode::SUSPECTED_FRAUD21,0
|
146
|
+
DECEASED = "deceased".freezeDECEASED22,0
|
147
|
+
DECEASED = "deceased".freezeAvalaraSdk::AgeVerifyFailureCode::DECEASED22,0
|
148
|
+
UNKNOWN_ERROR = "unknown_error".freezeUNKNOWN_ERROR23,0
|
149
|
+
UNKNOWN_ERROR = "unknown_error".freezeAvalaraSdk::AgeVerifyFailureCode::UNKNOWN_ERROR23,0
|
150
|
+
def self.build_from_hash(value)build_from_hash28,0
|
151
|
+
def build_from_hash(value)build_from_hash35,0
|
152
|
+
|
153
|
+
lib/avalara_sdk/models/age_verify_request.rb,1186
|
154
|
+
module AvalaraSdkAvalaraSdk16,0
|
155
|
+
class AgeVerifyRequestAgeVerifyRequest18,0
|
156
|
+
class AgeVerifyRequestAvalaraSdk::AgeVerifyRequest18,0
|
157
|
+
attr_accessor :first_namefirst_name19,0
|
158
|
+
attr_accessor :first_namefirst_name=19,0
|
159
|
+
attr_accessor :last_namelast_name21,0
|
160
|
+
attr_accessor :last_namelast_name=21,0
|
161
|
+
attr_accessor :addressaddress23,0
|
162
|
+
attr_accessor :addressaddress=23,0
|
163
|
+
attr_accessor :dobdob26,0
|
164
|
+
attr_accessor :dobdob=26,0
|
165
|
+
def self.attribute_mapattribute_map29,0
|
166
|
+
def self.acceptable_attributesacceptable_attributes39,0
|
167
|
+
def self.openapi_typesopenapi_types44,0
|
168
|
+
def self.openapi_nullableopenapi_nullable54,0
|
169
|
+
def initialize(attributes = {})initialize61,0
|
170
|
+
def list_invalid_propertieslist_invalid_properties93,0
|
171
|
+
def valid?valid?100,0
|
172
|
+
def ==(o)==106,0
|
173
|
+
def eql?(o)eql?117,0
|
174
|
+
def hashhash123,0
|
175
|
+
def self.build_from_hash(attributes)build_from_hash130,0
|
176
|
+
def build_from_hash(attributes)build_from_hash137,0
|
177
|
+
def _deserialize(type, value)_deserialize160,0
|
178
|
+
def to_sto_s201,0
|
179
|
+
def to_bodyto_body207,0
|
180
|
+
def to_hashto_hash213,0
|
181
|
+
def _to_hash(value)_to_hash231,0
|
182
|
+
|
183
|
+
lib/avalara_sdk/models/age_verify_request_address.rb,1685
|
184
|
+
module AvalaraSdkAvalaraSdk16,0
|
185
|
+
class AgeVerifyRequestAddressAgeVerifyRequestAddress17,0
|
186
|
+
class AgeVerifyRequestAddressAvalaraSdk::AgeVerifyRequestAddress17,0
|
187
|
+
attr_accessor :line1line118,0
|
188
|
+
attr_accessor :line1line1=18,0
|
189
|
+
attr_accessor :citycity20,0
|
190
|
+
attr_accessor :citycity=20,0
|
191
|
+
attr_accessor :regionregion23,0
|
192
|
+
attr_accessor :regionregion=23,0
|
193
|
+
attr_accessor :countrycountry26,0
|
194
|
+
attr_accessor :countrycountry=26,0
|
195
|
+
attr_accessor :postal_codepostal_code28,0
|
196
|
+
attr_accessor :postal_codepostal_code=28,0
|
197
|
+
class EnumAttributeValidatorEnumAttributeValidator30,0
|
198
|
+
class EnumAttributeValidatorAvalaraSdk::AgeVerifyRequestAddress::EnumAttributeValidator30,0
|
199
|
+
attr_reader :datatypedatatype31,0
|
200
|
+
attr_reader :allowable_valuesallowable_values32,0
|
201
|
+
def initialize(datatype, allowable_values)initialize34,0
|
202
|
+
def valid?(value)valid?47,0
|
203
|
+
def self.attribute_mapattribute_map53,0
|
204
|
+
def self.acceptable_attributesacceptable_attributes64,0
|
205
|
+
def self.openapi_typesopenapi_types69,0
|
206
|
+
def self.openapi_nullableopenapi_nullable80,0
|
207
|
+
def initialize(attributes = {})initialize87,0
|
208
|
+
def list_invalid_propertieslist_invalid_properties123,0
|
209
|
+
def valid?valid?130,0
|
210
|
+
def country=(country)country=138,0
|
211
|
+
def ==(o)==148,0
|
212
|
+
def eql?(o)eql?160,0
|
213
|
+
def hashhash166,0
|
214
|
+
def self.build_from_hash(attributes)build_from_hash173,0
|
215
|
+
def build_from_hash(attributes)build_from_hash180,0
|
216
|
+
def _deserialize(type, value)_deserialize203,0
|
217
|
+
def to_sto_s244,0
|
218
|
+
def to_bodyto_body250,0
|
219
|
+
def to_hashto_hash256,0
|
220
|
+
def _to_hash(value)_to_hash274,0
|
221
|
+
|
222
|
+
lib/avalara_sdk/models/age_verify_result.rb,1046
|
223
|
+
module AvalaraSdkAvalaraSdk16,0
|
224
|
+
class AgeVerifyResultAgeVerifyResult18,0
|
225
|
+
class AgeVerifyResultAvalaraSdk::AgeVerifyResult18,0
|
226
|
+
attr_accessor :is_of_ageis_of_age20,0
|
227
|
+
attr_accessor :is_of_ageis_of_age=20,0
|
228
|
+
attr_accessor :failure_codesfailure_codes23,0
|
229
|
+
attr_accessor :failure_codesfailure_codes=23,0
|
230
|
+
def self.attribute_mapattribute_map26,0
|
231
|
+
def self.acceptable_attributesacceptable_attributes34,0
|
232
|
+
def self.openapi_typesopenapi_types39,0
|
233
|
+
def self.openapi_nullableopenapi_nullable47,0
|
234
|
+
def initialize(attributes = {})initialize54,0
|
235
|
+
def list_invalid_propertieslist_invalid_properties80,0
|
236
|
+
def valid?valid?87,0
|
237
|
+
def ==(o)==93,0
|
238
|
+
def eql?(o)eql?102,0
|
239
|
+
def hashhash108,0
|
240
|
+
def self.build_from_hash(attributes)build_from_hash115,0
|
241
|
+
def build_from_hash(attributes)build_from_hash122,0
|
242
|
+
def _deserialize(type, value)_deserialize145,0
|
243
|
+
def to_sto_s186,0
|
244
|
+
def to_bodyto_body192,0
|
245
|
+
def to_hashto_hash198,0
|
246
|
+
def _to_hash(value)_to_hash216,0
|
247
|
+
|
248
|
+
lib/avalara_sdk/models/error_details.rb,911
|
249
|
+
module AvalaraSdkAvalaraSdk16,0
|
250
|
+
class ErrorDetailsErrorDetails18,0
|
251
|
+
class ErrorDetailsAvalaraSdk::ErrorDetails18,0
|
252
|
+
attr_accessor :errorerror19,0
|
253
|
+
attr_accessor :errorerror=19,0
|
254
|
+
def self.attribute_mapattribute_map22,0
|
255
|
+
def self.acceptable_attributesacceptable_attributes29,0
|
256
|
+
def self.openapi_typesopenapi_types34,0
|
257
|
+
def self.openapi_nullableopenapi_nullable41,0
|
258
|
+
def initialize(attributes = {})initialize48,0
|
259
|
+
def list_invalid_propertieslist_invalid_properties68,0
|
260
|
+
def valid?valid?75,0
|
261
|
+
def ==(o)==81,0
|
262
|
+
def eql?(o)eql?89,0
|
263
|
+
def hashhash95,0
|
264
|
+
def self.build_from_hash(attributes)build_from_hash102,0
|
265
|
+
def build_from_hash(attributes)build_from_hash109,0
|
266
|
+
def _deserialize(type, value)_deserialize132,0
|
267
|
+
def to_sto_s173,0
|
268
|
+
def to_bodyto_body179,0
|
269
|
+
def to_hashto_hash185,0
|
270
|
+
def _to_hash(value)_to_hash203,0
|
271
|
+
|
272
|
+
lib/avalara_sdk/models/error_details_error.rb,1480
|
273
|
+
module AvalaraSdkAvalaraSdk16,0
|
274
|
+
class ErrorDetailsErrorErrorDetailsError18,0
|
275
|
+
class ErrorDetailsErrorAvalaraSdk::ErrorDetailsError18,0
|
276
|
+
attr_accessor :codecode20,0
|
277
|
+
attr_accessor :codecode=20,0
|
278
|
+
attr_accessor :messagemessage23,0
|
279
|
+
attr_accessor :messagemessage=23,0
|
280
|
+
attr_accessor :detailsdetails25,0
|
281
|
+
attr_accessor :detailsdetails=25,0
|
282
|
+
class EnumAttributeValidatorEnumAttributeValidator27,0
|
283
|
+
class EnumAttributeValidatorAvalaraSdk::ErrorDetailsError::EnumAttributeValidator27,0
|
284
|
+
attr_reader :datatypedatatype28,0
|
285
|
+
attr_reader :allowable_valuesallowable_values29,0
|
286
|
+
def initialize(datatype, allowable_values)initialize31,0
|
287
|
+
def valid?(value)valid?44,0
|
288
|
+
def self.attribute_mapattribute_map50,0
|
289
|
+
def self.acceptable_attributesacceptable_attributes59,0
|
290
|
+
def self.openapi_typesopenapi_types64,0
|
291
|
+
def self.openapi_nullableopenapi_nullable73,0
|
292
|
+
def initialize(attributes = {})initialize80,0
|
293
|
+
def list_invalid_propertieslist_invalid_properties108,0
|
294
|
+
def valid?valid?115,0
|
295
|
+
def code=(code)code=123,0
|
296
|
+
def ==(o)==133,0
|
297
|
+
def eql?(o)eql?143,0
|
298
|
+
def hashhash149,0
|
299
|
+
def self.build_from_hash(attributes)build_from_hash156,0
|
300
|
+
def build_from_hash(attributes)build_from_hash163,0
|
301
|
+
def _deserialize(type, value)_deserialize186,0
|
302
|
+
def to_sto_s227,0
|
303
|
+
def to_bodyto_body233,0
|
304
|
+
def to_hashto_hash239,0
|
305
|
+
def _to_hash(value)_to_hash257,0
|
306
|
+
|
307
|
+
lib/avalara_sdk/models/error_details_error_details.rb,1920
|
308
|
+
module AvalaraSdkAvalaraSdk16,0
|
309
|
+
class ErrorDetailsErrorDetailsErrorDetailsErrorDetails18,0
|
310
|
+
class ErrorDetailsErrorDetailsAvalaraSdk::ErrorDetailsErrorDetails18,0
|
311
|
+
attr_accessor :codecode20,0
|
312
|
+
attr_accessor :codecode=20,0
|
313
|
+
attr_accessor :messagemessage23,0
|
314
|
+
attr_accessor :messagemessage=23,0
|
315
|
+
attr_accessor :numbernumber26,0
|
316
|
+
attr_accessor :numbernumber=26,0
|
317
|
+
attr_accessor :descriptiondescription29,0
|
318
|
+
attr_accessor :descriptiondescription=29,0
|
319
|
+
attr_accessor :fault_codefault_code32,0
|
320
|
+
attr_accessor :fault_codefault_code=32,0
|
321
|
+
attr_accessor :help_linkhelp_link35,0
|
322
|
+
attr_accessor :help_linkhelp_link=35,0
|
323
|
+
attr_accessor :severityseverity38,0
|
324
|
+
attr_accessor :severityseverity=38,0
|
325
|
+
class EnumAttributeValidatorEnumAttributeValidator40,0
|
326
|
+
class EnumAttributeValidatorAvalaraSdk::ErrorDetailsErrorDetails::EnumAttributeValidator40,0
|
327
|
+
attr_reader :datatypedatatype41,0
|
328
|
+
attr_reader :allowable_valuesallowable_values42,0
|
329
|
+
def initialize(datatype, allowable_values)initialize44,0
|
330
|
+
def valid?(value)valid?57,0
|
331
|
+
def self.attribute_mapattribute_map63,0
|
332
|
+
def self.acceptable_attributesacceptable_attributes76,0
|
333
|
+
def self.openapi_typesopenapi_types81,0
|
334
|
+
def self.openapi_nullableopenapi_nullable94,0
|
335
|
+
def initialize(attributes = {})initialize101,0
|
336
|
+
def list_invalid_propertieslist_invalid_properties145,0
|
337
|
+
def valid?valid?152,0
|
338
|
+
def code=(code)code=162,0
|
339
|
+
def severity=(severity)severity=172,0
|
340
|
+
def ==(o)==182,0
|
341
|
+
def eql?(o)eql?196,0
|
342
|
+
def hashhash202,0
|
343
|
+
def self.build_from_hash(attributes)build_from_hash209,0
|
344
|
+
def build_from_hash(attributes)build_from_hash216,0
|
345
|
+
def _deserialize(type, value)_deserialize239,0
|
346
|
+
def to_sto_s280,0
|
347
|
+
def to_bodyto_body286,0
|
348
|
+
def to_hashto_hash292,0
|
349
|
+
def _to_hash(value)_to_hash310,0
|
350
|
+
|
351
|
+
lib/avalara_sdk/models/shipping_verify_result.rb,1920
|
352
|
+
module AvalaraSdkAvalaraSdk16,0
|
353
|
+
class ShippingVerifyResultShippingVerifyResult18,0
|
354
|
+
class ShippingVerifyResultAvalaraSdk::ShippingVerifyResult18,0
|
355
|
+
attr_accessor :compliantcompliant20,0
|
356
|
+
attr_accessor :compliantcompliant=20,0
|
357
|
+
attr_accessor :messagemessage23,0
|
358
|
+
attr_accessor :messagemessage=23,0
|
359
|
+
attr_accessor :success_messagessuccess_messages26,0
|
360
|
+
attr_accessor :success_messagessuccess_messages=26,0
|
361
|
+
attr_accessor :failure_messagesfailure_messages29,0
|
362
|
+
attr_accessor :failure_messagesfailure_messages=29,0
|
363
|
+
attr_accessor :failure_codesfailure_codes32,0
|
364
|
+
attr_accessor :failure_codesfailure_codes=32,0
|
365
|
+
attr_accessor :warning_codeswarning_codes35,0
|
366
|
+
attr_accessor :warning_codeswarning_codes=35,0
|
367
|
+
attr_accessor :lineslines38,0
|
368
|
+
attr_accessor :lineslines=38,0
|
369
|
+
class EnumAttributeValidatorEnumAttributeValidator40,0
|
370
|
+
class EnumAttributeValidatorAvalaraSdk::ShippingVerifyResult::EnumAttributeValidator40,0
|
371
|
+
attr_reader :datatypedatatype41,0
|
372
|
+
attr_reader :allowable_valuesallowable_values42,0
|
373
|
+
def initialize(datatype, allowable_values)initialize44,0
|
374
|
+
def valid?(value)valid?57,0
|
375
|
+
def self.attribute_mapattribute_map63,0
|
376
|
+
def self.acceptable_attributesacceptable_attributes76,0
|
377
|
+
def self.openapi_typesopenapi_types81,0
|
378
|
+
def self.openapi_nullableopenapi_nullable94,0
|
379
|
+
def initialize(attributes = {})initialize101,0
|
380
|
+
def list_invalid_propertieslist_invalid_properties151,0
|
381
|
+
def valid?valid?158,0
|
382
|
+
def ==(o)==164,0
|
383
|
+
def eql?(o)eql?178,0
|
384
|
+
def hashhash184,0
|
385
|
+
def self.build_from_hash(attributes)build_from_hash191,0
|
386
|
+
def build_from_hash(attributes)build_from_hash198,0
|
387
|
+
def _deserialize(type, value)_deserialize221,0
|
388
|
+
def to_sto_s262,0
|
389
|
+
def to_bodyto_body268,0
|
390
|
+
def to_hashto_hash274,0
|
391
|
+
def _to_hash(value)_to_hash292,0
|
392
|
+
|
393
|
+
lib/avalara_sdk/models/shipping_verify_result_lines.rb,1924
|
394
|
+
module AvalaraSdkAvalaraSdk16,0
|
395
|
+
class ShippingVerifyResultLinesShippingVerifyResultLines17,0
|
396
|
+
class ShippingVerifyResultLinesAvalaraSdk::ShippingVerifyResultLines17,0
|
397
|
+
attr_accessor :result_coderesult_code19,0
|
398
|
+
attr_accessor :result_coderesult_code=19,0
|
399
|
+
attr_accessor :line_numberline_number22,0
|
400
|
+
attr_accessor :line_numberline_number=22,0
|
401
|
+
attr_accessor :messagemessage25,0
|
402
|
+
attr_accessor :messagemessage=25,0
|
403
|
+
attr_accessor :success_messagessuccess_messages28,0
|
404
|
+
attr_accessor :success_messagessuccess_messages=28,0
|
405
|
+
attr_accessor :failure_messagesfailure_messages31,0
|
406
|
+
attr_accessor :failure_messagesfailure_messages=31,0
|
407
|
+
attr_accessor :failure_codesfailure_codes34,0
|
408
|
+
attr_accessor :failure_codesfailure_codes=34,0
|
409
|
+
class EnumAttributeValidatorEnumAttributeValidator36,0
|
410
|
+
class EnumAttributeValidatorAvalaraSdk::ShippingVerifyResultLines::EnumAttributeValidator36,0
|
411
|
+
attr_reader :datatypedatatype37,0
|
412
|
+
attr_reader :allowable_valuesallowable_values38,0
|
413
|
+
def initialize(datatype, allowable_values)initialize40,0
|
414
|
+
def valid?(value)valid?53,0
|
415
|
+
def self.attribute_mapattribute_map59,0
|
416
|
+
def self.acceptable_attributesacceptable_attributes71,0
|
417
|
+
def self.openapi_typesopenapi_types76,0
|
418
|
+
def self.openapi_nullableopenapi_nullable88,0
|
419
|
+
def initialize(attributes = {})initialize95,0
|
420
|
+
def list_invalid_propertieslist_invalid_properties137,0
|
421
|
+
def valid?valid?144,0
|
422
|
+
def result_code=(result_code)result_code=152,0
|
423
|
+
def ==(o)==162,0
|
424
|
+
def eql?(o)eql?175,0
|
425
|
+
def hashhash181,0
|
426
|
+
def self.build_from_hash(attributes)build_from_hash188,0
|
427
|
+
def build_from_hash(attributes)build_from_hash195,0
|
428
|
+
def _deserialize(type, value)_deserialize218,0
|
429
|
+
def to_sto_s259,0
|
430
|
+
def to_bodyto_body265,0
|
431
|
+
def to_hashto_hash271,0
|
432
|
+
def _to_hash(value)_to_hash289,0
|
433
|
+
|
434
|
+
lib/avalara_sdk/version.rb,114
|
435
|
+
module AvalaraSdkAvalaraSdk13,0
|
436
|
+
VERSION = '22.1.0'VERSION14,0
|
437
|
+
VERSION = '22.1.0'AvalaraSdk::VERSION14,0
|
438
|
+
|
439
|
+
lib/avalara_sdk.rb,67
|
440
|
+
module AvalaraSdkAvalaraSdk34,0
|
441
|
+
def configureconfigure42,0
|
data/avalara_sdk.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#Avalara Shipping Verification only
|
5
|
+
|
6
|
+
#API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta.
|
7
|
+
|
8
|
+
SDK Version : 2.4.5.6
|
9
|
+
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
$:.push File.expand_path("../lib", __FILE__)
|
14
|
+
require "avalara_sdk/version"
|
15
|
+
|
16
|
+
Gem::Specification.new do |s|
|
17
|
+
s.name = "avalara_sdk"
|
18
|
+
s.version = AvalaraSdk::VERSION
|
19
|
+
s.platform = Gem::Platform::RUBY
|
20
|
+
s.authors = ["OpenAPI-Generator"]
|
21
|
+
s.email = [""]
|
22
|
+
s.homepage = "https://openapi-generator.tech"
|
23
|
+
s.summary = "Avalara Shipping Verification only Ruby Gem"
|
24
|
+
s.description = "API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations. This API is currently in beta. "
|
25
|
+
s.license = "Unlicense"
|
26
|
+
s.required_ruby_version = ">= 2.4"
|
27
|
+
|
28
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
29
|
+
|
30
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
31
|
+
|
32
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
33
|
+
s.test_files = `find spec/*`.split("\n")
|
34
|
+
s.executables = []
|
35
|
+
s.require_paths = ["lib"]
|
36
|
+
end
|