Class: Inttegro::File::UploadReceipt

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/file/upload_receipt.rb

Overview

Typed representation of the upload receipt object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#content_type ⇒ String (readonly)

Value of the content_type field in the Inttegro API payload.

Required in the API payload. Wire name: content_type.

Returns:

  • (String)


60
61
62
63
64
65
66
67
68
# File 'lib/inttegro/file/upload_receipt.rb', line 60

class UploadReceipt < T::Struct
  const :content_type, String
  const :created_at, Time
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :name, T.nilable(String), default: nil
  const :size, Integer
  const :status, Inttegro::File::Status
end

#created_at ⇒ Time (readonly)

Value of the created_at field in the Inttegro API payload.

Required in the API payload. Wire name: created_at.

Returns:

  • (Time)


60
61
62
63
64
65
66
67
68
# File 'lib/inttegro/file/upload_receipt.rb', line 60

class UploadReceipt < T::Struct
  const :content_type, String
  const :created_at, Time
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :name, T.nilable(String), default: nil
  const :size, Integer
  const :status, Inttegro::File::Status
end

#filename ⇒ String? (readonly)

Value of the filename field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: filename.

Returns:

  • (String, nil)


60
61
62
63
64
65
66
67
68
# File 'lib/inttegro/file/upload_receipt.rb', line 60

class UploadReceipt < T::Struct
  const :content_type, String
  const :created_at, Time
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :name, T.nilable(String), default: nil
  const :size, Integer
  const :status, Inttegro::File::Status
end

#id ⇒ String (readonly)

Value of the id field in the Inttegro API payload.

Required in the API payload. Wire name: id.

Returns:

  • (String)


60
61
62
63
64
65
66
67
68
# File 'lib/inttegro/file/upload_receipt.rb', line 60

class UploadReceipt < T::Struct
  const :content_type, String
  const :created_at, Time
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :name, T.nilable(String), default: nil
  const :size, Integer
  const :status, Inttegro::File::Status
end

#name ⇒ String? (readonly)

Value of the name field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: name.

Returns:

  • (String, nil)


60
61
62
63
64
65
66
67
68
# File 'lib/inttegro/file/upload_receipt.rb', line 60

class UploadReceipt < T::Struct
  const :content_type, String
  const :created_at, Time
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :name, T.nilable(String), default: nil
  const :size, Integer
  const :status, Inttegro::File::Status
end

#size ⇒ Integer (readonly)

Value of the size field in the Inttegro API payload.

Required in the API payload. Wire name: size.

Returns:

  • (Integer)


60
61
62
63
64
65
66
67
68
# File 'lib/inttegro/file/upload_receipt.rb', line 60

class UploadReceipt < T::Struct
  const :content_type, String
  const :created_at, Time
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :name, T.nilable(String), default: nil
  const :size, Integer
  const :status, Inttegro::File::Status
end

#status ⇒ Inttegro::File::Status (readonly)

Value of the status field in the Inttegro API payload.

Required in the API payload. Wire name: status.



60
61
62
63
64
65
66
67
68
# File 'lib/inttegro/file/upload_receipt.rb', line 60

class UploadReceipt < T::Struct
  const :content_type, String
  const :created_at, Time
  const :filename, T.nilable(String), default: nil
  const :id, String
  const :name, T.nilable(String), default: nil
  const :size, Integer
  const :status, Inttegro::File::Status
end