Sha256: 835ec2597f37a4edfc447be17218c8dab48a5abea9a266cc88535fd298fef6e7

Contents?: true

Size: 1.15 KB

Versions: 4

Compression:

Stored size: 1.15 KB

Contents

=begin
#Onfido API v3.6

#The Onfido API (v3.6)

The version of the OpenAPI document: v3.6

Generated by: https://openapi-generator.tech
Generator version: 7.9.0

=end

require 'date'
require 'time'

module Onfido
  class ApplicantConsentName
    PRIVACY_NOTICES_READ = "privacy_notices_read".freeze
    SSN_VERIFICATION = "ssn_verification".freeze
    PHONE_NUMBER_VERIFICATION = "phone_number_verification".freeze
    UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze

    def self.all_vars
      @all_vars ||= [PRIVACY_NOTICES_READ, SSN_VERIFICATION, PHONE_NUMBER_VERIFICATION, UNKNOWN_DEFAULT_OPEN_API].freeze
    end

    # 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)
      return value if ApplicantConsentName.all_vars.include?(value)
      raise "Invalid ENUM value #{value} for class #ApplicantConsentName"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
onfido-4.3.0 lib/onfido/models/applicant_consent_name.rb
onfido-4.2.0 lib/onfido/models/applicant_consent_name.rb
onfido-4.1.0 lib/onfido/models/applicant_consent_name.rb
onfido-4.0.0 lib/onfido/models/applicant_consent_name.rb