Sha256: 11cc628736249a4ebc65e97fe8989f652e7d16415e93b1f064000c3116467847

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

# typed: true
# frozen_string_literal: true

require 'sorbet-runtime'
require 'faraday'

module StackOne
  module Shared

    class DocumentTypeEnumValue < T::Enum
      enums do
        VISA = new('visa')
        PASSPORT = new('passport')
        DRIVER_LICENSE = new('driver_license')
        OTHER = new('other')
        UNMAPPED_VALUE = new('unmapped_value')
      end
    end



    class DocumentTypeEnum < ::StackOne::Utils::FieldAugmented
      extend T::Sig


      field :source_value, T.nilable(Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }

      field :value, T.nilable(Shared::DocumentTypeEnumValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::DocumentTypeEnumValue, true) } }


      sig { params(source_value: T.nilable(Object), value: T.nilable(Shared::DocumentTypeEnumValue)).void }
      def initialize(source_value: nil, value: nil)
        @source_value = source_value
        @value = value
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stackone_client-0.1.0 lib/stackone/models/shared/documenttypeenum.rb
stackone_client-0.0.3 lib/stackone/models/shared/documenttypeenum.rb