Sha256: 82d6d693a3f2376508e72f1002ef62220f26f2a4a66ee0b5eb9bc06cb3d59bfe

Contents?: true

Size: 1.85 KB

Versions: 4

Compression:

Stored size: 1.85 KB

Contents

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

# typed: true
# frozen_string_literal: true


module StackOne
  module Shared
  

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


      field :document, T.nilable(::StackOne::Shared::Document), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('document') } }

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

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

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

      field :type, T.nilable(::StackOne::Shared::WorkEligibilityType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }

      field :valid_from, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('valid_from'), 'decoder': Utils.datetime_from_iso_format(true) } }

      field :valid_to, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('valid_to'), 'decoder': Utils.datetime_from_iso_format(true) } }


      sig { params(document: T.nilable(::StackOne::Shared::Document), issued_by: T.nilable(::String), number: T.nilable(::String), sub_type: T.nilable(::String), type: T.nilable(::StackOne::Shared::WorkEligibilityType), valid_from: T.nilable(::DateTime), valid_to: T.nilable(::DateTime)).void }
      def initialize(document: nil, issued_by: nil, number: nil, sub_type: nil, type: nil, valid_from: nil, valid_to: nil)
        @document = document
        @issued_by = issued_by
        @number = number
        @sub_type = sub_type
        @type = type
        @valid_from = valid_from
        @valid_to = valid_to
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stackone_client-0.2.2 lib/stack_one/models/shared/workeligibility.rb
stackone_client-0.2.1 lib/stack_one/models/shared/workeligibility.rb
stackone_client-0.2.0 lib/stack_one/models/shared/workeligibility.rb
stackone_client-0.1.1 lib/stack_one/models/shared/workeligibility.rb