lib/stack_one/models/shared/atsdocumentapimodel.rb in stackone_client-0.2.33 vs lib/stack_one/models/shared/atsdocumentapimodel.rb in stackone_client-0.2.34
- old
+ new
@@ -1,6 +1,6 @@
-# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
+# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
# typed: true
# frozen_string_literal: true
@@ -10,11 +10,11 @@
class AtsDocumentApiModel < ::StackOne::Utils::FieldAugmented
extend T::Sig
# The category of the the document
- field :category, T.nilable(::StackOne::Shared::Category), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
+ field :category, T.nilable(::StackOne::Shared::AtsDocumentApiModelCategory), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } }
# The content of the file. Deprecated, use `url` and `file_format` one level up instead
#
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
field :contents, T.nilable(T::Array[::StackOne::Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
# The creation date of the file
@@ -37,10 +37,10 @@
field :type, T.nilable(::StackOne::Shared::AtsDocumentApiModelType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
# The update date of the file
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(category: T.nilable(::StackOne::Shared::Category), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), file_format: T.nilable(::StackOne::Shared::FileFormat), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), remote_url: T.nilable(::String), type: T.nilable(::StackOne::Shared::AtsDocumentApiModelType), updated_at: T.nilable(::DateTime)).void }
+ sig { params(category: T.nilable(::StackOne::Shared::AtsDocumentApiModelCategory), contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), file_format: T.nilable(::StackOne::Shared::FileFormat), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), remote_id: T.nilable(::String), remote_url: T.nilable(::String), type: T.nilable(::StackOne::Shared::AtsDocumentApiModelType), updated_at: T.nilable(::DateTime)).void }
def initialize(category: nil, contents: nil, created_at: nil, file_format: nil, id: nil, name: nil, path: nil, remote_id: nil, remote_url: nil, type: nil, updated_at: nil)
@category = category
@contents = contents
@created_at = created_at
@file_format = file_format