# 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 Candidate < ::StackOne::Utils::FieldAugmented extend T::Sig # Candidate ID field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } } # List of candidate application IDs field :application_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('application_ids') } } # Candidate company field :company, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company') } } # Candidate created date field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } } # Candidate email field :email, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('email') } } # List of candidate emails field :emails, T.nilable(T::Array[Shared::CandidateEmail]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('emails') } } # Candidate first name field :first_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } } # Candidate hired date field :hired_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hired_at'), 'decoder': Utils.datetime_from_iso_format(true) } } # Candidate last name field :last_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } } # Candidate name field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } } # Candidate phone number field :phone, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone') } } # List of candidate social links field :social_links, T.nilable(T::Array[Shared::SocialLink]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('social_links') } } # Candidate title field :title, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } } # Candidate updated date field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } } sig { params(id: String, application_ids: T.nilable(T::Array[String]), company: T.nilable(String), created_at: T.nilable(DateTime), email: T.nilable(String), emails: T.nilable(T::Array[Shared::CandidateEmail]), first_name: T.nilable(String), hired_at: T.nilable(DateTime), last_name: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), social_links: T.nilable(T::Array[Shared::SocialLink]), title: T.nilable(String), updated_at: T.nilable(DateTime)).void } def initialize(id: nil, application_ids: nil, company: nil, created_at: nil, email: nil, emails: nil, first_name: nil, hired_at: nil, last_name: nil, name: nil, phone: nil, social_links: nil, title: nil, updated_at: nil) @id = id @application_ids = application_ids @company = company @created_at = created_at @email = email @emails = emails @first_name = first_name @hired_at = hired_at @last_name = last_name @name = name @phone = phone @social_links = social_links @title = title @updated_at = updated_at end end end end