Class: Increase::Models::File
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Increase::Models::File
- Defined in:
- lib/increase/models/file.rb
Overview
Defined Under Namespace
Modules: Direction, Purpose, Type
Instance Attribute Summary collapse
-
#created_at ⇒ Time
The time the File was created.
-
#description ⇒ String?
A description of the File.
-
#direction ⇒ Symbol, Increase::Models::File::Direction
Whether the File was generated by Increase or by you and sent to Increase.
-
#filename ⇒ String?
The filename that was provided upon upload or generated by Increase.
-
#id ⇒ String
The File’s identifier.
-
#idempotency_key ⇒ String?
The idempotency key you chose for this object.
-
#mime_type ⇒ String
The MIME type of the file.
-
#purpose ⇒ Symbol, Increase::Models::File::Purpose
What the File will be used for.
-
#type ⇒ Symbol, Increase::Models::File::Type
A constant representing the object’s type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: , created_at: , description: , direction: , filename: , idempotency_key: , mime_type: , purpose: , type: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see File for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, 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
#initialize(id: , created_at: , description: , direction: , filename: , idempotency_key: , mime_type: , purpose: , type: ) ⇒ Object
Some parameter documentations has been truncated, see Increase::Models::File for more details.
Files are objects that represent a file hosted on Increase’s servers. The file may have been uploaded by you (for example, when uploading a check image) or it may have been created by Increase (for example, an autogenerated statement PDF). If you need to download a File, create a File Link.
|
|
# File 'lib/increase/models/file.rb', line 66
|
Instance Attribute Details
#created_at ⇒ Time
The time the File was created.
17 |
# File 'lib/increase/models/file.rb', line 17 required :created_at, Time |
#description ⇒ String?
A description of the File.
23 |
# File 'lib/increase/models/file.rb', line 23 required :description, String, nil?: true |
#direction ⇒ Symbol, Increase::Models::File::Direction
Whether the File was generated by Increase or by you and sent to Increase.
29 |
# File 'lib/increase/models/file.rb', line 29 required :direction, enum: -> { Increase::File::Direction } |
#filename ⇒ String?
The filename that was provided upon upload or generated by Increase.
35 |
# File 'lib/increase/models/file.rb', line 35 required :filename, String, nil?: true |
#id ⇒ String
The File’s identifier.
11 |
# File 'lib/increase/models/file.rb', line 11 required :id, String |
#idempotency_key ⇒ String?
The idempotency key you chose for this object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about [idempotency](increase.com/documentation/idempotency-keys).
43 |
# File 'lib/increase/models/file.rb', line 43 required :idempotency_key, String, nil?: true |
#mime_type ⇒ String
The MIME type of the file.
49 |
# File 'lib/increase/models/file.rb', line 49 required :mime_type, String |
#purpose ⇒ Symbol, Increase::Models::File::Purpose
What the File will be used for. We may add additional possible values for this enum over time; your application should be able to handle such additions gracefully.
57 |
# File 'lib/increase/models/file.rb', line 57 required :purpose, enum: -> { Increase::File::Purpose } |
#type ⇒ Symbol, Increase::Models::File::Type
A constant representing the object’s type. For this resource it will always be ‘file`.
64 |
# File 'lib/increase/models/file.rb', line 64 required :type, enum: -> { Increase::File::Type } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/increase/models/file.rb', line 105
|