# 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 # JobStatusEnumValue - The status of the job. class JobStatusEnumValue < T::Enum enums do PUBLISHED = new('published') DRAFT = new('draft') PENDING = new('pending') INTERNAL = new('internal') ARCHIVED = new('archived') CLOSED = new('closed') OPEN = new('open') UNMAPPED_VALUE = new('unmapped_value') end end class JobStatusEnum < ::StackOne::Utils::FieldAugmented extend T::Sig # The source value of the job status. field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } } # The status of the job. field :value, Shared::JobStatusEnumValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::JobStatusEnumValue, false) } } sig { params(source_value: String, value: Shared::JobStatusEnumValue).void } def initialize(source_value: nil, value: nil) @source_value = source_value @value = value end end end end