Class: Lithic::Models::TransactionMonitoring::Cases::CaseFile

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/transaction_monitoring/cases/case_file.rb

Overview

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

This class inherits a constructor from Lithic::Internal::Type::BaseModel

Instance Attribute Details

#createdTime

Date and time at which the file record was created

Returns:

  • (Time)


19
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 19

required :created, Time

#download_urlString?

Presigned URL the client uses to download the file

Returns:

  • (String, nil)


25
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 25

required :download_url, String, nil?: true

#download_url_expiresTime?

Date and time at which the download URL expires

Returns:

  • (Time, nil)


31
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 31

required :download_url_expires, Time, nil?: true

#failure_reasonString?

Reason the file was rejected, when applicable

Returns:

  • (String, nil)


37
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 37

required :failure_reason, String, nil?: true

#mime_typeString?

MIME type of the file, available once the file is ready

Returns:

  • (String, nil)


43
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 43

required :mime_type, String, nil?: true

#nameString

Name of the file

Returns:

  • (String)


49
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 49

required :name, String

#size_bytesInteger?

Size of the file in bytes, available once the file is ready

Returns:

  • (Integer, nil)


55
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 55

required :size_bytes, Integer, nil?: true

#statusSymbol, Lithic::Models::TransactionMonitoring::Cases::FileStatus

Lifecycle status of a case file:

  • ‘PENDING` - An upload URL has been issued and the file is awaiting upload

  • ‘READY` - The file has been uploaded and validated; a download URL is available

  • ‘REJECTED` - File validation failed; see `failure_reason` for details



66
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 66

required :status, enum: -> { Lithic::TransactionMonitoring::Cases::FileStatus }

#tokenString

Globally unique identifier for the file

Returns:

  • (String)


13
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 13

required :token, String

#updatedTime

Date and time at which the file record was last updated

Returns:

  • (Time)


72
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 72

required :updated, Time

#upload_constraintsLithic::Models::TransactionMonitoring::Cases::UploadConstraints?

Constraints applied to a file upload, returned alongside the upload URL so clients can validate before uploading



79
80
81
82
83
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 79

required :upload_constraints,
-> {
  Lithic::TransactionMonitoring::Cases::UploadConstraints
},
nil?: true

#upload_urlString?

Presigned URL the client uses to upload the file

Returns:

  • (String, nil)


89
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 89

required :upload_url, String, nil?: true

#upload_url_expiresTime?

Date and time at which the upload URL expires

Returns:

  • (Time, nil)


95
# File 'lib/lithic/models/transaction_monitoring/cases/case_file.rb', line 95

required :upload_url_expires, Time, nil?: true