Sha256: b6f8d1c62219af811677c0f451cd0a585aabc89e81494c1c3367a2212de37b28

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.5.6


=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.5.6 lib/avalara_sdk/models/age_verify_failure_code.rb