# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. # typed: true # frozen_string_literal: true module StackOne module Shared class AssessmentsResults < ::StackOne::Utils::FieldAugmented extend T::Sig # The start date of the candidate assessment field :assessment_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('assessment_date'), 'decoder': Utils.datetime_from_iso_format(true) } } # The id of the candidate assessment field :assessment_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('assessment_id') } } field :attachments, T.nilable(::StackOne::Shared::Attachments), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('attachments') } } field :candidate, T.nilable(::StackOne::Shared::AssessmentsResultsCandidate), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('candidate') } } # Unique identifier field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } } # Provider's unique identifier field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } } field :result, T.nilable(::StackOne::Shared::Result), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('result') } } # The assessment`s result url field :result_url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('result_url') } } field :score, T.nilable(::StackOne::Shared::Score), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('score') } } # The submission date of the candidate assessment field :submission_date, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('submission_date'), 'decoder': Utils.datetime_from_iso_format(true) } } # The summary about the result of the assessments field :summary, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('summary') } } sig { params(assessment_date: T.nilable(::DateTime), assessment_id: T.nilable(::String), attachments: T.nilable(::StackOne::Shared::Attachments), candidate: T.nilable(::StackOne::Shared::AssessmentsResultsCandidate), id: T.nilable(::String), remote_id: T.nilable(::String), result: T.nilable(::StackOne::Shared::Result), result_url: T.nilable(::String), score: T.nilable(::StackOne::Shared::Score), submission_date: T.nilable(::DateTime), summary: T.nilable(::String)).void } def initialize(assessment_date: nil, assessment_id: nil, attachments: nil, candidate: nil, id: nil, remote_id: nil, result: nil, result_url: nil, score: nil, submission_date: nil, summary: nil) @assessment_date = assessment_date @assessment_id = assessment_id @attachments = attachments @candidate = candidate @id = id @remote_id = remote_id @result = result @result_url = result_url @score = score @submission_date = submission_date @summary = summary end end end end