Sha256: 600dada56bfa9d3da1f3362823f142de37268f56e37ccdb53b6c033a0644e23a

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

=begin
#Avalara Shipping Verification only

#API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations.  This API is currently in beta. 

SDK Version : 2.4.7


=end

require 'date'
require 'time'

module AvalaraSdk
  class AgeVerifyFailureCode
    NOT_FOUND = "not_found".freeze
    DOB_UNVERIFIABLE = "dob_unverifiable".freeze
    UNDER_AGE = "under_age".freeze
    SUSPECTED_FRAUD = "suspected_fraud".freeze
    DECEASED = "deceased".freeze
    UNKNOWN_ERROR = "unknown_error".freeze

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def self.build_from_hash(value)
      new.build_from_hash(value)
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def build_from_hash(value)
      constantValues = AgeVerifyFailureCode.constants.select { |c| AgeVerifyFailureCode::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #AgeVerifyFailureCode" if constantValues.empty?
      value
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
avalara_sdk-2.4.7 lib/avalara_sdk/models/age_verify_failure_code.rb